Skip to main content

Class: PipelineData

PathBuilding.PipelineData()

Pipeline data container

Constructor

new PipelineData()

Properties:
NameTypeDescription
sensorDataInkInput.SensorDataPointer data (runtime pipeline only)
smootherPointsArray.<float>Smoother points (runtime pipeline only)
splinePathBuilding.SplineControl points
interpolatedSplinePathBuilding.InterpolatedSplineInterpolated points
shapesPathPathBuilding.InkPath2DBrush samples sequence
convexPathPathBuilding.InkPath2DConvex hulls sequence
mergedPathPathBuilding.InkPath2DSimple (non-self-intersecting) polygon (with holes) - sequence of 1 polygon
lastPathBuilding.Spline|PathBuilding.InterpolatedSpline|PathBuilding.InkPath2DLast available output from pipeline chain
lastStagePathBuilding.Pipeline.StageStage of last available output from pipeline chain
encodingSerialization.TypedArrayCodec.EncodingApplicable for JSON serialization, configures points serialization type

Since:

  • version 3.0.6

Methods

toJSON() → {JSON}

Serialize to JSON

Returns:

Pipeline output data

Type

JSON

(static) fromJSON(data) → PathBuilding.PipelineData

Deserialize from JSON

Parameters:
NameTypeDescription
dataJSONPipeline output data
Returns:

PipelineData instance

Type

PathBuilding.PipelineData

Home