QuadTo

class QuadTo(values: List<String>, isRelative: Boolean, minified: Boolean) : PathNodes, ControlPoint1, ControlPoint2(source)

The QuadTo class represents the SVG/AVG "quadratic Bézier curve" command

It's a type of PathNodes which holds SVG/AVG command parameters.

The x1, y1 coordinates represent the control point for the curve, while x2, y2 represent the endpoint of the curve.

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 x1: Double

The x-coordinate for the first control point.

Link copied to clipboard
open override val x2: Double

The x-coordinate for the second control point.

Link copied to clipboard
open override val y1: Double

The y-coordinate for the first control point.

Link copied to clipboard
open override val y2: Double

The y-coordinate for the second control point.

Functions

Link copied to clipboard
fun copy(x1: Double = this.x1, y1: Double = this.y1, x2: Double = this.x2, y2: Double = this.y2, isRelative: Boolean = this.isRelative, minified: Boolean = this.minified, shouldClose: Boolean = this.shouldClose): PathNodes.QuadTo

Creates a copy of the QuadTo command with the given parameters.

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