kyrie / com.github.alexjlockwood.kyrie / PathData

PathData

class PathData

A simple container class that represents an SVG path string.

Functions

canMorphWith

fun canMorphWith(pathData: PathData): Boolean

Checks if this PathData object is morphable with another PathData object.

Companion Object Functions

parse

fun parse(pathData: String): PathData

Constructs a PathData object from the provided SVG path data string.

toPath

fun toPath(pathData: String): Path
fun toPath(pathData: PathData): Path

Constructs a Path from the provided PathData object.

fun toPath(pathData: PathData, outPath: Path): Unit

Initializes a Path from the provided PathData object.