Skip to content

@fabwcie/free-drawing / components/CollaborationIndicator

components/CollaborationIndicator ​

Classes ​

CollaborationIndicator ​

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:16

Reminder of a live collaboration session in the header, also in zen mode: live dot (presentation of this owner), number of people connected and requests to draw waiting, opening the panel of the session; button following the presentation of the owner again, button stopping the session (owner) or leaving it

Constructors ​

Constructor ​

new CollaborationIndicator(drawer): CollaborationIndicator

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:47

Create the reminder in header, next to the layers button (or the settings menu), updated when the session or the language changes

Parameters
drawer ​

Drawer

Drawer whose session is shown

Returns

CollaborationIndicator

Properties ​

$button ​

$button: HTMLButtonElement

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:24

Live dot, "Live" (or "Presenting"), number of people connected, requests: opens the panel of the session

$container ​

$container: HTMLDivElement

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:20

Header element, hidden without session: buttons and panel of the session

$count ​

$count: HTMLSpanElement

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:28

Number of people connected, "..." while connecting

$followButton ​

$followButton: HTMLButtonElement

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:32

Follows the presentation of the owner again, shown once this user moved their view

$followText ​

$followText: HTMLSpanElement

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:34

Text of the follow button

$group ​

$group: HTMLDivElement

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:22

Buttons of the reminder

$label ​

$label: HTMLSpanElement

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:26

"Live" text of the button, "Presenting" while this owner presents its view

$requests ​

$requests: HTMLSpanElement

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:30

Number of requests to draw waiting for an answer of the owner, hidden without request

$stopButton ​

$stopButton: HTMLButtonElement

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:36

Stops the session (owner) or leaves it, after a confirmation

confirmModal ​

confirmModal: ConfirmModal | null = null

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:40

Confirmation of a stop (or leave), created on first use: a click by mistake keeps the session

drawer ​

drawer: Drawer

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:18

Drawer whose session is shown

panel ​

panel: CollaborationPanel

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:38

Panel of the session: rights, presentation, requests, users, link and settings

Methods ​

confirmStop() ​

confirmStop(): void

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:102

Ask to stop the session (owner) or leave it: Cancel is focused, the session goes on unless confirmed

Returns

void

update() ​

update(): void

Defined in: packages/free-drawing/src/components/CollaborationIndicator/CollaborationIndicator.ts:125

Shown during a session: number of people connected and requests to answer, presentation, button stopping it (owner) or leaving it

Returns

void