Members
_cursors :Object
- Source:
A mapping of user IDs to Cursor instances for quick access
Type:
- Object
_rulers :Object
- Source:
A convenience mapping of user IDs to Ruler instances for quick access
Type:
- Object
cursors :PIXI.Container
- Source:
Cursor position indicators
Type:
- PIXI.Container
doors :PIXI.Container|null
- Source:
Door control icons
Type:
- PIXI.Container | null
effects
- Source:
Status effect icons
ruler :Ruler
- Source:
A convenience accessor to the Ruler for the active game user
Type:
rulers :PIXI.Container
- Source:
Ruler tools, one per connected user
Type:
- PIXI.Container
select :PIXI.Graphics
- Source:
Canvas selection rectangle
Type:
- PIXI.Graphics
Methods
createDoorControl(wall) → {DoorControl|null}
- Source:
Create a Door Control icon for a given Wall object
Parameters:
Name | Type | Description |
---|---|---|
wall |
Wall | The Wall for which to create a DoorControl |
Returns:
The created DoorControl
- Type
- DoorControl | null
deactivate()
- Source:
draw()
- Source:
drawCursor(user)
- Source:
Create and draw the Cursor object for a given User
Parameters:
Name | Type | Description |
---|---|---|
user |
User | The User entity for whom to draw the cursor Container |
drawCursors()
- Source:
Draw the cursors container
drawDoors()
- Source:
Draw the Door controls container
drawRulers()
- Source:
Draw Ruler tools
drawSelect(coords)
- Source:
Draw the select rectangle given an event originated within the base canvas layer
Parameters:
Name | Type | Description |
---|---|---|
coords |
Object | The rectangle coordinates of the form {x, y, width, height} |
getRulerForUser(userId) → {Ruler|null}
- Source:
Get the Ruler display for a specific User ID
Parameters:
Name | Type | Description |
---|---|---|
userId |
string |
Returns:
- Type
- Ruler | null
updateCursor()
- Source:
Update the cursor when the user moves to a new position
updateRuler(user, rulerData)
- Source:
Update display of an active Ruler object for a user given provided data
Parameters:
Name | Type | Description |
---|---|---|
user |
User | |
rulerData |
Object |