fcr-ui-scene 3.7.1 → 3.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/lib/creator.js +23 -44
  2. package/lib/electron/app.js +7 -0
  3. package/lib/electron/injections.d.ts +1 -1
  4. package/lib/electron/injections.js +5 -3
  5. package/lib/electron/main.js +3 -1
  6. package/lib/fragments/annotation/index.d.ts +1 -0
  7. package/lib/fragments/annotation/index.js +13 -7
  8. package/lib/fragments/annotation/store.d.ts +8 -4
  9. package/lib/fragments/annotation/store.js +353 -268
  10. package/lib/fragments/annotation/toolbar/components/color-tool/index.js +4 -0
  11. package/lib/fragments/annotation/toolbar/components/graphic-tool/index.js +4 -0
  12. package/lib/fragments/annotation/toolbar/components/item/item.d.ts +2 -0
  13. package/lib/fragments/annotation/toolbar/components/item/item.js +2 -4
  14. package/lib/fragments/annotation/toolbar/components/item/style.css +4 -2
  15. package/lib/fragments/annotation/toolbar/components/pen-tool/index.js +4 -0
  16. package/lib/fragments/annotation/utils.d.ts +1 -0
  17. package/lib/fragments/annotation/utils.js +27 -0
  18. package/lib/fragments/annotation/view.js +1 -6
  19. package/lib/fragments/base.js +5 -3
  20. package/lib/fragments/whiteboard/cursor.css +77 -0
  21. package/lib/fragments/whiteboard/index.d.ts +11 -0
  22. package/lib/fragments/whiteboard/index.js +91 -0
  23. package/lib/fragments/whiteboard/store.d.ts +31 -0
  24. package/lib/fragments/whiteboard/store.js +475 -0
  25. package/lib/fragments/whiteboard/style.css +4 -0
  26. package/lib/fragments/whiteboard/view.d.ts +4 -0
  27. package/lib/fragments/whiteboard/view.js +31 -0
  28. package/lib/index.d.ts +1 -0
  29. package/lib/index.js +1 -0
  30. package/lib/modules/action-bar/components/apps/index.js +15 -5
  31. package/lib/modules/action-bar/components/leave/index.js +4 -11
  32. package/lib/modules/action-bar/view.d.ts +1 -0
  33. package/lib/modules/action-bar/view.js +3 -2
  34. package/lib/modules/annotation/annotation-toolbar-store.d.ts +4 -11
  35. package/lib/modules/annotation/annotation-toolbar-store.js +46 -88
  36. package/lib/modules/annotation/board-cursor.css +2 -1
  37. package/lib/modules/annotation/index.d.ts +2 -0
  38. package/lib/modules/annotation/index.js +2 -2
  39. package/lib/modules/annotation/store.d.ts +11 -49
  40. package/lib/modules/annotation/store.js +135 -418
  41. package/lib/modules/annotation/view.js +3 -6
  42. package/lib/modules/components/control-bar/components/loading/index.css +76 -0
  43. package/lib/modules/components/control-bar/components/loading/index.d.ts +8 -0
  44. package/lib/modules/components/control-bar/components/loading/index.js +64 -0
  45. package/lib/modules/components/control-bar/components/loading/loading.png +0 -0
  46. package/lib/modules/components/control-bar/components/progress/index.d.ts +5 -0
  47. package/lib/modules/components/control-bar/components/progress/index.js +43 -0
  48. package/lib/modules/components/control-bar/components/progress/style.css +51 -0
  49. package/lib/modules/components/control-bar/components/switch-theme/index.css +99 -0
  50. package/lib/modules/components/control-bar/components/switch-theme/index.d.ts +9 -0
  51. package/lib/modules/components/control-bar/components/switch-theme/index.js +94 -0
  52. package/lib/modules/components/control-bar/components/switch-theme/item.d.ts +9 -0
  53. package/lib/modules/components/control-bar/components/switch-theme/item.js +54 -0
  54. package/lib/modules/components/control-bar/components/switch-theme/libs.d.ts +4 -0
  55. package/lib/modules/components/control-bar/components/switch-theme/libs.js +31 -0
  56. package/lib/modules/components/control-bar/index.css +87 -0
  57. package/lib/modules/components/control-bar/index.d.ts +20 -0
  58. package/lib/modules/components/control-bar/index.js +276 -0
  59. package/lib/modules/components/leave-meeting/components/index.css +0 -9
  60. package/lib/modules/components/leave-meeting/index.d.ts +2 -1
  61. package/lib/modules/components/leave-meeting/index.js +15 -7
  62. package/lib/modules/components/leave-meeting/portal.d.ts +6 -0
  63. package/lib/modules/components/leave-meeting/portal.js +29 -0
  64. package/lib/modules/components/leave-meeting/style.css +9 -0
  65. package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +5 -2
  66. package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +19 -9
  67. package/lib/modules/components/member-window/components/member-actions/components/share-status.js +4 -4
  68. package/lib/modules/components/member-window/components/member-actions/index.js +13 -6
  69. package/lib/modules/components/member-window/components/member-actions/provider.d.ts +1 -0
  70. package/lib/modules/components/member-window/components/member-actions/provider.js +4 -3
  71. package/lib/modules/components/member-window/components/member-actions/store.d.ts +2 -1
  72. package/lib/modules/components/member-window/components/member-actions/store.js +5 -1
  73. package/lib/modules/components/member-window/index.css +4 -0
  74. package/lib/modules/components/member-window/types.d.ts +6 -2
  75. package/lib/modules/components/toolbar/components/capture-tool/index.d.ts +9 -0
  76. package/lib/modules/components/toolbar/components/capture-tool/index.js +68 -0
  77. package/lib/modules/components/toolbar/components/clean-tool/index.d.ts +11 -0
  78. package/lib/modules/components/toolbar/components/clean-tool/index.js +71 -0
  79. package/lib/modules/components/toolbar/components/color-tool/color-panel/index.d.ts +11 -0
  80. package/lib/modules/components/toolbar/components/color-tool/color-panel/index.js +77 -0
  81. package/lib/modules/components/toolbar/components/color-tool/index.d.ts +14 -0
  82. package/lib/modules/components/toolbar/components/color-tool/index.js +66 -0
  83. package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +11 -0
  84. package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.js +64 -0
  85. package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +12 -0
  86. package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +65 -0
  87. package/lib/modules/components/toolbar/components/graphic-tool/index.d.ts +15 -0
  88. package/lib/modules/components/toolbar/components/graphic-tool/index.js +82 -0
  89. package/lib/modules/components/toolbar/components/group-tool/index.d.ts +5 -0
  90. package/lib/modules/components/toolbar/components/group-tool/index.js +43 -0
  91. package/lib/modules/components/toolbar/components/icons/fold-icon.d.ts +2 -0
  92. package/lib/modules/components/toolbar/components/icons/fold-icon.js +41 -0
  93. package/lib/modules/components/toolbar/components/icons/move-icon.d.ts +1 -0
  94. package/lib/modules/components/toolbar/components/icons/move-icon.js +66 -0
  95. package/lib/modules/components/toolbar/components/item/index.d.ts +25 -0
  96. package/lib/modules/components/toolbar/components/item/index.js +165 -0
  97. package/lib/modules/components/toolbar/components/item/style.css +94 -0
  98. package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +12 -0
  99. package/lib/modules/components/toolbar/components/multiple-color-tool/index.js +75 -0
  100. package/lib/modules/components/toolbar/components/panel/index.d.ts +9 -0
  101. package/lib/modules/components/toolbar/components/panel/index.js +28 -0
  102. package/lib/modules/components/toolbar/components/panel/style.css +86 -0
  103. package/lib/modules/components/toolbar/components/pen-tool/index.d.ts +13 -0
  104. package/lib/modules/components/toolbar/components/pen-tool/index.js +62 -0
  105. package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.d.ts +8 -0
  106. package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.js +39 -0
  107. package/lib/modules/components/toolbar/components/save-draft/index.d.ts +7 -0
  108. package/lib/modules/components/toolbar/components/save-draft/index.js +59 -0
  109. package/lib/modules/components/toolbar/components/vertical-frame/index.d.ts +8 -0
  110. package/lib/modules/components/toolbar/components/vertical-frame/index.js +179 -0
  111. package/lib/modules/components/toolbar/hooks/use-resize-visible.d.ts +4 -0
  112. package/lib/modules/components/toolbar/hooks/use-resize-visible.js +59 -0
  113. package/lib/modules/components/toolbar/index.d.ts +29 -0
  114. package/lib/modules/components/toolbar/index.js +258 -0
  115. package/lib/modules/components/toolbar/style.css +85 -0
  116. package/lib/modules/components/toolbar/types.d.ts +13 -0
  117. package/lib/modules/components/toolbar/types.js +6 -0
  118. package/lib/modules/control-bar/components/more-actions/index.js +0 -6
  119. package/lib/modules/control-bar/components/share-state-nav/index.js +3 -2
  120. package/lib/modules/control-bar/index.js +2 -1
  121. package/lib/modules/control-bar/store.d.ts +7 -6
  122. package/lib/modules/control-bar/store.js +28 -21
  123. package/lib/modules/control-bar/view.js +7 -55
  124. package/lib/modules/dialog/dialogs/control-bar/index.d.ts +1 -0
  125. package/lib/modules/dialog/dialogs/control-bar/index.js +17 -3
  126. package/lib/modules/dialog/dialogs/participant/components/title.js +1 -1
  127. package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -0
  128. package/lib/modules/dialog/dialogs/sub-window/index.js +98 -0
  129. package/lib/modules/dialog/dialogs/video-window/index.d.ts +1 -0
  130. package/lib/modules/dialog/dialogs/video-window/index.js +3 -2
  131. package/lib/modules/dialog/dialogs/whiteboard/index.js +0 -1
  132. package/lib/modules/dialog/hooks/use-popover-watcher.js +1 -2
  133. package/lib/modules/dialog/hooks/useElectron.d.ts +13 -0
  134. package/lib/modules/dialog/hooks/useElectron.js +62 -12
  135. package/lib/modules/dialog/index.d.ts +6 -3
  136. package/lib/modules/dialog/index.js +5 -3
  137. package/lib/modules/dialog/store.d.ts +21 -8
  138. package/lib/modules/dialog/store.js +79 -11
  139. package/lib/modules/dialog/type.d.ts +8 -0
  140. package/lib/modules/event-confirm/index.css +5 -2
  141. package/lib/modules/event-confirm/store.js +6 -7
  142. package/lib/modules/event-confirm/view.js +1 -1
  143. package/lib/modules/event-sound/index.d.ts +1 -0
  144. package/lib/modules/event-sound/index.js +11 -24
  145. package/lib/modules/invite/components/pstn-invite.js +0 -1
  146. package/lib/modules/layout/components/CommonVideoRenderer.js +21 -21
  147. package/lib/modules/layout/components/who-is-speaking.js +3 -6
  148. package/lib/modules/layout/index.d.ts +3 -1
  149. package/lib/modules/layout/index.js +2 -1
  150. package/lib/modules/layout/store.d.ts +9 -59
  151. package/lib/modules/layout/store.js +162 -37
  152. package/lib/modules/layout/type.d.ts +55 -0
  153. package/lib/modules/participant/components/can-moveable/index.js +0 -1
  154. package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +4 -2
  155. package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +14 -2
  156. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +1 -1
  157. package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +3 -2
  158. package/lib/modules/participant/components/participants/components/participants/index.js +3 -2
  159. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +1 -0
  160. package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +3 -1
  161. package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +4 -2
  162. package/lib/modules/participant/components/participants/components/render-user/index.d.ts +4 -2
  163. package/lib/modules/participant/components/participants/components/render-user/index.js +5 -3
  164. package/lib/modules/participant/components/participants/index.js +5 -2
  165. package/lib/modules/participant/components/participants/types.d.ts +3 -0
  166. package/lib/modules/participant/index.d.ts +2 -0
  167. package/lib/modules/participant/index.js +2 -1
  168. package/lib/modules/participant/store.d.ts +5 -1
  169. package/lib/modules/participant/store.js +8 -1
  170. package/lib/modules/secondary-window/index.d.ts +49 -0
  171. package/lib/modules/secondary-window/index.js +108 -0
  172. package/lib/modules/secondary-window/store.d.ts +76 -0
  173. package/lib/modules/secondary-window/store.js +407 -0
  174. package/lib/modules/secondary-window/type.d.ts +106 -0
  175. package/lib/modules/secondary-window/type.js +35 -0
  176. package/lib/modules/secondary-window/view.d.ts +6 -0
  177. package/lib/modules/secondary-window/view.js +257 -0
  178. package/lib/modules/setting/general-settings/general-settings.js +9 -0
  179. package/lib/modules/setting/state/index.js +0 -10
  180. package/lib/modules/setting/store.d.ts +1 -0
  181. package/lib/modules/setting/store.js +6 -3
  182. package/lib/modules/share-screen/components/control-bar/index.d.ts +14 -1
  183. package/lib/modules/share-screen/components/control-bar/index.js +17 -12
  184. package/lib/modules/share-screen/components/selection/index.js +10 -15
  185. package/lib/modules/share-screen/index.d.ts +4 -1
  186. package/lib/modules/share-screen/index.js +6 -3
  187. package/lib/modules/share-screen/store.d.ts +9 -9
  188. package/lib/modules/share-screen/store.js +39 -64
  189. package/lib/modules/state-bar/index.d.ts +2 -0
  190. package/lib/modules/state-bar/index.js +2 -1
  191. package/lib/modules/state-bar/live-streaming-state.js +0 -1
  192. package/lib/modules/state-bar/store.d.ts +5 -2
  193. package/lib/modules/state-bar/store.js +14 -7
  194. package/lib/modules/state-bar/view.js +3 -3
  195. package/lib/modules/video-window/components/members/index.js +7 -12
  196. package/lib/modules/video-window/store.d.ts +1 -0
  197. package/lib/modules/video-window/store.js +5 -0
  198. package/lib/modules/whiteboard/components/toolbar/store.d.ts +2 -2
  199. package/lib/modules/whiteboard/index.d.ts +10 -13
  200. package/lib/modules/whiteboard/index.js +12 -11
  201. package/lib/providers/ability-provider.js +2 -0
  202. package/lib/providers/device-provider.d.ts +6 -3
  203. package/lib/providers/device-provider.js +336 -333
  204. package/lib/providers/multi-display-provider.d.ts +85 -0
  205. package/lib/providers/multi-display-provider.js +581 -0
  206. package/lib/providers/privilege-provider.js +1 -7
  207. package/lib/providers/room-provider.js +7 -1
  208. package/lib/providers/screen-share-provider.d.ts +3 -1
  209. package/lib/providers/screen-share-provider.js +39 -40
  210. package/lib/providers/sharing-provider.d.ts +7 -1
  211. package/lib/providers/sharing-provider.js +32 -3
  212. package/lib/providers/whiteboard-provider.d.ts +24 -0
  213. package/lib/providers/whiteboard-provider.js +127 -0
  214. package/lib/runtime.d.ts +1 -0
  215. package/lib/scenes/main-scene.d.ts +6 -0
  216. package/lib/scenes/main-scene.js +38 -2
  217. package/lib/scenes/waiting-scene.d.ts +0 -2
  218. package/lib/scenes/waiting-scene.js +0 -6
  219. package/lib/shared-data-source/member-data.d.ts +2 -2
  220. package/lib/shared-data-source/screen-share-data.d.ts +6 -0
  221. package/lib/shared-data-source/screen-share-data.js +5 -0
  222. package/lib/shared-data-source/setting.js +2 -1
  223. package/lib/shared-data-source/video-window.d.ts +2 -0
  224. package/lib/shared-data-source/video-window.js +19 -6
  225. package/lib/shared-data-source/whiteboard-data.d.ts +68 -0
  226. package/lib/shared-data-source/whiteboard-data.js +347 -0
  227. package/lib/translations/enUS.d.ts +1 -0
  228. package/lib/translations/enUS.js +2 -1
  229. package/lib/translations/zhCN.d.ts +1 -0
  230. package/lib/translations/zhCN.js +2 -1
  231. package/lib/ui-scene.d.ts +0 -1
  232. package/lib/ui-scene.js +0 -3
  233. package/lib/utilities/constant.d.ts +4 -2
  234. package/lib/utilities/constant.js +3 -1
  235. package/lib/utilities/debug.d.ts +4 -0
  236. package/lib/utilities/debug.js +40 -0
  237. package/lib/utilities/dialog-utils.js +26 -4
  238. package/lib/utilities/meeting-detail.js +4 -1
  239. package/lib/utilities/renderer-event.d.ts +4 -6
  240. package/lib/utilities/renderer-event.js +23 -43
  241. package/lib/utilities/renderer.d.ts +1 -1
  242. package/lib/utilities/renderer.js +44 -10
  243. package/lib/utilities/shared-storage.d.ts +18 -0
  244. package/lib/utilities/shared-storage.js +63 -0
  245. package/lib/utilities/tools.js +2 -1
  246. package/package.json +5 -6
  247. package/lib/electron/tools.d.ts +0 -5
  248. package/lib/electron/tools.js +0 -62
