ReflectiveQuadTo

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

The ReflectiveQuadTo represents the SVG/AVG "reflective quadratic Bézier curve to" command, which is used to create a smooth quadratic Bézier curve.

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

The curve is reflective of the control point of the previous command for creating a smooth curve. The curve ends at the point denoted by the coordinates (x1, y1), with the control point being the reflection of the control point on the previous command relative to the starting point.

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

represents the x-coordinate for the ending point of the curve

Link copied to clipboard
open override val y1: Double

signifies the y-coordinate for the ending point of the curve

Functions

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

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

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