Path
The path is the most powerful element in a graphical context since it allows for the definition of any complex or basic shape. The Node-i2djs Path offers a set of methods for building or interpreting the path, following the SVG Path syntax definition.
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