PathDefinition

@Serializable
data class PathDefinition(val name: String, val points: List<LayoutPoint>, val from: AnchorRef? = null, val to: AnchorRef? = null, val bidirectional: Boolean = true)(source)

A named path (poly-line) entities/movers can be shown moving along. When from and to anchors are set the path is functional: points are the intermediate waypoints and a move between those two anchors follows the polyline (fromPos, then points, then toPos), arc-length-parameterized over the move's time window; with the anchors null it is decorative (legacy) and points is the whole poly-line. bidirectional lets a reverse move (to → from) follow the same waypoints reversed. The anchor fields are appended + defaulted, so old layouts load.

Constructors

Link copied to clipboard
constructor(name: String, points: List<LayoutPoint>, from: AnchorRef? = null, to: AnchorRef? = null, bidirectional: Boolean = true)

Properties

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