@@ -1,22 +1,18 @@
1
1
  import { FcrBoardShape, WhiteboardThemeType } from '../whiteboard/type';
2
2
  import { FcrBoardToolType } from 'fcr-core/lib/room-control/whiteboard-control/enums';
3
- import { FcrBoardMainWindow } from 'fcr-core/lib/room-control/whiteboard-control/types';
4
3
  import { FcrBaseRoomControl } from 'fcr-core/lib/room-control/type';
5
- import { FcrWhiteboardControl } from 'fcr-core/lib/room-control/whiteboard-control-v2/whiteboard-control/type';
6
- import { FcrUIAnnotationProvider } from '../../providers/annotation-provider';
7
4
  import { FcrUIEventProvider } from '../../providers/event-provider';
8
5
  import { FcrUISharedAnnotationSource } from '../../shared-data-source/annotation-data';
6
+ import { FcrPrivilegedAnnotationControl } from 'fcr-core/lib/room-control/whiteboard-control-v2/annotation-control/type';
9
7
  export declare class AnnotationReceiverToolbarStore {
10
8
  private _whiteboardControl;
11
9
  private _roomControl;
12
- private _annotationProvider;
13
10
  private _eventProvider;
14
11
  private _sharedAnnotationDataSource;
15
- private _boardMainWindow;
12
+ protected logger: import("agora-foundation/lib/logger").Logger;
16
13
  private _lastStrokeWidth;
17
14
  private _boardObserver;
18
15
  private _whiteboardObserver;
19
- private _uiEventObserver;
20
16
  accessor observables: {
21
17
  currentTool: FcrBoardToolType | undefined;
22
18
  currentShape: FcrBoardShape | undefined;
@@ -46,9 +42,8 @@ export declare class AnnotationReceiverToolbarStore {
46
42
  progress: number;
47
43
  };
48
44
  get roomInfo(): import("fcr-core/lib/type").FcrRoomInfo | undefined;
49
- get boardMainWindow(): FcrBoardMainWindow | null;
50
- constructor(_whiteboardControl: FcrWhiteboardControl, _roomControl: FcrBaseRoomControl, _annotationProvider: FcrUIAnnotationProvider, _eventProvider: FcrUIEventProvider, _sharedAnnotationDataSource: FcrUISharedAnnotationSource);
51
- private _onUiEvent;
45
+ get boardMainWindow(): import("fcr-core/lib/room-control/whiteboard-control/types").FcrBoardMainWindow | null;
46
+ constructor(_whiteboardControl: FcrPrivilegedAnnotationControl, _roomControl: FcrBaseRoomControl, _eventProvider: FcrUIEventProvider, _sharedAnnotationDataSource: FcrUISharedAnnotationSource);
52
47
  resetToolbarVars(): void;
53
48
  get annotationHasStart(): boolean;
54
49
  redo(): void;
@@ -68,14 +63,12 @@ export declare class AnnotationReceiverToolbarStore {
68
63
  releaseToolbar(): void;
69
64
  captureScreen(hideWindow?: boolean): void;
70
65
  saveDraft(): void;
71
- setTheme(theme: WhiteboardThemeType): void;
72
66
  setCommonColor(color: string): void;
73
67
  repositionToolbar(): void;
74
68
  release(): void;
75
69
  private _updateDockPlacement;
76
70
  private _updateDockPosition;
77
71
  private _updateMaxVisibleTools;
78
- private _setBackgroundColor;
79
72
  private _getSnapshotImage;
80
73
  private _convertShapeToBoardToolType;
81
74
  }
@@ -7,6 +7,7 @@ require("core-js/modules/es.error.cause.js");
7
7
  require("core-js/modules/es.error.to-string.js");
8
8
  require("core-js/modules/es.array.is-array.js");
9
9
  require("core-js/modules/es.date.to-primitive.js");
10
+ require("core-js/modules/es.function.bind.js");
10
11
  require("core-js/modules/es.function.name.js");
11
12
  require("core-js/modules/es.map.js");
12
13
  require("core-js/modules/es.number.constructor.js");
@@ -39,7 +40,6 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
39
40
  require("core-js/modules/es.array.concat.js");
40
41
  require("core-js/modules/es.array.iterator.js");
41
42
  require("core-js/modules/es.array.push.js");
42
- require("core-js/modules/es.function.bind.js");
43
43
  require("core-js/modules/es.object.to-string.js");
44
44
  require("core-js/modules/es.string.iterator.js");
45
45
  require("core-js/modules/es.weak-map.js");
@@ -62,9 +62,9 @@ var _decorator = require("agora-foundation/lib/decorator");
62
62
  var _imports = require("fcr-core/lib/imports");
63
63
  var _utils = require("../whiteboard/utils");
64
64
  var _dayjs = _interopRequireDefault(require("dayjs"));
65
- var _constant = require("../../utilities/constant");
65
+ var _logger = require("../../utilities/logger");
66
66
  var _AnnotationReceiverToolbarStore;
67
- var _initProto, _init_observables, _resetToolbarVarsDecs, _redoDecs, _undoDecs, _cleanDecs, _setToolDecs, _setPenDecs, _setShapeDecs, _setStrokeColorDecs, _setStrokeWidthDecs, _clickExpansionToolDecs, _setToolbarPositionDecs, _dragToolbarDecs, _releaseToolbarDecs, _captureScreenDecs, _saveDraftDecs, _setThemeDecs, _setCommonColorDecs, _repositionToolbarDecs, _getSnapshotImageDecs, _ref;
67
+ var _initProto, _init_observables, _resetToolbarVarsDecs, _redoDecs, _undoDecs, _cleanDecs, _setToolDecs, _setPenDecs, _setShapeDecs, _setStrokeColorDecs, _setStrokeWidthDecs, _clickExpansionToolDecs, _setToolbarPositionDecs, _dragToolbarDecs, _releaseToolbarDecs, _captureScreenDecs, _saveDraftDecs, _setCommonColorDecs, _repositionToolbarDecs, _getSnapshotImageDecs, _ref;
68
68
  function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
69
69
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
70
70
  function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
@@ -77,12 +77,14 @@ function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.descr
77
77
  function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
78
78
  var colors = ['#EFEFEF', '#FFEC42', '#FFB545', '#E44A19', '#4A4C5F', '#A1C573', '#51BD69', '#EB47A2', '#0E0E0E', '#50E3C2', '#547AFF', '#79479F'];
79
79
  var _A = /*#__PURE__*/new WeakMap();
80
- _ref = (_resetToolbarVarsDecs = [_mobx.action, _mobx.action.bound], _redoDecs = [_mobx.action, _mobx.action.bound], _undoDecs = [_mobx.action, _mobx.action.bound], _cleanDecs = [_mobx.action, _mobx.action.bound], _setToolDecs = [_mobx.action, _mobx.action.bound], _setPenDecs = [_mobx.action, _mobx.action.bound], _setShapeDecs = [_mobx.action, _mobx.action.bound], _setStrokeColorDecs = [_mobx.action, _mobx.action.bound], _setStrokeWidthDecs = [_mobx.action, _mobx.action.bound], _clickExpansionToolDecs = [_mobx.action, _mobx.action.bound], _setToolbarPositionDecs = [_mobx.action, _mobx.action.bound], _dragToolbarDecs = [_mobx.action, _mobx.action.bound], _releaseToolbarDecs = [_mobx.action, _mobx.action.bound], _captureScreenDecs = [_mobx.action, _mobx.action.bound], _saveDraftDecs = [_mobx.action, _mobx.action.bound], _setThemeDecs = [_mobx.action, _mobx.action.bound], _setCommonColorDecs = [_mobx.action, _mobx.action.bound], _repositionToolbarDecs = [_mobx.action, _mobx.action.bound], _getSnapshotImageDecs = [_mobx.action, _mobx.action.bound], "_boardMainWindow");
80
+ _ref = (_resetToolbarVarsDecs = [_mobx.action, _mobx.action.bound, void 0, _decorator.trace], _redoDecs = [_mobx.action, _mobx.action.bound], _undoDecs = [_mobx.action, _mobx.action.bound], _cleanDecs = [_mobx.action, _mobx.action.bound], _setToolDecs = [_mobx.action, _mobx.action.bound], _setPenDecs = [_mobx.action, _mobx.action.bound], _setShapeDecs = [_mobx.action, _mobx.action.bound], _setStrokeColorDecs = [_mobx.action, _mobx.action.bound], _setStrokeWidthDecs = [_mobx.action, _mobx.action.bound], _clickExpansionToolDecs = [_mobx.action, _mobx.action.bound], _setToolbarPositionDecs = [_mobx.action, _mobx.action.bound], _dragToolbarDecs = [_mobx.action, _mobx.action.bound], _releaseToolbarDecs = [_mobx.action, _mobx.action.bound], _captureScreenDecs = [_mobx.action, _mobx.action.bound], _saveDraftDecs = [_mobx.action, _mobx.action.bound], _setCommonColorDecs = [_mobx.action, _mobx.action.bound], _repositionToolbarDecs = [_mobx.action, _mobx.action.bound], _getSnapshotImageDecs = [_mobx.action, _mobx.action.bound], "logger");
81
81
  var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*#__PURE__*/function () {
82
- function AnnotationReceiverToolbarStore(_whiteboardControl, _roomControl, _annotationProvider, _eventProvider, _sharedAnnotationDataSource) {
82
+ function AnnotationReceiverToolbarStore(_whiteboardControl, _roomControl, _eventProvider, _sharedAnnotationDataSource) {
83
83
  var _this = this;
84
84
  (0, _classCallCheck2["default"])(this, AnnotationReceiverToolbarStore);
85
- (0, _defineProperty2["default"])(this, _ref, (_initProto(this), undefined));
85
+ (0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
86
+ prefix: 'AnnotationReceiverToolbarStore'
87
+ })));
86
88
  (0, _defineProperty2["default"])(this, "_lastStrokeWidth", 0);
87
89
  (0, _defineProperty2["default"])(this, "_boardObserver", {
88
90
  onRedoStateUpdated: function onRedoStateUpdated(enable) {
@@ -98,19 +100,15 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
98
100
  return;
99
101
  }
100
102
  if (state === _imports.AgoraRteConnectionState.CONNECTED) {
101
- var _this$_boardMainWindo;
102
- _this._boardMainWindow = _this._whiteboardControl.getMainWindow();
103
+ var _this$boardMainWindow;
103
104
  _this._lastStrokeWidth = 0;
104
- (_this$_boardMainWindo = _this._boardMainWindow) === null || _this$_boardMainWindo === void 0 || _this$_boardMainWindo.addObserver(_this._boardObserver);
105
+ (_this$boardMainWindow = _this.boardMainWindow) === null || _this$boardMainWindow === void 0 || _this$boardMainWindow.addObserver(_this._boardObserver);
105
106
  } else {
106
- var _this$_boardMainWindo2;
107
- (_this$_boardMainWindo2 = _this._boardMainWindow) === null || _this$_boardMainWindo2 === void 0 || _this$_boardMainWindo2.removeObserver(_this._boardObserver);
107
+ var _this$boardMainWindow2;
108
+ (_this$boardMainWindow2 = _this.boardMainWindow) === null || _this$boardMainWindow2 === void 0 || _this$boardMainWindow2.removeObserver(_this._boardObserver);
108
109
  }
109
110
  }
110
111
  });
