ArcTo

class ArcTo(values: List<String>, isRelative: Boolean, minified: Boolean) : PathNodes, CoordinatePoint(source)

The ArcTo class represents the SVG/AVG "arc" command which is used to create an arc.

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

The class has several properties which denote the parameters of SVG/AVG "arc" command: horizontal ellipse radius a, vertical ellipse radius b, rotation theta, large arc flag isMoreThanHalf, sweep flag isPositiveArc, ending point coordinates x and y.

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
val a: Double

rx

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
val b: Double

ry

Link copied to clipboard
Link copied to clipboard

large-arc-flag

Link copied to clipboard

sweep flag

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

x-axis-rotation

Link copied to clipboard
open override val x: Double

The x-coordinate value.

Link copied to clipboard
open override val y: Double

The y-coordinate value.

Functions

Link copied to clipboard
fun copy(a: Double = this.a, b: Double = this.b, theta: Double = this.theta, isMoreThanHalf: Boolean = this.isMoreThanHalf, isPositiveArc: Boolean = this.isPositiveArc, x: Double = this.x, y: Double = this.y, isRelative: Boolean = this.isRelative, minified: Boolean = this.minified, shouldClose: Boolean = this.shouldClose): PathNodes.ArcTo

Creates a copy of this ArcTo instance with the specified values.

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