fcr-ui-scene 3.6.2 → 3.6.4
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/base.js +0 -3
- package/lib/creator.d.ts +1 -0
- package/lib/creator.js +64 -50
- package/lib/electron/app.js +33 -14
- package/lib/electron/bootstrap-dev.js +5 -3
- package/lib/electron/bootstrap-sdk.js +4 -10
- package/lib/electron/exit-codes.d.ts +14 -0
- package/lib/electron/exit-codes.js +22 -0
- package/lib/electron/injections.d.ts +3 -2
- package/lib/electron/injections.js +122 -124
- package/lib/electron/ipc/ipc.js +0 -1
- package/lib/electron/main.js +57 -12
- package/lib/electron/tools.js +0 -4
- package/lib/electron/window.js +1 -7
- package/lib/fragments/annotation/index.d.ts +1 -0
- package/lib/fragments/annotation/index.js +54 -40
- package/lib/fragments/annotation/store.d.ts +7 -2
- package/lib/fragments/annotation/store.js +181 -102
- package/lib/fragments/annotation/view.d.ts +1 -0
- package/lib/fragments/annotation/view.js +10 -2
- package/lib/modules/action-bar/components/apps/app-item/index.js +0 -2
- package/lib/modules/action-bar/components/apps/app-list.js +2 -5
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -3
- package/lib/modules/action-bar/components/apps/useWidgetList.js +2 -1
- package/lib/modules/action-bar/components/collapse/index.js +0 -4
- package/lib/modules/action-bar/components/item/index.js +0 -2
- package/lib/modules/action-bar/components/leave/index.js +0 -2
- package/lib/modules/action-bar/components/more/poppover-content.js +0 -4
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +2 -1
- package/lib/modules/action-bar/components/notification-bar/index.js +0 -2
- package/lib/modules/action-bar/components/screen-share/index.js +0 -1
- package/lib/modules/action-bar/components/screen-share/submenu.js +0 -3
- package/lib/modules/action-bar/components/trigger-output-language/index.js +11 -14
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +8 -11
- package/lib/modules/action-bar/index.css +4 -0
- package/lib/modules/action-bar/index.js +1 -2
- package/lib/modules/action-bar/store.d.ts +1 -7
- package/lib/modules/action-bar/store.js +67 -118
- package/lib/modules/annotation/board-cursor.css +76 -0
- package/lib/modules/annotation/components/control-bar/index.js +43 -2
- package/lib/modules/annotation/components/toolbar/components/color-tool/color-panel/index.js +2 -1
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/index.js +5 -2
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/libs.js +11 -5
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/index.js +0 -2
- package/lib/modules/annotation/components/toolbar/components/item/item.d.ts +1 -0
- package/lib/modules/annotation/components/toolbar/components/item/item.js +3 -2
- package/lib/modules/annotation/components/toolbar/components/pen-tool/pen-panel/index.js +1 -0
- package/lib/modules/annotation/components/toolbar/store.js +0 -1
- package/lib/modules/annotation/index.d.ts +4 -0
- package/lib/modules/annotation/index.js +3 -1
- package/lib/modules/annotation/store.d.ts +15 -5
- package/lib/modules/annotation/store.js +222 -205
- package/lib/modules/annotation/style.css +3 -3
- package/lib/modules/annotation/view.d.ts +1 -0
- package/lib/modules/annotation/view.js +26 -9
- package/lib/modules/audio-stream/index.js +0 -4
- package/lib/modules/chat/chat-room-store.js +6 -10
- package/lib/modules/chat/components/chat-bar/index.js +0 -2
- package/lib/modules/chat/components/chat-select/index.js +0 -1
- package/lib/modules/chat/components/chat-select/select-item/index.js +2 -5
- package/lib/modules/chat/components/message-list/index.js +1 -3
- package/lib/modules/chat/components/message-list/message-item/index.js +11 -13
- package/lib/modules/chat/index.js +13 -14
- package/lib/modules/chat/store.js +0 -1
- package/lib/modules/chat/view.js +11 -15
- package/lib/modules/components/annotation-menu/index.js +0 -3
- package/lib/modules/components/device-control/components/audio-menu/index.js +2 -1
- package/lib/modules/components/device-control/components/video-menu/index.js +2 -1
- package/lib/modules/components/device-control/store.js +0 -1
- package/lib/modules/components/leave-meeting/components/assign-host.js +4 -5
- package/lib/modules/components/leave-meeting/store.js +11 -12
- 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 +2 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +4 -4
- 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/layout/index.js +1 -2
- 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 +7 -34
- 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 +8 -13
- 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 -33
- package/lib/modules/components/member-window/components/member-actions/provider.js +1 -2
- 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 +120 -13
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +3 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +16 -3
- package/lib/modules/components/member-window/components/video-player/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/video-player/index.js +3 -3
- package/lib/modules/components/member-window/index.css +37 -0
- package/lib/modules/components/member-window/index.js +1 -0
- package/lib/modules/components/security-menu/index.js +1 -4
- package/lib/modules/components/tab-frame/index.js +0 -4
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -1
- package/lib/modules/connection-gateway/components/phone/index.js +5 -4
- package/lib/modules/connection-gateway/index.js +1 -2
- package/lib/modules/connection-gateway/store.js +23 -26
- package/lib/modules/control-bar/components/more-actions/index.js +0 -3
- package/lib/modules/control-bar/index.d.ts +0 -4
- package/lib/modules/control-bar/index.js +1 -34
- package/lib/modules/control-bar/store.d.ts +5 -6
- package/lib/modules/control-bar/store.js +70 -104
- package/lib/modules/control-bar/view.js +53 -13
- package/lib/modules/device-pretest/settings/beauty.js +1 -2
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -1
- package/lib/modules/device-pretest/store.js +2 -4
- package/lib/modules/dialog/components/control-bar/index.d.ts +0 -2
- package/lib/modules/dialog/components/control-bar/index.js +4 -6
- package/lib/modules/dialog/components/dialog-container/component/body.js +0 -2
- package/lib/modules/dialog/components/dialog-container/index.js +1 -2
- package/lib/modules/dialog/components/host-area-container/index.js +0 -3
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +0 -2
- package/lib/modules/dialog/components/pre-setting-container/index.js +1 -2
- package/lib/modules/dialog/components/system-preference/index.js +2 -5
- package/lib/modules/dialog/components/video-window/index.js +0 -2
- package/lib/modules/dialog/hooks/use-popover-watcher.js +0 -1
- package/lib/modules/dialog/hooks/useElectron.js +3 -4
- package/lib/modules/dialog/index.d.ts +0 -3
- package/lib/modules/dialog/index.js +2 -28
- package/lib/modules/dialog/store.d.ts +6 -8
- package/lib/modules/dialog/store.js +22 -60
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/components/window/index.js +0 -2
- package/lib/modules/event-confirm/index.js +1 -2
- package/lib/modules/event-confirm/store.js +4 -7
- package/lib/modules/event-confirm/view.js +2 -1
- package/lib/modules/event-sound/index.js +1 -2
- package/lib/modules/event-sound/sound-effect-player.js +2 -2
- package/lib/modules/event-toast/index.js +1 -2
- package/lib/modules/event-toast/store.js +0 -2
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/interpreter/index.js +1 -2
- package/lib/modules/interpreter/interpreter-list/index.js +3 -4
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +2 -5
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +0 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +0 -4
- package/lib/modules/interpreter/store.js +5 -10
- package/lib/modules/interpreter/utils.js +15 -14
- package/lib/modules/invite/components/pstn-invite.js +22 -23
- package/lib/modules/invite/components/voip-invite.js +7 -7
- package/lib/modules/invite/enums.js +1 -0
- package/lib/modules/invite/index.js +1 -2
- package/lib/modules/invite/store.js +46 -45
- package/lib/modules/layout/components/CommonVideoRenderer.js +7 -3
- package/lib/modules/layout/components/Gallery.js +5 -3
- package/lib/modules/layout/components/index.js +0 -1
- package/lib/modules/layout/index.js +1 -2
- package/lib/modules/layout/store.d.ts +3 -0
- package/lib/modules/layout/store.js +38 -14
- package/lib/modules/layout/type.d.ts +7 -0
- package/lib/modules/layout/type.js +9 -0
- package/lib/modules/live-streaming/index.dev.js +6 -6
- package/lib/modules/live-streaming/index.js +1 -2
- package/lib/modules/live-streaming/store.js +19 -19
- package/lib/modules/notification/index.js +1 -2
- package/lib/modules/notification/interpreter-status/index.js +2 -1
- package/lib/modules/notification/view.js +1 -2
- package/lib/modules/offscreen-pulling/index.js +0 -1
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +1 -4
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +1 -4
- package/lib/modules/participant/components/participants/components/participants/index.js +0 -2
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +0 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +0 -2
- package/lib/modules/participant/index.js +1 -4
- package/lib/modules/participant/member-list-data-source.js +0 -3
- package/lib/modules/participant/store.js +140 -114
- package/lib/modules/pc-audio-connect/index.js +1 -2
- package/lib/modules/pc-audio-connect/store.js +9 -10
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +2 -1
- package/lib/modules/phone-audio-connect/index.js +1 -2
- package/lib/modules/phone-audio-connect/store.js +0 -3
- package/lib/modules/phone-audio-connect/view.js +5 -4
- package/lib/modules/setting/audio-settings/audio-settings.js +1 -4
- package/lib/modules/setting/general-settings/general-settings.js +1 -2
- package/lib/modules/setting/index.d.ts +2 -0
- package/lib/modules/setting/index.js +4 -5
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -2
- package/lib/modules/setting/state/index.js +0 -4
- package/lib/modules/setting/storage-settings/storage-settings.js +4 -4
- package/lib/modules/setting/store.d.ts +8 -10
- package/lib/modules/setting/store.js +33 -35
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/video-settings/video-settings.js +1 -2
- package/lib/modules/setting/view.js +1 -2
- package/lib/modules/share-screen/components/selection/index.js +16 -9
- package/lib/modules/share-screen/index.d.ts +2 -0
- package/lib/modules/share-screen/index.js +3 -3
- package/lib/modules/share-screen/store.d.ts +12 -2
- package/lib/modules/share-screen/store.js +149 -136
- package/lib/modules/state-bar/index.css +8 -6
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +3 -3
- package/lib/modules/state-bar/layout-config.d.ts +1 -0
- package/lib/modules/state-bar/layout-config.js +17 -6
- package/lib/modules/state-bar/live-streaming-state.js +0 -3
- package/lib/modules/state-bar/store.d.ts +5 -1
- package/lib/modules/state-bar/store.js +8 -2
- package/lib/modules/state-bar/view.js +9 -5
- package/lib/modules/video-window/components/members/index.js +2 -1
- package/lib/modules/video-window/components/topControl/index.js +0 -3
- package/lib/modules/video-window/index.js +1 -2
- package/lib/modules/video-window/store.js +0 -4
- package/lib/modules/waiting-room-layout/index.js +1 -2
- package/lib/modules/whiteboard/components/control-bar/store.js +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +0 -2
- package/lib/modules/whiteboard/components/switch-theme/item.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.js +1 -4
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +2 -3
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +1 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +2 -4
- package/lib/modules/whiteboard/components/toolbar/index.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +7 -3
- package/lib/modules/whiteboard/components/toolbar/store.js +64 -37
- package/lib/modules/whiteboard/index.js +5 -8
- package/lib/modules/whiteboard/style.css +12 -4
- package/lib/modules/whiteboard/view.js +10 -2
- package/lib/modules/widget/index.js +1 -2
- package/lib/modules/widget/web-widget.js +1 -1
- package/lib/plugins/browser-runtime-plugin.js +1 -1
- package/lib/plugins/module-dev-plugin.js +13 -13
- package/lib/providers/ability-provider.d.ts +12 -1
- package/lib/providers/ability-provider.js +8 -1
- package/lib/providers/annotation-provider.d.ts +63 -12
- package/lib/providers/annotation-provider.js +52 -46
- package/lib/providers/device-privilege-provider.js +81 -83
- package/lib/providers/device-provider.d.ts +3 -3
- package/lib/providers/device-provider.js +201 -204
- package/lib/providers/device-stream-provider.js +24 -27
- package/lib/providers/event-provider.d.ts +3 -3
- package/lib/providers/event-provider.js +0 -2
- package/lib/providers/interpreter-provider.js +195 -197
- package/lib/providers/message-provider.js +0 -2
- package/lib/providers/phone-audio-provider.js +17 -19
- package/lib/providers/privilege-provider.js +53 -58
- package/lib/providers/renderer-provider.d.ts +3 -1
- package/lib/providers/renderer-provider.js +18 -4
- package/lib/providers/room-provider.js +31 -33
- package/lib/providers/screen-share-provider.d.ts +1 -0
- package/lib/providers/screen-share-provider.js +97 -103
- package/lib/providers/sharing-provider.d.ts +5 -1
- package/lib/providers/sharing-provider.js +17 -1
- package/lib/providers/user-setting-storage-provider.d.ts +20 -0
- package/lib/providers/user-setting-storage-provider.js +72 -0
- package/lib/providers/widget-provider.js +0 -1
- package/lib/scenes/main-scene.js +13 -16
- package/lib/scenes/waiting-scene.js +4 -4
- package/lib/shared-data-source/chat-data.js +0 -2
- package/lib/shared-data-source/config.d.ts +1 -5
- package/lib/shared-data-source/config.js +11 -81
- package/lib/shared-data-source/interpreter.js +0 -2
- package/lib/shared-data-source/layout-data.js +1 -4
- package/lib/shared-data-source/member-data.js +0 -4
- package/lib/shared-data-source/pin-data.js +0 -1
- package/lib/shared-data-source/screen-share-data.d.ts +6 -2
- package/lib/shared-data-source/screen-share-data.js +2 -2
- package/lib/shared-data-source/security-data.js +0 -1
- package/lib/shared-data-source/setting.d.ts +13 -13
- package/lib/shared-data-source/setting.js +10 -8
- package/lib/shared-data-source/video-window.d.ts +2 -1
- package/lib/shared-data-source/video-window.js +82 -66
- package/lib/shared-data-source/waiting-room.js +0 -2
- 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 +2 -1
- package/lib/type.js +14 -0
- package/lib/ui-scene.js +18 -14
- package/lib/utilities/constant.d.ts +2 -1
- package/lib/utilities/constant.js +8 -0
- package/lib/utilities/copyText.js +12 -12
- package/lib/utilities/hooks.js +1 -2
- package/lib/utilities/logger.js +0 -1
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/privilege.js +0 -3
- package/lib/utilities/renderer-event.js +0 -2
- package/lib/utilities/setting-config-storage.d.ts +7 -6
- package/lib/utilities/setting-config-storage.js +55 -41
- package/lib/utilities/tools.d.ts +1 -0
- package/lib/utilities/tools.js +9 -12
- package/lib/waiting-room-control-manager.js +26 -28
- package/package.json +8 -6
- package/dist/132.js +0 -2
- package/dist/132.js.LICENSE.txt +0 -311
- package/dist/317.js +0 -2
- package/dist/317.js.LICENSE.txt +0 -20
- package/dist/651.js +0 -2
- package/dist/651.js.LICENSE.txt +0 -1
- package/dist/689343b64b60bfb7ffff.png +0 -0
- package/dist/73.js +0 -1
- package/dist/885f9369ea05a8ac0e56.png +0 -0
- package/dist/90f383876a6e93e7c7ca.png +0 -0
- package/dist/9b37584780995fc5df8c.gif +0 -0
- package/dist/annotation.e5cbd3a70b6d42361872.css +0 -1274
- package/dist/annotation.html +0 -1
- package/dist/annotation.js +0 -2
- package/dist/annotation.js.LICENSE.txt +0 -252
- package/dist/assets/browser/images/default1.jpg +0 -0
- package/dist/assets/browser/images/default2.jpg +0 -0
- package/dist/assets/browser/images/default3.jpg +0 -0
- package/dist/assets/browser/images/default4.jpg +0 -0
- package/dist/assets/browser/images/default5.jpg +0 -0
- package/dist/assets/browser/images/default6.jpg +0 -0
- package/dist/assets/browser/images/default7.jpg +0 -0
- package/dist/assets/browser/sound_effects/pretest.mp3 +0 -0
- package/dist/assets/browser/sound_effects/recording_started.mp3 +0 -0
- package/dist/assets/browser/sound_effects/remote_user_joined.mp3 +0 -0
- package/dist/assets/browser/sound_effects/speaker_test.mp3 +0 -0
- package/dist/assets/browser/videos/default8.mp4 +0 -0
- package/dist/assets/browser/videos/default9.mp4 +0 -0
- package/dist/assets/cursors/fcr_whiteboard_input.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_pen.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_-straightline.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_arrow.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_circle.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_rectangle.ico +0 -0
- package/dist/assets/cursors/fcr_whiteboard_shape_triangle.ico +0 -0
- package/dist/assets/electron/images/default1.jpg +0 -0
- package/dist/assets/electron/images/default2.jpg +0 -0
- package/dist/assets/electron/sound_effects/pretest.mp3 +0 -0
- package/dist/assets/electron/videos/default8.mp4 +0 -0
- package/dist/assets/fcr_chat_reddot.svg +0 -5
- package/dist/assets/fcr_defaultpage.png +0 -0
- package/dist/assets/fcr_grid_big.svg +0 -3
- package/dist/assets/fcr_leave2.svg +0 -58
- package/dist/assets/fcr_listontop_big.svg +0 -3
- package/dist/assets/full-screen-error-boundary-img.png +0 -0
- package/dist/assets/leave-meeting.png +0 -0
- package/dist/assets/loading.gif +0 -0
- package/dist/assets/login_confirm.png +0 -0
- package/dist/assets/pretest.mp3 +0 -0
- package/dist/assets/state-bar-logo.png +0 -0
- package/dist/assets/step-gradient.svg +0 -10
- package/dist/b74b002687a3a3346bec.png +0 -0
- package/dist/b94869094481702f949b.png +0 -0
- package/dist/ebeace75fd46b90d890e.png +0 -0
- package/dist/electron/app.js +0 -194
- package/dist/electron/bootstrap-dev.js +0 -46
- package/dist/electron/bootstrap-sdk.js +0 -211
- package/dist/electron/default-options.js +0 -25
- package/dist/electron/env.js +0 -13
- package/dist/electron/index.js +0 -20
- package/dist/electron/injections.js +0 -903
- package/dist/electron/ipc/ipc.js +0 -141
- package/dist/electron/ipc/type.js +0 -19
- package/dist/electron/logger.js +0 -65
- package/dist/electron/main.js +0 -94
- package/dist/electron/plugins/devtool-shortcut.js +0 -33
- package/dist/electron/plugins/meeting-state.js +0 -39
- package/dist/electron/plugins/screenshot.js +0 -54
- package/dist/electron/preload.js +0 -108
- package/dist/electron/tools.js +0 -66
- package/dist/electron/window.js +0 -123
- package/dist/extensions/agora-extension-virtual-background/agora-wasm.wasm +0 -0
- package/dist/extensions/ai-denoiser/denoiser-wasm-simd.wasm +0 -0
- package/dist/extensions/ai-denoiser/denoiser-wasm.js +0 -1
- package/dist/extensions/ai-denoiser/denoiser-wasm.wasm +0 -0
- package/dist/fad688b9135b15d6c405.png +0 -0
- package/dist/index.html +0 -224
- package/dist/main.393a2a91ab7fc05ffce6.css +0 -15403
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -272
- package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
|
@@ -5,7 +5,6 @@ require("core-js/modules/es.symbol.description.js");
|
|
|
5
5
|
require("core-js/modules/es.symbol.to-primitive.js");
|
|
6
6
|
require("core-js/modules/es.array.is-array.js");
|
|
7
7
|
require("core-js/modules/es.date.to-primitive.js");
|
|
8
|
-
require("core-js/modules/es.function.bind.js");
|
|
9
8
|
require("core-js/modules/es.function.name.js");
|
|
10
9
|
require("core-js/modules/es.map.js");
|
|
11
10
|
require("core-js/modules/es.number.constructor.js");
|
|
@@ -40,6 +39,7 @@ require("core-js/modules/es.error.to-string.js");
|
|
|
40
39
|
require("core-js/modules/es.array.concat.js");
|
|
41
40
|
require("core-js/modules/es.array.iterator.js");
|
|
42
41
|
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,8 +62,9 @@ var _decorator = require("agora-foundation/lib/decorator");
|
|
|
62
62
|
var _imports = require("fcr-core/lib/imports");
|
|
63
63
|
var _utils = require("../../utils");
|
|
64
64
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
65
|
+
var _constant = require("../../../../utilities/constant");
|
|
65
66
|
var _ToolbarStore;
|
|
66
|
-
var _initProto, _init_observables,
|
|
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
68
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
68
69
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
69
70
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -76,9 +77,9 @@ function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.descr
|
|
|
76
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; }
|
|
77
78
|
var colors = ['#EFEFEF', '#FFEC42', '#FFB545', '#E44A19', '#4A4C5F', '#A1C573', '#51BD69', '#EB47A2', '#0E0E0E', '#50E3C2', '#547AFF', '#79479F'];
|
|
78
79
|
var _A = /*#__PURE__*/new WeakMap();
|
|
79
|
-
_ref = (
|
|
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
81
|
var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
81
|
-
function ToolbarStore(_whiteboardControl, _roomControl, _annotationProvider) {
|
|
82
|
+
function ToolbarStore(_whiteboardControl, _roomControl, _annotationProvider, _eventProvider) {
|
|
82
83
|
var _this = this;
|
|
83
84
|
(0, _classCallCheck2["default"])(this, ToolbarStore);
|
|
84
85
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), undefined));
|
|
@@ -91,8 +92,20 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
91
92
|
_this.observables.undoSteps = enable;
|
|
92
93
|
}
|
|
93
94
|
});
|
|
95
|
+
(0, _defineProperty2["default"])(this, "_whiteboardObserver", {
|
|
96
|
+
onConnectionStateUpdated: function onConnectionStateUpdated(state) {
|
|
97
|
+
if (state === _imports.AgoraRteConnectionState.CONNECTED && _this._whiteboardControl) {
|
|
98
|
+
_this._boardMainWindow = _this._whiteboardControl.getMainWindow();
|
|
99
|
+
_this._lastStrokeWidth = 0;
|
|
100
|
+
_this.boardMainWindow.addObserver(_this._boardObserver);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
(0, _defineProperty2["default"])(this, "_uiEventObserver", {
|
|
105
|
+
onEvent: this._onUiEvent.bind(this)
|
|
106
|
+
});
|
|
94
107
|
_classPrivateFieldInitSpec(this, _A, _init_observables(this, {
|
|
95
|
-
currentTool:
|
|
108
|
+
currentTool: _enums.FcrBoardToolType.CURVE,
|
|
96
109
|
currentShape: undefined,
|
|
97
110
|
currentColor: colors[2],
|
|
98
111
|
currentStrokeWidth: 2,
|
|
@@ -122,15 +135,9 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
122
135
|
this._whiteboardControl = _whiteboardControl;
|
|
123
136
|
this._roomControl = _roomControl;
|
|
124
137
|
this._annotationProvider = _annotationProvider;
|
|
125
|
-
this.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
_this._boardMainWindow = _this._whiteboardControl.getMainWindow();
|
|
129
|
-
_this._lastStrokeWidth = 0;
|
|
130
|
-
_this._boardMainWindow.addObserver(_this._boardObserver);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
});
|
|
138
|
+
this._eventProvider = _eventProvider;
|
|
139
|
+
this._whiteboardControl.addObserver(this._whiteboardObserver);
|
|
140
|
+
this._eventProvider.addObserver(this._uiEventObserver);
|
|
134
141
|
}
|
|
135
142
|
return (0, _createClass2["default"])(ToolbarStore, [{
|
|
136
143
|
key: "observables",
|
|
@@ -155,19 +162,37 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
155
162
|
}
|
|
156
163
|
}
|
|
157
164
|
}, {
|
|
158
|
-
key: "
|
|
159
|
-
value: function
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
165
|
+
key: "_onUiEvent",
|
|
166
|
+
value: function () {
|
|
167
|
+
var _onUiEvent2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(event, params) {
|
|
168
|
+
var _t;
|
|
169
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
170
|
+
while (1) switch (_context.prev = _context.next) {
|
|
171
|
+
case 0:
|
|
172
|
+
_t = event;
|
|
173
|
+
_context.next = _t === _constant.FcrUIAction.RESET_WHITEBOARD_TOOLBAR_VARS ? 1 : 2;
|
|
174
|
+
break;
|
|
175
|
+
case 1:
|
|
176
|
+
this.resetToolbarVars();
|
|
177
|
+
return _context.abrupt("continue", 2);
|
|
178
|
+
case 2:
|
|
179
|
+
case "end":
|
|
180
|
+
return _context.stop();
|
|
181
|
+
}
|
|
182
|
+
}, _callee, this);
|
|
183
|
+
}));
|
|
184
|
+
function _onUiEvent(_x, _x2) {
|
|
185
|
+
return _onUiEvent2.apply(this, arguments);
|
|
186
|
+
}
|
|
187
|
+
return _onUiEvent;
|
|
188
|
+
}()
|
|
164
189
|
}, {
|
|
165
|
-
key: "
|
|
166
|
-
value: function
|
|
167
|
-
if (this.
|
|
168
|
-
this.
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
190
|
+
key: "resetToolbarVars",
|
|
191
|
+
value: function resetToolbarVars() {
|
|
192
|
+
if (this._boardMainWindow) {
|
|
193
|
+
this.setStrokeColor(colors[2]);
|
|
194
|
+
this.setStrokeWidth(2);
|
|
195
|
+
this.setPen(_type.FcrBoardShape.Curve);
|
|
171
196
|
}
|
|
172
197
|
}
|
|
173
198
|
}, {
|
|
@@ -292,7 +317,9 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
292
317
|
key: "release",
|
|
293
318
|
value: function release() {
|
|
294
319
|
var _this$_boardMainWindo;
|
|
320
|
+
this._eventProvider.removeObserver(this._uiEventObserver);
|
|
295
321
|
(_this$_boardMainWindo = this._boardMainWindow) === null || _this$_boardMainWindo === void 0 || _this$_boardMainWindo.removeObserver(this._boardObserver);
|
|
322
|
+
this._whiteboardControl.removeObserver(this._whiteboardObserver);
|
|
296
323
|
}
|
|
297
324
|
}, {
|
|
298
325
|
key: "_updateDockPlacement",
|
|
@@ -381,16 +408,16 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
381
408
|
}, {
|
|
382
409
|
key: "_getSnapshotImage",
|
|
383
410
|
value: function () {
|
|
384
|
-
var _getSnapshotImage2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
411
|
+
var _getSnapshotImage2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
385
412
|
var _this5 = this;
|
|
386
413
|
var mainWindow, progress, imageData;
|
|
387
|
-
return _regenerator["default"].wrap(function
|
|
388
|
-
while (1) switch (
|
|
414
|
+
return _regenerator["default"].wrap(function (_context2) {
|
|
415
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
389
416
|
case 0:
|
|
390
417
|
this.observables.progress = 0;
|
|
391
418
|
mainWindow = this.boardMainWindow;
|
|
392
419
|
if (!mainWindow) {
|
|
393
|
-
|
|
420
|
+
_context2.next = 2;
|
|
394
421
|
break;
|
|
395
422
|
}
|
|
396
423
|
progress = setInterval(function () {
|
|
@@ -400,10 +427,10 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
400
427
|
clearInterval(progress);
|
|
401
428
|
}
|
|
402
429
|
}, 4);
|
|
403
|
-
|
|
430
|
+
_context2.next = 1;
|
|
404
431
|
return mainWindow.getSnapshotImage();
|
|
405
|
-
case
|
|
406
|
-
imageData =
|
|
432
|
+
case 1:
|
|
433
|
+
imageData = _context2.sent;
|
|
407
434
|
(0, _mobx.runInAction)(function () {
|
|
408
435
|
setTimeout(function () {
|
|
409
436
|
var _this5$roomInfo;
|
|
@@ -418,11 +445,11 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
418
445
|
// });
|
|
419
446
|
}, 400);
|
|
420
447
|
});
|
|
421
|
-
case
|
|
448
|
+
case 2:
|
|
422
449
|
case "end":
|
|
423
|
-
return
|
|
450
|
+
return _context2.stop();
|
|
424
451
|
}
|
|
425
|
-
},
|
|
452
|
+
}, _callee2, this);
|
|
426
453
|
}));
|
|
427
454
|
function _getSnapshotImage() {
|
|
428
455
|
return _getSnapshotImage2.apply(this, arguments);
|
|
@@ -456,7 +483,7 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
456
483
|
}]);
|
|
457
484
|
}();
|
|
458
485
|
_ToolbarStore = ToolbarStore;
|
|
459
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ToolbarStore, [[_mobx.observable, 1, "observables"], [
|
|
486
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_ToolbarStore, [[_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);
|
|
460
487
|
_init_observables = _applyDecs$e[0];
|
|
461
488
|
_initProto = _applyDecs$e[1];
|
|
462
489
|
var ToolbarContext = exports.ToolbarContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
@@ -18,7 +18,6 @@ require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
|
18
18
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
19
19
|
require("core-js/modules/es.object.keys.js");
|
|
20
20
|
require("core-js/modules/es.reflect.construct.js");
|
|
21
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
22
21
|
require("core-js/modules/esnext.function.metadata.js");
|
|
23
22
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
24
23
|
require("core-js/modules/esnext.map.delete-all.js");
|
|
@@ -57,9 +56,6 @@ require("core-js/modules/es.set.js");
|
|
|
57
56
|
require("core-js/modules/es.string.includes.js");
|
|
58
57
|
require("core-js/modules/es.string.iterator.js");
|
|
59
58
|
require("core-js/modules/es.weak-map.js");
|
|
60
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
61
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
62
|
-
require("core-js/modules/esnext.async-iterator.some.js");
|
|
63
59
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
64
60
|
require("core-js/modules/esnext.iterator.find.js");
|
|
65
61
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
@@ -180,7 +176,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
180
176
|
onConnectionStateUpdated: function () {
|
|
181
177
|
var _onConnectionStateUpdated = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(state) {
|
|
182
178
|
var _this$_whiteboardCont, _this$_whiteboardCont2, mainWindow, isActive, ownerUserId, _this$_userControl, ownerUser;
|
|
183
|
-
return _regenerator["default"].wrap(function
|
|
179
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
184
180
|
while (1) switch (_context.prev = _context.next) {
|
|
185
181
|
case 0:
|
|
186
182
|
_this.logger.info('Fcr board connection state changed to', state);
|
|
@@ -208,7 +204,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
208
204
|
_this._boardMainWindow = mainWindow;
|
|
209
205
|
_this.mount();
|
|
210
206
|
}
|
|
211
|
-
case
|
|
207
|
+
case 1:
|
|
212
208
|
case "end":
|
|
213
209
|
return _context.stop();
|
|
214
210
|
}
|
|
@@ -314,7 +310,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
314
310
|
this._roomControl = (_this$currentRoomCont = this.currentRoomControlProvider) === null || _this$currentRoomCont === void 0 ? void 0 : _this$currentRoomCont.currentRoomControl;
|
|
315
311
|
this._securityStore = this.privilegeProvider;
|
|
316
312
|
this._whiteboardControl = this._roomControl.getSharingControl().getBoardControl();
|
|
317
|
-
this._toolbarStore = new _store.ToolbarStore(this._whiteboardControl, this._roomControl, this.annotationProvider);
|
|
313
|
+
this._toolbarStore = new _store.ToolbarStore(this._whiteboardControl, this._roomControl, this.annotationProvider, this.eventProvider);
|
|
318
314
|
var streamControl = this._roomControl.getStreamControl();
|
|
319
315
|
var userControl = this._roomControl.getUserControl();
|
|
320
316
|
this._userControl = userControl;
|
|
@@ -508,7 +504,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
508
504
|
|
|
509
505
|
var isActive = (_this$_whiteboardCont6 = this._whiteboardControl) === null || _this$_whiteboardCont6 === void 0 ? void 0 : _this$_whiteboardCont6.getActivity();
|
|
510
506
|
if (isActive && this._whiteboardControl) {
|
|
511
|
-
var _this$_userControl2, _this$_ownerUser3, _this$_localUser3, _this$_boardStore2, _this$_boardStore3, _this$_uiEventStore3;
|
|
507
|
+
var _this$_userControl2, _this$_ownerUser3, _this$_localUser3, _this$_boardStore2, _this$_boardStore3, _this$_uiEventStore3, _this$_toolbarStore;
|
|
512
508
|
var ownerUserId = this._whiteboardControl.getOwnerId();
|
|
513
509
|
this._ownerUser = (_this$_userControl2 = this._userControl) === null || _this$_userControl2 === void 0 ? void 0 : _this$_userControl2.getUser(ownerUserId);
|
|
514
510
|
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);
|
|
@@ -518,6 +514,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
518
514
|
action: _type.WhiteboardBaseEvents.SET_OWNER_USER_ID,
|
|
519
515
|
payload: ownerUserId
|
|
520
516
|
});
|
|
517
|
+
(_this$_toolbarStore = this._toolbarStore) === null || _this$_toolbarStore === void 0 || _this$_toolbarStore.resetToolbarVars();
|
|
521
518
|
} else {
|
|
522
519
|
this.logger.warn('whiteboard mount, getBoardActiveInfo activeInfo isActive is false , ownerUserId is null');
|
|
523
520
|
}
|
|
@@ -7,10 +7,6 @@
|
|
|
7
7
|
pointer-events: all;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.board-widget-app {
|
|
11
|
-
height: 100%;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
10
|
.fcr-board-pagination {
|
|
15
11
|
position: absolute;
|
|
16
12
|
left: 10px;
|
|
@@ -140,3 +136,15 @@
|
|
|
140
136
|
width: 100%;
|
|
141
137
|
height: 100%;
|
|
142
138
|
} */
|
|
139
|
+
|
|
140
|
+
.whiteboard-action-prevent {
|
|
141
|
+
width: 100%;
|
|
142
|
+
height: 100%;
|
|
143
|
+
position: absolute;
|
|
144
|
+
left: 0px;
|
|
145
|
+
top: 0px;
|
|
146
|
+
z-index: 100;
|
|
147
|
+
cursor:
|
|
148
|
+
url('data:image/svg+xml,%3Csvg width="18" height="18" viewBox="0 0 " fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-path="url(%23clip0_71146_163811)"%3E%3Cg filter="url(%23filter0_d_71146_163811)"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M4.95701 14.2575L1.05431 2.41514C0.867777 1.84912 1.1772 1.23963 1.74543 1.05381C1.96805 0.981012 2.20837 0.982105 2.43032 1.05693L14.264 5.04624C14.8305 5.23722 15.1343 5.84949 14.9426 6.4138C14.8422 6.70924 14.6183 6.94694 14.3288 7.0656L9.3004 9.12601C9.08832 9.21291 8.92123 9.38255 8.83806 9.59543L6.99502 14.3123C6.77809 14.8675 6.15043 15.1423 5.59309 14.9263C5.29135 14.8093 5.058 14.5639 4.95701 14.2575Z" fill="%234262FF"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M4.95701 14.2575L1.05431 2.41514C0.867777 1.84912 1.1772 1.23963 1.74543 1.05381C1.96805 0.981012 2.20837 0.982105 2.43032 1.05693L14.264 5.04624C14.8305 5.23722 15.1343 5.84949 14.9426 6.4138C14.8422 6.70924 14.6183 6.94694 14.3288 7.0656L9.3004 9.12601C9.08832 9.21291 8.92123 9.38255 8.83806 9.59543L6.99502 14.3123C6.77809 14.8675 6.15043 15.1423 5.59309 14.9263C5.29135 14.8093 5.058 14.5639 4.95701 14.2575Z" stroke="white" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3Cfilter id="filter0_d_71146_163811" x="-2.5" y="-1.5" width="23" height="23" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/%3E%3CfeOffset dx="1" dy="2"/%3E%3CfeGaussianBlur stdDeviation="2"/%3E%3CfeComposite in2="hardAlpha" operator="out"/%3E%3CfeColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.14 0"/%3E%3CfeBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_71146_163811"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_71146_163811" result="shape"/%3E%3C/filter%3E%3CclipPath id="clip0_71146_163811"%3E%3Crect width="18" height="18" fill="white"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E'),
|
|
149
|
+
auto;
|
|
150
|
+
}
|
|
@@ -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",
|
|
@@ -46,6 +52,8 @@ var Whiteboard = exports.Whiteboard = (0, _mobxReact.observer)(function () {
|
|
|
46
52
|
}), canOperate && showToolbar && writeEnabled && /*#__PURE__*/(0, _jsxRuntime.jsx)(_toolbar.Toolbar, {}), loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_loading.Loading, {}), progress > 0 && progress < 100 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_progress["default"], {
|
|
47
53
|
title: "".concat(transI18n('fmt_screenshare_whiteboard_tips_downloading'), "..."),
|
|
48
54
|
progress: progress
|
|
55
|
+
}), (!canOperate || !showToolbar || !writeEnabled) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
56
|
+
className: "whiteboard-action-prevent"
|
|
49
57
|
})]
|
|
50
58
|
});
|
|
51
59
|
});
|
|
@@ -60,8 +60,7 @@ var _store = _interopRequireWildcard(require("./store"));
|
|
|
60
60
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
61
61
|
var _WebWidgetUIModule;
|
|
62
62
|
var _initProto;
|
|
63
|
-
function
|
|
64
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
63
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
65
64
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
66
65
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
67
66
|
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
@@ -161,7 +161,7 @@ var FcrUIWebWidgetImpl = exports.FcrUIWebWidgetImpl = /*#__PURE__*/function () {
|
|
|
161
161
|
key: "fetchUserList",
|
|
162
162
|
value: function () {
|
|
163
163
|
var _fetchUserList = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(params) {
|
|
164
|
-
return _regenerator["default"].wrap(function
|
|
164
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
165
165
|
while (1) switch (_context.prev = _context.next) {
|
|
166
166
|
case 0:
|
|
167
167
|
return _context.abrupt("return", this._userControl.fetchUserList(params));
|
|
@@ -61,7 +61,7 @@ if (!window.runtime) {
|
|
|
61
61
|
},
|
|
62
62
|
checkMediaPermission: function () {
|
|
63
63
|
var _checkMediaPermission = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(mediaType) {
|
|
64
|
-
return _regenerator["default"].wrap(function
|
|
64
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
65
65
|
while (1) switch (_context.prev = _context.next) {
|
|
66
66
|
case 0:
|
|
67
67
|
return _context.abrupt("return", true);
|
|
@@ -17,11 +17,11 @@ var _fcrCore = require("fcr-core");
|
|
|
17
17
|
var createRoom = /*#__PURE__*/function () {
|
|
18
18
|
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(roomName) {
|
|
19
19
|
var url, res, json;
|
|
20
|
-
return _regenerator["default"].wrap(function
|
|
20
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
21
21
|
while (1) switch (_context.prev = _context.next) {
|
|
22
22
|
case 0:
|
|
23
23
|
url = "http://api-solutions-dev.bj2.agoralab.co/conference/companys/v1/rooms";
|
|
24
|
-
_context.next =
|
|
24
|
+
_context.next = 1;
|
|
25
25
|
return fetch(url, {
|
|
26
26
|
headers: {
|
|
27
27
|
'Content-Type': 'application/json'
|
|
@@ -36,14 +36,14 @@ var createRoom = /*#__PURE__*/function () {
|
|
|
36
36
|
roomProperties: {}
|
|
37
37
|
})
|
|
38
38
|
});
|
|
39
|
-
case
|
|
39
|
+
case 1:
|
|
40
40
|
res = _context.sent;
|
|
41
|
-
_context.next =
|
|
41
|
+
_context.next = 2;
|
|
42
42
|
return res.json();
|
|
43
|
-
case
|
|
43
|
+
case 2:
|
|
44
44
|
json = _context.sent;
|
|
45
45
|
return _context.abrupt("return", json.data.roomId);
|
|
46
|
-
case
|
|
46
|
+
case 3:
|
|
47
47
|
case "end":
|
|
48
48
|
return _context.stop();
|
|
49
49
|
}
|
|
@@ -65,11 +65,11 @@ var createRoom = /*#__PURE__*/function () {
|
|
|
65
65
|
var getUserToken = /*#__PURE__*/function () {
|
|
66
66
|
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(roomId, userId, userName, role) {
|
|
67
67
|
var url, res, json;
|
|
68
|
-
return _regenerator["default"].wrap(function
|
|
68
|
+
return _regenerator["default"].wrap(function (_context2) {
|
|
69
69
|
while (1) switch (_context2.prev = _context2.next) {
|
|
70
70
|
case 0:
|
|
71
71
|
url = "https://api-solutions-dev.bj2.agoralab.co/conference/companys/v1/rooms";
|
|
72
|
-
_context2.next =
|
|
72
|
+
_context2.next = 1;
|
|
73
73
|
return fetch(url, {
|
|
74
74
|
headers: {
|
|
75
75
|
'Content-Type': 'application/json'
|
|
@@ -82,17 +82,17 @@ var getUserToken = /*#__PURE__*/function () {
|
|
|
82
82
|
userName: userName
|
|
83
83
|
})
|
|
84
84
|
});
|
|
85
|
-
case
|
|
85
|
+
case 1:
|
|
86
86
|
res = _context2.sent;
|
|
87
|
-
_context2.next =
|
|
87
|
+
_context2.next = 2;
|
|
88
88
|
return res.json();
|
|
89
|
-
case
|
|
89
|
+
case 2:
|
|
90
90
|
json = _context2.sent;
|
|
91
91
|
return _context2.abrupt("return", {
|
|
92
92
|
token: json.data.token,
|
|
93
93
|
appId: json.data.appId
|
|
94
94
|
});
|
|
95
|
-
case
|
|
95
|
+
case 3:
|
|
96
96
|
case "end":
|
|
97
97
|
return _context2.stop();
|
|
98
98
|
}
|
|
@@ -107,7 +107,7 @@ var userId = "test-user-".concat(Date.now());
|
|
|
107
107
|
var role = 'host';
|
|
108
108
|
window.__DEV_ENGINE_IS_READY__ = createRoom(roomId).then(/*#__PURE__*/function () {
|
|
109
109
|
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(roomId) {
|
|
110
|
-
return _regenerator["default"].wrap(function
|
|
110
|
+
return _regenerator["default"].wrap(function (_context3) {
|
|
111
111
|
while (1) switch (_context3.prev = _context3.next) {
|
|
112
112
|
case 0:
|
|
113
113
|
return _context3.abrupt("return", getUserToken(roomId, userId, userId, role).then(function (_ref4) {
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { FcrAbilityControl } from 'fcr-core/lib/room-control/ability-control/type';
|
|
2
2
|
import { FcrPlatform } from 'fcr-core/lib/type';
|
|
3
3
|
export interface FcrUIAbilityProvider {
|
|
4
|
+
/**
|
|
5
|
+
* 检查当前平台是否支持获取房间详情
|
|
6
|
+
*/
|
|
4
7
|
isRoomDetailSupported(): boolean;
|
|
5
8
|
/**
|
|
6
9
|
* 判断指定平台是否支持设置主持人
|
|
7
10
|
* @param platform 目标平台
|
|
8
11
|
*/
|
|
9
12
|
isHostSupportedByPlatform(platform: FcrPlatform): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 检查当前平台是否支持批注
|
|
15
|
+
*/
|
|
16
|
+
isAnnotationSupported(): boolean;
|
|
10
17
|
}
|
|
11
18
|
export declare class FcrUIAbilityProviderImpl implements FcrUIAbilityProvider {
|
|
12
19
|
private _abilityControl;
|
|
13
20
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
14
21
|
constructor(_abilityControl: FcrAbilityControl);
|
|
15
22
|
/**
|
|
16
|
-
*
|
|
23
|
+
* 检查当前平台是否支持获取房间详情
|
|
17
24
|
*/
|
|
18
25
|
isRoomDetailSupported: () => boolean;
|
|
19
26
|
/**
|
|
@@ -29,4 +36,8 @@ export declare class FcrUIAbilityProviderImpl implements FcrUIAbilityProvider {
|
|
|
29
36
|
* 检查当前平台是否支持指定能力
|
|
30
37
|
*/
|
|
31
38
|
isInterpreterSupported: () => boolean;
|
|
39
|
+
/**
|
|
40
|
+
* 检查当前平台是否支持批注
|
|
41
|
+
*/
|
|
42
|
+
isAnnotationSupported: () => boolean;
|
|
32
43
|
}
|
|
@@ -19,7 +19,7 @@ var FcrUIAbilityProviderImpl = exports.FcrUIAbilityProviderImpl = /*#__PURE__*/(
|
|
|
19
19
|
prefix: 'FcrUIAbilityProviderImpl'
|
|
20
20
|
}));
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 检查当前平台是否支持获取房间详情
|
|
23
23
|
*/
|
|
24
24
|
(0, _defineProperty2["default"])(this, "isRoomDetailSupported", function () {
|
|
25
25
|
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.RoomDetail);
|
|
@@ -47,6 +47,13 @@ var FcrUIAbilityProviderImpl = exports.FcrUIAbilityProviderImpl = /*#__PURE__*/(
|
|
|
47
47
|
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.Interpreter);
|
|
48
48
|
return result;
|
|
49
49
|
});
|
|
50
|
+
/**
|
|
51
|
+
* 检查当前平台是否支持批注
|
|
52
|
+
*/
|
|
53
|
+
(0, _defineProperty2["default"])(this, "isAnnotationSupported", function () {
|
|
54
|
+
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.Annotation);
|
|
55
|
+
return result;
|
|
56
|
+
});
|
|
50
57
|
this._abilityControl = _abilityControl;
|
|
51
58
|
});
|
|
52
59
|
(0, _base.registerDependency)('abilityProvider');
|
|
@@ -9,23 +9,74 @@ import { FcrUIVideoWindowData } from '../type';
|
|
|
9
9
|
import { FcrUIScreenShareProvider } from './screen-share-provider';
|
|
10
10
|
import { FcrUIDeviceProvider } from './device-provider';
|
|
11
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
|
+
*/
|
|
12
39
|
get annotating(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 发起端数据,当前共享屏幕信息
|
|
42
|
+
*/
|
|
13
43
|
get currentShareInfo(): CurrentShareScreenTypes;
|
|
44
|
+
/**
|
|
45
|
+
* 发起端方法,用于打开关闭标注,由用户触发,此操切换标注工具栏打开状态合窗口的鼠标穿透模式
|
|
46
|
+
*/
|
|
14
47
|
toggleAnnotation(): void;
|
|
48
|
+
/**
|
|
49
|
+
* 发起端方法,启动标注窗口,在主窗口启动时调用
|
|
50
|
+
*/
|
|
15
51
|
openAnnotationWindow(): void;
|
|
52
|
+
/**
|
|
53
|
+
* 发起端方法,用于隐藏标注窗口,不是关闭
|
|
54
|
+
*/
|
|
16
55
|
hideAnnotationWindow(): void;
|
|
56
|
+
/**
|
|
57
|
+
* 发起端方法,用于设置当前共享屏幕信息
|
|
58
|
+
*/
|
|
17
59
|
setCurrentShareInfo(info: CurrentShareScreenTypes): void;
|
|
60
|
+
/**
|
|
61
|
+
* 发起端方法,用通知标注窗口更新当前共享屏幕信息
|
|
62
|
+
*/
|
|
18
63
|
setBoundsToAnnotationWindow(info?: CurrentShareScreenTypes): void;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
get annotationState(): FcrAnnotationState;
|
|
23
|
-
get annotationHasStart(): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* 接收端方法,用于放大标注窗口
|
|
66
|
+
*/
|
|
24
67
|
zoomIn(): void;
|
|
68
|
+
/**
|
|
69
|
+
* 接收端方法,用于缩小标注窗口
|
|
70
|
+
*/
|
|
25
71
|
zoomOut(): void;
|
|
72
|
+
/**
|
|
73
|
+
* 接收端方法,用于设置标注窗口的缩放比例
|
|
74
|
+
*/
|
|
26
75
|
fullContainer(scalc: number): void;
|
|
76
|
+
/**
|
|
77
|
+
* 接收端方法,用于设置标注窗口的缩放比例
|
|
78
|
+
*/
|
|
27
79
|
setOriginScalc(): void;
|
|
28
|
-
get scalcValue(): number;
|
|
29
80
|
}
|
|
30
81
|
export declare enum FcrAnnotationState {
|
|
31
82
|
START = "start",
|
|
@@ -47,20 +98,19 @@ export declare class FcrUIAnnotationProviderImpl implements FcrUIAnnotationProvi
|
|
|
47
98
|
private _shareScreenOwnerId;
|
|
48
99
|
private _maxScalcValue;
|
|
49
100
|
private _minScalcValue;
|
|
101
|
+
private _annotationObserver;
|
|
102
|
+
private _currentScreenShareOwnerCanStartAnnotation;
|
|
103
|
+
private _observer;
|
|
104
|
+
private get _localUser();
|
|
50
105
|
accessor scalcValue: number;
|
|
51
106
|
accessor annotationState: FcrAnnotationState;
|
|
52
107
|
accessor annotating: boolean;
|
|
53
108
|
accessor currentShareInfo: CurrentShareScreenTypes;
|
|
54
|
-
private _annotationObserver;
|
|
55
|
-
private _currentScreenShareOwnerCanStartAnnotation;
|
|
56
|
-
private _observer;
|
|
57
|
-
private _initAnnotationTransaction;
|
|
58
|
-
constructor(_dialogProvider: FcrUIDialogProvider, _sharingProvider: FcrUISharingProvider, _memberDataSource: FcrUIMemberSharedDataSource, _videoWindowDataSource: FcrUIVideoWindowDataSource, _screenShareProvider: FcrUIScreenShareProvider, _deviceProvider: FcrUIDeviceProvider);
|
|
59
109
|
get screenShareWindowData(): import("../shared-data-source/video-window").FcrUIVideoWindowDataImpl | undefined;
|
|
60
110
|
get boardMainWindow(): FcrBoardMainWindow | undefined;
|
|
61
111
|
get annotationControl(): FcrAnnotationControl | undefined;
|
|
62
112
|
get annotationHasStart(): boolean;
|
|
63
|
-
|
|
113
|
+
constructor(_dialogProvider: FcrUIDialogProvider, _sharingProvider: FcrUISharingProvider, _memberDataSource: FcrUIMemberSharedDataSource, _videoWindowDataSource: FcrUIVideoWindowDataSource, _screenShareProvider: FcrUIScreenShareProvider, _deviceProvider: FcrUIDeviceProvider);
|
|
64
114
|
zoomIn(): void;
|
|
65
115
|
zoomOut(): void;
|
|
66
116
|
fullContainer(scalc: number): void;
|
|
@@ -74,4 +124,5 @@ export declare class FcrUIAnnotationProviderImpl implements FcrUIAnnotationProvi
|
|
|
74
124
|
release(): void;
|
|
75
125
|
private _openToolbar;
|
|
76
126
|
private _closeToolbar;
|
|
127
|
+
private _initAnnotationTransaction;
|
|
77
128
|
}
|