KineticJS
KineticJS copied to clipboard
Polygon are not being drawn
In version 4.0.2 Polygon shapes are not being drawn at all. Sample: http://jsfiddle.net/cZLnM/1/
http://jsfiddle.net/cZLnM/3/ Since the setAttrs is refactored you need to write the points as xy-objects. Not sure if this is by design or not..
Ah, i see now. Something like that should be mentioned in Change logs since it breaks older realizations.
all points attrs now can be set with an array of integers, an array of arrays which contain two elements each, or an array of point objects:
http://kineticjs.com/docs/symbols/Kinetic.Polygon.php#getPoints