111
- (0, _defineProperty2["default"])(this, "_uiEventObserver", {
112
- onEvent: this._onUiEvent.bind(this)
113
- });
114
112
  _classPrivateFieldInitSpec(this, _A, _init_observables(this, {
115
113
  currentTool: _enums.FcrBoardToolType.CURVE,
116
114
  currentShape: undefined,
@@ -141,11 +139,9 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
141
139
  }));
142
140
  this._whiteboardControl = _whiteboardControl;
143
141
  this._roomControl = _roomControl;
144
- this._annotationProvider = _annotationProvider;
145
142
  this._eventProvider = _eventProvider;
146
143
  this._sharedAnnotationDataSource = _sharedAnnotationDataSource;
147
144
  this._whiteboardControl.addObserver(this._whiteboardObserver);
148
- this._eventProvider.addObserver(this._uiEventObserver);
149
145
  }
150
146
  return (0, _createClass2["default"])(AnnotationReceiverToolbarStore, [{
151
147
  key: "observables",
@@ -165,38 +161,15 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
165
161
  get: function get() {
166
162
  return this._sharedAnnotationDataSource.boardMainWindow;
167
163
  }
168
- }, {
169
- key: "_onUiEvent",
170
- value: function () {
171
- var _onUiEvent2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(event, params) {
172
- var _t;
173
- return _regenerator["default"].wrap(function (_context) {
174
- while (1) switch (_context.prev = _context.next) {
175
- case 0:
176
- _t = event;
177
- _context.next = _t === _constant.FcrUIAction.RESET_WHITEBOARD_TOOLBAR_VARS ? 1 : 2;
178
- break;
179
- case 1:
180
- this.resetToolbarVars();
181
- return _context.abrupt("continue", 2);
182
- case 2:
183
- case "end":
184
- return _context.stop();
185
- }
186
- }, _callee, this);
187
- }));
188
- function _onUiEvent(_x, _x2) {
189
- return _onUiEvent2.apply(this, arguments);
190
- }
191
- return _onUiEvent;
192
- }()
193
164
  }, {
194
165
  key: "resetToolbarVars",
195
166
  value: function resetToolbarVars() {
196
- if (this._boardMainWindow) {
167
+ if (this.boardMainWindow) {
197
168
  this.setStrokeColor(colors[2]);
198
169
  this.setStrokeWidth(2);
199
170
  this.setPen(_type.FcrBoardShape.Curve);
171
+ } else {
172
+ this.logger.error('cannot reset toolbar, boardMainWindow is undefined');
200
173
  }
201
174
  }
202
175
  }, {
@@ -207,64 +180,64 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
207
180
  }, {
208
181
  key: "redo",
209
182
  value: function redo() {
210
- var _this$boardMainWindow;
211
- (_this$boardMainWindow = this.boardMainWindow) === null || _this$boardMainWindow === void 0 || _this$boardMainWindow.redo();
183
+ var _this$boardMainWindow3;
184
+ (_this$boardMainWindow3 = this.boardMainWindow) === null || _this$boardMainWindow3 === void 0 || _this$boardMainWindow3.redo();
212
185
  }
213
186
  }, {
214
187
  key: "undo",
215
188
  value: function undo() {
216
- var _this$boardMainWindow2;
217
- (_this$boardMainWindow2 = this.boardMainWindow) === null || _this$boardMainWindow2 === void 0 || _this$boardMainWindow2.undo();
189
+ var _this$boardMainWindow4;
190
+ (_this$boardMainWindow4 = this.boardMainWindow) === null || _this$boardMainWindow4 === void 0 || _this$boardMainWindow4.undo();
218
191
  }
219
192
  }, {
220
193
  key: "clean",
221
194
  value: function clean() {
222
- var _this$boardMainWindow3;
223
- (_this$boardMainWindow3 = this.boardMainWindow) === null || _this$boardMainWindow3 === void 0 || _this$boardMainWindow3.clean();
195
+ var _this$boardMainWindow5;
196
+ (_this$boardMainWindow5 = this.boardMainWindow) === null || _this$boardMainWindow5 === void 0 || _this$boardMainWindow5.clean();
224
197
  }
225
198
  }, {
226
199
  key: "setTool",
227
200
  value: function setTool(tool) {
228
- var _this$boardMainWindow4;
201
+ var _this$boardMainWindow6;
229
202
  this.observables.currentTool = tool;
230
203
  this.observables.currentShape = undefined;
231
- (_this$boardMainWindow4 = this.boardMainWindow) === null || _this$boardMainWindow4 === void 0 || _this$boardMainWindow4.setToolType(tool);
204
+ (_this$boardMainWindow6 = this.boardMainWindow) === null || _this$boardMainWindow6 === void 0 || _this$boardMainWindow6.setToolType(tool);
232
205
  }
233
206
  }, {
234
207
  key: "setPen",
235
208
  value: function setPen(shape) {
236
- var _this$boardMainWindow5, _this$boardMainWindow6, _this$boardMainWindow7;
209
+ var _this$boardMainWindow7, _this$boardMainWindow8, _this$boardMainWindow9;
237
210
  this.observables.currentShape = shape;
238
211
  this.observables.lastPen = shape;
239
212
  this.observables.currentTool = this._convertShapeToBoardToolType(shape);
240
- (_this$boardMainWindow5 = this.boardMainWindow) === null || _this$boardMainWindow5 === void 0 || _this$boardMainWindow5.setToolType(this._convertShapeToBoardToolType(shape));
241
- (_this$boardMainWindow6 = this.boardMainWindow) === null || _this$boardMainWindow6 === void 0 || _this$boardMainWindow6.setStrokeWidth(this.observables.currentStrokeWidth);
242
- (_this$boardMainWindow7 = this.boardMainWindow) === null || _this$boardMainWindow7 === void 0 || _this$boardMainWindow7.setStrokeColor((0, _tinycolor["default"])(this.observables.currentColor).toRgb());
213
+ (_this$boardMainWindow7 = this.boardMainWindow) === null || _this$boardMainWindow7 === void 0 || _this$boardMainWindow7.setToolType(this._convertShapeToBoardToolType(shape));
214
+ (_this$boardMainWindow8 = this.boardMainWindow) === null || _this$boardMainWindow8 === void 0 || _this$boardMainWindow8.setStrokeWidth(this.observables.currentStrokeWidth);
215
+ (_this$boardMainWindow9 = this.boardMainWindow) === null || _this$boardMainWindow9 === void 0 || _this$boardMainWindow9.setStrokeColor((0, _tinycolor["default"])(this.observables.currentColor).toRgb());
243
216
  }
244
217
  }, {
245
218
  key: "setShape",
246
219
  value: function setShape(shape) {
247
- var _this$boardMainWindow8, _this$boardMainWindow9, _this$boardMainWindow0;
220
+ var _this$boardMainWindow0, _this$boardMainWindow1, _this$boardMainWindow10;
248
221
  this.observables.currentShape = shape;
249
222
  this.observables.lastShape = shape;
250
223
  this.observables.currentTool = this._convertShapeToBoardToolType(shape);
251
- (_this$boardMainWindow8 = this.boardMainWindow) === null || _this$boardMainWindow8 === void 0 || _this$boardMainWindow8.setToolType(this._convertShapeToBoardToolType(shape));
252
- (_this$boardMainWindow9 = this.boardMainWindow) === null || _this$boardMainWindow9 === void 0 || _this$boardMainWindow9.setStrokeWidth(this.observables.currentStrokeWidth);
253
- (_this$boardMainWindow0 = this.boardMainWindow) === null || _this$boardMainWindow0 === void 0 || _this$boardMainWindow0.setStrokeColor((0, _tinycolor["default"])(this.observables.currentColor).toRgb());
224
+ (_this$boardMainWindow0 = this.boardMainWindow) === null || _this$boardMainWindow0 === void 0 || _this$boardMainWindow0.setToolType(this._convertShapeToBoardToolType(shape));
225
+ (_this$boardMainWindow1 = this.boardMainWindow) === null || _this$boardMainWindow1 === void 0 || _this$boardMainWindow1.setStrokeWidth(this.observables.currentStrokeWidth);
226
+ (_this$boardMainWindow10 = this.boardMainWindow) === null || _this$boardMainWindow10 === void 0 || _this$boardMainWindow10.setStrokeColor((0, _tinycolor["default"])(this.observables.currentColor).toRgb());
254
227
  }
255
228
  }, {
256
229
  key: "setStrokeColor",
257
230
  value: function setStrokeColor(color) {
258
- var _this$boardMainWindow1;
231
+ var _this$boardMainWindow11;
259
232
  this.observables.currentColor = color;
260
- (_this$boardMainWindow1 = this.boardMainWindow) === null || _this$boardMainWindow1 === void 0 || _this$boardMainWindow1.setStrokeColor((0, _tinycolor["default"])(color).toRgb());
233
+ (_this$boardMainWindow11 = this.boardMainWindow) === null || _this$boardMainWindow11 === void 0 || _this$boardMainWindow11.setStrokeColor((0, _tinycolor["default"])(color).toRgb());
261
234
  }
262
235
  }, {
263
236
  key: "setStrokeWidth",
264
237
  value: function setStrokeWidth(strokeWidth) {
265
- var _this$boardMainWindow10;
238
+ var _this$boardMainWindow12;
266
239
  this.observables.currentStrokeWidth = strokeWidth;
267
- (_this$boardMainWindow10 = this.boardMainWindow) === null || _this$boardMainWindow10 === void 0 || _this$boardMainWindow10.setStrokeWidth(strokeWidth);
240
+ (_this$boardMainWindow12 = this.boardMainWindow) === null || _this$boardMainWindow12 === void 0 || _this$boardMainWindow12.setStrokeWidth(strokeWidth);
268
241
  }
269
242
  }, {
270
243
  key: "clickExpansionTool",
@@ -299,13 +272,6 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
299
272
  value: function saveDraft() {
300
273
  this._getSnapshotImage();
301
274
  }
302
- }, {
303
- key: "setTheme",
304
- value: function setTheme(theme) {
305
- this._setBackgroundColor(theme.background);
306
- this.observables.colors = theme.colors;
307
- this.observables.currentThemeType = theme;
308
- }
309
275
  }, {
310
276
  key: "setCommonColor",
311
277
  value: function setCommonColor(color) {
@@ -328,9 +294,8 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
328
294
  }, {
329
295
  key: "release",
330
296
  value: function release() {
331
- var _this$_boardMainWindo3;
332
- this._eventProvider.removeObserver(this._uiEventObserver);
333
- (_this$_boardMainWindo3 = this._boardMainWindow) === null || _this$_boardMainWindo3 === void 0 || _this$_boardMainWindo3.removeObserver(this._boardObserver);
297
+ var _this$boardMainWindow13;
298
+ (_this$boardMainWindow13 = this.boardMainWindow) === null || _this$boardMainWindow13 === void 0 || _this$boardMainWindow13.removeObserver(this._boardObserver);
334
299
  this._whiteboardControl.removeObserver(this._whiteboardObserver);
335
300
  }
336
301
  }, {
@@ -410,26 +375,19 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
410
375
  });
411
376
  }
