Search code examples
javascriptkineticjs

Is KineticJS Polygon Deprecated


If you go to the documentation for KineticJS the sidebar navigation doesn't have a link to the page for Polygon, but the page is still there. Is this intentional?


Solution

  • As of V5 the polygon is now a line--actually a closed polyline.

    If you want the equivalent of the old polygon, just set the closed property of a polyline to true.