copy

fun copy(x: Double = this.x, y: Double = this.y, isRelative: Boolean = this.isRelative, minified: Boolean = this.minified, shouldClose: Boolean = this.shouldClose): PathNodes.LineTo(source)

Creates a copy of the LineTo command with the specified changes.

Return

a new LineTo command with the specified changes

Parameters

x

the new value for the x coordinate

y

the new value for the y coordinate

isRelative

whether the command is relative or absolute

minified

whether the output of materialize should be minified or not.

shouldClose

whether the command should close the current path