412
377
  }
413
- }, {
414
- key: "_setBackgroundColor",
415
- value: function _setBackgroundColor(bgColor) {
416
- var _this$_whiteboardCont;
417
- var color = bgColor || 'white';
418
- (_this$_whiteboardCont = this._whiteboardControl) === null || _this$_whiteboardCont === void 0 || _this$_whiteboardCont.setBackgroundColor(color);
419
- }
420
378
  }, {
421
379
  key: "_getSnapshotImage",
422
380
  value: function () {
423
- var _getSnapshotImage2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
381
+ var _getSnapshotImage2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
424
382
  var _this5 = this;
425
383
  var mainWindow, progress, imageData;
426
- return _regenerator["default"].wrap(function (_context2) {
427
- while (1) switch (_context2.prev = _context2.next) {
384
+ return _regenerator["default"].wrap(function (_context) {
385
+ while (1) switch (_context.prev = _context.next) {
428
386
  case 0:
429
387
  this.observables.progress = 0;
430
388
  mainWindow = this.boardMainWindow;
431
389
  if (!mainWindow) {
432
- _context2.next = 2;
390
+ _context.next = 2;
433
391
  break;
434
392
  }
435
393
  progress = setInterval(function () {
@@ -439,10 +397,10 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
439
397
  clearInterval(progress);
440
398
  }
441
399
  }, 4);
442
- _context2.next = 1;
400
+ _context.next = 1;
443
401
  return mainWindow.getSnapshotImage();
444
402
  case 1:
445
- imageData = _context2.sent;
403
+ imageData = _context.sent;
446
404
  (0, _mobx.runInAction)(function () {
447
405
  setTimeout(function () {
448
406
  var _this5$roomInfo;
@@ -459,9 +417,9 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
459
417
  });
460
418
  case 2:
461
419
  case "end":
462
- return _context2.stop();
420
+ return _context.stop();
463
421
  }
464
- }, _callee2, this);
422
+ }, _callee, this);
465
423
  }));
466
424
  function _getSnapshotImage() {
467
425
  return _getSnapshotImage2.apply(this, arguments);
@@ -495,7 +453,7 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
495
453
  }]);
