PathParser.PathDataNode


class PathParser.PathDataNode


Each PathDataNode represents one command in the "d" attribute of the svg file. An array of PathDataNode can represent the whole "d" attribute.

Summary

Public functions

FloatArray<Float>
Char
Unit
interpolatePathDataNode(
    nodeFrom: PathParser.PathDataNode,
    nodeTo: PathParser.PathDataNode,
    fraction: Float
)

The current PathDataNode will be interpolated between the nodeFrom and nodeTo according to the fraction.

Public functions

getParams

Added in 1.13.0
fun getParams(): FloatArray<Float>

getType

Added in 1.13.0
fun getType(): Char

interpolatePathDataNode

Added in 1.13.0
fun interpolatePathDataNode(
    nodeFrom: PathParser.PathDataNode,
    nodeTo: PathParser.PathDataNode,
    fraction: Float
): Unit

The current PathDataNode will be interpolated between the nodeFrom and nodeTo according to the fraction.

Parameters
nodeFrom: PathParser.PathDataNode

The start value as a PathDataNode.

nodeTo: PathParser.PathDataNode

The end value as a PathDataNode

fraction: Float

The fraction to interpolate.