LivelyKernel / lively.morphic

An implementation of the Morphic user interface framework for lively.next.
13 stars 2 forks source link

[polygons] extent computation not automatic #90

Closed rksm closed 7 years ago

rksm commented 7 years ago

@merryman

Extent of polygons does not depend on vertices.

var p = new Polygon({vertices: [pt(0,0), pt(100,50), pt(50, 100)], fill: Color.orange})

p.clipMode // => visible, OK
p.extent // => pt(10.0,10.0), ????

extent is expected to be pt(100,100)

merryman commented 7 years ago

Added in: c7ca68f65e9e7b7832cc5d7ef463cf6a9ce8bb1b Let me know if that works all right for you!

rksm commented 7 years ago

Awesome, thanks!