496
454
  }();
497
455
  _AnnotationReceiverToolbarStore = AnnotationReceiverToolbarStore;
498
- var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_AnnotationReceiverToolbarStore, [[_mobx.observable, 1, "observables"], [_decorator.bound, 2, "_onUiEvent"], [_resetToolbarVarsDecs, 18, "resetToolbarVars"], [_redoDecs, 18, "redo"], [_undoDecs, 18, "undo"], [_cleanDecs, 18, "clean"], [_setToolDecs, 18, "setTool"], [_setPenDecs, 18, "setPen"], [_setShapeDecs, 18, "setShape"], [_setStrokeColorDecs, 18, "setStrokeColor"], [_setStrokeWidthDecs, 18, "setStrokeWidth"], [_clickExpansionToolDecs, 18, "clickExpansionTool"], [_setToolbarPositionDecs, 18, "setToolbarPosition"], [_dragToolbarDecs, 18, "dragToolbar"], [_releaseToolbarDecs, 18, "releaseToolbar"], [_captureScreenDecs, 18, "captureScreen"], [_saveDraftDecs, 18, "saveDraft"], [_setThemeDecs, 18, "setTheme"], [_setCommonColorDecs, 18, "setCommonColor"], [_repositionToolbarDecs, 18, "repositionToolbar"], [_decorator.bound, 2, "release"], [_decorator.bound, 2, "_updateDockPlacement"], [_decorator.bound, 2, "_updateDockPosition"], [_decorator.bound, 2, "_updateMaxVisibleTools"], [_decorator.bound, 2, "_setBackgroundColor"], [_getSnapshotImageDecs, 18, "_getSnapshotImage"]], []).e, 2);
456
+ var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_AnnotationReceiverToolbarStore, [[_mobx.observable, 1, "observables"], [_resetToolbarVarsDecs, 18, "resetToolbarVars"], [_redoDecs, 18, "redo"], [_undoDecs, 18, "undo"], [_cleanDecs, 18, "clean"], [_setToolDecs, 18, "setTool"], [_setPenDecs, 18, "setPen"], [_setShapeDecs, 18, "setShape"], [_setStrokeColorDecs, 18, "setStrokeColor"], [_setStrokeWidthDecs, 18, "setStrokeWidth"], [_clickExpansionToolDecs, 18, "clickExpansionTool"], [_setToolbarPositionDecs, 18, "setToolbarPosition"], [_dragToolbarDecs, 18, "dragToolbar"], [_releaseToolbarDecs, 18, "releaseToolbar"], [_captureScreenDecs, 18, "captureScreen"], [_saveDraftDecs, 18, "saveDraft"], [_setCommonColorDecs, 18, "setCommonColor"], [_repositionToolbarDecs, 18, "repositionToolbar"], [_decorator.bound, 2, "release"], [_decorator.bound, 2, "_updateDockPlacement"], [_decorator.bound, 2, "_updateDockPosition"], [_decorator.bound, 2, "_updateMaxVisibleTools"], [_getSnapshotImageDecs, 18, "_getSnapshotImage"]], []).e, 2);
499
457
  _init_observables = _applyDecs$e[0];
500
458
  _initProto = _applyDecs$e[1];
501
459
  var AnnotationReceiverToolbarContext = exports.AnnotationReceiverToolbarContext = /*#__PURE__*/(0, _react.createContext)({});
@@ -23,7 +23,8 @@
23
23
 
