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".
Static
RENDER_The ticker priority when RenderFlags of this class are handled. Valid values are OBJECTS or PERCEPTION.
Static
RENDER_Static
WAYPOINT_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.
Static
canIs the Ruler ready to measure?
Refresh the Ruler.
Reset the path and the hidden state of the Ruler.
Protected
_addProtected
Add a waypoint.
The (unsnapped) waypoint
Optional
options: { snap?: boolean } = {}Additional options
Optional
snap?: booleanSnap the added waypoint?
Protected
_changeProtected
Change the elevation of the destination.
The number vertical steps
Optional
options: { precise?: boolean } = {}Additional options
Optional
precise?: booleanRound elevations to multiples of the grid distance divided by
CONFIG.Canvas.elevationSnappingPrecision
?
If false, rounds to multiples of the grid distance.
Protected
_configureProtected
Configure the properties of the outline. Called in Ruler#draw.
The thickness in pixels and the color
Protected
_getProtected
Get the style of the segment from the previous to the given waypoint.
The waypoint
The line width, color, and alpha of the segment
Protected
_getProtected
Get the context used to render a ruler waypoint label.
Protected
_getProtected
Get the style of the waypoint at the given waypoint.
The waypoint
The radius, color, and alpha of the waypoint
Protected
_onProtected
Handle left-click events on the Canvas during Ruler measurement.
The pointer-down event
Protected
_onProtected
Handle right-click events on the Canvas during Ruler measurement.
The pointer-down event
Protected
_onProtected
Handle the end of the Ruler measurement workflow
The drag cancel event
If false, the cancellation of the drag workflow is prevented
Protected
_onProtected
Handle the beginning of a new Ruler measurement workflow.
The drag start event
Protected
_onProtected
Called when the Ruler becomes hidden or unhidden.
Protected
_onProtected
Continue a Ruler measurement workflow for left-mouse movements on the Canvas.
The mouse move event
Protected
_onProtected
Conclude a Ruler measurement workflow by releasing the left-mouse button.
The pointer-up event
Protected
_onProtected
Adjust the elevation of Ruler waypoints by scrolling up/down.
The mousewheel event
Protected
_onProtected
Called when the Ruler's path has changed.
Protected
_removeProtected
Remove the second to last waypoint.
Static
get
The default implementation of the Ruler.