fcr-ui-scene 3.8.2 → 3.9.0-alpha
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 +2 -2
- package/lib/creator/index.js +25 -10
- package/lib/creator/provider-initializer.browser.js +28 -3
- package/lib/creator/provider-initializer.electron.js +28 -5
- package/lib/electron/app.js +26 -9
- package/lib/electron/asar-validation.js +5 -1
- package/lib/electron/env.d.ts +1 -0
- package/lib/electron/env.js +2 -2
- package/lib/electron/injections.d.ts +2 -1
- package/lib/electron/injections.js +23 -17
- package/lib/electron/ipc/type.d.ts +2 -1
- package/lib/electron/ipc/type.js +1 -0
- package/lib/electron/ipc-protocol.d.ts +2 -0
- package/lib/electron/main.js +6 -6
- package/lib/electron/plugins/main-window-display.d.ts +8 -0
- package/lib/electron/plugins/main-window-display.js +23 -0
- package/lib/electron/preload.js +2 -1
- package/lib/electron/process-manager/index.d.ts +1 -0
- package/lib/electron/process-manager/index.js +37 -0
- package/lib/electron/process-manager/state-manager.d.ts +10 -0
- package/lib/electron/process-manager/state-manager.js +46 -4
- package/lib/electron/sdk-helper.js +4 -0
- package/lib/electron/window-proxy/browser-window-proxy-factory.d.ts +7 -0
- package/lib/electron/window-proxy/browser-window-proxy-factory.js +46 -0
- package/lib/electron/window-proxy/{browser-window-proxy.d.ts → implementations/browser-window-proxy.d.ts} +3 -24
- package/lib/electron/window-proxy/implementations/browser-window-proxy.js +335 -0
- package/lib/electron/window-proxy/implementations/electron-event-broadcaster.d.ts +9 -0
- package/lib/electron/window-proxy/implementations/electron-event-broadcaster.js +32 -0
- package/lib/electron/window-proxy/implementations/electron-ipc-handler.d.ts +6 -0
- package/lib/electron/window-proxy/implementations/electron-ipc-handler.js +27 -0
- package/lib/electron/window-proxy/implementations/electron-logger.d.ts +7 -0
- package/lib/electron/window-proxy/implementations/electron-logger.js +34 -0
- package/lib/electron/window-proxy/{main-process-handler.d.ts → implementations/main-process-handler.d.ts} +16 -9
- package/lib/electron/window-proxy/{main-process-handler.js → implementations/main-process-handler.js} +111 -111
- package/lib/electron/window-proxy/interfaces.d.ts +52 -0
- package/lib/electron/window-proxy/interfaces.js +6 -0
- package/lib/fragments/annotation/cursor.css +77 -0
- package/lib/fragments/annotation/index.d.ts +2 -4
- package/lib/fragments/annotation/index.js +4 -82
- package/lib/fragments/annotation/libs.d.ts +15 -11
- package/lib/fragments/annotation/libs.js +75 -26
- package/lib/fragments/annotation/store.d.ts +23 -43
- package/lib/fragments/annotation/store.js +319 -709
- package/lib/fragments/annotation/style.css +5 -6
- package/lib/fragments/annotation/view.d.ts +1 -0
- package/lib/fragments/annotation/view.js +8 -48
- package/lib/fragments/base.js +1 -1
- package/lib/fragments/whiteboard/libs.d.ts +72 -0
- package/lib/fragments/whiteboard/libs.js +155 -0
- package/lib/fragments/whiteboard/store.d.ts +1 -4
- package/lib/fragments/whiteboard/store.js +64 -128
- package/lib/modules/action-bar/components/apps/index.js +2 -2
- package/lib/modules/action-bar/components/collapse/index.js +8 -3
- package/lib/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.d.ts +1 -1
- package/lib/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.js +14 -33
- package/lib/modules/action-bar/components/leave/index.js +1 -1
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +6 -0
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.d.ts +3 -7
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +66 -42
- package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.d.ts +2 -2
- package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.js +11 -7
- package/lib/modules/action-bar/components/notification-bar/index.js +12 -70
- package/lib/modules/action-bar/components/screen-share/submenu.js +39 -2
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +1 -0
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +10 -7
- package/lib/modules/action-bar/index.css +1 -1
- package/lib/modules/action-bar/main-scene/index.d.ts +1 -1
- package/lib/modules/action-bar/main-scene/index.js +4 -4
- package/lib/modules/action-bar/main-scene/store.base.d.ts +16 -9
- package/lib/modules/action-bar/main-scene/store.base.js +165 -94
- package/lib/modules/action-bar/type.d.ts +1 -15
- package/lib/modules/action-bar/type.js +14 -0
- package/lib/modules/action-bar/waiting-scene/view.js +1 -1
- package/lib/modules/annotation/board-cursor.css +77 -0
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/annotation/components/color-picker/components/color.js +37 -0
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/panel.js +108 -0
- package/lib/modules/annotation/components/color-picker/components/picker.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/picker.js +75 -0
- package/lib/modules/annotation/components/color-picker/index.d.ts +2 -0
- package/lib/modules/annotation/components/color-picker/index.js +45 -0
- package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
- package/lib/modules/annotation/components/eraser-picker.js +142 -0
- package/lib/modules/annotation/components/expansion/index.d.ts +1 -0
- package/lib/modules/annotation/components/expansion/index.js +100 -0
- package/lib/modules/annotation/components/extra-tool-picker.d.ts +1 -0
- package/lib/modules/annotation/components/extra-tool-picker.js +62 -0
- package/lib/modules/annotation/components/history.d.ts +2 -0
- package/lib/modules/annotation/components/history.js +76 -0
- package/lib/modules/annotation/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/annotation/components/icons/fold-icon.js +41 -0
- package/lib/modules/annotation/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/annotation/components/icons/move-icon.js +66 -0
- package/lib/modules/annotation/components/item/index.d.ts +1 -0
- package/lib/modules/annotation/components/item/index.js +43 -0
- package/lib/modules/annotation/components/move-handle.d.ts +5 -0
- package/lib/modules/annotation/components/move-handle.js +134 -0
- package/lib/modules/annotation/components/pen-picker.d.ts +4 -0
- package/lib/modules/annotation/components/pen-picker.js +150 -0
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/annotation/components/screen-capture-picker.js +84 -0
- package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
- package/lib/modules/annotation/components/shape-picker.js +201 -0
- package/lib/modules/annotation/hooks/index.d.ts +14 -0
- package/lib/modules/annotation/hooks/index.js +164 -0
- package/lib/modules/annotation/index.d.ts +31 -0
- package/lib/modules/annotation/index.js +152 -0
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.js +2 -2
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.js +22 -9
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.js +2 -3
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.js +22 -9
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.js +22 -9
- package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.js +1 -1
- package/lib/modules/annotation/standalone-toolbar/components/permission-tool/index.d.ts +1 -0
- package/lib/modules/annotation/standalone-toolbar/components/permission-tool/index.js +52 -0
- package/lib/modules/annotation/standalone-toolbar/store.d.ts +104 -0
- package/lib/modules/annotation/standalone-toolbar/store.js +618 -0
- package/{lib-es/fragments/annotation/toolbar → lib/modules/annotation/standalone-toolbar}/style.css +4 -1
- package/lib/modules/annotation/standalone-toolbar/view.js +193 -0
- package/lib/modules/annotation/store.base.d.ts +27 -0
- package/lib/modules/annotation/store.base.js +185 -0
- package/lib/modules/annotation/store.browser.d.ts +3 -0
- package/lib/modules/annotation/store.browser.js +25 -0
- package/lib/modules/annotation/store.electron.d.ts +8 -0
- package/lib/modules/annotation/store.electron.js +75 -0
- package/lib/modules/annotation/style.css +36 -0
- package/lib/modules/annotation/toolbar-store.d.ts +86 -0
- package/lib/modules/annotation/toolbar-store.js +473 -0
- package/lib/modules/annotation/type.d.ts +7 -0
- package/lib/modules/annotation/type.js +6 -0
- package/lib/modules/annotation/view.d.ts +5 -0
- package/lib/modules/annotation/view.js +107 -0
- package/lib/modules/chat/chat-room-store.d.ts +8 -1
- package/lib/modules/chat/chat-room-store.js +152 -72
- package/lib/modules/chat/components/message-list/index.js +123 -93
- package/lib/modules/chat/components/message-list/message-item/index.js +89 -67
- package/lib/modules/chat/components/message-list/scroll-bottom-button/index.js +6 -8
- package/lib/modules/chat/index.css +1 -9
- package/lib/modules/chat/store.js +7 -5
- package/lib/modules/chat/view.js +4 -9
- package/lib/modules/components/annotation-menu/index.d.ts +5 -3
- package/lib/modules/components/annotation-menu/index.js +29 -34
- package/lib/modules/components/apps/index.css +3 -2
- package/lib/modules/components/caption-menu/translation-setting-options.js +2 -2
- package/lib/modules/components/confirm-wrapper/index.css +48 -0
- package/lib/modules/components/confirm-wrapper/index.d.ts +25 -0
- package/lib/modules/components/confirm-wrapper/index.js +87 -0
- package/lib/modules/components/control-bar/index.d.ts +40 -8
- package/lib/modules/components/control-bar/index.js +350 -200
- package/lib/modules/components/device-control/components/audio-menu/index.js +3 -2
- package/lib/modules/components/device-control/components/video-menu/index.js +5 -3
- package/lib/modules/components/device-control/store.base.d.ts +5 -0
- package/lib/modules/components/device-control/store.base.js +17 -1
- package/lib/modules/components/leave-meeting/index.css +21 -0
- package/lib/modules/components/leave-meeting/index.d.ts +0 -2
- package/lib/modules/components/leave-meeting/index.js +63 -103
- package/lib/modules/components/leave-meeting/portal.d.ts +0 -1
- package/lib/modules/components/leave-meeting/portal.js +4 -6
- package/lib/modules/components/leave-meeting/store.base.d.ts +3 -4
- package/lib/modules/components/leave-meeting/store.base.js +49 -55
- package/lib/modules/components/leave-meeting/style.css +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +2 -1
- package/lib/modules/components/member-window/components/member-actions/provider.js +1 -1
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +3 -3
- package/lib/modules/components/security-menu/store.js +7 -9
- package/lib/modules/components/tab-frame/index.css +2 -2
- package/lib/modules/connection-gateway/components/phone/index.js +1 -1
- package/lib/modules/connection-gateway/store.js +6 -8
- package/lib/modules/control-bar/components/annotation-button/index.d.ts +11 -0
- package/lib/modules/control-bar/components/annotation-button/index.js +51 -0
- package/lib/modules/control-bar/components/apps-popover/index.css +3 -0
- package/lib/modules/control-bar/components/apps-popover/index.d.ts +1 -0
- package/lib/modules/control-bar/components/apps-popover/index.js +2 -0
- package/lib/modules/control-bar/components/carmera/index.js +1 -1
- package/lib/modules/control-bar/components/meeting-details/index.js +14 -20
- package/lib/modules/control-bar/components/microphone/index.js +2 -2
- package/lib/modules/control-bar/hooks.js +1 -1
- package/lib/modules/control-bar/index.css +11 -0
- package/lib/modules/control-bar/store.d.ts +20 -5
- package/lib/modules/control-bar/store.js +190 -59
- package/lib/modules/control-bar/view.js +72 -39
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -9
- package/lib/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib/modules/device-pretest/index.js +1 -1
- package/lib/modules/device-pretest/settings/beauty.js +1 -1
- package/lib/modules/device-pretest/settings/video-effect.d.ts +2 -0
- package/lib/modules/device-pretest/settings/video-effect.js +27 -12
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
- package/lib/modules/dialog/components/confirm/index.css +0 -18
- package/lib/modules/dialog/components/confirm/index.d.ts +1 -0
- package/lib/modules/dialog/components/confirm/index.js +2 -2
- package/lib/modules/dialog/components/dialog-container/index.css +3 -4
- package/lib/modules/dialog/components/dialog-container/index.d.ts +6 -21
- package/lib/modules/dialog/components/dialog-container/index.js +80 -132
- package/lib/modules/dialog/components/normal-window/index.d.ts +8 -20
- package/lib/modules/dialog/components/normal-window/index.js +14 -34
- package/lib/modules/dialog/dialogConfig/browser.d.ts +12 -0
- package/lib/modules/dialog/dialogConfig/browser.js +11 -0
- package/lib/modules/dialog/dialogConfig/electron.d.ts +4 -0
- package/lib/modules/dialog/dialogConfig/electron.js +15 -0
- package/lib/modules/dialog/dialogs/annotation-mask/index.d.ts +8 -0
- package/lib/modules/dialog/dialogs/annotation-mask/index.js +41 -0
- package/lib/modules/dialog/dialogs/annotation-tool/index.d.ts +5 -4
- package/lib/modules/dialog/dialogs/annotation-tool/index.js +19 -35
- package/lib/modules/dialog/dialogs/caption/index.d.ts +4 -16
- package/lib/modules/dialog/dialogs/caption/index.js +25 -19
- package/lib/modules/dialog/dialogs/chat/index.d.ts +4 -18
- package/lib/modules/dialog/dialogs/chat/index.js +33 -54
- package/lib/modules/dialog/dialogs/confirm/index.css +2 -13
- package/lib/modules/dialog/dialogs/confirm/index.d.ts +2 -17
- package/lib/modules/dialog/dialogs/confirm/index.js +5 -7
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +5 -16
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.js +4 -24
- package/lib/modules/dialog/dialogs/connection-gateway/index.d.ts +4 -20
- package/lib/modules/dialog/dialogs/connection-gateway/index.js +6 -29
- package/lib/modules/dialog/dialogs/control-bar/index.d.ts +2 -16
- package/lib/modules/dialog/dialogs/control-bar/index.js +4 -6
- package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.d.ts +4 -14
- package/lib/modules/dialog/dialogs/control-bar-leave-meeting/index.js +3 -21
- package/lib/modules/dialog/dialogs/device-setting/index.d.ts +4 -13
- package/lib/modules/dialog/dialogs/device-setting/index.js +4 -20
- package/lib/modules/dialog/dialogs/end-meeting-notice/index.d.ts +8 -0
- package/lib/modules/dialog/dialogs/{end-meeting → end-meeting-notice}/index.js +4 -14
- package/lib/modules/dialog/dialogs/interpreter/index.d.ts +4 -14
- package/lib/modules/dialog/dialogs/interpreter/index.js +33 -24
- package/lib/modules/dialog/dialogs/invite/index.d.ts +4 -18
- package/lib/modules/dialog/dialogs/invite/index.js +25 -24
- package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +4 -8
- package/lib/modules/dialog/dialogs/live-streaming/index.js +7 -11
- package/lib/modules/dialog/dialogs/mute-all/index.d.ts +4 -15
- package/lib/modules/dialog/dialogs/mute-all/index.js +4 -20
- package/lib/modules/dialog/dialogs/participant/index.d.ts +4 -18
- package/lib/modules/dialog/dialogs/participant/index.js +31 -31
- package/lib/modules/dialog/dialogs/rename/index.d.ts +2 -14
- package/lib/modules/dialog/dialogs/rename/index.js +2 -13
- package/lib/modules/dialog/dialogs/sample-dialog/index.d.ts +2 -13
- package/lib/modules/dialog/dialogs/sample-dialog/index.js +2 -2
- package/lib/modules/dialog/dialogs/share-screen-selection/index.d.ts +2 -14
- package/lib/modules/dialog/dialogs/share-screen-selection/index.js +3 -12
- package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -17
- package/lib/modules/dialog/dialogs/sub-window/index.js +4 -3
- package/lib/modules/dialog/dialogs/subtitles-history/index.d.ts +4 -19
- package/lib/modules/dialog/dialogs/subtitles-history/index.js +32 -25
- package/lib/modules/dialog/dialogs/system-preference/index.css +3 -2
- package/lib/modules/dialog/dialogs/system-preference/index.d.ts +5 -28
- package/lib/modules/dialog/dialogs/system-preference/index.js +13 -13
- package/lib/modules/dialog/dialogs/toast/index.d.ts +2 -16
- package/lib/modules/dialog/dialogs/toast/index.js +5 -5
- package/lib/modules/dialog/dialogs/video-window/index.d.ts +2 -18
- package/lib/modules/dialog/dialogs/video-window/index.js +4 -4
- package/lib/modules/dialog/dialogs/whiteboard/index.d.ts +2 -18
- package/lib/modules/dialog/dialogs/whiteboard/index.js +2 -2
- package/lib/modules/dialog/dialogs/widget/index.d.ts +4 -14
- package/lib/modules/dialog/dialogs/widget/index.js +22 -26
- package/lib/modules/dialog/index.css +4 -11
- package/lib/modules/dialog/level-config.d.ts +1 -0
- package/lib/modules/dialog/level-config.js +1 -0
- package/lib/modules/dialog/store.base.js +0 -3
- package/lib/modules/dialog/store.electron.d.ts +1 -0
- package/lib/modules/dialog/store.electron.js +16 -9
- package/lib/modules/dialog/type.d.ts +3 -1
- package/lib/modules/dialog/view.js +25 -1
- package/lib/modules/dialog/web-dialog-wrapper.d.ts +3 -0
- package/lib/modules/dialog/web-dialog-wrapper.js +154 -0
- package/lib/modules/event-toast/index.css +5 -2
- package/lib/modules/event-toast/store.browser.js +1 -1
- package/lib/modules/event-toast/store.electron.js +1 -1
- package/lib/modules/interpreter/index.css +1 -2
- package/lib/modules/interpreter/store.js +22 -19
- package/lib/modules/interpreter/utils.js +1 -1
- package/lib/modules/invite/components/pstn-invite.js +5 -5
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +1 -1
- package/lib/modules/layout/components/Aside.js +1 -1
- package/lib/modules/layout/components/Carousel.js +1 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +14 -4
- package/lib/modules/layout/components/Gallery.js +1 -1
- package/lib/modules/layout/index.css +0 -31
- package/lib/modules/layout/store.base.d.ts +9 -15
- package/lib/modules/layout/store.base.js +69 -198
- package/lib/modules/layout/store.browser.d.ts +2 -1
- package/lib/modules/layout/store.browser.js +62 -2
- package/lib/modules/layout/store.electron.d.ts +1 -3
- package/lib/modules/layout/store.electron.js +10 -28
- package/lib/modules/layout/view.js +1 -3
- package/lib/modules/live-streaming/index.dev.js +1 -1
- package/lib/modules/live-streaming/store.js +3 -4
- package/lib/modules/participant/components/confirm-input/index.css +15 -0
- package/lib/modules/participant/components/confirm-input/index.js +10 -13
- package/lib/modules/participant/components/mute-all/index.css +34 -0
- package/lib/modules/participant/components/mute-all/index.d.ts +1 -0
- package/lib/modules/participant/components/mute-all/index.js +21 -15
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +16 -2
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.d.ts +2 -1
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/util.js +3 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +3 -2
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +1 -1
- package/lib/modules/participant/index.css +0 -16
- package/lib/modules/participant/store.base.d.ts +18 -5
- package/lib/modules/participant/store.base.js +219 -127
- package/lib/modules/participant/store.browser.d.ts +2 -1
- package/lib/modules/participant/store.browser.js +2 -2
- package/lib/modules/participant/store.electron.d.ts +2 -1
- package/lib/modules/participant/store.electron.js +2 -2
- package/lib/modules/pc-audio-connect/waiting-scene/index.js +6 -1
- package/lib/modules/phone-audio-connect/store.js +1 -1
- package/lib/modules/phone-audio-connect/view.js +1 -1
- package/lib/modules/secondary-window/index.d.ts +14 -7
- package/lib/modules/secondary-window/index.js +51 -25
- package/lib/modules/secondary-window/store.d.ts +4 -2
- package/lib/modules/secondary-window/store.js +39 -8
- package/lib/modules/secondary-window/type.d.ts +16 -25
- package/lib/modules/secondary-window/type.js +1 -0
- package/lib/modules/secondary-window/view.js +59 -58
- package/lib/modules/setting/audio-settings/audio-settings.js +2 -2
- package/lib/modules/setting/audio-whiteList/audio-device-adaptation.js +2 -2
- package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.js +1 -1
- package/lib/modules/setting/caption_and_transcribing/index.js +1 -1
- package/lib/modules/setting/general-settings/general-settings.js +4 -4
- package/lib/modules/setting/index.css +2 -3
- package/lib/modules/setting/index.d.ts +1 -2
- package/lib/modules/setting/index.js +3 -10
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -1
- package/lib/modules/setting/state/index.js +1 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.base.d.ts +11 -9
- package/lib/modules/setting/store.base.js +103 -88
- package/lib/modules/setting/store.electron.d.ts +2 -1
- package/lib/modules/setting/store.electron.js +19 -1
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/type.d.ts +1 -9
- package/lib/modules/setting/video-settings/video-settings-basic.js +1 -1
- package/lib/modules/setting/video-settings/video-settings.js +11 -7
- package/lib/modules/setting/view.js +1 -1
- package/lib/modules/share-screen/components/control-bar/index.js +0 -86
- package/lib/modules/share-screen/components/selection/index.js +3 -1
- package/lib/modules/share-screen/store.base.d.ts +1 -1
- package/lib/modules/share-screen/store.base.js +10 -14
- package/lib/modules/share-screen/store.electron.d.ts +4 -0
- package/lib/modules/share-screen/store.electron.js +108 -34
- package/lib/modules/state-bar/layout-config.js +1 -1
- package/lib/modules/state-bar/live-streaming-state.js +6 -7
- package/lib/modules/state-bar/main-scene/store.browser.js +1 -1
- package/lib/modules/state-bar/main-scene/store.electron.js +1 -1
- package/lib/modules/state-bar/meeting-details.js +14 -21
- package/lib/modules/state-bar/meeting-network-state.css +5 -1
- package/lib/modules/state-bar/meeting-network-state.js +7 -1
- package/lib/modules/state-bar/meeting-time.js +1 -1
- package/lib/modules/state-bar/network-quality.js +1 -1
- package/lib/modules/state-bar/recording.js +1 -1
- package/lib/modules/state-bar/store.base.d.ts +3 -3
- package/lib/modules/state-bar/store.base.js +15 -24
- package/lib/modules/state-bar/view.js +6 -7
- package/lib/modules/subtitles-history/components/list-item.js +6 -1
- package/lib/modules/subtitles-history/index.css +2 -5
- package/lib/modules/subtitles-history/store.base.js +24 -12
- package/lib/modules/subtitles-history/store.electron.js +8 -2
- package/lib/modules/subtitles-history/view.js +7 -5
- package/lib/modules/toast-manager/index.d.ts +8 -0
- package/lib/modules/toast-manager/index.js +58 -0
- package/lib/modules/toast-manager/store.d.ts +28 -0
- package/lib/modules/toast-manager/store.js +391 -0
- package/lib/modules/toast-manager/toast-params.d.ts +7 -0
- package/lib/modules/toast-manager/toast-params.js +89 -0
- package/lib/modules/toast-manager/type.d.ts +112 -0
- package/lib/modules/toast-manager/type.js +337 -0
- package/lib/modules/video-window/store.d.ts +2 -2
- package/lib/modules/video-window/store.js +28 -50
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +0 -6
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +25 -14
- package/lib/modules/whiteboard/store.js +10 -9
- package/lib/modules/whiteboard/view.js +0 -1
- package/lib/modules/widget/store.electron.d.ts +0 -4
- package/lib/modules/widget/store.electron.js +3 -38
- package/lib/modules/widget/view.js +1 -1
- package/lib/modules/widget/web-widget.d.ts +1 -1
- package/lib/object-manager.d.ts +2 -0
- package/lib/object-manager.js +2 -0
- package/lib/plugins/multi-lang-plugin.js +1 -1
- package/lib/providers/ability-provider.d.ts +33 -1
- package/lib/providers/ability-provider.js +29 -1
- package/lib/providers/annotation/provider.base.d.ts +39 -0
- package/lib/providers/annotation/provider.base.js +270 -0
- package/lib/providers/annotation/provider.browser.d.ts +3 -0
- package/lib/providers/annotation/provider.browser.js +25 -0
- package/lib/providers/annotation/provider.electron.d.ts +34 -0
- package/lib/providers/annotation/provider.electron.js +231 -0
- package/lib/providers/annotation/standalone-toolbar-control/index.d.ts +26 -0
- package/lib/{fragments/annotation/toolbar/store.js → providers/annotation/standalone-toolbar-control/index.js} +103 -175
- package/lib/providers/annotation/toolbar-control/index.d.ts +31 -0
- package/lib/providers/annotation/toolbar-control/index.js +205 -0
- package/lib/providers/annotation/type.d.ts +64 -21
- package/lib/providers/app-list-provider.d.ts +4 -1
- package/lib/providers/app-list-provider.js +13 -7
- package/lib/providers/board-share/bar-control/base.d.ts +6 -8
- package/lib/providers/board-share/bar-control/base.js +7 -36
- package/lib/providers/board-share/bar-control/browser.d.ts +4 -1
- package/lib/providers/board-share/bar-control/browser.js +76 -3
- package/lib/providers/board-share/bar-control/electron.d.ts +4 -6
- package/lib/providers/board-share/bar-control/electron.js +36 -12
- package/lib/providers/board-share/provider.base.d.ts +11 -8
- package/lib/providers/board-share/provider.base.js +72 -13
- package/lib/providers/board-share/type.d.ts +11 -12
- package/lib/providers/device-privilege-provider.d.ts +5 -4
- package/lib/providers/device-privilege-provider.js +85 -62
- package/lib/providers/device-provider.d.ts +32 -1
- package/lib/providers/device-provider.js +412 -161
- package/lib/providers/device-stream-provider.d.ts +3 -3
- package/lib/providers/device-stream-provider.js +37 -111
- package/lib/providers/dialog/provider.electron.js +6 -1
- package/lib/providers/interpreter-provider.js +5 -5
- package/lib/providers/message/provider.d.ts +3 -1
- package/lib/providers/message/provider.js +12 -0
- package/lib/providers/message/type.d.ts +15 -0
- package/lib/providers/mouse-detect/provider.js +2 -2
- package/lib/providers/mouse-detect/struct.d.ts +2 -1
- package/lib/providers/mouse-detect/struct.js +1 -0
- package/lib/providers/multi-display-provider.d.ts +1 -0
- package/lib/providers/multi-display-provider.js +13 -0
- package/lib/providers/phone-audio-provider.d.ts +15 -0
- package/lib/providers/phone-audio-provider.js +17 -10
- package/lib/providers/privilege-provider.d.ts +15 -15
- package/lib/providers/room-provider/room-provider.d.ts +23 -11
- package/lib/providers/room-provider/room-provider.js +93 -199
- package/lib/providers/room-provider/waiting-room-control-manager.d.ts +2 -2
- package/lib/providers/room-provider/waiting-room-control-manager.js +2 -2
- package/lib/providers/screen-share/provider.base.d.ts +1 -0
- package/lib/providers/screen-share/provider.base.js +6 -1
- package/lib/providers/screen-share/provider.browser.js +13 -9
- package/lib/providers/screen-share/provider.electron.d.ts +1 -1
- package/lib/providers/screen-share/provider.electron.js +54 -44
- package/lib/providers/screen-share/strategy/electron.js +18 -3
- package/lib/providers/screen-share/stream-state-sync.d.ts +1 -1
- package/lib/providers/screen-share/stream-state-sync.js +4 -4
- package/lib/providers/screen-share/type.d.ts +9 -1
- package/lib/providers/session-provider.d.ts +1 -1
- package/lib/providers/stt-provider/stt-provider.d.ts +1 -1
- package/lib/providers/stt-provider/stt-provider.js +40 -77
- package/lib/providers/stt-provider/type.d.ts +5 -3
- package/lib/providers/stt-provider/type.js +4 -2
- package/lib/providers/user-audio-volume-provider.d.ts +47 -0
- package/lib/providers/user-audio-volume-provider.js +319 -0
- package/lib/providers/window/provider.d.ts +1 -1
- package/lib/providers/window/provider.js +23 -12
- package/lib/providers/window/renderer-window.d.ts +8 -2
- package/lib/providers/window/renderer-window.js +118 -33
- package/lib/providers/window/type.d.ts +1 -3
- package/lib/runtime.d.ts +12 -13
- package/lib/scenes/main-scene.js +98 -69
- package/lib/scenes/waiting-scene.js +4 -4
- package/lib/shared-data/member-data.d.ts +0 -9
- package/lib/shared-data/member-data.js +35 -61
- package/lib/shared-data/pin-data.d.ts +3 -2
- package/lib/shared-data/pin-data.js +8 -11
- package/lib/shared-data/setting.js +1 -1
- package/lib/shared-data/user-audio-volume.d.ts +19 -0
- package/lib/shared-data/user-audio-volume.js +104 -0
- package/lib/shared-data/video-window.js +49 -60
- package/lib/translations/enUS.d.ts +10 -0
- package/lib/translations/enUS.js +13 -3
- package/lib/translations/zhCN.d.ts +10 -0
- package/lib/translations/zhCN.js +12 -2
- package/lib/type.d.ts +27 -19
- package/lib/type.js +20 -2
- package/lib/ui-manager.js +1 -1
- package/lib/ui-scene-switch.d.ts +1 -0
- package/lib/ui-scene-switch.js +197 -87
- package/lib/utilities/browser-api.d.ts +0 -1
- package/lib/utilities/browser-api.js +0 -42
- package/lib/utilities/constant.d.ts +4 -4
- package/lib/utilities/constant.js +4 -5
- package/lib/utilities/default-config.d.ts +2 -8
- package/lib/utilities/default-config.js +8 -48
- package/lib/utilities/dialog-utils.js +1 -2
- package/lib/utilities/focus-helper.js +2 -2
- package/lib/utilities/logger.d.ts +1 -2
- package/lib/utilities/logger.js +12 -40
- package/lib/utilities/package-info.d.ts +1 -2
- package/lib/utilities/package-info.js +5 -6
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +7 -1
- package/lib/utilities/shared-storage.d.ts +2 -3
- package/lib/utilities/shared-storage.js +15 -11
- package/lib/utilities/tools.d.ts +1 -44
- package/lib/utilities/tools.js +28 -193
- package/lib/utilities/validate-params.js +3 -5
- package/lib-es/base.js +2 -2
- package/lib-es/creator/index.js +28 -12
- package/lib-es/creator/provider-initializer.browser.js +28 -3
- package/lib-es/creator/provider-initializer.electron.js +28 -5
- package/lib-es/electron/app.js +24 -7
- package/lib-es/electron/asar-validation.js +5 -1
- package/lib-es/electron/env.js +1 -1
- package/lib-es/electron/injections.js +22 -17
- package/lib-es/electron/ipc/type.js +1 -0
- package/lib-es/electron/main.js +3 -2
- package/lib-es/electron/plugins/main-window-display.js +16 -0
- package/lib-es/electron/preload.js +3 -2
- package/lib-es/electron/process-manager/index.js +37 -0
- package/lib-es/electron/process-manager/state-manager.js +46 -4
- package/lib-es/electron/sdk-helper.js +4 -0
- package/lib-es/electron/window-proxy/browser-window-proxy-factory.js +38 -0
- package/lib-es/electron/window-proxy/implementations/browser-window-proxy.js +328 -0
- package/lib-es/electron/window-proxy/implementations/electron-event-broadcaster.js +24 -0
- package/lib-es/electron/window-proxy/implementations/electron-ipc-handler.js +19 -0
- package/lib-es/electron/window-proxy/implementations/electron-logger.js +26 -0
- package/lib-es/electron/window-proxy/{main-process-handler.js → implementations/main-process-handler.js} +110 -113
- package/lib-es/electron/window-proxy/interfaces.js +1 -0
- package/lib-es/fragments/annotation/cursor.css +77 -0
- package/lib-es/fragments/annotation/index.js +5 -83
- package/lib-es/fragments/annotation/libs.js +63 -14
- package/lib-es/fragments/annotation/store.js +321 -711
- package/lib-es/fragments/annotation/style.css +5 -6
- package/lib-es/fragments/annotation/view.js +9 -48
- package/lib-es/fragments/base.js +1 -1
- package/lib-es/fragments/whiteboard/libs.js +147 -0
- package/lib-es/fragments/whiteboard/store.js +65 -129
- package/lib-es/modules/action-bar/components/apps/index.js +2 -2
- package/lib-es/modules/action-bar/components/collapse/index.js +8 -3
- package/lib-es/modules/action-bar/components/{confirm-leave-meeting → confirm-end-meeting}/index.js +14 -33
- package/lib-es/modules/action-bar/components/leave/index.js +1 -1
- package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.css +6 -0
- package/lib-es/modules/action-bar/components/notification-bar/components/interpreter/index.js +66 -42
- package/lib-es/modules/action-bar/components/notification-bar/components/virtual-image/index.js +11 -7
- package/lib-es/modules/action-bar/components/notification-bar/index.js +13 -71
- package/lib-es/modules/action-bar/components/screen-share/submenu.js +39 -2
- package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +1 -0
- package/lib-es/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.js +11 -8
- package/lib-es/modules/action-bar/index.css +1 -1
- package/lib-es/modules/action-bar/main-scene/index.js +4 -4
- package/lib-es/modules/action-bar/main-scene/store.base.js +165 -94
- package/lib-es/modules/action-bar/type.js +15 -0
- package/lib-es/modules/action-bar/waiting-scene/view.js +1 -1
- package/lib-es/modules/annotation/board-cursor.css +77 -0
- package/lib-es/modules/annotation/components/color-picker/components/color.js +29 -0
- package/lib-es/modules/annotation/components/color-picker/components/panel.js +100 -0
- package/lib-es/modules/annotation/components/color-picker/components/picker.js +67 -0
- package/lib-es/modules/annotation/components/color-picker/index.js +38 -0
- package/lib-es/modules/annotation/components/eraser-picker.js +134 -0
- package/lib-es/modules/annotation/components/expansion/index.js +85 -0
- package/lib-es/modules/annotation/components/extra-tool-picker.js +46 -0
- package/lib-es/modules/annotation/components/history.js +68 -0
- package/lib-es/modules/annotation/components/icons/fold-icon.js +33 -0
- package/lib-es/modules/annotation/components/icons/move-icon.js +59 -0
- package/lib-es/modules/annotation/components/item/index.js +35 -0
- package/lib-es/modules/annotation/components/move-handle.js +127 -0
- package/lib-es/modules/annotation/components/pen-picker.js +142 -0
- package/lib-es/modules/annotation/components/screen-capture-picker.js +77 -0
- package/lib-es/modules/annotation/components/shape-picker.js +193 -0
- package/lib-es/modules/annotation/hooks/index.js +156 -0
- package/lib-es/modules/annotation/index.js +144 -0
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.js +2 -2
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.js +23 -10
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.js +2 -3
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.js +23 -10
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.js +23 -10
- package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.js +2 -2
- package/lib-es/modules/annotation/standalone-toolbar/components/permission-tool/index.js +44 -0
- package/lib-es/modules/annotation/standalone-toolbar/store.js +611 -0
- package/{lib/fragments/annotation/toolbar → lib-es/modules/annotation/standalone-toolbar}/style.css +4 -1
- package/lib-es/modules/annotation/standalone-toolbar/view.js +186 -0
- package/lib-es/modules/annotation/store.base.js +178 -0
- package/lib-es/modules/annotation/store.browser.js +17 -0
- package/lib-es/modules/annotation/store.electron.js +67 -0
- package/lib-es/modules/annotation/style.css +36 -0
- package/lib-es/modules/annotation/toolbar-store.js +466 -0
- package/lib-es/modules/annotation/type.js +1 -0
- package/lib-es/modules/annotation/view.js +99 -0
- package/lib-es/modules/chat/chat-room-store.js +152 -72
- package/lib-es/modules/chat/components/message-list/index.js +123 -89
- package/lib-es/modules/chat/components/message-list/message-item/index.js +89 -67
- package/lib-es/modules/chat/components/message-list/scroll-bottom-button/index.js +6 -8
- package/lib-es/modules/chat/index.css +1 -9
- package/lib-es/modules/chat/store.js +7 -5
- package/lib-es/modules/chat/view.js +2 -7
- package/lib-es/modules/components/annotation-menu/index.js +28 -33
- package/lib-es/modules/components/apps/index.css +3 -2
- package/lib-es/modules/components/caption-menu/translation-setting-options.js +2 -2
- package/lib-es/modules/components/confirm-wrapper/index.css +48 -0
- package/lib-es/modules/components/confirm-wrapper/index.js +80 -0
- package/lib-es/modules/components/control-bar/index.js +349 -199
- package/lib-es/modules/components/device-control/components/audio-menu/index.js +3 -2
- package/lib-es/modules/components/device-control/components/video-menu/index.js +5 -3
- package/lib-es/modules/components/device-control/store.base.js +17 -1
- package/lib-es/modules/components/leave-meeting/index.css +21 -0
- package/lib-es/modules/components/leave-meeting/index.js +63 -102
- package/lib-es/modules/components/leave-meeting/portal.js +3 -5
- package/lib-es/modules/components/leave-meeting/store.base.js +49 -55
- package/lib-es/modules/components/leave-meeting/style.css +0 -1
- package/lib-es/modules/components/member-window/components/member-actions/components/more-actions.js +2 -1
- package/lib-es/modules/components/member-window/components/member-actions/provider.js +1 -1
- package/lib-es/modules/components/member-window/index.js +3 -3
- package/lib-es/modules/components/security-menu/store.js +7 -9
- package/lib-es/modules/components/tab-frame/index.css +2 -2
- package/lib-es/modules/connection-gateway/components/phone/index.js +1 -1
- package/lib-es/modules/connection-gateway/store.js +6 -8
- package/lib-es/modules/control-bar/components/annotation-button/index.js +43 -0
- package/lib-es/modules/control-bar/components/apps-popover/index.css +3 -0
- package/lib-es/modules/control-bar/components/apps-popover/index.js +2 -0
- package/lib-es/modules/control-bar/components/carmera/index.js +1 -1
- package/lib-es/modules/control-bar/components/meeting-details/index.js +10 -16
- package/lib-es/modules/control-bar/components/microphone/index.js +2 -2
- package/lib-es/modules/control-bar/hooks.js +1 -1
- package/lib-es/modules/control-bar/index.css +11 -0
- package/lib-es/modules/control-bar/store.js +184 -53
- package/lib-es/modules/control-bar/view.js +72 -39
- package/lib-es/modules/device-pretest/audio-preview/microphone-detection.js +4 -10
- package/lib-es/modules/device-pretest/audio-preview/speaker-detection.js +1 -1
- package/lib-es/modules/device-pretest/index.js +1 -1
- package/lib-es/modules/device-pretest/settings/beauty.js +1 -1
- package/lib-es/modules/device-pretest/settings/video-effect.js +27 -12
- package/lib-es/modules/device-pretest/settings/video-settings-basic.js +1 -1
- package/lib-es/modules/device-pretest/settings/virtual-background-setting.js +1 -1
- package/lib-es/modules/dialog/components/confirm/index.css +0 -18
- package/lib-es/modules/dialog/components/confirm/index.js +2 -1
- package/lib-es/modules/dialog/components/dialog-container/index.css +3 -4
- package/lib-es/modules/dialog/components/dialog-container/index.js +80 -126
- package/lib-es/modules/dialog/components/normal-window/index.js +15 -35
- package/lib-es/modules/dialog/dialogConfig/browser.js +4 -0
- package/lib-es/modules/dialog/dialogConfig/electron.js +8 -0
- package/lib-es/modules/dialog/dialogs/annotation-mask/index.js +34 -0
- package/lib-es/modules/dialog/dialogs/annotation-tool/index.js +18 -34
- package/lib-es/modules/dialog/dialogs/caption/index.js +24 -18
- package/lib-es/modules/dialog/dialogs/chat/index.js +32 -53
- package/lib-es/modules/dialog/dialogs/confirm/index.css +2 -13
- package/lib-es/modules/dialog/dialogs/confirm/index.js +4 -6
- package/lib-es/modules/dialog/dialogs/confirm-leave-meeting/index.js +3 -23
- package/lib-es/modules/dialog/dialogs/connection-gateway/index.js +5 -28
- package/lib-es/modules/dialog/dialogs/control-bar/index.js +3 -5
- package/lib-es/modules/dialog/dialogs/control-bar-leave-meeting/index.js +2 -20
- package/lib-es/modules/dialog/dialogs/device-setting/index.js +3 -19
- package/lib-es/modules/dialog/dialogs/{end-meeting → end-meeting-notice}/index.js +3 -13
- package/lib-es/modules/dialog/dialogs/interpreter/index.js +32 -23
- package/lib-es/modules/dialog/dialogs/invite/index.js +24 -23
- package/lib-es/modules/dialog/dialogs/live-streaming/index.js +6 -10
- package/lib-es/modules/dialog/dialogs/mute-all/index.js +3 -19
- package/lib-es/modules/dialog/dialogs/participant/index.js +31 -30
- package/lib-es/modules/dialog/dialogs/rename/index.js +1 -12
- package/lib-es/modules/dialog/dialogs/sample-dialog/index.js +1 -1
- package/lib-es/modules/dialog/dialogs/share-screen-selection/index.js +2 -11
- package/lib-es/modules/dialog/dialogs/sub-window/index.js +3 -2
- package/lib-es/modules/dialog/dialogs/subtitles-history/index.js +31 -24
- package/lib-es/modules/dialog/dialogs/system-preference/index.css +3 -2
- package/lib-es/modules/dialog/dialogs/system-preference/index.js +12 -12
- package/lib-es/modules/dialog/dialogs/toast/index.js +4 -4
- package/lib-es/modules/dialog/dialogs/video-window/index.js +3 -3
- package/lib-es/modules/dialog/dialogs/whiteboard/index.js +1 -1
- package/lib-es/modules/dialog/dialogs/widget/index.js +21 -25
- package/lib-es/modules/dialog/index.css +4 -11
- package/lib-es/modules/dialog/level-config.js +1 -0
- package/lib-es/modules/dialog/store.base.js +0 -3
- package/lib-es/modules/dialog/store.electron.js +16 -9
- package/lib-es/modules/dialog/view.js +25 -1
- package/lib-es/modules/dialog/web-dialog-wrapper.js +147 -0
- package/lib-es/modules/event-toast/index.css +5 -2
- package/lib-es/modules/event-toast/store.browser.js +1 -1
- package/lib-es/modules/event-toast/store.electron.js +1 -1
- package/lib-es/modules/interpreter/index.css +1 -2
- package/lib-es/modules/interpreter/store.js +22 -19
- package/lib-es/modules/interpreter/utils.js +1 -1
- package/lib-es/modules/invite/components/pstn-invite.js +4 -4
- package/lib-es/modules/invite/store.js +1 -1
- package/lib-es/modules/layout/components/Aside.js +1 -1
- package/lib-es/modules/layout/components/Carousel.js +1 -1
- package/lib-es/modules/layout/components/CommonVideoRenderer.js +15 -5
- package/lib-es/modules/layout/components/Gallery.js +1 -1
- package/lib-es/modules/layout/index.css +0 -31
- package/lib-es/modules/layout/store.base.js +71 -200
- package/lib-es/modules/layout/store.browser.js +62 -1
- package/lib-es/modules/layout/store.electron.js +10 -28
- package/lib-es/modules/layout/view.js +1 -3
- package/lib-es/modules/live-streaming/index.dev.js +1 -1
- package/lib-es/modules/live-streaming/store.js +3 -4
- package/lib-es/modules/participant/components/confirm-input/index.css +15 -0
- package/lib-es/modules/participant/components/confirm-input/index.js +10 -13
- package/lib-es/modules/participant/components/mute-all/index.css +34 -0
- package/lib-es/modules/participant/components/mute-all/index.js +21 -15
- package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/index.js +17 -3
- package/lib-es/modules/participant/components/participants/components/footer/components/drop-menu/util.js +3 -1
- package/lib-es/modules/participant/components/participants/components/render-user/components/attendee/components/microphone-indicator/index.js +3 -2
- package/lib-es/modules/participant/components/participants/components/render-user/components/user-action/index.js +1 -1
- package/lib-es/modules/participant/index.css +0 -16
- package/lib-es/modules/participant/store.base.js +219 -127
- package/lib-es/modules/participant/store.browser.js +2 -2
- package/lib-es/modules/participant/store.electron.js +2 -2
- package/lib-es/modules/pc-audio-connect/waiting-scene/index.js +6 -1
- package/lib-es/modules/phone-audio-connect/store.js +1 -1
- package/lib-es/modules/phone-audio-connect/view.js +1 -1
- package/lib-es/modules/secondary-window/index.js +51 -25
- package/lib-es/modules/secondary-window/store.js +40 -9
- package/lib-es/modules/secondary-window/type.js +1 -0
- package/lib-es/modules/secondary-window/view.js +60 -59
- package/lib-es/modules/setting/audio-settings/audio-settings.js +2 -2
- package/lib-es/modules/setting/audio-whiteList/audio-device-adaptation.js +2 -2
- package/lib-es/modules/setting/audio-whiteList/audio-whiteList-manager.js +1 -1
- package/lib-es/modules/setting/caption_and_transcribing/index.js +1 -1
- package/lib-es/modules/setting/general-settings/general-settings.js +5 -5
- package/lib-es/modules/setting/index.css +2 -3
- package/lib-es/modules/setting/index.js +3 -10
- package/lib-es/modules/setting/minutes-settings/minutes-settings.js +1 -1
- package/lib-es/modules/setting/state/index.js +1 -1
- package/lib-es/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib-es/modules/setting/store.base.js +103 -88
- package/lib-es/modules/setting/store.electron.js +19 -1
- package/lib-es/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib-es/modules/setting/video-settings/video-settings-basic.js +1 -1
- package/lib-es/modules/setting/video-settings/video-settings.js +11 -7
- package/lib-es/modules/setting/view.js +1 -1
- package/lib-es/modules/share-screen/components/control-bar/index.js +0 -86
- package/lib-es/modules/share-screen/components/selection/index.js +3 -1
- package/lib-es/modules/share-screen/store.base.js +10 -14
- package/lib-es/modules/share-screen/store.electron.js +109 -35
- package/lib-es/modules/state-bar/layout-config.js +1 -1
- package/lib-es/modules/state-bar/live-streaming-state.js +5 -6
- package/lib-es/modules/state-bar/main-scene/store.browser.js +1 -1
- package/lib-es/modules/state-bar/main-scene/store.electron.js +1 -1
- package/lib-es/modules/state-bar/meeting-details.js +10 -17
- package/lib-es/modules/state-bar/meeting-network-state.css +5 -1
- package/lib-es/modules/state-bar/meeting-network-state.js +7 -1
- package/lib-es/modules/state-bar/meeting-time.js +1 -1
- package/lib-es/modules/state-bar/network-quality.js +1 -1
- package/lib-es/modules/state-bar/recording.js +1 -1
- package/lib-es/modules/state-bar/store.base.js +15 -24
- package/lib-es/modules/state-bar/view.js +5 -6
- package/lib-es/modules/subtitles-history/components/list-item.js +6 -1
- package/lib-es/modules/subtitles-history/index.css +2 -5
- package/lib-es/modules/subtitles-history/store.base.js +24 -12
- package/lib-es/modules/subtitles-history/store.electron.js +8 -2
- package/lib-es/modules/subtitles-history/view.js +7 -5
- package/lib-es/modules/toast-manager/index.js +50 -0
- package/lib-es/modules/toast-manager/store.js +383 -0
- package/lib-es/modules/toast-manager/toast-params.js +82 -0
- package/lib-es/modules/toast-manager/type.js +329 -0
- package/lib-es/modules/video-window/store.js +28 -50
- package/lib-es/modules/whiteboard/components/control-bar/store.js +0 -6
- package/lib-es/modules/whiteboard/components/toolbar/store.js +25 -14
- package/lib-es/modules/whiteboard/store.js +10 -9
- package/lib-es/modules/whiteboard/view.js +0 -1
- package/lib-es/modules/widget/store.electron.js +12 -47
- package/lib-es/modules/widget/view.js +1 -1
- package/lib-es/object-manager.js +2 -0
- package/lib-es/plugins/multi-lang-plugin.js +1 -1
- package/lib-es/providers/ability-provider.js +29 -1
- package/lib-es/providers/annotation/provider.base.js +263 -0
- package/lib-es/providers/annotation/provider.browser.js +17 -0
- package/lib-es/providers/annotation/provider.electron.js +224 -0
- package/lib-es/{fragments/annotation/toolbar/store.js → providers/annotation/standalone-toolbar-control/index.js} +102 -174
- package/lib-es/providers/annotation/toolbar-control/index.js +198 -0
- package/lib-es/providers/app-list-provider.js +13 -7
- package/lib-es/providers/board-share/bar-control/base.js +7 -36
- package/lib-es/providers/board-share/bar-control/browser.js +78 -4
- package/lib-es/providers/board-share/bar-control/electron.js +36 -12
- package/lib-es/providers/board-share/provider.base.js +73 -14
- package/lib-es/providers/device-privilege-provider.js +85 -62
- package/lib-es/providers/device-provider.js +413 -162
- package/lib-es/providers/device-stream-provider.js +37 -111
- package/lib-es/providers/dialog/provider.electron.js +6 -1
- package/lib-es/providers/interpreter-provider.js +5 -5
- package/lib-es/providers/message/provider.js +12 -0
- package/lib-es/providers/mouse-detect/provider.js +1 -1
- package/lib-es/providers/mouse-detect/struct.js +1 -0
- package/lib-es/providers/multi-display-provider.js +15 -2
- package/lib-es/providers/phone-audio-provider.js +17 -10
- package/lib-es/providers/room-provider/room-provider.js +95 -201
- package/lib-es/providers/room-provider/waiting-room-control-manager.js +1 -1
- package/lib-es/providers/screen-share/provider.base.js +6 -1
- package/lib-es/providers/screen-share/provider.browser.js +13 -9
- package/lib-es/providers/screen-share/provider.electron.js +54 -44
- package/lib-es/providers/screen-share/strategy/electron.js +18 -3
- package/lib-es/providers/screen-share/stream-state-sync.js +4 -4
- package/lib-es/providers/stt-provider/stt-provider.js +65 -102
- package/lib-es/providers/stt-provider/type.js +4 -2
- package/lib-es/providers/user-audio-volume-provider.js +312 -0
- package/lib-es/providers/window/provider.js +23 -13
- package/lib-es/providers/window/renderer-window.js +118 -33
- package/lib-es/scenes/main-scene.js +113 -83
- package/lib-es/scenes/waiting-scene.js +5 -5
- package/lib-es/shared-data/member-data.js +35 -61
- package/lib-es/shared-data/pin-data.js +8 -11
- package/lib-es/shared-data/setting.js +1 -1
- package/lib-es/shared-data/user-audio-volume.js +97 -0
- package/lib-es/shared-data/video-window.js +49 -60
- package/lib-es/translations/enUS.js +13 -3
- package/lib-es/translations/zhCN.js +12 -2
- package/lib-es/type.js +19 -1
- package/lib-es/ui-manager.js +1 -1
- package/lib-es/ui-scene-switch.js +199 -88
- package/lib-es/utilities/browser-api.js +0 -40
- package/lib-es/utilities/constant.js +4 -5
- package/lib-es/utilities/default-config.js +8 -48
- package/lib-es/utilities/dialog-utils.js +1 -1
- package/lib-es/utilities/focus-helper.js +1 -1
- package/lib-es/utilities/logger.js +12 -40
- package/lib-es/utilities/package-info.js +5 -6
- package/lib-es/utilities/renderer.js +7 -1
- package/lib-es/utilities/shared-storage.js +16 -12
- package/lib-es/utilities/tools.js +2 -188
- package/lib-es/utilities/validate-params.js +3 -5
- package/package.json +7 -8
- package/public/js/meeting-manager.js +13 -11
- package/lib/electron/window-proxy/browser-window-proxy.js +0 -728
- package/lib/fragments/annotation/toolbar/store.d.ts +0 -64
- package/lib/fragments/annotation/toolbar/view.js +0 -148
- package/lib/fragments/annotation/utils.d.ts +0 -1
- package/lib/fragments/annotation/utils.js +0 -27
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +0 -20
- package/lib/modules/dialog/components/dialog-container/component/body.js +0 -111
- package/lib/modules/dialog/components/host-area-container/index.d.ts +0 -12
- package/lib/modules/dialog/components/host-area-container/index.js +0 -153
- package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +0 -13
- package/lib/modules/dialog/dialogs/interpreter/index.css +0 -30
- package/lib/modules/dialog/dialogs/mute-all/index.css +0 -20
- package/lib/modules/whiteboard/components/multi-window/index.css +0 -63
- package/lib/modules/whiteboard/components/multi-window/index.d.ts +0 -5
- package/lib/modules/whiteboard/components/multi-window/index.js +0 -39
- package/lib/providers/annotation/provider.d.ts +0 -15
- package/lib/providers/annotation/provider.js +0 -69
- package/lib/utilities/hooks.d.ts +0 -14
- package/lib/utilities/hooks.js +0 -100
- package/lib/utilities/mute-action.d.ts +0 -4
- package/lib/utilities/mute-action.js +0 -48
- package/lib/utilities/platform.d.ts +0 -2
- package/lib/utilities/platform.js +0 -14
- package/lib/utilities/regex.d.ts +0 -1
- package/lib/utilities/regex.js +0 -14
- package/lib/utilities/useNamespace.d.ts +0 -15
- package/lib/utilities/useNamespace.js +0 -66
- package/lib-es/electron/window-proxy/browser-window-proxy.js +0 -720
- package/lib-es/fragments/annotation/toolbar/view.js +0 -140
- package/lib-es/fragments/annotation/utils.js +0 -20
- package/lib-es/modules/dialog/components/dialog-container/component/body.js +0 -103
- package/lib-es/modules/dialog/components/host-area-container/index.js +0 -146
- package/lib-es/modules/dialog/dialogs/interpreter/index.css +0 -30
- package/lib-es/modules/dialog/dialogs/mute-all/index.css +0 -20
- package/lib-es/modules/whiteboard/components/multi-window/index.css +0 -63
- package/lib-es/modules/whiteboard/components/multi-window/index.js +0 -31
- package/lib-es/providers/annotation/provider.js +0 -61
- package/lib-es/utilities/hooks.js +0 -82
- package/lib-es/utilities/mute-action.js +0 -41
- package/lib-es/utilities/platform.js +0 -7
- package/lib-es/utilities/regex.js +0 -7
- package/lib-es/utilities/useNamespace.js +0 -59
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/color-panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/color-tool/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/style.css +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/style.css +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/pen-tool/pen-panel/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.d.ts +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.js +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/style.css +0 -0
- /package/lib/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/view.d.ts +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/graphic-tool/graphic-panel/libs.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/item.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/item/style.css +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/index.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/panel/style.css +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/index.js +0 -0
- /package/lib-es/{fragments/annotation/toolbar → modules/annotation/standalone-toolbar}/components/tips/style.css +0 -0
|
@@ -35,11 +35,12 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", {
|
|
36
36
|
value: true
|
|
37
37
|
});
|
|
38
|
-
exports.
|
|
39
|
-
require("core-js/modules/es.array.concat.js");
|
|
38
|
+
exports.FcrUIStandaloneBoardControlImpl = void 0;
|
|
40
39
|
require("core-js/modules/es.array.for-each.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.date.to-json.js");
|
|
43
|
+
require("core-js/modules/es.json.stringify.js");
|
|
43
44
|
require("core-js/modules/es.object.to-string.js");
|
|
44
45
|
require("core-js/modules/es.string.iterator.js");
|
|
45
46
|
require("core-js/modules/es.weak-map.js");
|
|
@@ -49,19 +50,18 @@ require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
|
49
50
|
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
50
51
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
51
52
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
52
|
-
require("core-js/modules/web.timers.js");
|
|
53
53
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
54
54
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
55
55
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
56
56
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
57
|
-
var _react = require("react");
|
|
58
|
-
var _mobx = require("mobx");
|
|
59
|
-
var _decorator = require("agora-foundation/lib/decorator");
|
|
60
57
|
var _logger = require("../../../utilities/logger");
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
58
|
+
var _enum = require("fcr-core/lib/room-control/whiteboard-control-v2/enum");
|
|
59
|
+
var _type = require("fcr-core/lib/type");
|
|
60
|
+
var _mobx = require("mobx");
|
|
61
|
+
var _theme = _interopRequireDefault(require("../../../modules/whiteboard/libs/theme"));
|
|
62
|
+
var _toolbar = require("../../../modules/components/toolbar");
|
|
63
|
+
var _FcrUIStandaloneBoardControlImpl;
|
|
64
|
+
var _initProto, _init_currentTheme, _init_backgroundColor, _init_hasWritePermission, _init_connectionState, _init_toolbarState, _setWhiteboardToolDecs, _setWhiteboardStrokeColorDecs, _setWhiteboardStrokeWidthDecs, _handleConnectionStateUpdatedDecs, _ref;
|
|
65
65
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
66
66
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
67
67
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -72,55 +72,59 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
72
72
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
73
73
|
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
74
74
|
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; }
|
|
75
|
-
var colors = ['#E2E2E2', '#968D86', '#5A7D75', '#A1C473', '#51BD69', '#50E3C2', '#0E0E0E', '#FFC908', '#CC3100', '#FC3141', '#4262FF', '#7740EC'];
|
|
76
75
|
var _A = /*#__PURE__*/new WeakMap();
|
|
77
76
|
var _B = /*#__PURE__*/new WeakMap();
|
|
78
77
|
var _C = /*#__PURE__*/new WeakMap();
|
|
79
78
|
var _D = /*#__PURE__*/new WeakMap();
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
var _E = /*#__PURE__*/new WeakMap();
|
|
80
|
+
_ref = (_setWhiteboardToolDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardStrokeColorDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardStrokeWidthDecs = [_mobx.action, _mobx.action.bound], _handleConnectionStateUpdatedDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
81
|
+
var FcrUIStandaloneBoardControlImpl = exports.FcrUIStandaloneBoardControlImpl = /*#__PURE__*/function () {
|
|
82
|
+
function FcrUIStandaloneBoardControlImpl(_privilegeProvider, _fcrUIMainWindowRenderer) {
|
|
83
83
|
var _this = this;
|
|
84
|
-
|
|
85
|
-
(0, _classCallCheck2["default"])(this, AnnotationToolbarStore);
|
|
84
|
+
(0, _classCallCheck2["default"])(this, FcrUIStandaloneBoardControlImpl);
|
|
86
85
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
87
|
-
prefix: '
|
|
86
|
+
prefix: 'FcrUIBoardControlShareProviderImpl'
|
|
88
87
|
})));
|
|
89
|
-
(0, _defineProperty2["default"])(this, "
|
|
90
|
-
(0, _defineProperty2["default"])(this, "
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
(0, _defineProperty2["default"])(this, "_disposers", []);
|
|
89
|
+
(0, _defineProperty2["default"])(this, "_toolbarStateObserver", {
|
|
90
|
+
onUndoStateUpdated: function onUndoStateUpdated(allowUndo) {
|
|
91
|
+
_this.toolbarState.undoSteps = allowUndo;
|
|
92
|
+
},
|
|
93
|
+
onRedoStateUpdated: function onRedoStateUpdated(allowRedo) {
|
|
94
|
+
_this.toolbarState.redoSteps = allowRedo;
|
|
95
|
+
},
|
|
96
|
+
onConnectionStateUpdated: this._handleConnectionStateUpdated
|
|
97
|
+
});
|
|
98
|
+
_classPrivateFieldInitSpec(this, _A, _init_currentTheme(this, (0, _theme["default"])()[0]));
|
|
99
|
+
_classPrivateFieldInitSpec(this, _B, _init_backgroundColor(this, '#ffffff'));
|
|
100
|
+
_classPrivateFieldInitSpec(this, _C, _init_hasWritePermission(this, false));
|
|
101
|
+
_classPrivateFieldInitSpec(this, _D, _init_connectionState(this, _type.FcrConnectionState.DISCONNECTED));
|
|
102
|
+
_classPrivateFieldInitSpec(this, _E, _init_toolbarState(this, {
|
|
103
|
+
controlEnable: false,
|
|
104
|
+
currentTool: _enum.FcrBoardToolType.LASER_POINTER,
|
|
95
105
|
currentStrokeWidth: 2,
|
|
106
|
+
currentColor: _toolbar.colors[7],
|
|
107
|
+
currentShape: _enum.FcrBoardShape.Rectangle,
|
|
96
108
|
redoSteps: false,
|
|
97
109
|
undoSteps: false,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}));
|
|
102
|
-
_classPrivateFieldInitSpec(this, _B, _init_isTipsVisible(this, true));
|
|
103
|
-
_classPrivateFieldInitSpec(this, _C, _init_popoverVisible(this, false));
|
|
104
|
-
_classPrivateFieldInitSpec(this, _D, _init_toolbarCoords(this, {
|
|
105
|
-
x: 0,
|
|
106
|
-
y: 0,
|
|
107
|
-
width: 0,
|
|
108
|
-
height: 0
|
|
110
|
+
themeColors: this.currentTheme.colors,
|
|
111
|
+
commonColors: [this.currentTheme.colors[2], this.currentTheme.colors[5]],
|
|
112
|
+
progress: 0
|
|
109
113
|
}));
|
|
110
|
-
this.
|
|
111
|
-
|
|
112
|
-
this.
|
|
113
|
-
this.
|
|
114
|
-
this.
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
this._privilegeProvider = _privilegeProvider;
|
|
115
|
+
this._fcrUIMainWindowRenderer = _fcrUIMainWindowRenderer;
|
|
116
|
+
this._fcrUIMainWindowRenderer.addObserver(this._toolbarStateObserver);
|
|
117
|
+
this.hasWritePermission = this._privilegeProvider.hasAnnotationWritePermission();
|
|
118
|
+
this._fcrUIMainWindowRenderer.notifyObservers('onPermissionUpdated', this.hasWritePermission);
|
|
119
|
+
this._disposers.push((0, _mobx.reaction)(function () {
|
|
120
|
+
return _this._privilegeProvider.hasAnnotationWritePermission();
|
|
121
|
+
}, function () {
|
|
122
|
+
_this.hasWritePermission = _this._privilegeProvider.hasAnnotationWritePermission();
|
|
123
|
+
_this._fcrUIMainWindowRenderer.notifyObservers('onPermissionUpdated', _this.hasWritePermission);
|
|
120
124
|
}));
|
|
121
125
|
}
|
|
122
|
-
return (0, _createClass2["default"])(
|
|
123
|
-
key: "
|
|
126
|
+
return (0, _createClass2["default"])(FcrUIStandaloneBoardControlImpl, [{
|
|
127
|
+
key: "currentTheme",
|
|
124
128
|
get: function get() {
|
|
125
129
|
return _classPrivateFieldGet(_A, this);
|
|
126
130
|
},
|
|
@@ -128,7 +132,7 @@ var AnnotationToolbarStore = exports.AnnotationToolbarStore = /*#__PURE__*/funct
|
|
|
128
132
|
_classPrivateFieldSet(_A, this, v);
|
|
129
133
|
}
|
|
130
134
|
}, {
|
|
131
|
-
key: "
|
|
135
|
+
key: "backgroundColor",
|
|
132
136
|
get: function get() {
|
|
133
137
|
return _classPrivateFieldGet(_B, this);
|
|
134
138
|
},
|
|
@@ -136,7 +140,7 @@ var AnnotationToolbarStore = exports.AnnotationToolbarStore = /*#__PURE__*/funct
|
|
|
136
140
|
_classPrivateFieldSet(_B, this, v);
|
|
137
141
|
}
|
|
138
142
|
}, {
|
|
139
|
-
key: "
|
|
143
|
+
key: "hasWritePermission",
|
|
140
144
|
get: function get() {
|
|
141
145
|
return _classPrivateFieldGet(_C, this);
|
|
142
146
|
},
|
|
@@ -144,7 +148,7 @@ var AnnotationToolbarStore = exports.AnnotationToolbarStore = /*#__PURE__*/funct
|
|
|
144
148
|
_classPrivateFieldSet(_C, this, v);
|
|
145
149
|
}
|
|
146
150
|
}, {
|
|
147
|
-
key: "
|
|
151
|
+
key: "connectionState",
|
|
148
152
|
get: function get() {
|
|
149
153
|
return _classPrivateFieldGet(_D, this);
|
|
150
154
|
},
|
|
@@ -152,148 +156,72 @@ var AnnotationToolbarStore = exports.AnnotationToolbarStore = /*#__PURE__*/funct
|
|
|
152
156
|
_classPrivateFieldSet(_D, this, v);
|
|
153
157
|
}
|
|
154
158
|
}, {
|
|
155
|
-
key: "
|
|
159
|
+
key: "toolbarState",
|
|
156
160
|
get: function get() {
|
|
157
|
-
return this
|
|
161
|
+
return _classPrivateFieldGet(_E, this);
|
|
162
|
+
},
|
|
163
|
+
set: function set(v) {
|
|
164
|
+
_classPrivateFieldSet(_E, this, v);
|
|
158
165
|
}
|
|
159
166
|
}, {
|
|
160
|
-
key: "
|
|
167
|
+
key: "canRedo",
|
|
161
168
|
get: function get() {
|
|
162
|
-
return this.
|
|
169
|
+
return this.toolbarState.redoSteps;
|
|
163
170
|
}
|
|
164
171
|
}, {
|
|
165
|
-
key: "
|
|
172
|
+
key: "canUndo",
|
|
166
173
|
get: function get() {
|
|
167
|
-
return this.
|
|
168
|
-
}
|
|
169
|
-
}, {
|
|
170
|
-
key: "
|
|
171
|
-
value: function
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
// renderer.sendEvent({ action: ToolbarEvents.CLEAN, payload: null });
|
|
183
|
-
}
|
|
184
|
-
}, {
|
|
185
|
-
key: "setTool",
|
|
186
|
-
value: function setTool(tool) {
|
|
187
|
-
// renderer.sendEvent({ action: ToolbarEvents.SET_TOOL, payload: tool });
|
|
188
|
-
this.observables.currentTool = tool;
|
|
189
|
-
}
|
|
190
|
-
}, {
|
|
191
|
-
key: "setPen",
|
|
192
|
-
value: function setPen(shape) {
|
|
193
|
-
// renderer.sendEvent({ action: ToolbarEvents.SET_PEN, payload: shape });
|
|
194
|
-
this.observables.currentShape = shape;
|
|
195
|
-
this.observables.lastPen = _fcrCore.FcrBoardToolType.CURVE;
|
|
196
|
-
this.observables.currentTool = _fcrCore.FcrBoardToolType.CURVE;
|
|
197
|
-
}
|
|
198
|
-
}, {
|
|
199
|
-
key: "setShape",
|
|
200
|
-
value: function setShape(shape) {
|
|
201
|
-
// renderer.sendEvent({ action: ToolbarEvents.SET_SHAPE, payload: shape });
|
|
202
|
-
this.observables.currentShape = shape;
|
|
203
|
-
this.observables.lastShape = shape;
|
|
204
|
-
this.observables.currentTool = _fcrCore.FcrBoardToolType.CURVE;
|
|
205
|
-
}
|
|
206
|
-
}, {
|
|
207
|
-
key: "setStrokeColor",
|
|
208
|
-
value: function setStrokeColor(color) {
|
|
209
|
-
// renderer.sendEvent({ action: ToolbarEvents.SET_STROKE_COLOR, payload: color });
|
|
210
|
-
this.observables.currentColor = color;
|
|
211
|
-
}
|
|
212
|
-
}, {
|
|
213
|
-
key: "setStrokeWidth",
|
|
214
|
-
value: function setStrokeWidth(strokeWidth) {
|
|
215
|
-
this.observables.currentStrokeWidth = strokeWidth;
|
|
216
|
-
// renderer.sendEvent({ action: ToolbarEvents.SET_STROKE_WIDTH, payload: strokeWidth });
|
|
217
|
-
}
|
|
218
|
-
}, {
|
|
219
|
-
key: "setToolbarCoords",
|
|
220
|
-
value: function setToolbarCoords(coords) {
|
|
221
|
-
this.toolbarCoords = coords;
|
|
222
|
-
}
|
|
223
|
-
}, {
|
|
224
|
-
key: "updatePosition",
|
|
225
|
-
value: function updatePosition(position) {
|
|
226
|
-
this._sharedConfirmDataSource.setPosition(position);
|
|
227
|
-
}
|
|
228
|
-
}, {
|
|
229
|
-
key: "onTooltipMount",
|
|
230
|
-
value: function onTooltipMount(dom) {
|
|
231
|
-
var _this2 = this;
|
|
232
|
-
if (dom) {
|
|
233
|
-
var react = dom.getBoundingClientRect();
|
|
234
|
-
var x = react.x,
|
|
235
|
-
y = react.y,
|
|
236
|
-
width = react.width,
|
|
237
|
-
height = react.height;
|
|
238
|
-
this.logger.info("[AnnotationToolbarStore] onTooltipMount: x=".concat(x, ", y=").concat(y, ", width=").concat(width, ", height=").concat(height));
|
|
239
|
-
this.setToolbarCoords({
|
|
240
|
-
x: x,
|
|
241
|
-
y: y,
|
|
242
|
-
width: width,
|
|
243
|
-
height: height
|
|
244
|
-
});
|
|
245
|
-
this.isTipsVisible = true;
|
|
246
|
-
if (!this._tipsTimer) {
|
|
247
|
-
this._tipsTimer = setTimeout(function () {
|
|
248
|
-
(0, _mobx.runInAction)(function () {
|
|
249
|
-
_this2.isTipsVisible = false;
|
|
250
|
-
});
|
|
251
|
-
}, 3000);
|
|
252
|
-
} else {
|
|
253
|
-
clearTimeout(this._tipsTimer);
|
|
254
|
-
this._tipsTimer = null;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}, {
|
|
259
|
-
key: "onTooltipUnmount",
|
|
260
|
-
value: function onTooltipUnmount() {
|
|
261
|
-
if (this._tipsTimer) {
|
|
262
|
-
clearTimeout(this._tipsTimer);
|
|
263
|
-
this._tipsTimer = null;
|
|
264
|
-
this.isTipsVisible = false;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}, {
|
|
268
|
-
key: "setPopoverVisible",
|
|
269
|
-
value: function setPopoverVisible(visible) {
|
|
270
|
-
this.popoverVisible = visible;
|
|
174
|
+
return this.toolbarState.undoSteps;
|
|
175
|
+
}
|
|
176
|
+
}, {
|
|
177
|
+
key: "setWhiteboardTool",
|
|
178
|
+
value: function setWhiteboardTool(_ref2) {
|
|
179
|
+
var tool = _ref2.tool,
|
|
180
|
+
action = _ref2.action;
|
|
181
|
+
this.logger.info("[shared-whiteboard-data-source]: setWhiteboardTool ".concat(JSON.stringify({
|
|
182
|
+
tool: tool,
|
|
183
|
+
action: action
|
|
184
|
+
})));
|
|
185
|
+
this._fcrUIMainWindowRenderer.notifyObservers('onWhiteboardToolSelected', {
|
|
186
|
+
tool: tool,
|
|
187
|
+
action: action
|
|
188
|
+
});
|
|
271
189
|
}
|
|
272
190
|
}, {
|
|
273
|
-
key: "
|
|
274
|
-
value: function
|
|
275
|
-
|
|
191
|
+
key: "setWhiteboardStrokeColor",
|
|
192
|
+
value: function setWhiteboardStrokeColor(color) {
|
|
193
|
+
this.toolbarState.currentColor = color;
|
|
194
|
+
this._fcrUIMainWindowRenderer.notifyObservers('onWhiteboardStrokeColorChanged', color);
|
|
276
195
|
}
|
|
277
196
|
}, {
|
|
278
|
-
key: "
|
|
279
|
-
value: function
|
|
280
|
-
this.
|
|
197
|
+
key: "setWhiteboardStrokeWidth",
|
|
198
|
+
value: function setWhiteboardStrokeWidth(width) {
|
|
199
|
+
this.toolbarState.currentStrokeWidth = width;
|
|
200
|
+
this._fcrUIMainWindowRenderer.notifyObservers('onWhiteboardStrokeWidthChanged', width);
|
|
281
201
|
}
|
|
282
202
|
}, {
|
|
283
203
|
key: "release",
|
|
284
204
|
value: function release() {
|
|
285
|
-
this.
|
|
286
|
-
|
|
287
|
-
return disposer();
|
|
205
|
+
this._disposers.forEach(function (dispose) {
|
|
206
|
+
return dispose();
|
|
288
207
|
});
|
|
208
|
+
this._disposers = [];
|
|
209
|
+
this._fcrUIMainWindowRenderer.removeObserver(this._toolbarStateObserver);
|
|
210
|
+
}
|
|
211
|
+
}, {
|
|
212
|
+
key: "_handleConnectionStateUpdated",
|
|
213
|
+
value: function _handleConnectionStateUpdated(state) {
|
|
214
|
+
this.connectionState = state;
|
|
289
215
|
}
|
|
290
216
|
}]);
|
|
291
217
|
}();
|
|
292
|
-
|
|
293
|
-
var _applyDecs$e =
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
218
|
+
_FcrUIStandaloneBoardControlImpl = FcrUIStandaloneBoardControlImpl;
|
|
219
|
+
var _applyDecs$e = _applyDecs(_FcrUIStandaloneBoardControlImpl, [[_mobx.observable, 1, "currentTheme"], [_mobx.observable, 1, "backgroundColor"], [_mobx.observable, 1, "hasWritePermission"], [_mobx.observable, 1, "connectionState"], [_mobx.observable, 1, "toolbarState"], [_setWhiteboardToolDecs, 18, "setWhiteboardTool"], [_setWhiteboardStrokeColorDecs, 18, "setWhiteboardStrokeColor"], [_setWhiteboardStrokeWidthDecs, 18, "setWhiteboardStrokeWidth"], [_handleConnectionStateUpdatedDecs, 18, "_handleConnectionStateUpdated"]], []).e;
|
|
220
|
+
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 6);
|
|
221
|
+
_init_currentTheme = _applyDecs$e2[0];
|
|
222
|
+
_init_backgroundColor = _applyDecs$e2[1];
|
|
223
|
+
_init_hasWritePermission = _applyDecs$e2[2];
|
|
224
|
+
_init_connectionState = _applyDecs$e2[3];
|
|
225
|
+
_init_toolbarState = _applyDecs$e2[4];
|
|
226
|
+
_initProto = _applyDecs$e2[5];
|
|
227
|
+
_applyDecs$e;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FcrAnnotationControl } from 'fcr-core/lib/room-control/whiteboard-control-v2/annotation-control/type';
|
|
2
|
+
import { FcrBoardToolType } from 'fcr-core/lib/room-control/whiteboard-control-v2/enum';
|
|
3
|
+
import { FcrUIBoardToolSelectedPayload } from '../../../modules/secondary-window/type';
|
|
4
|
+
import { FcrUIPrivilegeProvider } from '../../privilege-provider';
|
|
5
|
+
import { FcrUIBoardBarControl } from '../type';
|
|
6
|
+
export declare class FcrUIBoardBarControlImpl implements FcrUIBoardBarControl {
|
|
7
|
+
private readonly _privilegeProvider;
|
|
8
|
+
private readonly _boardControl;
|
|
9
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
10
|
+
private _boardMainWindowObserver;
|
|
11
|
+
private _boardObserver;
|
|
12
|
+
accessor toolbarState: {
|
|
13
|
+
currentTool: FcrBoardToolType;
|
|
14
|
+
strokeWidth: number;
|
|
15
|
+
strokeColor: string;
|
|
16
|
+
redoSteps: boolean;
|
|
17
|
+
undoSteps: boolean;
|
|
18
|
+
};
|
|
19
|
+
protected get _boardMainWindow(): import("fcr-core").FcrBoardMainWindow;
|
|
20
|
+
constructor(_privilegeProvider: FcrUIPrivilegeProvider, _boardControl: FcrAnnotationControl);
|
|
21
|
+
private _handleBoardMainWindowLoaded;
|
|
22
|
+
get currentTool(): FcrBoardToolType;
|
|
23
|
+
get strokeColor(): string;
|
|
24
|
+
get strokeWidth(): number;
|
|
25
|
+
get canRedo(): boolean;
|
|
26
|
+
get canUndo(): boolean;
|
|
27
|
+
release(): void;
|
|
28
|
+
setWhiteboardTool({ tool, action }: FcrUIBoardToolSelectedPayload): void;
|
|
29
|
+
setWhiteboardStrokeColor(color: string): void;
|
|
30
|
+
setWhiteboardStrokeWidth(width: number): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.symbol.description.js");
|
|
5
|
+
require("core-js/modules/es.symbol.to-primitive.js");
|
|
6
|
+
require("core-js/modules/es.array.is-array.js");
|
|
7
|
+
require("core-js/modules/es.array.push.js");
|
|
8
|
+
require("core-js/modules/es.date.to-primitive.js");
|
|
9
|
+
require("core-js/modules/es.function.bind.js");
|
|
10
|
+
require("core-js/modules/es.function.name.js");
|
|
11
|
+
require("core-js/modules/es.map.js");
|
|
12
|
+
require("core-js/modules/es.number.constructor.js");
|
|
13
|
+
require("core-js/modules/es.object.create.js");
|
|
14
|
+
require("core-js/modules/es.object.define-property.js");
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
16
|
+
require("core-js/modules/esnext.function.metadata.js");
|
|
17
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
18
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
19
|
+
require("core-js/modules/esnext.map.every.js");
|
|
20
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
21
|
+
require("core-js/modules/esnext.map.find.js");
|
|
22
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
23
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
24
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
25
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
26
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
27
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
28
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
29
|
+
require("core-js/modules/esnext.map.some.js");
|
|
30
|
+
require("core-js/modules/esnext.map.update.js");
|
|
31
|
+
require("core-js/modules/esnext.symbol.metadata.js");
|
|
32
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
33
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
34
|
+
Object.defineProperty(exports, "__esModule", {
|
|
35
|
+
value: true
|
|
36
|
+
});
|
|
37
|
+
exports.FcrUIBoardBarControlImpl = void 0;
|
|
38
|
+
require("core-js/modules/es.error.cause.js");
|
|
39
|
+
require("core-js/modules/es.error.to-string.js");
|
|
40
|
+
require("core-js/modules/es.array.iterator.js");
|
|
41
|
+
require("core-js/modules/es.object.to-string.js");
|
|
42
|
+
require("core-js/modules/es.string.iterator.js");
|
|
43
|
+
require("core-js/modules/es.weak-map.js");
|
|
44
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
45
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
46
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
47
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
48
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
49
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
50
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
51
|
+
var _logger = require("../../../utilities/logger");
|
|
52
|
+
var _enum = require("fcr-core/lib/room-control/whiteboard-control-v2/enum");
|
|
53
|
+
var _mobx = require("mobx");
|
|
54
|
+
var _tinycolor = _interopRequireDefault(require("tinycolor2"));
|
|
55
|
+
var _toolbar = require("../../../modules/components/toolbar");
|
|
56
|
+
var _type = require("../../../modules/secondary-window/type");
|
|
57
|
+
var _fcrCore = require("fcr-core");
|
|
58
|
+
var _FcrUIBoardBarControlImpl;
|
|
59
|
+
var _initProto, _init_toolbarState, _setWhiteboardToolDecs, _setWhiteboardStrokeColorDecs, _setWhiteboardStrokeWidthDecs, _ref;
|
|
60
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
61
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
62
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
63
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
64
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
|
|
65
|
+
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)]; } }; }
|
|
66
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
67
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
68
|
+
function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
|
|
69
|
+
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; }
|
|
70
|
+
var _A = /*#__PURE__*/new WeakMap();
|
|
71
|
+
_ref = (_setWhiteboardToolDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardStrokeColorDecs = [_mobx.action, _mobx.action.bound], _setWhiteboardStrokeWidthDecs = [_mobx.action, _mobx.action.bound], "logger");
|
|
72
|
+
var FcrUIBoardBarControlImpl = exports.FcrUIBoardBarControlImpl = /*#__PURE__*/function () {
|
|
73
|
+
function FcrUIBoardBarControlImpl(_privilegeProvider, _boardControl) {
|
|
74
|
+
var _this = this;
|
|
75
|
+
(0, _classCallCheck2["default"])(this, FcrUIBoardBarControlImpl);
|
|
76
|
+
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), (0, _logger.createLogger)({
|
|
77
|
+
prefix: 'WhiteboardControlStore'
|
|
78
|
+
})));
|
|
79
|
+
(0, _defineProperty2["default"])(this, "_boardMainWindowObserver", {
|
|
80
|
+
onRedoStateUpdated: (0, _mobx.action)(function (canRedo) {
|
|
81
|
+
_this.toolbarState.redoSteps = canRedo;
|
|
82
|
+
}),
|
|
83
|
+
onUndoStateUpdated: (0, _mobx.action)(function (canUndo) {
|
|
84
|
+
_this.toolbarState.undoSteps = canUndo;
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
(0, _defineProperty2["default"])(this, "_boardObserver", {
|
|
88
|
+
onConnectionStateUpdated: function onConnectionStateUpdated(state) {
|
|
89
|
+
if (state === _fcrCore.FcrConnectionState.CONNECTED) {
|
|
90
|
+
_this._handleBoardMainWindowLoaded();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
_classPrivateFieldInitSpec(this, _A, _init_toolbarState(this, {
|
|
95
|
+
currentTool: _enum.FcrBoardToolType.LASER_POINTER,
|
|
96
|
+
strokeWidth: 2,
|
|
97
|
+
strokeColor: _toolbar.colors[7],
|
|
98
|
+
redoSteps: false,
|
|
99
|
+
undoSteps: false
|
|
100
|
+
}));
|
|
101
|
+
(0, _defineProperty2["default"])(this, "_handleBoardMainWindowLoaded", function () {
|
|
102
|
+
_this._boardMainWindow.setToolType(_this.toolbarState.currentTool);
|
|
103
|
+
_this._boardMainWindow.setStrokeWidth(_this.toolbarState.strokeWidth);
|
|
104
|
+
_this._boardMainWindow.setStrokeColor((0, _tinycolor["default"])(_this.toolbarState.strokeColor).toRgb());
|
|
105
|
+
_this._boardMainWindow.addObserver(_this._boardMainWindowObserver);
|
|
106
|
+
});
|
|
107
|
+
this._privilegeProvider = _privilegeProvider;
|
|
108
|
+
this._boardControl = _boardControl;
|
|
109
|
+
var boardMainWindow = this._boardControl.getMainWindow();
|
|
110
|
+
if (boardMainWindow) {
|
|
111
|
+
this._handleBoardMainWindowLoaded();
|
|
112
|
+
} else {
|
|
113
|
+
this._boardControl.addObserver(this._boardObserver);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return (0, _createClass2["default"])(FcrUIBoardBarControlImpl, [{
|
|
117
|
+
key: "toolbarState",
|
|
118
|
+
get: function get() {
|
|
119
|
+
return _classPrivateFieldGet(_A, this);
|
|
120
|
+
},
|
|
121
|
+
set: function set(v) {
|
|
122
|
+
_classPrivateFieldSet(_A, this, v);
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
key: "_boardMainWindow",
|
|
126
|
+
get: function get() {
|
|
127
|
+
var boardMainRoom = this._boardControl.getMainWindow();
|
|
128
|
+
if (!boardMainRoom) {
|
|
129
|
+
throw new Error('Board main room not found');
|
|
130
|
+
}
|
|
131
|
+
return boardMainRoom;
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
key: "currentTool",
|
|
135
|
+
get: function get() {
|
|
136
|
+
return this.toolbarState.currentTool;
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
key: "strokeColor",
|
|
140
|
+
get: function get() {
|
|
141
|
+
return this.toolbarState.strokeColor;
|
|
142
|
+
}
|
|
143
|
+
}, {
|
|
144
|
+
key: "strokeWidth",
|
|
145
|
+
get: function get() {
|
|
146
|
+
return this.toolbarState.strokeWidth;
|
|
147
|
+
}
|
|
148
|
+
}, {
|
|
149
|
+
key: "canRedo",
|
|
150
|
+
get: function get() {
|
|
151
|
+
return this.toolbarState.redoSteps;
|
|
152
|
+
}
|
|
153
|
+
}, {
|
|
154
|
+
key: "canUndo",
|
|
155
|
+
get: function get() {
|
|
156
|
+
return this.toolbarState.undoSteps;
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
key: "release",
|
|
160
|
+
value: function release() {
|
|
161
|
+
this._boardMainWindow.removeObserver(this._boardMainWindowObserver);
|
|
162
|
+
}
|
|
163
|
+
}, {
|
|
164
|
+
key: "setWhiteboardTool",
|
|
165
|
+
value: function setWhiteboardTool(_ref2) {
|
|
166
|
+
var tool = _ref2.tool,
|
|
167
|
+
action = _ref2.action;
|
|
168
|
+
if (tool !== undefined) {
|
|
169
|
+
this.toolbarState.currentTool = tool;
|
|
170
|
+
this._boardMainWindow.setToolType(tool);
|
|
171
|
+
}
|
|
172
|
+
if (action !== undefined) {
|
|
173
|
+
switch (action) {
|
|
174
|
+
case _type.WhiteboardToolAction.UNDO:
|
|
175
|
+
this._boardMainWindow.undo();
|
|
176
|
+
break;
|
|
177
|
+
case _type.WhiteboardToolAction.REDO:
|
|
178
|
+
this._boardMainWindow.redo();
|
|
179
|
+
break;
|
|
180
|
+
case _type.WhiteboardToolAction.CLEAR:
|
|
181
|
+
this._boardMainWindow.clean();
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
key: "setWhiteboardStrokeColor",
|
|
188
|
+
value: function setWhiteboardStrokeColor(color) {
|
|
189
|
+
this.toolbarState.strokeColor = color;
|
|
190
|
+
this._boardMainWindow.setStrokeColor((0, _tinycolor["default"])(color).toRgb());
|
|
191
|
+
}
|
|
192
|
+
}, {
|
|
193
|
+
key: "setWhiteboardStrokeWidth",
|
|
194
|
+
value: function setWhiteboardStrokeWidth(width) {
|
|
195
|
+
this.toolbarState.strokeWidth = width;
|
|
196
|
+
this._boardMainWindow.setStrokeWidth(width);
|
|
197
|
+
}
|
|
198
|
+
}]);
|
|
199
|
+
}();
|
|
200
|
+
_FcrUIBoardBarControlImpl = FcrUIBoardBarControlImpl;
|
|
201
|
+
var _applyDecs$e = _applyDecs(_FcrUIBoardBarControlImpl, [[_mobx.observable, 1, "toolbarState"], [_setWhiteboardToolDecs, 18, "setWhiteboardTool"], [_setWhiteboardStrokeColorDecs, 18, "setWhiteboardStrokeColor"], [_setWhiteboardStrokeWidthDecs, 18, "setWhiteboardStrokeWidth"]], []).e;
|
|
202
|
+
var _applyDecs$e2 = (0, _slicedToArray2["default"])(_applyDecs$e, 2);
|
|
203
|
+
_init_toolbarState = _applyDecs$e2[0];
|
|
204
|
+
_initProto = _applyDecs$e2[1];
|
|
205
|
+
_applyDecs$e;
|