24
24
  .board-widget-cursor-curve {
25
25
  cursor:
26
- url('data:image/svg+xml,%3Csvg width="18" height="18" viewBox="0 0 " fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M2.39931 16.9972C2.41668 16.9977 2.43414 16.998 2.45168 16.998C2.4606 16.998 2.46574 16.998 2.4703 16.9964C2.47376 16.9952 2.47689 16.993 2.4811 16.9893C2.54809 16.9807 2.6135 16.967 2.67693 16.9487L6.17048 16.4097C6.54866 16.4097 6.88482 16.2417 7.13694 15.9895L14.5745 8.57295C15.1418 8.00567 15.1418 7.06021 14.5745 6.49294L11.5071 3.42546C10.9398 2.85818 9.99433 2.85818 9.42705 3.42546L8.01261 4.83989L7.99897 4.85315C7.98482 4.86613 7.97145 4.87964 7.95889 4.89362L1.98945 10.8631C1.73733 11.1362 1.59026 11.4724 1.56925 11.8295L1.00197 15.4223V15.5063C0.999702 15.5495 0.999396 15.5924 1.00103 15.635C1.00035 15.6524 1 15.6699 1 15.6875C1 16.4124 1.58763 17 2.3125 17C2.34167 17 2.37061 16.999 2.39931 16.9972ZM3.6232 15.6181C3.58855 14.9532 3.05908 14.4193 2.39607 14.3776L2.7529 12.131L5.9026 15.2987L3.6232 15.6181ZM11.8094 9.56554L8.43535 6.1742L3.48939 11.0998L6.93648 14.5273L11.8094 9.56554Z" fill="black" fill-opacity="0.8"/%3E%3Cpath d="M2.39931 16.9972L2.40745 16.7473C2.39931 16.747 2.39115 16.7472 2.38301 16.7477L2.39931 16.9972ZM2.4703 16.9964L2.55354 17.2322L2.55358 17.2321L2.4703 16.9964ZM2.4811 16.9893L2.4493 16.7413C2.39903 16.7477 2.3519 16.7693 2.31417 16.8032L2.4811 16.9893ZM2.67693 16.9487L2.63881 16.7017C2.62829 16.7033 2.61788 16.7056 2.60765 16.7085L2.67693 16.9487ZM6.17048 16.4097V16.1597C6.15771 16.1597 6.14497 16.1607 6.13236 16.1627L6.17048 16.4097ZM7.13694 15.9895L6.96042 15.8125L6.96017 15.8128L7.13694 15.9895ZM14.5745 8.57295L14.7511 8.74997L14.7513 8.74972L14.5745 8.57295ZM14.5745 6.49294L14.7513 6.31616V6.31616L14.5745 6.49294ZM11.5071 3.42546L11.3303 3.60223V3.60223L11.5071 3.42546ZM9.42705 3.42546L9.60383 3.60223V3.60223L9.42705 3.42546ZM8.01261 4.83989L8.18689 5.01917L8.18939 5.01667L8.01261 4.83989ZM7.99897 4.85315L8.16798 5.03752L8.17324 5.03241L7.99897 4.85315ZM7.95889 4.89362L8.13591 5.07065L8.14482 5.06074L7.95889 4.89362ZM1.98945 10.8631L1.81253 10.6861L1.80575 10.6935L1.98945 10.8631ZM1.56925 11.8295L1.81619 11.8685C1.81746 11.8605 1.81834 11.8523 1.81882 11.8442L1.56925 11.8295ZM1.00197 15.4223L0.755034 15.3833C0.752998 15.3962 0.751975 15.4092 0.751975 15.4223H1.00197ZM1.00197 15.5063L1.25197 15.5195V15.5063H1.00197ZM1.00103 15.635L1.25084 15.6448C1.25109 15.6384 1.25109 15.6319 1.25085 15.6254L1.00103 15.635ZM2.39607 14.3776L2.14916 14.3384C2.13812 14.4079 2.15691 14.4789 2.20093 14.5339C2.24495 14.5889 2.31011 14.6227 2.38039 14.6271L2.39607 14.3776ZM3.6232 15.6181L3.37353 15.6311C3.37718 15.7011 3.41004 15.7663 3.46411 15.8109C3.51817 15.8555 3.58848 15.8754 3.65789 15.8657L3.6232 15.6181ZM2.7529 12.131L2.93018 11.9547C2.86382 11.888 2.7656 11.8642 2.67604 11.8931C2.58648 11.922 2.52076 11.9988 2.506 12.0918L2.7529 12.131ZM5.9026 15.2987L5.9373 15.5463C6.03107 15.5331 6.10936 15.4681 6.13955 15.3784C6.16974 15.2886 6.14664 15.1896 6.07988 15.1224L5.9026 15.2987ZM8.43535 6.1742L8.61258 5.99787C8.5658 5.95086 8.50226 5.92435 8.43593 5.9242C8.36961 5.92405 8.30594 5.95025 8.25894 5.99706L8.43535 6.1742ZM11.8094 9.56554L11.9878 9.74072C12.0837 9.64301 12.0832 9.4863 11.9866 9.38922L11.8094 9.56554ZM3.48939 11.0998L3.31298 10.9226C3.26585 10.9696 3.23937 11.0334 3.23939 11.0999C3.23942 11.1664 3.26595 11.2302 3.31312 11.2771L3.48939 11.0998ZM6.93648 14.5273L6.76021 14.7046C6.80742 14.7515 6.8714 14.7777 6.93797 14.7773C7.00454 14.7769 7.0682 14.75 7.11485 14.7025L6.93648 14.5273ZM2.45168 16.748C2.43683 16.748 2.42209 16.7478 2.40745 16.7473L2.39116 17.247C2.41127 17.2477 2.43145 17.248 2.45168 17.248V16.748ZM2.38707 16.7607C2.41363 16.7513 2.4356 16.7491 2.44571 16.7484C2.45051 16.7481 2.45385 16.748 2.45423 16.748C2.45451 16.748 2.45437 16.748 2.45168 16.748V17.248C2.45318 17.248 2.46626 17.2482 2.47954 17.2473C2.49559 17.2462 2.52242 17.2431 2.55354 17.2322L2.38707 16.7607ZM2.31417 16.8032C2.3192 16.7987 2.34496 16.7756 2.38703 16.7607L2.55358 17.2321C2.60256 17.2148 2.63459 17.1874 2.64802 17.1754L2.31417 16.8032ZM2.60765 16.7085C2.55641 16.7233 2.50352 16.7343 2.4493 16.7413L2.5129 17.2372C2.59265 17.227 2.67059 17.2108 2.74622 17.189L2.60765 16.7085ZM6.13236 16.1627L2.63881 16.7017L2.71506 17.1958L6.2086 16.6568L6.13236 16.1627ZM6.96017 15.8128C6.74659 16.0263 6.47143 16.1597 6.17048 16.1597V16.6597C6.62589 16.6597 7.02305 16.457 7.31372 16.1663L6.96017 15.8128ZM14.398 8.39592L6.96042 15.8125L7.31347 16.1666L14.7511 8.74997L14.398 8.39592ZM14.3978 6.66972C14.8674 7.13936 14.8674 7.92653 14.3978 8.39617L14.7513 8.74972C15.4162 8.08482 15.4162 6.98107 14.7513 6.31616L14.3978 6.66972ZM11.3303 3.60223L14.3978 6.66972L14.7513 6.31616L11.6838 3.24868L11.3303 3.60223ZM9.60383 3.60223C10.0735 3.13259 10.8606 3.13259 11.3303 3.60223L11.6838 3.24868C11.0189 2.58377 9.91518 2.58377 9.25027 3.24868L9.60383 3.60223ZM8.18939 5.01667L9.60383 3.60223L9.25027 3.24868L7.83584 4.66312L8.18939 5.01667ZM8.17324 5.03241L8.18688 5.01915L7.83835 4.66064L7.82471 4.6739L8.17324 5.03241ZM8.14482 5.06074C8.152 5.05275 8.15969 5.04498 8.16791 5.03744L7.83004 4.66887C7.80995 4.68729 7.79091 4.70652 7.77296 4.7265L8.14482 5.06074ZM2.16623 11.0398L8.13566 5.0704L7.78211 4.71684L1.81268 10.6863L2.16623 11.0398ZM1.81882 11.8442C1.83626 11.5477 1.95813 11.2656 2.17315 11.0326L1.80575 10.6935C1.51653 11.0068 1.34426 11.397 1.31968 11.8148L1.81882 11.8442ZM1.24892 15.4613L1.81619 11.8685L1.32231 11.7905L0.755034 15.3833L1.24892 15.4613ZM1.25197 15.5063V15.4223H0.751975V15.5063H1.25197ZM1.25085 15.6254C1.24951 15.5905 1.24975 15.5551 1.25163 15.5194L0.75232 15.4932C0.749652 15.5439 0.749287 15.5944 0.751214 15.6446L1.25085 15.6254ZM1.25 15.6875C1.25 15.6732 1.25028 15.659 1.25084 15.6448L0.751223 15.6252C0.75041 15.6459 0.75 15.6666 0.75 15.6875H1.25ZM2.3125 16.75C1.7257 16.75 1.25 16.2743 1.25 15.6875H0.75C0.75 16.5504 1.44956 17.25 2.3125 17.25V16.75ZM2.38301 16.7477C2.35974 16.7492 2.33623 16.75 2.3125 16.75V17.25C2.3471 17.25 2.38148 17.2489 2.4156 17.2466L2.38301 16.7477ZM2.38039 14.6271C2.9168 14.6608 3.34551 15.0932 3.37353 15.6311L3.87286 15.6051C3.8316 14.8132 3.20136 14.1777 2.41174 14.1281L2.38039 14.6271ZM2.506 12.0918L2.14916 14.3384L2.64297 14.4168L2.99981 12.1702L2.506 12.0918ZM6.07988 15.1224L2.93018 11.9547L2.57562 12.3073L5.72532 15.475L6.07988 15.1224ZM3.65789 15.8657L5.9373 15.5463L5.86791 15.0511L3.5885 15.3705L3.65789 15.8657ZM8.25812 6.35052L11.6322 9.74187L11.9866 9.38922L8.61258 5.99787L8.25812 6.35052ZM3.6658 11.2769L8.61176 6.35134L8.25894 5.99706L3.31298 10.9226L3.6658 11.2769ZM7.11276 14.35L3.66567 10.9225L3.31312 11.2771L6.76021 14.7046L7.11276 14.35ZM11.631 9.39037L6.75812 14.3521L7.11485 14.7025L11.9878 9.74072L11.631 9.39037Z" fill="white"/%3E%3C/svg%3E'),
26
+ url('data:image/svg+xml,%3Csvg width="18" height="18" viewBox="0 0 " fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M2.39931 16.9972C2.41668 16.9977 2.43414 16.998 2.45168 16.998C2.4606 16.998 2.46574 16.998 2.4703 16.9964C2.47376 16.9952 2.47689 16.993 2.4811 16.9893C2.54809 16.9807 2.6135 16.967 2.67693 16.9487L6.17048 16.4097C6.54866 16.4097 6.88482 16.2417 7.13694 15.9895L14.5745 8.57295C15.1418 8.00567 15.1418 7.06021 14.5745 6.49294L11.5071 3.42546C10.9398 2.85818 9.99433 2.85818 9.42705 3.42546L8.01261 4.83989L7.99897 4.85315C7.98482 4.86613 7.97145 4.87964 7.95889 4.89362L1.98945 10.8631C1.73733 11.1362 1.59026 11.4724 1.56925 11.8295L1.00197 15.4223V15.5063C0.999702 15.5495 0.999396 15.5924 1.00103 15.635C1.00035 15.6524 1 15.6699 1 15.6875C1 16.4124 1.58763 17 2.3125 17C2.34167 17 2.37061 16.999 2.39931 16.9972ZM3.6232 15.6181C3.58855 14.9532 3.05908 14.4193 2.39607 14.3776L2.7529 12.131L5.9026 15.2987L3.6232 15.6181ZM11.8094 9.56554L8.43535 6.1742L3.48939 11.0998L6.93648 14.5273L11.8094 9.56554Z" fill="black" fill-opacity="0.8"/%3E%3Cpath d="M2.39931 16.9972L2.40745 16.7473C2.39931 16.747 2.39115 16.7472 2.38301 16.7477L2.39931 16.9972ZM2.4703 16.9964L2.55354 17.2322L2.55358 17.2321L2.4703 16.9964ZM2.4811 16.9893L2.4493 16.7413C2.39903 16.7477 2.3519 16.7693 2.31417 16.8032L2.4811 16.9893ZM2.67693 16.9487L2.63881 16.7017C2.62829 16.7033 2.61788 16.7056 2.60765 16.7085L2.67693 16.9487ZM6.17048 16.4097V16.1597C6.15771 16.1597 6.14497 16.1607 6.13236 16.1627L6.17048 16.4097ZM7.13694 15.9895L6.96042 15.8125L6.96017 15.8128L7.13694 15.9895ZM14.5745 8.57295L14.7511 8.74997L14.7513 8.74972L14.5745 8.57295ZM14.5745 6.49294L14.7513 6.31616V6.31616L14.5745 6.49294ZM11.5071 3.42546L11.3303 3.60223V3.60223L11.5071 3.42546ZM9.42705 3.42546L9.60383 3.60223V3.60223L9.42705 3.42546ZM8.01261 4.83989L8.18689 5.01917L8.18939 5.01667L8.01261 4.83989ZM7.99897 4.85315L8.16798 5.03752L8.17324 5.03241L7.99897 4.85315ZM7.95889 4.89362L8.13591 5.07065L8.14482 5.06074L7.95889 4.89362ZM1.98945 10.8631L1.81253 10.6861L1.80575 10.6935L1.98945 10.8631ZM1.56925 11.8295L1.81619 11.8685C1.81746 11.8605 1.81834 11.8523 1.81882 11.8442L1.56925 11.8295ZM1.00197 15.4223L0.755034 15.3833C0.752998 15.3962 0.751975 15.4092 0.751975 15.4223H1.00197ZM1.00197 15.5063L1.25197 15.5195V15.5063H1.00197ZM1.00103 15.635L1.25084 15.6448C1.25109 15.6384 1.25109 15.6319 1.25085 15.6254L1.00103 15.635ZM2.39607 14.3776L2.14916 14.3384C2.13812 14.4079 2.15691 14.4789 2.20093 14.5339C2.24495 14.5889 2.31011 14.6227 2.38039 14.6271L2.39607 14.3776ZM3.6232 15.6181L3.37353 15.6311C3.37718 15.7011 3.41004 15.7663 3.46411 15.8109C3.51817 15.8555 3.58848 15.8754 3.65789 15.8657L3.6232 15.6181ZM2.7529 12.131L2.93018 11.9547C2.86382 11.888 2.7656 11.8642 2.67604 11.8931C2.58648 11.922 2.52076 11.9988 2.506 12.0918L2.7529 12.131ZM5.9026 15.2987L5.9373 15.5463C6.03107 15.5331 6.10936 15.4681 6.13955 15.3784C6.16974 15.2886 6.14664 15.1896 6.07988 15.1224L5.9026 15.2987ZM8.43535 6.1742L8.61258 5.99787C8.5658 5.95086 8.50226 5.92435 8.43593 5.9242C8.36961 5.92405 8.30594 5.95025 8.25894 5.99706L8.43535 6.1742ZM11.8094 9.56554L11.9878 9.74072C12.0837 9.64301 12.0832 9.4863 11.9866 9.38922L11.8094 9.56554ZM3.48939 11.0998L3.31298 10.9226C3.26585 10.9696 3.23937 11.0334 3.23939 11.0999C3.23942 11.1664 3.26595 11.2302 3.31312 11.2771L3.48939 11.0998ZM6.93648 14.5273L6.76021 14.7046C6.80742 14.7515 6.8714 14.7777 6.93797 14.7773C7.00454 14.7769 7.0682 14.75 7.11485 14.7025L6.93648 14.5273ZM2.45168 16.748C2.43683 16.748 2.42209 16.7478 2.40745 16.7473L2.39116 17.247C2.41127 17.2477 2.43145 17.248 2.45168 17.248V16.748ZM2.38707 16.7607C2.41363 16.7513 2.4356 16.7491 2.44571 16.7484C2.45051 16.7481 2.45385 16.748 2.45423 16.748C2.45451 16.748 2.45437 16.748 2.45168 16.748V17.248C2.45318 17.248 2.46626 17.2482 2.47954 17.2473C2.49559 17.2462 2.52242 17.2431 2.55354 17.2322L2.38707 16.7607ZM2.31417 16.8032C2.3192 16.7987 2.34496 16.7756 2.38703 16.7607L2.55358 17.2321C2.60256 17.2148 2.63459 17.1874 2.64802 17.1754L2.31417 16.8032ZM2.60765 16.7085C2.55641 16.7233 2.50352 16.7343 2.4493 16.7413L2.5129 17.2372C2.59265 17.227 2.67059 17.2108 2.74622 17.189L2.60765 16.7085ZM6.13236 16.1627L2.63881 16.7017L2.71506 17.1958L6.2086 16.6568L6.13236 16.1627ZM6.96017 15.8128C6.74659 16.0263 6.47143 16.1597 6.17048 16.1597V16.6597C6.62589 16.6597 7.02305 16.457 7.31372 16.1663L6.96017 15.8128ZM14.398 8.39592L6.96042 15.8125L7.31347 16.1666L14.7511 8.74997L14.398 8.39592ZM14.3978 6.66972C14.8674 7.13936 14.8674 7.92653 14.3978 8.39617L14.7513 8.74972C15.4162 8.08482 15.4162 6.98107 14.7513 6.31616L14.3978 6.66972ZM11.3303 3.60223L14.3978 6.66972L14.7513 6.31616L11.6838 3.24868L11.3303 3.60223ZM9.60383 3.60223C10.0735 3.13259 10.8606 3.13259 11.3303 3.60223L11.6838 3.24868C11.0189 2.58377 9.91518 2.58377 9.25027 3.24868L9.60383 3.60223ZM8.18939 5.01667L9.60383 3.60223L9.25027 3.24868L7.83584 4.66312L8.18939 5.01667ZM8.17324 5.03241L8.18688 5.01915L7.83835 4.66064L7.82471 4.6739L8.17324 5.03241ZM8.14482 5.06074C8.152 5.05275 8.15969 5.04498 8.16791 5.03744L7.83004 4.66887C7.80995 4.68729 7.79091 4.70652 7.77296 4.7265L8.14482 5.06074ZM2.16623 11.0398L8.13566 5.0704L7.78211 4.71684L1.81268 10.6863L2.16623 11.0398ZM1.81882 11.8442C1.83626 11.5477 1.95813 11.2656 2.17315 11.0326L1.80575 10.6935C1.51653 11.0068 1.34426 11.397 1.31968 11.8148L1.81882 11.8442ZM1.24892 15.4613L1.81619 11.8685L1.32231 11.7905L0.755034 15.3833L1.24892 15.4613ZM1.25197 15.5063V15.4223H0.751975V15.5063H1.25197ZM1.25085 15.6254C1.24951 15.5905 1.24975 15.5551 1.25163 15.5194L0.75232 15.4932C0.749652 15.5439 0.749287 15.5944 0.751214 15.6446L1.25085 15.6254ZM1.25 15.6875C1.25 15.6732 1.25028 15.659 1.25084 15.6448L0.751223 15.6252C0.75041 15.6459 0.75 15.6666 0.75 15.6875H1.25ZM2.3125 16.75C1.7257 16.75 1.25 16.2743 1.25 15.6875H0.75C0.75 16.5504 1.44956 17.25 2.3125 17.25V16.75ZM2.38301 16.7477C2.35974 16.7492 2.33623 16.75 2.3125 16.75V17.25C2.3471 17.25 2.38148 17.2489 2.4156 17.2466L2.38301 16.7477ZM2.38039 14.6271C2.9168 14.6608 3.34551 15.0932 3.37353 15.6311L3.87286 15.6051C3.8316 14.8132 3.20136 14.1777 2.41174 14.1281L2.38039 14.6271ZM2.506 12.0918L2.14916 14.3384L2.64297 14.4168L2.99981 12.1702L2.506 12.0918ZM6.07988 15.1224L2.93018 11.9547L2.57562 12.3073L5.72532 15.475L6.07988 15.1224ZM3.65789 15.8657L5.9373 15.5463L5.86791 15.0511L3.5885 15.3705L3.65789 15.8657ZM8.25812 6.35052L11.6322 9.74187L11.9866 9.38922L8.61258 5.99787L8.25812 6.35052ZM3.6658 11.2769L8.61176 6.35134L8.25894 5.99706L3.31298 10.9226L3.6658 11.2769ZM7.11276 14.35L3.66567 10.9225L3.31312 11.2771L6.76021 14.7046L7.11276 14.35ZM11.631 9.39037L6.75812 14.3521L7.11485 14.7025L11.9878 9.74072L11.631 9.39037Z" fill="white"/%3E%3C/svg%3E')
27
+ 0 18,
27
28
  auto !important;
28
29
  }
