How can I convert SVG Path to a shape in createjs?
I am newbie in createjs.
Currently there is no direct support for SVG » Graphics (SVG is only supported as a Bitmap source).
You could fairly easy drop into Adobe Animate, and publish to Graphics.
You could also use something like SnapSVG to render it, and add it as a DOMElement, or use something like canvg to draw it to a Canvas, and then use the Canvas as a bitmap source.
var inst = new createjs.DOMElement(someSVGElement);
// OR
var inst = new createjs.Bitmap(otherCanvas);
I hope that provides some insight. Sorry we can't offer direct support yet.
As Lanny noted in an answer above, there is a way to import an svg into Adobe Animate and take the path from its' HTML5 Canvas output.
It goes in a minified format, and the decodePath
createjs function can be modified to parse it to a set of actions and coordinates.
Also the svg format is can be parsed directly, but you'll have to implement it yourself (here is an incomplete proof of concept).