Lines Matching full:path
2 it('can create a path from an SVG string', function(done) {
6 let path = PathKit.FromSVGString('M 205,5 L 795,5 L 595,295 L 5,295 L 205,5 z');
8 let cmds = path.toCmds();
19 path.delete();
24 it('can create an SVG string from a path', function(done) {
32 let path = PathKit.FromCmds(cmds);
34 let svgStr = path.toSVGString();
37 path.delete();
50 let path = PathKit.FromCmds(cmds);
52 let svgStr = path.toSVGString();
54 path.delete();
66 let path = PathKit.FromSVGString(svg);
67 let output = path.toSVGString();
71 path.delete();
79 let path = PathKit.NewPath();
80 path.moveTo(50, 120);
81 path.arc(50, 120, 45, 0, 1.75 * Math.PI);
82 path.lineTo(50, 120);
83 let svgStr = path.toSVGString();
84 // Q stands for quad. No need to check the whole path, as that's more
88 path.delete();