29
30
 
@@ -15,6 +15,7 @@ import { FcrUIEventProvider } from '../../providers/event-provider';
15
15
  import { FcrUIAbilityProvider } from '../../providers/ability-provider';
16
16
  import { FcrUISharedAnnotationSource } from '../../shared-data-source/annotation-data';
17
17
  import { FcrUISharedConfirmDataSource } from '../../shared-data-source/confirm-data';
18
+ import { FcrUISharedConfigDataSource } from '../../shared-data-source/config';
18
19
  export declare class AnnotationUIModule extends UIModule {
19
20
  private _toolbarStore?;
20
21
  private _store?;
@@ -33,6 +34,7 @@ export declare class AnnotationUIModule extends UIModule {
33
34
  abilityProvider?: FcrUIAbilityProvider;
34
35
  sharedAnnotationDataSource?: FcrUISharedAnnotationSource;
35
36
  sharedConfirmDataSource: FcrUISharedConfirmDataSource;
37
+ sharedConfigDataSource: FcrUISharedConfigDataSource;
36
38
  onNodeWillActive(): void;
37
39
  onNodeReceivedEvent(event: FcrUINodeEvent): void;
38
40
  onNodeWillInactive(): void;
@@ -96,10 +96,10 @@ var AnnotationUIModule = exports.AnnotationUIModule = /*#__PURE__*/function (_UI
96
96
  sharedScreenSharedDataSource: this.sharedScreenShareSharedDataSource,
97
97
  privilegeProvider: this.privilegeProvider,
98
98
  messageProvider: this.messageProvider,
99
- localStorageProvider: this.localStorageProvider,
100
99
  eventProvider: this.eventProvider,
101
100
  abilityProvider: this.abilityProvider,
102
- sharedAnnotationDataSource: this.sharedAnnotationDataSource
101
+ sharedAnnotationDataSource: this.sharedAnnotationDataSource,
102
+ sharedConfigDataSource: this.sharedConfigDataSource
103
103
  });
104
104
  }
