Path
The path is the most powerful element in a graphical context, using which any complex or basic permeative shape can be defined. I2Djs Path provides a set of methods that are used to build or interpret the path. It follows the SVG Path syntax definition. It is compatible across I2Ds SVG and Canvas renderers.
The path is available as a part of I2D Object space.
It can be imported as below.
API
Path Instance creation:
#.m(absoluteflag, point);
#.h(absoluteflag, point);
#.v(absoluteflag, point);
#.l(absoluteflag, point);
#.c(absoluteflag, ctrl1, ctrl2, point);
#.q(absoluteflag, ctrl1, point);
#.s(absoluteflag, ctrl2, point);
#.a(absoluteflag, rx, ry, xRotation, arcLargeFlag, sweepFlag, point);
#.z();
#.parse(Pathstring);
#.fetchPathString();
#.getTotalLength();
#.getPointAtLength();
#.isValid();
Last updated