PathDataNode

open class PathDataNode(source)

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

Functions

Link copied to clipboard
open fun getParams(): @NonNull Array<Float>
Link copied to clipboard
open fun getType(): Char
Link copied to clipboard
open fun interpolatePathDataNode(@NonNull nodeFrom: @NonNull PathParser.PathDataNode, @NonNull nodeTo: @NonNull PathParser.PathDataNode, fraction: Float)
The current PathDataNode will be interpolated between the nodeFrom and nodeTo according to the fraction.
Link copied to clipboard
open fun nodesToPath(node: @NonNull Array<PathParser.PathDataNode>, @NonNull path: @NonNull Path)
Convert an array of PathDataNode to Path.