105
105
  }, {
@@ -7,11 +7,11 @@ import { FcrUISecuritySharedDataSource } from '../../shared-data-source/security
7
7
  import { FcrUIScreenShareSharedDataSource } from '../../shared-data-source/screen-share-data';
8
8
  import { FcrUIPrivilegeProvider } from '../../providers/privilege-provider';
9
9
  import { FcrUIMessageProvider } from '../../providers/message-provider';
10
- import { FcrUILocalStorageProvider } from '../../providers/local-storage-provider';
11
10
  import { FcrUIEventProvider } from '../../providers/event-provider';
12
11
  import { FcrUIAbilityProvider } from '../../providers/ability-provider';
13
12
  import { FcrUISharedAnnotationSource } from '../../shared-data-source/annotation-data';
14
13
  import { AnnotationReceiverToolbarStore } from './annotation-toolbar-store';
14
+ import { FcrUISharedConfigDataSource } from '../../shared-data-source/config';
15
15
  export declare class AnnotationStore {
16
16
  protected logger: import("agora-foundation/lib/logger").Logger;
17
17
  private _disposers;
@@ -31,20 +31,15 @@ export declare class AnnotationStore {
31
31
  private _streamControl;
32
32
  private _shareScreenOwnerId;
33
33
  private _currentShareInfo;
34
+ private _toolbarStore;
34
35
  private _dialogObserver;
35
36
  private _sharingObserver;
36
37
  private _annotationObserver;
37
38
  private _sharingControl;
38
- accessor receiverAllOpenStateReady: boolean;
39
39
  private _boardDom?;
40
- private _toolbarStore;
41
- private _boardContainerDom?;
42
- private _boardOriginWidth;
43
40
  private _prevSetLocalVideoSize;
44
- private _mounted;
45
41
  private _roomControl;
46
42
  private _streamObserver;
47
- private _annotationEndLock;
48
43
  get screenShareVideoRatio(): number;
49
44
  get hasAnnotationWritePermission(): boolean;
50
45
  get isLocalUserHost(): boolean;
@@ -63,7 +58,7 @@ export declare class AnnotationStore {
63
58
  get allowAnnotation(): boolean;
64
59
  get allowAnnotationWriteState(): boolean;
65
60
  get isSeizeStream(): boolean;
66
- constructor({ dialogProvider, annotationProvider, sharingProvider, memberDataSource, roomControl, sharedSecuritySharedDataSource, sharedScreenSharedDataSource, privilegeProvider, messageProvider, localStorageProvider, eventProvider, abilityProvider, sharedAnnotationDataSource, }: {
61
+ constructor({ dialogProvider, annotationProvider, sharingProvider, memberDataSource, roomControl, sharedSecuritySharedDataSource, sharedScreenSharedDataSource, privilegeProvider, messageProvider, eventProvider, abilityProvider, sharedAnnotationDataSource, sharedConfigDataSource, }: {
67
62
  dialogProvider: FcrUIDialogProvider;
68
63
  annotationProvider: FcrUIAnnotationProvider;
69
64
  sharingProvider: FcrUISharingProvider;
@@ -73,64 +68,31 @@ export declare class AnnotationStore {
73
68
  sharedScreenSharedDataSource: FcrUIScreenShareSharedDataSource;
74
69
  privilegeProvider: FcrUIPrivilegeProvider;
75
70
  messageProvider: FcrUIMessageProvider;
76
- localStorageProvider: FcrUILocalStorageProvider;
77
71
  eventProvider: FcrUIEventProvider;
78
72
  abilityProvider: FcrUIAbilityProvider;
79
73
  sharedAnnotationDataSource: FcrUISharedAnnotationSource;
74
+ sharedConfigDataSource: FcrUISharedConfigDataSource;
80
75
  });
81
76
  isAnnotationSupported(): boolean;
82
- getToolbarStore(): AnnotationReceiverToolbarStore | undefined;
77
+ getToolbarStore(): AnnotationReceiverToolbarStore;
83
78
  get currentTool(): import("fcr-core/lib/room-control/whiteboard-control/enums").FcrBoardToolType | undefined;
84
79
  get boardMainWindow(): import("fcr-core/lib/room-control/whiteboard-control/types").FcrBoardMainWindow | null;
85
- handleReceiverBoard(paramRatio?: number): void;
86
80
  handleBoardDomLoad(ref: HTMLDivElement | null): void;
87
- handleBoardContainerDomLoad(ref: HTMLDivElement | null): void;
88
81
  screenSharingStarted(isReplaceScreen: boolean): void;
89
82
  release(): void;
90
- private _clearCurrentAnnotationControl;
91
- private _getCurrentAnnotationControl;
92
- /**
93
- * 根据 发起屏幕共享状态,是startOnlyScreen,且自己本人是发起端
94
- * 则发起端: 同步bounds与updateViewPort并进行打开fragment
95
- */
96
- private _annotationSenderMainStart;
97
- /**
98
- * 根据 发起屏幕共享状态中包含startWithAnnotation,
99
- * 则接收端:1.去进行 step1 连接白板 2.在连接完成的状态后并拿到boardMainWindow后,进行 step2 后置的 工具栏初始化 + 白板尺寸修正(过期)
100
- */
101
- private _annotationReceiverMainStart;
102
- /**
103
- * 根据 1.白板的连接状态变为未连接状态 2.屏幕共享结束后
104
- * 进行后置的 工具栏,画布清理和toast提示 + 关闭白板卸载节点的操作
105
- */
106
- private _annotationaEndEffectThenCloseBoard;
107
- private _setIsShowToolbar;
83
+ private _startShareScreen;
84
+ private _openAnnotation;
85
+ private _closeAnnotation;
108
86
  private _mount;
109
- private _unmount;
110
- private _close;
111
87
  private _handleOnLocalVideoStatsUpdated;
112
88
  private _updateAnnotationBounds;
113
89
  private _updateBoundsByActiveWindow;
114
- private _addWindowResizeListenner;
90
+ private _addWindowResizeListener;
115
91
  private _removeWindowResizeListenner;
116
- private _checkSharingwindowBackupSize;
117
- private _setBoardDomWithBackupWindowSize;
118
- private _renewAnnotationWhiteboardToolbar;
119
- private _clearAnnotationWhiteboardToolbar;
120
- private _participantShareCanWeAnnotation;
121
- /**
122
- * 接收端step1
123
- * 判断状态,打开批注(core: 进入房间,初始化白板APP)
124
- */
125
- private _connectAnnotaionBoard;
126
- /**
127
- * 接收端step2
128
- * 白板连接成功,进行后置副作用操作
129
- */
130
- private _annotationStartTriggerEffect;
92
+ private _checkIfAnnotationCanStart;
131
93
  private _handleOnScreenSharingUpdated;
132
94
  private _handleOnAnnotationConnectionStateUpdated;
133
- private _deleteBoardDomContent;
134
95
  syncScreenShareOwnerOpenDone(): void;
96
+ private _resetAnnotationToolbarState;
135
97
  }
136
98
  export declare const AnnotationStoreContext: import("react").Context<AnnotationStore>;