hi, i'm trying co create a CurveLocation, but i fail to do it.
The code is:
var loc = new CurveLocation(path, index, 0);
but the console throw me this error:
ReferenceError: "CurveLocation" is not defined.
hi, i'm trying co create a CurveLocation, but i fail to do it.
The code is:
var loc = new CurveLocation(path, index, 0);
but the console throw me this error:
ReferenceError: "CurveLocation" is not defined.
That's an error at our end. The class is not exposed under its simple name right now. You can work around it by using com.scriptographer.ai.CurveLocation.
But I am wondering a bit why you want to create it directly? Usually one would just work with this class through values returned from path.getLocation(length), path.getLength(location), path.getPoint(length), path.split(location), pathItem.getIntersections(path), etc.