ReflectiveCurveTo

The ReflectiveCurveTo represents the SVG/AVG "smooth cubic Bézier" command.

This command creates a smooth curve between two points using a reflection of the control point used in previous commands.

The x1, y1 coordinates represent the first 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.ReflectiveCurveTo

Creates a copy of the ReflectiveCurveTo command with the specified values.

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