ScState
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
PILOT_REQUEST_TIMEOUT: number |
|
public get |
clients: * |
|
public get |
followers: * |
Private Members | ||
private |
_clients: {} |
|
private |
_colors: {} |
|
private |
_connection: * |
|
private |
_followers: *[] |
|
private |
_lastMouseX: * |
|
private |
_lastMouseY: * |
|
private |
_log: * |
|
private |
|
|
private |
|
|
private |
_pilot: * |
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
|
|
public |
|
|
public |
|
|
public |
getNumClients(): * |
|
public |
getPilot(): * |
|
public |
getUserId(clientId: *): * |
|
public |
getUserInSubpatch(subPatch: *): * |
|
public |
|
|
public |
hasPilot(): * |
|
public |
|
Private Methods | ||
private |
_cleanUpUserList(): * |
|
private |
_onPingAnswer(payload: *) |
|
private |
|
|
private |
_sendCursorPos(x: *, y: *) |
|
private |
_sendSelectionArea(x: *, y: *, sizeX: *, sizeY: *, hide: boolean) |
Public Constructors
public constructor() source
Public Members
public PILOT_REQUEST_TIMEOUT: number source
public get clients: * source
public get followers: * source
Private Members
private _clients: {} source
private _colors: {} source
private _connection: * source
private _followers: *[] source
private _lastMouseX: * source
private _lastMouseY: * source
private _log: * source
private _mouseTimeout: * source
private _pendingPilotRequest: * source
private _pilot: * source
private _timelineTimeout: * source
private _timeoutRefresh: * source
Public Methods
public acceptPilotSeatRequest() source
public becomePilot() source
public cancelPilotSeatRequest() source
public getUserInSubpatch(subPatch: *): * source
Params:
Name | Type | Attribute | Description |
subPatch | * |
Return:
* |
public requestPilotSeat() source
Private Methods
private _onPingAnswer(payload: *) source
Params:
Name | Type | Attribute | Description |
payload | * |
private _registerEventListeners() source
private _sendCursorPos(x: *, y: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * |
private _sendSelectionArea(x: *, y: *, sizeX: *, sizeY: *, hide: boolean) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
sizeX | * | ||
sizeY | * | ||
hide | boolean |
|