Marker

class Marker(val content: GroupNode, val viewBox: Rectangle? = null, val aspectRatio: AspectRatio = AspectRatio.DEFAULT, val reference: Vector2 = Vector2.ZERO, val size: Vector2 = Vector2(3.0, 3.0), val strokeWidthUnits: Boolean = true, val orient: MarkerOrient = MarkerOrient.Angle(0.0), val id: String = "")(source)

A marker, like SVG's marker: content drawn at the vertices of paths. The content is in the coordinates of viewBox, fitted into size by aspectRatio, or in the coordinates of size when there is no view box; the point reference of the content is placed on the vertex. The size is multiplied by the stroke weight when strokeWidthUnits is true. Clipping the content to the viewport, as SVG does by default, is part of the content.

Constructors

Link copied to clipboard
constructor(content: GroupNode, viewBox: Rectangle? = null, aspectRatio: AspectRatio = AspectRatio.DEFAULT, reference: Vector2 = Vector2.ZERO, size: Vector2 = Vector2(3.0, 3.0), strokeWidthUnits: Boolean = true, orient: MarkerOrient = MarkerOrient.Angle(0.0), id: String = "")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val contentTransform: Matrix44

the transform from the coordinates of the content to the viewport, with the reference point at the origin

Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
val reference: Vector2
Link copied to clipboard
val size: Vector2
Link copied to clipboard
Link copied to clipboard

the id of the marker in SVG documents: id, or an id derived from the marker when it has none

Link copied to clipboard
val viewBox: Rectangle?