Global

Type Definitions

BezierContour

Properties:
Name Type Description
polygon Boolean Use true if the path and holes are polygons. This makes the data much smaller than using onCurve for each vertex.
path Array.<BezierPoint> A list of vertices
holes Array.<Array.<BezierPoint>> A list of list of vertices
Definition of a Bezier contour with potential holes in it.
Type:
  • Object

BezierPath

Properties:
Name Type Description
path Array.<BezierPoint> A list of vertices
Definition of a Bezier path.
Type:
  • Object

BezierPoint

Properties:
Name Type Description
x double x coordinate
y double y coordinate
onCurve Boolean Use true is the vertex is on the curve. This means it is not a bezier handle.
A vertex of a Bezier curve.
Type:
  • Object

Box2d

Properties:
Name Type Description
x0 double The min x coordinate
x1 double The max x coordinate
y0 double The min y coordinate
y1 double The max y coordinate
A 2d box.
Type:
  • Object

DrawingQueryBasicArguments

Properties:
Name Type Description
drawing Object The drawing descriptor
art integer The art index // 0 = underlay, 1 = color art, 2 = line art, 3 = overlay
Basic argument definitions to DrawingTools functions
Type:
  • Object
Example
var basicArg = {
  drawing : { node : "Top/Drawing", frame : 1 }
  art : 1  // color art
}

EvaluateStrokesArgument

Properties:
Name Type Description
strokes Array.<StrokeDescriptorAndParams>
The argument to the evaluateStrokes method
Type:

GeometryConstants

Properties:
Name Type Description
splitPerimeter double Equals 4.
roundingQuantum double Equals 1.0 / 64.0.
Constants used in the geometry computations
Type:
  • Object

GetIntersectionArgument

Properties:
Name Type Description
path0 Array.<BezierPoint> The first Bezier path
path1 Array.<BezierPoint> The second Bezier path
Type:
  • Object

Point2d

Properties:
Name Type Description
x double x coordinate
y double y coordinate
A 2d vertex
Type:
  • Object

StrokeDescriptorAndParams

Properties:
Name Type Description
layer int The layer index of the stroke
strokeIndex int The stroke index within this layer
params Array.<double> The list of params to evaluate the stroke at
The argument to the evaluateStrokes method
Type:
  • Object