Status flags which are applied at render-time to update the PlaceableObject. If an object defines RenderFlags, it should at least include flags for "redraw" and "refresh".
StaticRENDER_The ticker priority when RenderFlags of this class are handled. Valid values are OBJECTS or PERCEPTION.
StaticRENDER_StaticWAYPOINT_A handlebars template used to render each waypoint label.
Is this Ruler active? True, if the path of the Ruler is nonempty.
The last point of the path, or undefined if the path is empty.
The first point of the path, or undefined if the path is empty.
The sequence of points that the Ruler measures.
Set the sequence of points that the Ruler measures.
The Ruler is visible if it is active and either not hidden or its User is the current User.
StaticcanIs the Ruler ready to measure?
Refresh the Ruler.
Reset the path and the hidden state of the Ruler.
Protected_addProtectedAdd a waypoint.
The (unsnapped) waypoint
Optionaloptions: { snap?: boolean } = {}Additional options
Optionalsnap?: booleanSnap the added waypoint?
Protected_changeProtectedChange the elevation of the destination.
The number vertical steps
Optionaloptions: { precise?: boolean } = {}Additional options
Optionalprecise?: booleanRound elevations to multiples of the grid distance divided by
CONFIG.Canvas.elevationSnappingPrecision?
If false, rounds to multiples of the grid distance.
Protected_configureProtectedConfigure the properties of the outline. Called in Ruler#draw.
The thickness in pixels and the color
Protected_getProtectedGet the style of the segment from the previous to the given waypoint.
The waypoint
The line width, color, and alpha of the segment
Protected_getProtectedGet the context used to render a ruler waypoint label.
Protected_getProtectedGet the style of the waypoint at the given waypoint.
The waypoint
The radius, color, and alpha of the waypoint
Protected_onProtectedHandle left-click events on the Canvas during Ruler measurement.
The pointer-down event
Protected_onProtectedHandle right-click events on the Canvas during Ruler measurement.
The pointer-down event
Protected_onProtectedHandle the end of the Ruler measurement workflow
The drag cancel event
If false, the cancellation of the drag workflow is prevented
Protected_onProtectedHandle the beginning of a new Ruler measurement workflow.
The drag start event
Protected_onProtectedCalled when the Ruler becomes hidden or unhidden.
Protected_onProtectedContinue a Ruler measurement workflow for left-mouse movements on the Canvas.
The mouse move event
Protected_onProtectedConclude a Ruler measurement workflow by releasing the left-mouse button.
The pointer-up event
Protected_onProtectedAdjust the elevation of Ruler waypoints by scrolling up/down.
The mousewheel event
Protected_onProtectedCalled when the Ruler's path has changed.
Protected_removeProtectedRemove the second to last waypoint.
Staticget
The default implementation of the Ruler.