On Sun, Oct 12, 2008 at 02:05:17AM +0900, Satoshi Asakawa wrote:
> When I create an oval shape, like
>   oval :left => 50, :top => 50, :width => 30
> 
> The :left and :top positions are the top-left corner of the oval.
> 
> But I create an star shape, like
>   star :left => 50, :top => 50, :points => 5, :outer => 15, :inner => 10
> 
> The :left and :top positions are the center of the star.
> 
> Umm... this behavior is a spec or a bug?

Yes, this is correct.  Shoes matches the NodeBox reference in this
way.
<http://nodebox.net/code/index.php/Reference>

"Left" and "top" do not mean "left-top" corner.  They mean "left"
and "top" coordinate.  For ovals, rects, and arcs, this defaults to
the corner.  You can change to the center point with `transform`.
<http://help.shoooes.net/Art.html#transform>

_why

Reply via email to