@fabwcie/free-drawing / components/CollaborationPanel
components/CollaborationPanel
Classes
CollaborationPanel
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:15
Panel of a live collaboration session, opened by the reminder of the header: right of this user (viewers ask the owner to draw), presentation of the owner (present its view, follow it again), requests to answer and rights of the users for the owner, link and settings in the collaboration dialog. Escape or a click elsewhere closes it.
Constructors
Constructor
new CollaborationPanel(
drawer,$opener):CollaborationPanel
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:54
Create the hidden panel, put after the element given by the reminder (not in its group of buttons)
Parameters
drawer
Drawer whose session is shown
$opener
HTMLButtonElement
Button opening the panel
Returns
Properties
$followButton
readonly$followButton:HTMLButtonElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:25
Presentation no longer followed (view moved): follows it again
$following
readonly$following:HTMLParagraphElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:23
Presentation followed: whose view
$opener
privatereadonly$opener:HTMLButtonElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:39
Button opening the panel: expanded state, focused again when Escape closes it
$panel
readonly$panel:HTMLDivElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:17
Panel, below the button opening it (hidden until show)
$present
readonly$present:HTMLInputElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:27
Owner: switch presenting its view
$presentLabel
privatereadonly$presentLabel:HTMLLabelElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:41
Label of the switch presenting the view
$presentText
privatereadonly$presentText:HTMLSpanElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:43
Text of the switch presenting the view
$requestButton
readonly$requestButton:HTMLButtonElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:21
Viewer asks the owner for the right to draw, once until it answers
$requestList
readonly$requestList:HTMLUListElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:31
Rows of the requests: name, accept and refuse buttons
$requests
readonly$requests:HTMLDivElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:29
Owner: requests to draw waiting for an answer, hidden without request
$requestsTitle
privatereadonly$requestsTitle:HTMLParagraphElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:45
Title of the requests
$settingsButton
readonly$settingsButton:HTMLButtonElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:35
Opens the collaboration dialog: link, QR code, right of new users, stop
$status
readonly$status:HTMLParagraphElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:19
Right of this user: draws or views only (not shown to the owner)
$usersTitle
privatereadonly$usersTitle:HTMLParagraphElement
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:47
Title of the users
drawer
privatereadonlydrawer:Drawer
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:37
Drawer whose session is shown
members
readonlymembers:CollaborationMembers
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:33
Users of the session with their rights (switches for the owner)
Methods
_getFocusables()
private_getFocusables():HTMLElement[]
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:190
Elements of the panel reached by Tab
Returns
HTMLElement[]
Shown and enabled buttons and switches of the panel
_place()
private_place():void
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:200
Panel kept in the drawer and the window: height limited to the space below it, moved left when it would go out on the right (phone)
Returns
void
_updateRequests()
private_updateRequests():void
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:216
Rows of the requests to draw (owner): rows of requests still waiting kept (their texts in the current language), answered ones removed
Returns
void
hide()
hide():
void
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:181
Hide the panel
Returns
void
isShown()
isShown():
boolean
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:152
Whether the panel is shown
Returns
boolean
True while the panel is shown
show()
show(
focus?):void
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:169
Show the panel below its button, kept in the drawer
Parameters
focus?
boolean = false
Focus its first element (opened with the keyboard)
Returns
void
toggle()
toggle(
focus?):void
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:160
Show or hide the panel
Parameters
focus?
boolean = false
Focus its first element when shown (opened with the keyboard)
Returns
void
update()
update():
void
Defined in: packages/free-drawing/src/components/CollaborationPanel/CollaborationPanel.ts:264
Content following the session (rights, presentation, requests, users) and the language, closed without session
Returns
void