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_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?
AbstractdestroyDestroy the Ruler.
AbstractdrawDraw the Ruler.
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_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 Abstract_refreshProtectedRefresh the Ruler.
Protected_removeProtectedRemove the second to last waypoint.
Staticget
The ruler that is used to measure distances on the Canvas.
Mixes
RenderFlagsMixin