fcr-ui-scene 3.7.2 → 3.7.4-rc.1
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.
- package/lib/creator.d.ts +2 -0
- package/lib/creator.js +37 -44
- package/lib/electron/app.js +7 -0
- package/lib/electron/injections.d.ts +1 -1
- package/lib/electron/injections.js +5 -3
- package/lib/electron/main.js +3 -1
- package/lib/fragments/annotation/index.d.ts +1 -0
- package/lib/fragments/annotation/index.js +13 -7
- package/lib/fragments/annotation/libs.d.ts +7 -6
- package/lib/fragments/annotation/libs.js +9 -8
- package/lib/fragments/annotation/store.d.ts +8 -4
- package/lib/fragments/annotation/store.js +351 -267
- package/lib/fragments/annotation/toolbar/components/color-tool/index.js +4 -0
- package/lib/fragments/annotation/toolbar/components/graphic-tool/index.js +4 -0
- package/lib/fragments/annotation/toolbar/components/item/item.d.ts +2 -0
- package/lib/fragments/annotation/toolbar/components/item/item.js +2 -4
- package/lib/fragments/annotation/toolbar/components/item/style.css +4 -2
- package/lib/fragments/annotation/toolbar/components/pen-tool/index.js +4 -0
- package/lib/fragments/annotation/utils.d.ts +1 -0
- package/lib/fragments/annotation/utils.js +27 -0
- package/lib/fragments/annotation/view.js +1 -6
- package/lib/fragments/base.js +5 -3
- package/lib/fragments/whiteboard/cursor.css +77 -0
- package/lib/fragments/whiteboard/index.d.ts +11 -0
- package/lib/fragments/whiteboard/index.js +91 -0
- package/lib/fragments/whiteboard/store.d.ts +31 -0
- package/lib/fragments/whiteboard/store.js +480 -0
- package/lib/fragments/whiteboard/style.css +4 -0
- package/lib/fragments/whiteboard/view.d.ts +4 -0
- package/lib/fragments/whiteboard/view.js +31 -0
- package/lib/global.css +6 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/modules/action-bar/components/apps/index.js +15 -5
- package/lib/modules/action-bar/components/leave/index.js +4 -11
- package/lib/modules/action-bar/components/screen-share/submenu.js +2 -2
- package/lib/modules/action-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/index.js +2 -1
- package/lib/modules/action-bar/store.d.ts +6 -2
- package/lib/modules/action-bar/store.js +56 -93
- package/lib/modules/action-bar/view.d.ts +1 -0
- package/lib/modules/action-bar/view.js +3 -2
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +4 -11
- package/lib/modules/annotation/annotation-toolbar-store.js +48 -90
- package/lib/modules/annotation/index.d.ts +2 -0
- package/lib/modules/annotation/index.js +2 -2
- package/lib/modules/annotation/store.d.ts +11 -49
- package/lib/modules/annotation/store.js +144 -429
- package/lib/modules/annotation/view.js +3 -6
- package/lib/modules/audio-stream/index.js +1 -2
- package/lib/modules/chat/components/chat-select/index.js +3 -0
- package/lib/modules/components/control-bar/components/loading/index.css +76 -0
- package/lib/modules/components/control-bar/components/loading/index.d.ts +8 -0
- package/lib/modules/components/control-bar/components/loading/index.js +64 -0
- package/lib/modules/components/control-bar/components/loading/loading.png +0 -0
- package/lib/modules/components/control-bar/components/progress/index.d.ts +5 -0
- package/lib/modules/components/control-bar/components/progress/index.js +43 -0
- package/lib/modules/components/control-bar/components/progress/style.css +51 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.css +99 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.d.ts +9 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.js +94 -0
- package/lib/modules/components/control-bar/components/switch-theme/item.d.ts +9 -0
- package/lib/modules/components/control-bar/components/switch-theme/item.js +54 -0
- package/lib/modules/components/control-bar/components/switch-theme/libs.d.ts +4 -0
- package/lib/modules/components/control-bar/components/switch-theme/libs.js +31 -0
- package/lib/modules/components/control-bar/index.css +87 -0
- package/lib/modules/components/control-bar/index.d.ts +20 -0
- package/lib/modules/components/control-bar/index.js +276 -0
- package/lib/modules/components/device-control/store.js +2 -2
- package/lib/modules/components/leave-meeting/components/index.css +0 -9
- package/lib/modules/components/leave-meeting/index.d.ts +2 -1
- package/lib/modules/components/leave-meeting/index.js +19 -8
- package/lib/modules/components/leave-meeting/portal.d.ts +6 -0
- package/lib/modules/components/leave-meeting/portal.js +29 -0
- package/lib/modules/components/leave-meeting/style.css +9 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +5 -2
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +19 -9
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +4 -4
- package/lib/modules/components/member-window/components/member-actions/index.js +13 -6
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +4 -3
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +2 -1
- package/lib/modules/components/member-window/components/member-actions/store.js +5 -1
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +6 -4
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +77 -41
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +3 -3
- package/lib/modules/components/member-window/components/video-player/index.d.ts +3 -3
- package/lib/modules/components/member-window/index.css +4 -0
- package/lib/modules/components/member-window/types.d.ts +9 -5
- package/lib/modules/components/toolbar/components/capture-tool/index.d.ts +9 -0
- package/lib/modules/components/toolbar/components/capture-tool/index.js +68 -0
- package/lib/modules/components/toolbar/components/clean-tool/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/clean-tool/index.js +71 -0
- package/lib/modules/components/toolbar/components/color-tool/color-panel/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/color-tool/color-panel/index.js +77 -0
- package/lib/modules/components/toolbar/components/color-tool/index.d.ts +14 -0
- package/lib/modules/components/toolbar/components/color-tool/index.js +66 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.js +64 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +12 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +65 -0
- package/lib/modules/components/toolbar/components/graphic-tool/index.d.ts +15 -0
- package/lib/modules/components/toolbar/components/graphic-tool/index.js +82 -0
- package/lib/modules/components/toolbar/components/group-tool/index.d.ts +5 -0
- package/lib/modules/components/toolbar/components/group-tool/index.js +43 -0
- package/lib/modules/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/components/toolbar/components/icons/fold-icon.js +41 -0
- package/lib/modules/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/components/toolbar/components/item/index.d.ts +25 -0
- package/lib/modules/components/toolbar/components/item/index.js +165 -0
- package/lib/modules/components/toolbar/components/item/style.css +94 -0
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +12 -0
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.js +75 -0
- package/lib/modules/components/toolbar/components/panel/index.d.ts +9 -0
- package/lib/modules/components/toolbar/components/panel/index.js +28 -0
- package/lib/modules/components/toolbar/components/panel/style.css +86 -0
- package/lib/modules/components/toolbar/components/pen-tool/index.d.ts +13 -0
- package/lib/modules/components/toolbar/components/pen-tool/index.js +62 -0
- package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.d.ts +8 -0
- package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.js +39 -0
- package/lib/modules/components/toolbar/components/save-draft/index.d.ts +7 -0
- package/lib/modules/components/toolbar/components/save-draft/index.js +59 -0
- package/lib/modules/components/toolbar/components/vertical-frame/index.d.ts +8 -0
- package/lib/modules/components/toolbar/components/vertical-frame/index.js +179 -0
- package/lib/modules/components/toolbar/hooks/use-resize-visible.d.ts +4 -0
- package/lib/modules/components/toolbar/hooks/use-resize-visible.js +59 -0
- package/lib/modules/components/toolbar/index.d.ts +29 -0
- package/lib/modules/components/toolbar/index.js +258 -0
- package/lib/modules/components/toolbar/style.css +85 -0
- package/lib/modules/components/toolbar/types.d.ts +13 -0
- package/lib/modules/components/toolbar/types.js +6 -0
- package/lib/modules/control-bar/components/more-actions/index.js +0 -6
- package/lib/modules/control-bar/components/share-state-nav/index.js +3 -2
- package/lib/modules/control-bar/index.js +2 -1
- package/lib/modules/control-bar/store.d.ts +15 -12
- package/lib/modules/control-bar/store.js +68 -29
- package/lib/modules/control-bar/view.js +33 -67
- package/lib/modules/device-pretest/store.js +4 -2
- package/lib/modules/dialog/components/dialog-container/component/body.js +3 -24
- package/lib/modules/dialog/components/dialog-container/index.d.ts +4 -0
- package/lib/modules/dialog/components/dialog-container/index.js +67 -44
- package/lib/modules/dialog/components/normal-window/index.js +4 -0
- package/lib/modules/dialog/dialogs/control-bar/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/control-bar/index.js +26 -35
- package/lib/modules/dialog/dialogs/participant/components/title.js +1 -1
- package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -0
- package/lib/modules/dialog/dialogs/sub-window/index.js +102 -0
- package/lib/modules/dialog/dialogs/video-window/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/video-window/index.js +31 -25
- package/lib/modules/dialog/dialogs/whiteboard/index.js +0 -1
- package/lib/modules/dialog/hooks/use-popover-watcher.js +1 -2
- package/lib/modules/dialog/hooks/useElectron.d.ts +13 -0
- package/lib/modules/dialog/hooks/useElectron.js +66 -13
- package/lib/modules/dialog/index.d.ts +6 -3
- package/lib/modules/dialog/index.js +5 -3
- package/lib/modules/dialog/level-config.js +1 -1
- package/lib/modules/dialog/store.d.ts +23 -9
- package/lib/modules/dialog/store.js +84 -12
- package/lib/modules/dialog/type.d.ts +8 -0
- package/lib/modules/event-confirm/components/window/index.d.ts +5 -2
- package/lib/modules/event-confirm/components/window/index.js +38 -14
- package/lib/modules/event-confirm/index.css +3 -2
- package/lib/modules/event-confirm/store.d.ts +10 -5
- package/lib/modules/event-confirm/store.js +68 -20
- package/lib/modules/event-confirm/view.js +10 -8
- package/lib/modules/event-sound/index.d.ts +1 -0
- package/lib/modules/event-sound/index.js +11 -24
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +1 -2
- package/lib/modules/interpreter/store.js +11 -13
- package/lib/modules/invite/components/pstn-invite.js +0 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +26 -26
- package/lib/modules/layout/components/who-is-speaking.js +3 -6
- package/lib/modules/layout/index.d.ts +3 -1
- package/lib/modules/layout/index.js +2 -1
- package/lib/modules/layout/store.d.ts +7 -59
- package/lib/modules/layout/store.js +133 -45
- package/lib/modules/layout/type.d.ts +55 -0
- package/lib/modules/participant/components/can-moveable/index.js +0 -1
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +4 -2
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +14 -2
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +1 -1
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +3 -2
- package/lib/modules/participant/components/participants/components/participants/index.js +3 -2
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +1 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +3 -1
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +4 -2
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +4 -2
- package/lib/modules/participant/components/participants/components/render-user/index.js +5 -3
- package/lib/modules/participant/components/participants/index.js +5 -2
- package/lib/modules/participant/components/participants/types.d.ts +3 -0
- package/lib/modules/participant/index.d.ts +2 -0
- package/lib/modules/participant/index.js +2 -1
- package/lib/modules/participant/member-list-data-source.js +3 -5
- package/lib/modules/participant/store.d.ts +5 -1
- package/lib/modules/participant/store.js +51 -44
- package/lib/modules/secondary-window/index.d.ts +50 -0
- package/lib/modules/secondary-window/index.js +113 -0
- package/lib/modules/secondary-window/store.d.ts +76 -0
- package/lib/modules/secondary-window/store.js +407 -0
- package/lib/modules/secondary-window/type.d.ts +110 -0
- package/lib/modules/secondary-window/type.js +35 -0
- package/lib/modules/secondary-window/view.d.ts +6 -0
- package/lib/modules/secondary-window/view.js +257 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +4 -2
- package/lib/modules/setting/config.d.ts +4 -0
- package/lib/modules/setting/config.js +6 -3
- package/lib/modules/setting/general-settings/general-settings.js +9 -0
- package/lib/modules/setting/state/index.js +0 -10
- package/lib/modules/setting/store.d.ts +9 -3
- package/lib/modules/setting/store.js +110 -77
- package/lib/modules/setting/view.js +3 -2
- package/lib/modules/share-screen/components/control-bar/index.d.ts +14 -1
- package/lib/modules/share-screen/components/control-bar/index.js +17 -12
- package/lib/modules/share-screen/components/selection/index.js +16 -23
- package/lib/modules/share-screen/index.d.ts +4 -1
- package/lib/modules/share-screen/index.js +6 -3
- package/lib/modules/share-screen/store.d.ts +18 -19
- package/lib/modules/share-screen/store.js +101 -151
- package/lib/modules/share-screen/types.d.ts +7 -8
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/store.d.ts +5 -2
- package/lib/modules/state-bar/store.js +14 -7
- package/lib/modules/state-bar/view.js +3 -3
- package/lib/modules/video-window/components/members/index.js +10 -15
- package/lib/modules/video-window/store.d.ts +1 -0
- package/lib/modules/video-window/store.js +8 -3
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +3 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +20 -11
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +2 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +2 -2
- package/lib/modules/whiteboard/index.d.ts +20 -17
- package/lib/modules/whiteboard/index.js +167 -132
- package/lib/plugins/module-dev-plugin.js +4 -0
- package/lib/providers/ability-provider.js +2 -0
- package/lib/providers/annotation-provider.js +3 -3
- package/lib/providers/device-privilege-provider.js +13 -12
- package/lib/providers/device-provider.d.ts +40 -31
- package/lib/providers/device-provider.js +657 -713
- package/lib/providers/device-stream-provider.js +4 -4
- package/lib/providers/interpreter-provider.js +7 -9
- package/lib/providers/multi-display-provider.d.ts +90 -0
- package/lib/providers/multi-display-provider.js +593 -0
- package/lib/providers/privilege-provider.d.ts +3 -11
- package/lib/providers/privilege-provider.js +3 -12
- package/lib/providers/renderer-provider.d.ts +3 -3
- package/lib/providers/renderer-provider.js +20 -32
- package/lib/providers/room-provider.js +21 -16
- package/lib/providers/screen-share-provider.d.ts +15 -11
- package/lib/providers/screen-share-provider.js +118 -99
- package/lib/providers/sharing-provider.d.ts +7 -1
- package/lib/providers/sharing-provider.js +39 -3
- package/lib/providers/whiteboard-provider.d.ts +24 -0
- package/lib/providers/whiteboard-provider.js +128 -0
- package/lib/runtime.d.ts +1 -0
- package/lib/scenes/main-scene.d.ts +6 -0
- package/lib/scenes/main-scene.js +44 -2
- package/lib/scenes/waiting-scene.d.ts +0 -2
- package/lib/scenes/waiting-scene.js +0 -6
- package/lib/schema.d.ts +3 -3
- package/lib/schema.js +1 -1
- package/lib/shared-data-source/confirm-data.d.ts +19 -0
- package/lib/shared-data-source/confirm-data.js +119 -15
- package/lib/shared-data-source/member-data.d.ts +2 -2
- package/lib/shared-data-source/screen-share-data.d.ts +35 -28
- package/lib/shared-data-source/screen-share-data.js +19 -8
- package/lib/shared-data-source/setting.js +4 -3
- package/lib/shared-data-source/video-window.js +1 -2
- package/lib/shared-data-source/whiteboard-data.d.ts +70 -0
- package/lib/shared-data-source/whiteboard-data.js +348 -0
- package/lib/translations/enUS.d.ts +1 -0
- package/lib/translations/enUS.js +2 -1
- package/lib/translations/zhCN.d.ts +1 -0
- package/lib/translations/zhCN.js +2 -1
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +77 -24
- package/lib/utilities/constant.d.ts +9 -2
- package/lib/utilities/constant.js +10 -3
- package/lib/utilities/debug.d.ts +4 -0
- package/lib/utilities/debug.js +40 -0
- package/lib/utilities/default-config.d.ts +4 -0
- package/lib/utilities/default-config.js +8 -4
- package/lib/utilities/dialog-utils.d.ts +3 -2
- package/lib/utilities/dialog-utils.js +56 -15
- package/lib/utilities/meeting-detail.js +4 -1
- package/lib/utilities/package-info.d.ts +3 -0
- package/lib/utilities/package-info.js +15 -0
- package/lib/utilities/renderer-event.d.ts +4 -6
- package/lib/utilities/renderer-event.js +23 -43
- package/lib/utilities/renderer.d.ts +1 -1
- package/lib/utilities/renderer.js +44 -10
- package/lib/utilities/shared-storage.d.ts +18 -0
- package/lib/utilities/shared-storage.js +63 -0
- package/lib/utilities/tools.js +2 -1
- package/lib/waiting-room-control-manager.js +6 -6
- package/package.json +6 -7
- package/public/index.html +5 -0
- package/lib/electron/tools.d.ts +0 -5
- package/lib/electron/tools.js +0 -62
|
@@ -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");
|
|
@@ -58,13 +58,13 @@ var _react = require("react");
|
|
|
58
58
|
var _enums = require("fcr-core/lib/room-control/whiteboard-control/enums");
|
|
59
59
|
var _libs = _interopRequireDefault(require("../whiteboard/components/switch-theme/libs"));
|
|
60
60
|
var _tinycolor = _interopRequireDefault(require("tinycolor2"));
|
|
61
|
+
var _type2 = require("fcr-core/lib/type");
|
|
61
62
|
var _decorator = require("agora-foundation/lib/decorator");
|
|
62
|
-
var _imports = require("fcr-core/lib/imports");
|
|
63
63
|
var _utils = require("../whiteboard/utils");
|
|
64
64
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
65
|
-
var
|
|
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,
|
|
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],
|
|
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,
|
|
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),
|
|
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) {
|
|
@@ -97,20 +99,16 @@ var AnnotationReceiverToolbarStore = exports.AnnotationReceiverToolbarStore = /*
|
|
|
97
99
|
if (!_this._whiteboardControl) {
|
|
98
100
|
return;
|
|
99
101
|
}
|
|
100
|
-
if (state ===
|
|
101
|
-
var _this$
|
|
102
|
-
_this._boardMainWindow = _this._whiteboardControl.getMainWindow();
|
|
102
|
+
if (state === _type2.FcrConnectionState.CONNECTED) {
|
|
103
|
+
var _this$boardMainWindow;
|
|
103
104
|
_this._lastStrokeWidth = 0;
|
|
104
|
-
(_this$
|
|
105
|
+
(_this$boardMainWindow = _this.boardMainWindow) === null || _this$boardMainWindow === void 0 || _this$boardMainWindow.addObserver(_this._boardObserver);
|
|
105
106
|
} else {
|
|
106
|
-
var _this$
|
|
107
|
-
(_this$
|
|
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.
|
|
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$
|
|
211
|
-
(_this$
|
|
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$
|
|
217
|
-
(_this$
|
|
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$
|
|
223
|
-
(_this$
|
|
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$
|
|
201
|
+
var _this$boardMainWindow6;
|
|
229
202
|
this.observables.currentTool = tool;
|
|
230
203
|
this.observables.currentShape = undefined;
|
|
231
|
-
(_this$
|
|
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$
|
|
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$
|
|
241
|
-
(_this$
|
|
242
|
-
(_this$
|
|
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$
|
|
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$
|
|
252
|
-
(_this$
|
|
253
|
-
(_this$
|
|
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$
|
|
231
|
+
var _this$boardMainWindow11;
|
|
259
232
|
this.observables.currentColor = color;
|
|
260
|
-
(_this$
|
|
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$
|
|
238
|
+
var _this$boardMainWindow12;
|
|
266
239
|
this.observables.currentStrokeWidth = strokeWidth;
|
|
267
|
-
(_this$
|
|
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$
|
|
332
|
-
this.
|
|
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
|
|
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 (
|
|
427
|
-
while (1) switch (
|
|
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
|
-
|
|
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
|
-
|
|
400
|
+
_context.next = 1;
|
|
443
401
|
return mainWindow.getSnapshotImage();
|
|
444
402
|
case 1:
|
|
445
|
-
imageData =
|
|
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
|
|
420
|
+
return _context.stop();
|
|
463
421
|
}
|
|
464
|
-
},
|
|
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"], [
|
|
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)({});
|
|
@@ -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,
|
|
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
|
|
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
|
|
91
|
-
private
|
|
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
|
|
90
|
+
private _addWindowResizeListener;
|
|
115
91
|
private _removeWindowResizeListenner;
|
|
116
|
-
private
|
|
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>;
|