VerticalLineTo

class VerticalLineTo(values: List<String>, isRelative: Boolean, minified: Boolean) : PathNodes, CoordinateY(source)

The VerticalLineTo class represents the SVG/AVG "vertical line to" command, which instructs the pen to move vertically by the specified amount.

A type of PathNodes, it holds the given SVG/AVG command parameters.

The vertical position where the pen should move to is denoted by y, the first value stripped of the command prefix and the PathCommand.Close suffix.

Depending on the isRelative flag, the y value is considered either as an absolute coordinate (if false) or as a distance from the current position (if true).

The class contains an overridden materialize function which returns a String representation of the SVG/AVG command in the form required by the Compose path functions.

Constructors

Link copied to clipboard
constructor(values: List<String>, isRelative: Boolean, minified: Boolean)

Properties

Link copied to clipboard
open override val approximateByteSize: Int

Calculates the approximate bytecode size of the path nodes. Accounts for method invocation byte size, float byte sizes, and additional byte size if the path should be closed.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val y: Double

The new y-coordinate to which the line extends.

Functions

Link copied to clipboard
fun copy(y: Double = this.y, isRelative: Boolean = this.isRelative, minified: Boolean = this.minified, shouldClose: Boolean = this.shouldClose): PathNodes.VerticalLineTo

Creates a copy of the current VerticalLineTo command with the given parameters.

Link copied to clipboard
open fun materialize(): String
Link copied to clipboard
open override fun toString(): String