Internal_The ruler paths.
A container of cursor interaction elements not bound to stage transforms. Contains cursors elements.
A graphics instance used for drawing debugging visualization
A container of DoorControl instances
Options for this layer instance.
A container of pings interaction elements. Contains pings elements.
The Canvas selection rectangle
The name used by hooks to construct their hook string. Note: You should override this getter if hookName should not return the class constructor name.
A convenience accessor to the Ruler for the active game user
StaticinstanceReturn a reference to the active instance of this canvas layer
StaticlayerThe inner _draw method which must be defined by each CanvasLayer subclass.
Options which configure how the layer is drawn
InternalHandle mousemove events on the game canvas to broadcast activity. With SHOW_CURSOR permission enabled, the user's cursor position is transmitted.
Draw the canvas layer, rendering its internal components and returning a Promise. The Promise resolves to the drawn layer once its contents are successfully rendered.
Optionaloptions: object = {}Options which configure how the layer is drawn
Draw the cursors container
Draw door control icons to the doors container.
Draw a ping at the edge of the viewport, pointing to the location of an off-screen ping.
The coordinates of the off-screen ping.
Optionaloptions: any = {}Additional options to configure how the ping is drawn.
A promise which resolves once the Ping has been drawn and animated.
Draw a ping on the canvas.
The position on the canvas that was pinged.
Optionaloptions: any = {}Additional options to configure how the ping is drawn.
A promise which resolves once the Ping has been drawn and animated.
Create and add Ruler instances for every game User.
Draw the select rectangle given an event originated within the base canvas layer
The rectangle
Get the Cursor instance for a specific User ID.
The User ID
Get the Ruler instance for a specific User ID.
The User ID
Get the zIndex that should be used for ordering this layer vertically relative to others in the same Container.
Deconstruct data used in the current layer in preparation to re-draw the canvas
Optionaloptions: object = {}Options which configure how the layer is deconstructed
Update the Ruler for a User given the provided path.
The User for whom to update the Ruler
The path and hidden state of the Ruler
Protected_ProtectedHandle the canvas panning to a new view.
Protected_ProtectedHandle pinging the canvas.
The triggering canvas interaction event.
The local canvas coordinates of the mousepress.
A CanvasLayer for displaying UI controls which are overlayed on top of other layers.
We track three types of events: