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 = "")