fcr-ui-scene 3.6.1 → 3.6.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.
- package/lib/creator.d.ts +6 -0
- package/lib/creator.js +125 -24
- package/lib/electron/app.js +5 -4
- package/lib/electron/bootstrap-dev.js +3 -0
- package/lib/electron/bootstrap-sdk.js +4 -0
- package/lib/electron/injections.d.ts +5 -0
- package/lib/electron/injections.js +36 -8
- package/lib/electron/ipc/ipc.d.ts +1 -0
- package/lib/electron/ipc/ipc.js +4 -0
- package/lib/electron/main.js +16 -8
- package/lib/electron/plugins/screenshot.js +4 -2
- package/lib/electron/preload.js +7 -2
- package/lib/electron/window.js +4 -6
- package/lib/fragments/annotation/index.d.ts +11 -0
- package/lib/fragments/annotation/index.js +121 -0
- package/lib/fragments/annotation/libs.d.ts +55 -0
- package/lib/fragments/annotation/libs.js +93 -0
- package/lib/fragments/annotation/store.d.ts +30 -0
- package/lib/fragments/annotation/store.js +565 -0
- package/lib/fragments/annotation/view.d.ts +3 -0
- package/lib/fragments/annotation/view.js +31 -0
- package/lib/fragments/base.d.ts +10 -0
- package/lib/fragments/base.js +44 -0
- package/lib/modules/action-bar/components/screen-share/submenu.js +7 -6
- package/lib/modules/action-bar/index.css +11 -0
- package/lib/modules/action-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/index.js +1 -0
- package/lib/modules/action-bar/store.d.ts +7 -9
- package/lib/modules/action-bar/store.js +49 -90
- package/lib/modules/annotation/board-cursor.css +76 -0
- package/lib/modules/annotation/components/control-bar/index.css +48 -0
- package/lib/modules/annotation/components/control-bar/index.d.ts +3 -0
- package/lib/modules/annotation/components/control-bar/index.js +141 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/color-panel/index.d.ts +3 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/color-panel/index.js +46 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/index.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/color-tool/index.js +52 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +3 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/index.js +61 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +12 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.js +65 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/index.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/index.js +68 -0
- package/lib/modules/annotation/components/toolbar/components/item/item.d.ts +18 -0
- package/lib/modules/annotation/components/toolbar/components/item/item.js +116 -0
- package/lib/modules/annotation/components/toolbar/components/item/style.css +43 -0
- package/lib/modules/annotation/components/toolbar/components/panel/index.d.ts +5 -0
- package/lib/modules/annotation/components/toolbar/components/panel/index.js +22 -0
- package/lib/modules/annotation/components/toolbar/components/panel/style.css +24 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/index.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/index.js +58 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/pen-panel/index.d.ts +3 -0
- package/lib/modules/annotation/components/toolbar/components/pen-tool/pen-panel/index.js +34 -0
- package/lib/modules/annotation/components/toolbar/components/tips/index.d.ts +2 -0
- package/lib/modules/annotation/components/toolbar/components/tips/index.js +25 -0
- package/lib/modules/annotation/components/toolbar/components/tips/style.css +19 -0
- package/lib/modules/annotation/components/toolbar/index.d.ts +0 -0
- package/lib/modules/annotation/components/toolbar/index.js +1 -0
- package/lib/modules/annotation/components/toolbar/store.d.ts +40 -0
- package/lib/modules/annotation/components/toolbar/store.js +279 -0
- package/lib/modules/annotation/components/toolbar/style.css +55 -0
- package/lib/modules/annotation/components/toolbar/view.d.ts +2 -0
- package/lib/modules/annotation/components/toolbar/view.js +120 -0
- package/lib/modules/annotation/index.d.ts +38 -0
- package/lib/modules/annotation/index.js +169 -0
- package/lib/modules/annotation/store.d.ts +93 -0
- package/lib/modules/annotation/store.js +673 -0
- package/lib/modules/annotation/style.css +26 -0
- package/lib/modules/annotation/view.d.ts +3 -0
- package/lib/modules/annotation/view.js +49 -0
- package/lib/modules/chat/view.js +112 -100
- package/lib/modules/components/annotation-menu/index.d.ts +7 -0
- package/lib/modules/components/annotation-menu/index.js +119 -0
- package/lib/modules/components/leave-meeting/components/assign-host.js +26 -23
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +10 -4
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +4 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +10 -6
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +3 -4
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +0 -3
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +6 -32
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +11 -3
- package/lib/modules/components/member-window/components/member-actions/components/user-info.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +7 -10
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +0 -2
- package/lib/modules/components/member-window/components/member-actions/index.js +1 -32
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +38 -1
- package/lib/modules/components/member-window/components/member-actions/store.js +130 -23
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +2 -1
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +6 -1
- package/lib/modules/components/member-window/components/video-player/index.d.ts +1 -0
- package/lib/modules/components/member-window/index.css +37 -0
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +8 -5
- package/lib/modules/components/member-window/types.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +7 -6
- package/lib/modules/control-bar/components/annotation-button/index.d.ts +1 -0
- package/lib/modules/control-bar/components/annotation-button/index.js +59 -0
- package/lib/modules/control-bar/index.d.ts +6 -6
- package/lib/modules/control-bar/index.js +5 -34
- package/lib/modules/control-bar/store.d.ts +27 -13
- package/lib/modules/control-bar/store.js +121 -126
- package/lib/modules/control-bar/view.js +50 -4
- package/lib/modules/dialog/components/annotation-tool/index.d.ts +4 -0
- package/lib/modules/dialog/components/annotation-tool/index.js +53 -0
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/control-bar/index.d.ts +0 -2
- package/lib/modules/dialog/components/control-bar/index.js +1 -3
- package/lib/modules/dialog/components/host-area-container/index.d.ts +12 -0
- package/lib/modules/dialog/components/host-area-container/index.js +214 -0
- package/lib/modules/dialog/components/participant/index.js +1 -1
- package/lib/modules/dialog/components/system-preference/index.js +1 -1
- package/lib/modules/dialog/components/video-window/index.js +1 -0
- package/lib/modules/dialog/hooks/use-popover-watcher.d.ts +14 -0
- package/lib/modules/dialog/hooks/use-popover-watcher.js +112 -0
- package/lib/modules/dialog/hooks/useElectron.d.ts +1 -0
- package/lib/modules/dialog/hooks/useElectron.js +13 -3
- package/lib/modules/dialog/index.d.ts +2 -3
- package/lib/modules/dialog/index.js +3 -26
- package/lib/modules/dialog/store.d.ts +14 -9
- package/lib/modules/dialog/store.js +56 -50
- package/lib/modules/event-confirm/components/window/index.d.ts +7 -0
- package/lib/modules/event-confirm/components/window/index.js +188 -0
- package/lib/modules/event-confirm/index.d.ts +4 -4
- package/lib/modules/event-confirm/index.js +6 -4
- package/lib/modules/event-confirm/store.d.ts +4 -5
- package/lib/modules/event-confirm/store.js +35 -26
- package/lib/modules/event-confirm/view.js +23 -171
- package/lib/modules/event-sound/index.js +1 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +33 -16
- package/lib/modules/layout/index.d.ts +4 -0
- package/lib/modules/layout/index.js +2 -0
- package/lib/modules/layout/store.d.ts +14 -2
- package/lib/modules/layout/store.js +77 -45
- package/lib/modules/layout/type.d.ts +7 -0
- package/lib/modules/participant/index.d.ts +2 -0
- package/lib/modules/participant/index.js +2 -1
- package/lib/modules/participant/store.d.ts +5 -2
- package/lib/modules/participant/store.js +73 -25
- package/lib/modules/setting/audio-settings/audio-settings.js +3 -14
- package/lib/modules/setting/index.d.ts +2 -0
- package/lib/modules/setting/index.js +3 -3
- package/lib/modules/setting/store.d.ts +8 -10
- package/lib/modules/setting/store.js +22 -20
- package/lib/modules/share-screen/components/selection/index.js +18 -42
- package/lib/modules/share-screen/index.d.ts +6 -2
- package/lib/modules/share-screen/index.js +4 -2
- package/lib/modules/share-screen/store.d.ts +41 -46
- package/lib/modules/share-screen/store.js +297 -718
- package/lib/modules/share-screen/view.js +2 -2
- package/lib/modules/state-bar/assets/fcr_grid_big.svg +1 -1
- package/lib/modules/state-bar/assets/fcr_listontop_big.svg +1 -1
- package/lib/modules/state-bar/index.css +8 -6
- package/lib/modules/state-bar/index.d.ts +4 -0
- package/lib/modules/state-bar/index.js +3 -1
- package/lib/modules/state-bar/layout-config.d.ts +1 -0
- package/lib/modules/state-bar/layout-config.js +15 -5
- package/lib/modules/state-bar/store.d.ts +9 -1
- package/lib/modules/state-bar/store.js +17 -2
- package/lib/modules/state-bar/view.js +9 -4
- package/lib/modules/video-window/components/members/index.js +2 -1
- package/lib/modules/waiting-room-layout/store.js +1 -1
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +5 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +10 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/picker.js +16 -5
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +67 -12
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.js +22 -2
- package/lib/modules/whiteboard/components/toolbar/components/history.js +46 -14
- package/lib/modules/whiteboard/components/toolbar/components/item/index.js +3 -2
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +58 -16
- package/lib/modules/whiteboard/components/toolbar/components/screen-capture-picker.js +15 -4
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +45 -2
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +14 -0
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +235 -7
- package/lib/modules/whiteboard/components/toolbar/index.d.ts +1 -1
- package/lib/modules/whiteboard/components/toolbar/index.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +13 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +74 -24
- package/lib/modules/whiteboard/components/toolbar/{ style.css → style.css} +1 -0
- package/lib/modules/whiteboard/index.d.ts +2 -0
- package/lib/modules/whiteboard/index.js +22 -21
- package/lib/modules/whiteboard/style.css +0 -4
- package/lib/modules/whiteboard/view.js +8 -2
- package/lib/plugins/browser-runtime-plugin.js +10 -1
- package/lib/providers/annotation-provider.d.ts +128 -0
- package/lib/providers/annotation-provider.js +421 -0
- package/lib/providers/device-provider.d.ts +3 -3
- package/lib/providers/device-provider.js +8 -6
- package/lib/providers/event-provider.d.ts +3 -3
- package/lib/providers/interpreter-provider.d.ts +1 -0
- package/lib/providers/interpreter-provider.js +182 -154
- package/lib/providers/privilege-provider.d.ts +35 -6
- package/lib/providers/privilege-provider.js +105 -49
- package/lib/providers/renderer-provider.js +3 -7
- package/lib/providers/room-provider.d.ts +13 -1
- package/lib/providers/room-provider.js +21 -7
- package/lib/providers/screen-share-provider.d.ts +131 -34
- package/lib/providers/screen-share-provider.js +554 -173
- package/lib/providers/sharing-provider.d.ts +37 -0
- package/lib/{shared-data-source/screen-share-data-source.js → providers/sharing-provider.js} +102 -39
- package/lib/providers/user-setting-storage-provider.d.ts +20 -0
- package/lib/providers/user-setting-storage-provider.js +74 -0
- package/lib/runtime.d.ts +6 -1
- package/lib/scenes/main-scene.d.ts +7 -2
- package/lib/scenes/main-scene.js +55 -27
- package/lib/scenes/waiting-scene.d.ts +6 -0
- package/lib/scenes/waiting-scene.js +15 -5
- package/lib/shared-data-source/config.d.ts +1 -5
- package/lib/shared-data-source/config.js +11 -81
- package/lib/shared-data-source/member-data.d.ts +21 -5
- package/lib/shared-data-source/member-data.js +69 -17
- package/lib/shared-data-source/screen-share-data.d.ts +274 -0
- package/lib/shared-data-source/screen-share-data.js +390 -0
- package/lib/shared-data-source/security-data.d.ts +4 -1
- package/lib/shared-data-source/security-data.js +5 -2
- package/lib/shared-data-source/setting.d.ts +13 -13
- package/lib/shared-data-source/setting.js +16 -10
- package/lib/shared-data-source/video-window.d.ts +2 -1
- package/lib/shared-data-source/video-window.js +56 -36
- package/lib/translations/enUS.d.ts +8 -0
- package/lib/translations/enUS.js +9 -1
- package/lib/translations/zhCN.d.ts +8 -0
- package/lib/translations/zhCN.js +11 -3
- package/lib/type.d.ts +55 -1
- package/lib/ui-manager.d.ts +3 -2
- package/lib/ui-manager.js +6 -4
- package/lib/ui-scene.js +70 -50
- package/lib/utilities/constant.d.ts +10 -2
- package/lib/utilities/constant.js +8 -0
- package/lib/utilities/logger.d.ts +4 -0
- package/lib/utilities/logger.js +8 -1
- package/lib/utilities/renderer-event.d.ts +3 -0
- package/lib/utilities/renderer-event.js +14 -1
- package/lib/utilities/screen.js +2 -1
- package/lib/utilities/setting-config-storage.d.ts +5 -6
- package/lib/utilities/setting-config-storage.js +33 -39
- package/lib/utilities/tools.d.ts +19 -1
- package/lib/utilities/tools.js +51 -4
- package/package.json +9 -7
- package/public/assets/cursors/fcr_whiteboard_input.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_pen.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_-straightline.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_arrow.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_circle.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_rectangle.ico +0 -0
- package/public/assets/cursors/fcr_whiteboard_shape_triangle.ico +0 -0
- package/public/assets/fcr_chat_reddot.svg +3 -3
- package/public/assets/fcr_grid_big.svg +1 -1
- package/public/assets/fcr_leave2.svg +14 -14
- package/public/assets/fcr_listontop_big.svg +1 -1
- package/public/assets/step-gradient.svg +1 -1
- package/public/fragment.html +10 -0
- package/public/index.html +3 -1
- package/lib/shared-data-source/screen-share-data-source.d.ts +0 -37
|
@@ -179,7 +179,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
179
179
|
onBackgroundColorUpdated: _this._setBackground,
|
|
180
180
|
onConnectionStateUpdated: function () {
|
|
181
181
|
var _onConnectionStateUpdated = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(state) {
|
|
182
|
-
var _this$_whiteboardCont, _this$_whiteboardCont2, mainWindow,
|
|
182
|
+
var _this$_whiteboardCont, _this$_whiteboardCont2, mainWindow, isActive, ownerUserId, _this$_userControl, ownerUser;
|
|
183
183
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
184
184
|
while (1) switch (_context.prev = _context.next) {
|
|
185
185
|
case 0:
|
|
@@ -198,7 +198,8 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
198
198
|
mainWindow = (_this$_whiteboardCont2 = _this._whiteboardControl) === null || _this$_whiteboardCont2 === void 0 ? void 0 : _this$_whiteboardCont2.getMainWindow();
|
|
199
199
|
_this.logger.info('Fcr board join success');
|
|
200
200
|
if (_this._whiteboardControl) {
|
|
201
|
-
|
|
201
|
+
isActive = _this._whiteboardControl.getActivity();
|
|
202
|
+
ownerUserId = _this._whiteboardControl.getOwnerId();
|
|
202
203
|
if (isActive) {
|
|
203
204
|
ownerUser = (_this$_userControl = _this._userControl) === null || _this$_userControl === void 0 ? void 0 : _this$_userControl.getUser(ownerUserId);
|
|
204
205
|
_this._controlbarStore.ownerUser = ownerUser;
|
|
@@ -312,8 +313,8 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
312
313
|
this._uiEventStore = this.eventProvider;
|
|
313
314
|
this._roomControl = (_this$currentRoomCont = this.currentRoomControlProvider) === null || _this$currentRoomCont === void 0 ? void 0 : _this$currentRoomCont.currentRoomControl;
|
|
314
315
|
this._securityStore = this.privilegeProvider;
|
|
315
|
-
this._whiteboardControl = this._roomControl.getBoardControl();
|
|
316
|
-
this._toolbarStore = new _store.ToolbarStore(this._whiteboardControl, this._roomControl);
|
|
316
|
+
this._whiteboardControl = this._roomControl.getSharingControl().getBoardControl();
|
|
317
|
+
this._toolbarStore = new _store.ToolbarStore(this._whiteboardControl, this._roomControl, this.annotationProvider, this.eventProvider);
|
|
317
318
|
var streamControl = this._roomControl.getStreamControl();
|
|
318
319
|
var userControl = this._roomControl.getUserControl();
|
|
319
320
|
this._userControl = userControl;
|
|
@@ -321,7 +322,8 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
321
322
|
uiEventStore: this.eventProvider,
|
|
322
323
|
streamControl: streamControl,
|
|
323
324
|
userControl: userControl,
|
|
324
|
-
securityStore: this.privilegeProvider
|
|
325
|
+
securityStore: this.privilegeProvider,
|
|
326
|
+
annotationProvider: this.annotationProvider
|
|
325
327
|
});
|
|
326
328
|
this._whiteboardControl.addObserver(this._boardObserver);
|
|
327
329
|
streamControl.addObserver({
|
|
@@ -366,9 +368,8 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
366
368
|
this._localUser = this._userControl.getLocalUser();
|
|
367
369
|
this._isHost = [_type2.FcrUserRole.HOST, _type2.FcrUserRole.COHOST].includes(this._localUser.userRole);
|
|
368
370
|
window.addEventListener('resize', this._resetCanvasPosition);
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
isActive = _this$_whiteboardCont4.isActive;
|
|
371
|
+
var isActive = this._whiteboardControl.getActivity();
|
|
372
|
+
var ownerUserId = this._whiteboardControl.getOwnerId();
|
|
372
373
|
this._isActive = isActive;
|
|
373
374
|
if (isActive) {
|
|
374
375
|
this._checkBoard();
|
|
@@ -409,16 +410,16 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
409
410
|
}, {
|
|
410
411
|
key: "onEvent",
|
|
411
412
|
value: function onEvent(event, payload) {
|
|
412
|
-
var _this$
|
|
413
|
+
var _this$_whiteboardCont4;
|
|
413
414
|
switch (event) {
|
|
414
415
|
case _constant.FcrUIAction.OPEN_WHITEBOARD:
|
|
415
416
|
if (!this._isActive) {
|
|
416
|
-
var _this$
|
|
417
|
-
(_this$
|
|
417
|
+
var _this$_whiteboardCont3;
|
|
418
|
+
(_this$_whiteboardCont3 = this._whiteboardControl) === null || _this$_whiteboardCont3 === void 0 || _this$_whiteboardCont3.active();
|
|
418
419
|
}
|
|
419
420
|
break;
|
|
420
421
|
case _constant.FcrUIAction.CLOSE_WHITEBOARD:
|
|
421
|
-
(_this$
|
|
422
|
+
(_this$_whiteboardCont4 = this._whiteboardControl) === null || _this$_whiteboardCont4 === void 0 || _this$_whiteboardCont4.inactive();
|
|
422
423
|
break;
|
|
423
424
|
case _constant.FcrUIAction.WHITEBOARD_CHANGED:
|
|
424
425
|
this._setCanvasBound(payload.action);
|
|
@@ -498,18 +499,17 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
498
499
|
this._addDisposers();
|
|
499
500
|
this._repositionToolbar();
|
|
500
501
|
if (this._boardMainWindow) {
|
|
501
|
-
var _this$
|
|
502
|
-
this._setBackground(((_this$
|
|
502
|
+
var _this$_whiteboardCont5, _this$_whiteboardCont6;
|
|
503
|
+
this._setBackground(((_this$_whiteboardCont5 = this._whiteboardControl) === null || _this$_whiteboardCont5 === void 0 ? void 0 : _this$_whiteboardCont5.getBackgroundColor()) || this._boardBackground);
|
|
503
504
|
// this._toolbarStore!.observables.layoutReady = [
|
|
504
505
|
// LonelyWindowState.CLOSE,
|
|
505
506
|
// LonelyWindowState.DEFAULT,
|
|
506
507
|
// ].includes(this._lonelyWindowState);
|
|
507
508
|
|
|
508
|
-
var
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
var _this$_userControl2, _this$_ownerUser3, _this$_localUser3, _this$_boardStore2, _this$_boardStore3, _this$_uiEventStore3;
|
|
509
|
+
var isActive = (_this$_whiteboardCont6 = this._whiteboardControl) === null || _this$_whiteboardCont6 === void 0 ? void 0 : _this$_whiteboardCont6.getActivity();
|
|
510
|
+
if (isActive && this._whiteboardControl) {
|
|
511
|
+
var _this$_userControl2, _this$_ownerUser3, _this$_localUser3, _this$_boardStore2, _this$_boardStore3, _this$_uiEventStore3, _this$_toolbarStore;
|
|
512
|
+
var ownerUserId = this._whiteboardControl.getOwnerId();
|
|
513
513
|
this._ownerUser = (_this$_userControl2 = this._userControl) === null || _this$_userControl2 === void 0 ? void 0 : _this$_userControl2.getUser(ownerUserId);
|
|
514
514
|
this._isMyBoard = ((_this$_ownerUser3 = this._ownerUser) === null || _this$_ownerUser3 === void 0 ? void 0 : _this$_ownerUser3.userId) === ((_this$_localUser3 = this._localUser) === null || _this$_localUser3 === void 0 ? void 0 : _this$_localUser3.userId);
|
|
515
515
|
(_this$_boardStore2 = this._boardStore) === null || _this$_boardStore2 === void 0 || _this$_boardStore2.setPrivilege(this._isMyBoard || this._isHost);
|
|
@@ -518,6 +518,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
518
518
|
action: _type.WhiteboardBaseEvents.SET_OWNER_USER_ID,
|
|
519
519
|
payload: ownerUserId
|
|
520
520
|
});
|
|
521
|
+
(_this$_toolbarStore = this._toolbarStore) === null || _this$_toolbarStore === void 0 || _this$_toolbarStore.resetToolbarVars();
|
|
521
522
|
} else {
|
|
522
523
|
this.logger.warn('whiteboard mount, getBoardActiveInfo activeInfo isActive is false , ownerUserId is null');
|
|
523
524
|
}
|
|
@@ -736,10 +737,10 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
736
737
|
}, {
|
|
737
738
|
key: "_open",
|
|
738
739
|
value: function _open() {
|
|
739
|
-
var _this$
|
|
740
|
+
var _this$_whiteboardCont7;
|
|
740
741
|
this._joined = true;
|
|
741
742
|
this._initialized = true;
|
|
742
|
-
(_this$
|
|
743
|
+
(_this$_whiteboardCont7 = this._whiteboardControl) === null || _this$_whiteboardCont7 === void 0 || _this$_whiteboardCont7.open();
|
|
743
744
|
}
|
|
744
745
|
}, {
|
|
745
746
|
key: "_close",
|
|
@@ -17,12 +17,16 @@ var _boardContext = _interopRequireDefault(require("../../utilities/board-contex
|
|
|
17
17
|
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
18
18
|
var _fcrCore = require("fcr-core");
|
|
19
19
|
var _store = require("./components/toolbar/store");
|
|
20
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
|
+
var _enums = require("fcr-core/lib/room-control/whiteboard-control/enums");
|
|
20
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
23
|
var Whiteboard = exports.Whiteboard = (0, _mobxReact.observer)(function () {
|
|
22
24
|
var _useContext = (0, _react.useContext)(_boardContext["default"]),
|
|
23
25
|
showToolbar = _useContext.showToolbar;
|
|
24
26
|
var _useContext2 = (0, _react.useContext)(_store.ToolbarContext),
|
|
25
|
-
|
|
27
|
+
_useContext2$observab = _useContext2.observables,
|
|
28
|
+
progress = _useContext2$observab.progress,
|
|
29
|
+
currentTool = _useContext2$observab.currentTool;
|
|
26
30
|
var transI18n = (0, _i18n.useI18n)();
|
|
27
31
|
var _useContext3 = (0, _react.useContext)(_context.BoardUIContext),
|
|
28
32
|
_useContext3$observab = _useContext3.observables,
|
|
@@ -34,9 +38,11 @@ var Whiteboard = exports.Whiteboard = (0, _mobxReact.observer)(function () {
|
|
|
34
38
|
handleClose = _useContext3.handleClose,
|
|
35
39
|
handleOpen = _useContext3.handleOpen;
|
|
36
40
|
var loading = connectionState === _fcrCore.FcrConnectionState.CONNECTING || connectionState === _fcrCore.FcrConnectionState.RECONNECTING;
|
|
41
|
+
var cursorClassname = "board-widget-cursor-".concat([_enums.FcrBoardToolType[currentTool || _enums.FcrBoardToolType.NONE]]);
|
|
42
|
+
var boardWidgetAppCls = (0, _classnames["default"])('board-widget-app', cursorClassname.toLowerCase());
|
|
37
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
38
44
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
39
|
-
className:
|
|
45
|
+
className: boardWidgetAppCls,
|
|
40
46
|
ref: handleBoardDomLoad
|
|
41
47
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
42
48
|
className: "window-manager-collector",
|
|
@@ -81,6 +81,12 @@ if (!window.runtime) {
|
|
|
81
81
|
return {};
|
|
82
82
|
},
|
|
83
83
|
setUserSettingData: function setUserSettingData() {},
|
|
84
|
+
getActiveWindow: function getActiveWindow() {
|
|
85
|
+
return undefined;
|
|
86
|
+
},
|
|
87
|
+
getWindows: function getWindows() {
|
|
88
|
+
return [];
|
|
89
|
+
},
|
|
84
90
|
initSDK: function initSDK() {},
|
|
85
91
|
getIsSDKReady: function getIsSDKReady() {
|
|
86
92
|
return Promise.resolve(false);
|
|
@@ -96,6 +102,9 @@ if (!window.runtime) {
|
|
|
96
102
|
launchSuccess: function launchSuccess(roomId) {},
|
|
97
103
|
launchFailure: function launchFailure(roomId, errorCode) {},
|
|
98
104
|
onSetParameters: function onSetParameters(parameters) {},
|
|
99
|
-
setParameters: function setParameters(parameters) {}
|
|
105
|
+
setParameters: function setParameters(parameters) {},
|
|
106
|
+
getIsMeetingLaunched: function getIsMeetingLaunched() {
|
|
107
|
+
return Promise.resolve(false);
|
|
108
|
+
}
|
|
100
109
|
};
|
|
101
110
|
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { FcrAnnotationControl } from 'fcr-core/lib/room-control/whiteboard-control-v2/annotation-control/type';
|
|
2
|
+
import { FcrUIDialogProvider } from './dialog-provider';
|
|
3
|
+
import { CurrentShareScreenTypes } from '../modules/share-screen/types';
|
|
4
|
+
import { FcrUISharingProvider } from './sharing-provider';
|
|
5
|
+
import { FcrUIMemberSharedDataSource } from '../shared-data-source/member-data';
|
|
6
|
+
import { FcrBoardMainWindow } from 'fcr-core/lib/room-control/whiteboard-control/types';
|
|
7
|
+
import { FcrUIVideoWindowDataSource } from '../shared-data-source/video-window';
|
|
8
|
+
import { FcrUIVideoWindowData } from '../type';
|
|
9
|
+
import { FcrUIScreenShareProvider } from './screen-share-provider';
|
|
10
|
+
import { FcrUIDeviceProvider } from './device-provider';
|
|
11
|
+
export interface FcrUIAnnotationProvider {
|
|
12
|
+
/**
|
|
13
|
+
* 接收端属性,用于获取当前标注窗口的缩放比例
|
|
14
|
+
*/
|
|
15
|
+
get scalcValue(): number;
|
|
16
|
+
/**
|
|
17
|
+
* 接收端方法,用于获取标注功能的 Control 对象
|
|
18
|
+
*/
|
|
19
|
+
get annotationControl(): FcrAnnotationControl | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* 接收端方法,用于获取标注窗口的 MainWindow 对象
|
|
22
|
+
*/
|
|
23
|
+
get boardMainWindow(): FcrBoardMainWindow | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* 接收端属性,用于获取当前共享窗口数据
|
|
26
|
+
*/
|
|
27
|
+
get screenShareWindowData(): FcrUIVideoWindowData | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* 接收端属性,用于获取当前标注启动状态
|
|
30
|
+
*/
|
|
31
|
+
get annotationHasStart(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 接收端属性,用于获取当前标注状态
|
|
34
|
+
*/
|
|
35
|
+
get annotationState(): FcrAnnotationState;
|
|
36
|
+
/**
|
|
37
|
+
* 发起端状态,用于获取当前是否正在标注
|
|
38
|
+
*/
|
|
39
|
+
get annotating(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 发起端数据,当前共享屏幕信息
|
|
42
|
+
*/
|
|
43
|
+
get currentShareInfo(): CurrentShareScreenTypes;
|
|
44
|
+
/**
|
|
45
|
+
* 发起端方法,用于打开关闭标注,由用户触发,此操切换标注工具栏打开状态合窗口的鼠标穿透模式
|
|
46
|
+
*/
|
|
47
|
+
toggleAnnotation(): void;
|
|
48
|
+
/**
|
|
49
|
+
* 发起端方法,启动标注窗口,在主窗口启动时调用
|
|
50
|
+
*/
|
|
51
|
+
openAnnotationWindow(): void;
|
|
52
|
+
/**
|
|
53
|
+
* 发起端方法,用于隐藏标注窗口,不是关闭
|
|
54
|
+
*/
|
|
55
|
+
hideAnnotationWindow(): void;
|
|
56
|
+
/**
|
|
57
|
+
* 发起端方法,用于设置当前共享屏幕信息
|
|
58
|
+
*/
|
|
59
|
+
setCurrentShareInfo(info: CurrentShareScreenTypes): void;
|
|
60
|
+
/**
|
|
61
|
+
* 发起端方法,用通知标注窗口更新当前共享屏幕信息
|
|
62
|
+
*/
|
|
63
|
+
setBoundsToAnnotationWindow(info?: CurrentShareScreenTypes): void;
|
|
64
|
+
/**
|
|
65
|
+
* 接收端方法,用于放大标注窗口
|
|
66
|
+
*/
|
|
67
|
+
zoomIn(): void;
|
|
68
|
+
/**
|
|
69
|
+
* 接收端方法,用于缩小标注窗口
|
|
70
|
+
*/
|
|
71
|
+
zoomOut(): void;
|
|
72
|
+
/**
|
|
73
|
+
* 接收端方法,用于设置标注窗口的缩放比例
|
|
74
|
+
*/
|
|
75
|
+
fullContainer(scalc: number): void;
|
|
76
|
+
/**
|
|
77
|
+
* 接收端方法,用于设置标注窗口的缩放比例
|
|
78
|
+
*/
|
|
79
|
+
setOriginScalc(): void;
|
|
80
|
+
}
|
|
81
|
+
export declare enum FcrAnnotationState {
|
|
82
|
+
START = "start",
|
|
83
|
+
END = "end"
|
|
84
|
+
}
|
|
85
|
+
export declare class FcrUIAnnotationProviderImpl implements FcrUIAnnotationProvider {
|
|
86
|
+
private _dialogProvider;
|
|
87
|
+
private _sharingProvider;
|
|
88
|
+
private _memberDataSource;
|
|
89
|
+
private _videoWindowDataSource;
|
|
90
|
+
private _screenShareProvider;
|
|
91
|
+
private _deviceProvider;
|
|
92
|
+
private _annotationDialogId;
|
|
93
|
+
private _annotationToolDialogId;
|
|
94
|
+
private _disposers;
|
|
95
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
96
|
+
private _annotationControl;
|
|
97
|
+
private _boardMainWindow;
|
|
98
|
+
private _shareScreenOwnerId;
|
|
99
|
+
private _maxScalcValue;
|
|
100
|
+
private _minScalcValue;
|
|
101
|
+
private _annotationObserver;
|
|
102
|
+
private _currentScreenShareOwnerCanStartAnnotation;
|
|
103
|
+
private _observer;
|
|
104
|
+
private get _localUser();
|
|
105
|
+
accessor scalcValue: number;
|
|
106
|
+
accessor annotationState: FcrAnnotationState;
|
|
107
|
+
accessor annotating: boolean;
|
|
108
|
+
accessor currentShareInfo: CurrentShareScreenTypes;
|
|
109
|
+
get screenShareWindowData(): import("../shared-data-source/video-window").FcrUIVideoWindowDataImpl | undefined;
|
|
110
|
+
get boardMainWindow(): FcrBoardMainWindow | undefined;
|
|
111
|
+
get annotationControl(): FcrAnnotationControl | undefined;
|
|
112
|
+
get annotationHasStart(): boolean;
|
|
113
|
+
constructor(_dialogProvider: FcrUIDialogProvider, _sharingProvider: FcrUISharingProvider, _memberDataSource: FcrUIMemberSharedDataSource, _videoWindowDataSource: FcrUIVideoWindowDataSource, _screenShareProvider: FcrUIScreenShareProvider, _deviceProvider: FcrUIDeviceProvider);
|
|
114
|
+
zoomIn(): void;
|
|
115
|
+
zoomOut(): void;
|
|
116
|
+
fullContainer(scalc: number): void;
|
|
117
|
+
setOriginScalc(): void;
|
|
118
|
+
toggleAnnotation(): Promise<void>;
|
|
119
|
+
getAnnotationControl(): FcrAnnotationControl | undefined;
|
|
120
|
+
openAnnotationWindow(): void;
|
|
121
|
+
hideAnnotationWindow(): void;
|
|
122
|
+
setCurrentShareInfo(info: CurrentShareScreenTypes): void;
|
|
123
|
+
setBoundsToAnnotationWindow(info?: CurrentShareScreenTypes): Promise<void>;
|
|
124
|
+
release(): void;
|
|
125
|
+
private _openToolbar;
|
|
126
|
+
private _closeToolbar;
|
|
127
|
+
private _initAnnotationTransaction;
|
|
128
|
+
}
|