Skip to main content

Namespace: PathBuilding

PathBuilding

Classes

ConvexHullProducer

InkBuilder

InkBuilderAbstract

InkBuilderAsync

InkPath2D

InterpolatedSpline

Path

PathFragment

PathPoint

PathPointContext

PathSegment

PipelineData

PointerData

Polygon

PolygonArray

Spline

SplineFragment

SplineParameter

Namespaces

Pipeline

workers

Type Definitions

Calculator(previous, current, next) → {PathPoint}

A delegate that calculates the properties of a single path point based on three sequential points from the pointer input

Parameters:
NameTypeDescription
previousPathBuilding.PointerData
currentPathBuilding.PointerData
nextPathBuilding.PointerDataprediction pointer data
Returns:

path point that will be processed from pipeline

Type

PathPoint

InkBuilderSettings

InkBuilder settings

Properties:
NameTypeAttributesDefaultDescription
brushRendering.BrushDefines spacing (between two successive samples) and vector inking shape, required for ink builder initialization
layoutArray.<PathBuilding.PathPoint.Property>The path point layout object that specifies the available properties of a path point. Required for runtime build.
pathPointPropsPathBuilding.PathPointPropertiesStatic values used when the layout does not include variable ones
pathPointCalculatorPathBuilding.CalculatorLambda function calculates the path point properties based on pointer input. Required for runtime build.
lastPipelineStagePathBuilding.Pipeline.StageWhere pipeline chain ends. Default depends from brush instance.
Brush2D instance with spacing <= 1 ends with POLYGON_MERGER
Brush2D instance with spacing > 1 ends with BRUSH_APPLIER
BrushGL instance ends with SPLINE_INTERPOLATOR
keepAllDataArray.<PathBuilding.Pipeline.Stage>Provides pipeline result from particular stages
concatSegmentsboolean<optional>falseThis property is applicable for runtime strokes only, built with pipeline where lastPipelineStage is POLYGON_MERGER. When is true completed ink path segments will be merged.
concatPredictionSegmentsboolean<optional>falseThis property is applicable for runtime strokes only, built with pipeline where lastPipelineStage is POLYGON_MERGER. When is true prediction segments will be merged.
movingAverageWindowSizeint<optional>15Window size of the smoothing filter
errorThresholdfloat<optional>0.15Threshold value that determines the allowed difference between the actual and the interpolated curve. Applicable only for vector brushes.
keepSplineParametersboolean<optional>falseInterpolated spline contains SplineParameter for every sampled point

PathPointProperties

Pipeline properties which not varies

Properties:
NameTypeAttributesDefaultDescription
redbyte<optional>Red color value
greenbyte<optional>Green color value
bluebyte<optional>Blue color value
alphafloat<optional>Alpha color value
sizefloat<optional>Size value associated with the path point
rotationfloat<optional>Rotation value associated with the path point
scaleXfloat<optional>1X dimension scale value associated with the path point
scaleYfloat<optional>1Y dimension scale value associated with the path point
scaleZfloat<optional>1Z dimension scale value associated with the path point
offsetXfloat<optional>0X dimension offset value associated with the path point
offsetYfloat<optional>0Y dimension offset value associated with the path point
offsetZfloat<optional>0Z dimension offset value associated with the path point

PathPointSettings

Pipeline properties which varies

Properties:
NameTypeAttributesDescription
redPathBuilding.PathPoint.PropertySettings<optional>Red color channel configuration
greenPathBuilding.PathPoint.PropertySettings<optional>Green color channel configuration
bluePathBuilding.PathPoint.PropertySettings<optional>Blue color channel configuration
alphaPathBuilding.PathPoint.PropertySettings<optional>Alpha color channel configuration
sizePathBuilding.PathPoint.PropertySettings<optional>Size channel configuration
rotationPathBuilding.PathPoint.PropertySettings<optional>Rotation channel configuration
scaleXPathBuilding.PathPoint.PropertySettings<optional>X dimension scale channel configuration
scaleYPathBuilding.PathPoint.PropertySettings<optional>Y dimension scale channel configuration
scaleZPathBuilding.PathPoint.PropertySettings<optional>Z dimension scale channel configuration
offsetXPathBuilding.PathPoint.PropertySettings<optional>X dimension offset channel configuration
offsetYPathBuilding.PathPoint.PropertySettings<optional>Y dimension offset channel configuration
offsetZPathBuilding.PathPoint.PropertySettings<optional>Z dimension offset channel configuration

PathSegment

Path segment

Properties:
NameTypeDescription
phasePathBuilding.Pipeline.PhaseOn which phase segment is produced
pipelinePathBuilding.PipelineDataRuntime pipeline data
addedPathBuilding.InterpolatedSpline|PathBuilding.InkPath2DProcessed segment
predictedPathBuilding.InterpolatedSpline|PathBuilding.InkPath2DTemproary prediction segment

PointerDataDelta

Delta distance (vector) and time between 2 points

Properties:
NameTypeDescription
xfloatDistance by x
yfloatDistance by y
lengthfloatVector length (magnitude)
timeintTime difference

PropertyCalculator(previous, current, next) → {PathPoint}

A delegate that calculates the value of a single path point property based on three sequential points from the pointer input

Parameters:
NameTypeDescription
previousPathBuilding.PointerData
currentPathBuilding.PointerData
nextPathBuilding.PointerDataprediction pointer data
Returns:

path point that will be processed from pipeline

Type

PathPoint

Range

Defines min-max range and value transformer

Properties:
NameTypeAttributesDescription
minfloat
maxfloat
remapPathBuilding.ValueTransformer<optional>A lambda that that defines a custom transformation on the normalized value in current range

ValueTransformer(k) → {float}

Defines a custom transformation on the normalized value

Parameters:
NameTypeDescription
kfloatnormalized value
Returns:

transformed value

Type

float

Home