fcr-ui-scene 3.6.4-rc.1 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/creator.d.ts +4 -3
- package/lib/creator.js +136 -98
- package/lib/electron/app.js +1 -1
- package/lib/electron/bootstrap-sdk.js +49 -4
- package/lib/electron/injections.d.ts +5 -1
- package/lib/electron/injections.js +14 -2
- package/lib/electron/ipc/type.d.ts +8 -4
- package/lib/electron/ipc/type.js +10 -4
- package/lib/electron/logger.js +1 -1
- package/lib/electron/main.js +5 -2
- package/lib/electron/preload.js +34 -5
- package/lib/fragments/annotation/index.d.ts +2 -2
- package/lib/fragments/annotation/index.js +38 -28
- package/lib/fragments/annotation/libs.d.ts +2 -2
- package/lib/fragments/annotation/store.d.ts +21 -4
- package/lib/fragments/annotation/store.js +281 -84
- package/lib/fragments/annotation/style.css +9 -0
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.js +1 -1
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.js +1 -1
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.d.ts +26 -2
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/store.js +57 -8
- package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.js +36 -3
- package/lib/fragments/annotation/view.d.ts +1 -0
- package/lib/fragments/annotation/view.js +52 -10
- package/lib/modules/action-bar/components/apps/index.js +54 -38
- package/lib/modules/action-bar/components/chat/index.js +13 -34
- package/lib/modules/action-bar/components/collapse/index.js +1 -1
- package/lib/modules/action-bar/components/leave/index.js +9 -9
- package/lib/modules/action-bar/components/more/index.js +26 -27
- package/lib/modules/action-bar/components/participants/index.js +23 -39
- package/lib/modules/action-bar/components/record/index.js +7 -13
- package/lib/modules/action-bar/components/screen-share/index.js +4 -24
- package/lib/modules/action-bar/components/security/index.js +29 -34
- package/lib/modules/action-bar/components/settings/index.js +13 -19
- package/lib/modules/action-bar/index.d.ts +4 -0
- package/lib/modules/action-bar/index.js +3 -1
- package/lib/modules/action-bar/store.d.ts +16 -6
- package/lib/modules/action-bar/store.js +63 -25
- package/lib/modules/action-bar/types.d.ts +3 -3
- package/lib/modules/action-bar/view.js +2 -3
- package/lib/modules/annotation/annotation-index.d.ts +2 -0
- package/lib/modules/annotation/annotation-index.js +80 -0
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +82 -0
- package/lib/modules/annotation/annotation-toolbar-store.js +501 -0
- package/lib/modules/annotation/components/color-picker/components/color.d.ts +5 -0
- package/lib/modules/annotation/components/color-picker/components/color.js +38 -0
- package/lib/modules/annotation/components/color-picker/components/panel.d.ts +1 -0
- package/lib/modules/annotation/components/color-picker/components/panel.js +109 -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 +47 -0
- package/lib/modules/annotation/components/eraser-picker.d.ts +4 -0
- package/lib/modules/annotation/components/eraser-picker.js +144 -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 +78 -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 +155 -0
- package/lib/modules/annotation/components/screen-capture-picker.d.ts +4 -0
- package/lib/modules/annotation/components/screen-capture-picker.js +85 -0
- package/lib/modules/annotation/components/shape-picker.d.ts +4 -0
- package/lib/modules/annotation/components/shape-picker.js +210 -0
- package/lib/modules/annotation/hooks/index.d.ts +14 -0
- package/lib/modules/annotation/hooks/index.js +292 -0
- package/lib/modules/annotation/index.d.ts +4 -1
- package/lib/modules/annotation/index.js +20 -22
- package/lib/modules/annotation/store.d.ts +59 -18
- package/lib/modules/annotation/store.js +503 -263
- package/lib/modules/annotation/style.css +10 -0
- package/lib/modules/annotation/view.js +9 -11
- package/lib/modules/chat/chat-room-store.js +5 -2
- package/lib/modules/chat/components/chat-select/index.js +1 -1
- package/lib/modules/chat/components/chat-select/select-item/index.js +10 -3
- package/lib/modules/chat/components/message-list/message-item/index.js +4 -2
- package/lib/modules/chat/index.d.ts +2 -0
- package/lib/modules/chat/index.js +13 -3
- package/lib/modules/chat/store.d.ts +3 -0
- package/lib/modules/chat/store.js +12 -6
- package/lib/modules/chat/types.d.ts +1 -0
- package/lib/modules/chat/types.js +2 -1
- package/lib/modules/chat/util.js +2 -1
- package/lib/modules/chat/view.js +6 -3
- package/lib/modules/{action-bar/components → components}/apps/app-item/index.d.ts +1 -1
- package/lib/modules/components/apps/app-list.d.ts +3 -0
- package/lib/modules/{action-bar/components → components}/apps/app-list.js +2 -4
- package/lib/modules/components/apps/types.d.ts +14 -0
- package/lib/modules/components/apps/types.js +6 -0
- package/lib/modules/components/device-control/components/carmera/index.js +71 -68
- package/lib/modules/components/device-control/components/microphone/index.js +99 -97
- package/lib/modules/components/device-control/store.d.ts +1 -1
- package/lib/modules/components/member-window/components/member-actions/components/audio-control.js +7 -7
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.d.ts +0 -2
- package/lib/modules/components/member-window/components/member-actions/components/icon-buttons/index.js +4 -7
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.d.ts +0 -1
- package/lib/modules/components/member-window/components/member-actions/components/icon-status.js +19 -36
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +9 -2
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +0 -3
- package/lib/modules/components/member-window/components/member-actions/components/user-tag.js +15 -11
- package/lib/modules/components/member-window/components/member-actions/index.js +10 -2
- package/lib/modules/components/member-window/components/member-actions/libs/index.js +2 -2
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +12 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +75 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +1 -7
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +7 -47
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +12 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.js +68 -0
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.d.ts +1 -9
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player.js +7 -49
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.d.ts +15 -0
- package/lib/modules/components/member-window/components/video-player/components/zoomable-container.js +255 -0
- 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 +8 -2
- package/lib/modules/components/member-window/index.css +16 -6
- package/lib/modules/components/member-window/index.d.ts +1 -1
- package/lib/modules/components/member-window/index.js +12 -4
- package/lib/modules/components/member-window/types.d.ts +2 -0
- package/lib/modules/components/security-menu/index.js +6 -5
- package/lib/modules/control-bar/components/annotation-button/index.js +21 -8
- package/lib/modules/control-bar/components/more-actions/index.css +13 -0
- package/lib/modules/control-bar/components/more-actions/index.js +1 -1
- package/lib/modules/control-bar/components/share-audio/index.css +90 -0
- package/lib/modules/control-bar/components/share-audio/index.d.ts +15 -0
- package/lib/modules/control-bar/components/share-audio/index.js +173 -0
- package/lib/modules/control-bar/components/share-state-nav/index.css +5 -0
- package/lib/modules/control-bar/components/share-state-nav/index.js +14 -2
- package/lib/modules/control-bar/index.d.ts +2 -0
- package/lib/modules/control-bar/index.js +9 -1
- package/lib/modules/control-bar/store.d.ts +16 -7
- package/lib/modules/control-bar/store.js +36 -12
- package/lib/modules/control-bar/view.d.ts +4 -0
- package/lib/modules/control-bar/view.js +180 -90
- package/lib/modules/device-pretest/store.d.ts +1 -1
- package/lib/modules/dialog/components/dialog-container/component/body.d.ts +1 -1
- package/lib/modules/dialog/components/dialog-container/index.css +1 -0
- package/lib/modules/dialog/components/dialog-container/index.d.ts +2 -1
- package/lib/modules/dialog/components/dialog-container/index.js +27 -10
- package/lib/modules/dialog/components/host-area-container/index.js +4 -4
- package/lib/modules/dialog/components/normal-window/index.d.ts +19 -0
- package/lib/modules/dialog/components/normal-window/index.js +69 -0
- package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.js +17 -15
- package/lib/modules/dialog/dialogs/chat/components/actions.d.ts +1 -0
- package/lib/modules/dialog/dialogs/chat/components/actions.js +33 -0
- package/lib/modules/dialog/{components → dialogs}/chat/index.d.ts +1 -1
- package/lib/modules/dialog/dialogs/chat/index.js +59 -0
- package/lib/modules/dialog/dialogs/confirm-leave-meeting/index.d.ts +6 -0
- package/lib/modules/dialog/{components → dialogs}/confirm-leave-meeting/index.js +13 -37
- package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.js +19 -12
- package/lib/modules/dialog/{components → dialogs}/control-bar/index.js +2 -2
- package/lib/modules/dialog/{components → dialogs}/device-setting/index.js +20 -13
- package/lib/modules/dialog/dialogs/end-meeting/index.d.ts +12 -0
- package/lib/modules/dialog/dialogs/end-meeting/index.js +45 -0
- package/lib/modules/dialog/{components/interpreter/electron.js → dialogs/interpreter/index.js} +17 -11
- package/lib/modules/dialog/dialogs/invite/index.d.ts +3 -0
- package/lib/modules/dialog/{components → dialogs}/invite/index.js +9 -25
- package/lib/modules/dialog/dialogs/live-streaming/index.d.ts +2 -0
- package/lib/modules/dialog/{components → dialogs}/live-streaming/index.js +11 -34
- package/lib/modules/dialog/dialogs/participant/components/actions.d.ts +1 -0
- package/lib/modules/dialog/dialogs/participant/components/actions.js +32 -0
- package/lib/modules/dialog/dialogs/participant/components/title.d.ts +1 -0
- package/lib/modules/dialog/dialogs/participant/components/title.js +19 -0
- package/lib/modules/dialog/dialogs/participant/index.d.ts +2 -0
- package/lib/modules/dialog/dialogs/participant/index.js +53 -0
- package/lib/modules/dialog/dialogs/pre-setting/index.js +62 -0
- package/lib/modules/dialog/dialogs/rename/index.js +35 -0
- package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/{components → dialogs}/video-window/index.js +11 -8
- package/lib/modules/dialog/{components → dialogs}/whiteboard/index.js +2 -3
- package/lib/modules/dialog/{components → dialogs}/widget/electron.js +1 -1
- package/lib/modules/dialog/{components → dialogs}/widget/index.js +1 -1
- package/lib/modules/dialog/hooks/use-web-drag.d.ts +8 -0
- package/lib/modules/dialog/hooks/use-web-drag.js +73 -0
- package/lib/modules/dialog/hooks/useElectron.d.ts +2 -7
- package/lib/modules/dialog/hooks/useElectron.js +46 -156
- package/lib/modules/dialog/index.d.ts +4 -0
- package/lib/modules/dialog/index.js +4 -2
- package/lib/modules/dialog/level-config.d.ts +11 -0
- package/lib/modules/dialog/level-config.js +21 -0
- package/lib/modules/dialog/store.d.ts +15 -6
- package/lib/modules/dialog/store.js +40 -54
- package/lib/modules/dialog/type.d.ts +15 -12
- package/lib/modules/event-confirm/components/window/index.d.ts +1 -4
- package/lib/modules/event-confirm/components/window/index.js +34 -23
- package/lib/modules/event-confirm/index.d.ts +2 -0
- package/lib/modules/event-confirm/index.js +3 -2
- package/lib/modules/event-confirm/store.d.ts +9 -1
- package/lib/modules/event-confirm/store.js +24 -16
- package/lib/modules/event-confirm/view.js +11 -22
- package/lib/modules/event-sound/index.d.ts +2 -0
- package/lib/modules/event-sound/index.js +8 -1
- package/lib/modules/event-toast/index.css +10 -0
- package/lib/modules/event-toast/store.d.ts +1 -1
- package/lib/modules/event-toast/store.js +17 -15
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +4 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +2 -1
- package/lib/modules/interpreter/store.d.ts +1 -0
- package/lib/modules/interpreter/store.js +12 -5
- package/lib/modules/interpreter/view.js +7 -1
- package/lib/modules/layout/components/Aside.js +4 -0
- package/lib/modules/layout/components/Carousel.js +3 -1
- package/lib/modules/layout/components/CommonVideoRenderer.d.ts +3 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +13 -9
- package/lib/modules/layout/components/Gallery.js +11 -3
- package/lib/modules/layout/index.css +1 -0
- package/lib/modules/layout/index.d.ts +2 -0
- package/lib/modules/layout/index.js +4 -3
- package/lib/modules/layout/store.d.ts +9 -5
- package/lib/modules/layout/store.js +38 -46
- package/lib/modules/participant/components/confirm-input/index.css +4 -0
- package/lib/modules/participant/components/confirm-input/index.d.ts +1 -0
- package/lib/modules/participant/components/confirm-input/index.js +2 -1
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +2 -1
- package/lib/modules/participant/components/participants/components/participants/index.js +11 -3
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +7 -3
- package/lib/modules/participant/components/participants/types.d.ts +1 -0
- package/lib/modules/participant/store.d.ts +2 -1
- package/lib/modules/participant/store.js +23 -9
- package/lib/modules/phone-audio-connect/store.d.ts +4 -4
- package/lib/modules/setting/audio-settings/audio-settings.js +6 -17
- package/lib/modules/setting/config.d.ts +16 -0
- package/lib/modules/setting/config.js +17 -1
- package/lib/modules/setting/index.d.ts +2 -4
- package/lib/modules/setting/index.js +7 -16
- package/lib/modules/setting/minutes-settings/minutes-settings.js +0 -4
- package/lib/modules/setting/state/index.js +5 -5
- package/lib/modules/setting/store.d.ts +37 -33
- package/lib/modules/setting/store.js +275 -261
- package/lib/modules/setting/translate-settings/language-select.js +0 -2
- package/lib/modules/setting/video-settings/video-settings-basic.js +6 -6
- package/lib/modules/setting/video-settings/video-settings.js +2 -2
- package/lib/modules/setting/view.js +1 -1
- package/lib/modules/share-screen/components/control-bar/index.css +75 -0
- package/lib/modules/share-screen/components/control-bar/index.d.ts +3 -0
- package/lib/modules/share-screen/components/control-bar/index.js +88 -0
- package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.d.ts +8 -0
- package/lib/modules/share-screen/components/control-bar/items/annotation-edit-btn/index.js +46 -0
- package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/full-container-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/original-size-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-in-btn/index.js +32 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.d.ts +6 -0
- package/lib/modules/share-screen/components/control-bar/items/zoom-out-btn/index.js +32 -0
- package/lib/modules/share-screen/components/selection/index.js +28 -14
- package/lib/modules/share-screen/components/share-scenario/index.d.ts +5 -0
- package/lib/modules/share-screen/components/share-scenario/index.js +47 -0
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.js +11 -2
- package/lib/modules/share-screen/store.d.ts +32 -11
- package/lib/modules/share-screen/store.js +273 -192
- package/lib/modules/share-screen/view.js +2 -2
- package/lib/modules/state-bar/index.js +2 -3
- package/lib/modules/state-bar/layout-config.d.ts +2 -4
- package/lib/modules/state-bar/layout-config.js +10 -5
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/store.d.ts +7 -7
- package/lib/modules/state-bar/store.js +17 -15
- package/lib/modules/state-bar/view.js +19 -23
- package/lib/modules/video-window/components/members/index.js +3 -2
- package/lib/modules/video-window/index.js +0 -3
- package/lib/modules/waiting-room-layout/index.css +3 -3
- package/lib/modules/waiting-room-layout/index.js +2 -2
- package/lib/modules/waiting-room-layout/view.js +1 -0
- package/lib/modules/whiteboard/components/control-bar/index.js +2 -2
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +4 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +4 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +4 -4
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +0 -14
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +4 -155
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +4 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +37 -25
- package/lib/modules/whiteboard/components/toolbar/style.css +1 -0
- package/lib/modules/whiteboard/index.d.ts +3 -1
- package/lib/modules/whiteboard/index.js +26 -23
- package/lib/modules/widget/view.js +4 -0
- package/lib/providers/ability-provider.d.ts +2 -0
- package/lib/providers/annotation-provider.d.ts +43 -47
- package/lib/providers/annotation-provider.js +94 -142
- package/lib/providers/app-list-provider.d.ts +98 -0
- package/lib/providers/app-list-provider.js +251 -0
- package/lib/providers/device-provider.d.ts +31 -23
- package/lib/providers/device-provider.js +493 -444
- package/lib/providers/device-stream-provider.js +2 -2
- package/lib/providers/event-provider.d.ts +0 -4
- package/lib/providers/event-provider.js +0 -10
- package/lib/providers/interpreter-provider.js +10 -7
- package/lib/providers/privilege-provider.d.ts +1 -1
- package/lib/providers/privilege-provider.js +3 -2
- package/lib/providers/renderer-provider.d.ts +1 -0
- package/lib/providers/renderer-provider.js +7 -2
- package/lib/providers/room-provider.d.ts +3 -1
- package/lib/providers/room-provider.js +40 -14
- package/lib/providers/screen-share-provider.d.ts +73 -17
- package/lib/providers/screen-share-provider.js +222 -100
- package/lib/providers/sharing-provider.d.ts +0 -1
- package/lib/providers/sharing-provider.js +3 -9
- package/lib/providers/user-setting-storage-provider.d.ts +1 -0
- package/lib/providers/user-setting-storage-provider.js +5 -12
- package/lib/providers/widget-provider.d.ts +19 -0
- package/lib/providers/widget-provider.js +28 -2
- package/lib/runtime.d.ts +10 -1
- package/lib/scenes/main-scene.d.ts +12 -2
- package/lib/scenes/main-scene.js +54 -28
- package/lib/scenes/waiting-scene.d.ts +11 -0
- package/lib/scenes/waiting-scene.js +34 -8
- package/lib/schema.d.ts +6 -0
- package/lib/schema.js +5 -1
- package/lib/shared-data-source/annotation-data.d.ts +17 -0
- package/lib/shared-data-source/annotation-data.js +110 -0
- package/lib/shared-data-source/app-list-data.d.ts +34 -0
- package/lib/shared-data-source/app-list-data.js +133 -0
- package/lib/shared-data-source/config.d.ts +26 -7
- package/lib/shared-data-source/config.js +29 -11
- package/lib/shared-data-source/confirm-data.d.ts +25 -0
- package/lib/shared-data-source/confirm-data.js +97 -0
- package/lib/shared-data-source/interpreter.d.ts +1 -0
- package/lib/shared-data-source/layout-data.d.ts +2 -0
- package/lib/shared-data-source/layout-data.js +14 -3
- package/lib/shared-data-source/meeting-time.d.ts +23 -1
- package/lib/shared-data-source/meeting-time.js +160 -43
- package/lib/shared-data-source/member-data.d.ts +10 -9
- package/lib/shared-data-source/member-data.js +55 -48
- package/lib/shared-data-source/screen-share-data.d.ts +100 -17
- package/lib/shared-data-source/screen-share-data.js +142 -22
- package/lib/shared-data-source/setting.d.ts +36 -4
- package/lib/shared-data-source/setting.js +92 -57
- package/lib/shared-data-source/video-window.d.ts +3 -0
- package/lib/shared-data-source/video-window.js +52 -30
- package/lib/shared-data-source/waiting-room.js +4 -2
- package/lib/translations/enUS.d.ts +62 -7
- package/lib/translations/enUS.js +71 -14
- package/lib/translations/zhCN.d.ts +62 -7
- package/lib/translations/zhCN.js +73 -16
- package/lib/type.d.ts +23 -5
- package/lib/type.js +6 -2
- package/lib/ui-manager.d.ts +5 -16
- package/lib/ui-manager.js +15 -57
- package/lib/ui-scene.d.ts +31 -6
- package/lib/ui-scene.js +180 -169
- package/lib/utilities/constant.d.ts +67 -63
- package/lib/utilities/constant.js +65 -61
- package/lib/utilities/dialog-utils.d.ts +66 -0
- package/lib/utilities/dialog-utils.js +188 -0
- package/lib/utilities/logger.js +3 -3
- package/lib/utilities/meeting-detail.js +1 -1
- package/lib/utilities/parameters.d.ts +1 -0
- package/lib/utilities/parameters.js +5 -1
- package/lib/utilities/renderer-event.d.ts +1 -1
- package/lib/utilities/screen-capture-permission.d.ts +1 -0
- package/lib/utilities/screen-capture-permission.js +9 -1
- package/lib/utilities/tools.d.ts +0 -66
- package/lib/utilities/tools.js +9 -186
- package/package.json +5 -6
- package/public/index.html +11 -1
- package/lib/modules/action-bar/components/apps/app-list.d.ts +0 -3
- package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +0 -17
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -30
- package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +0 -10
- package/lib/modules/action-bar/components/apps/useBeautyBackground.js +0 -36
- package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +0 -14
- package/lib/modules/action-bar/components/apps/useInterpreter.js +0 -37
- package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +0 -16
- package/lib/modules/action-bar/components/apps/useLiveStreaming.js +0 -41
- package/lib/modules/action-bar/components/apps/useWidgetList.d.ts +0 -10
- package/lib/modules/action-bar/components/apps/useWidgetList.js +0 -39
- package/lib/modules/annotation/components/control-bar/index.css +0 -48
- package/lib/modules/annotation/components/control-bar/index.d.ts +0 -3
- package/lib/modules/annotation/components/control-bar/index.js +0 -142
- package/lib/modules/annotation/components/toolbar/index.d.ts +0 -0
- package/lib/modules/annotation/components/toolbar/index.js +0 -1
- package/lib/modules/dialog/components/chat/electron.d.ts +0 -2
- package/lib/modules/dialog/components/chat/electron.js +0 -35
- package/lib/modules/dialog/components/chat/index.js +0 -67
- package/lib/modules/dialog/components/confirm-leave-meeting/index.d.ts +0 -6
- package/lib/modules/dialog/components/connection-gateway/electron.d.ts +0 -5
- package/lib/modules/dialog/components/connection-gateway/electron.js +0 -33
- package/lib/modules/dialog/components/device-setting/electron.d.ts +0 -2
- package/lib/modules/dialog/components/device-setting/electron.js +0 -37
- package/lib/modules/dialog/components/interpreter/electron.d.ts +0 -2
- package/lib/modules/dialog/components/interpreter/index.js +0 -33
- package/lib/modules/dialog/components/invite/index.d.ts +0 -3
- package/lib/modules/dialog/components/live-streaming/index.d.ts +0 -4
- package/lib/modules/dialog/components/participant/electron.d.ts +0 -2
- package/lib/modules/dialog/components/participant/electron.js +0 -35
- package/lib/modules/dialog/components/participant/index.d.ts +0 -2
- package/lib/modules/dialog/components/participant/index.js +0 -65
- package/lib/modules/dialog/components/pre-setting/electron.d.ts +0 -2
- package/lib/modules/dialog/components/pre-setting/electron.js +0 -51
- package/lib/modules/dialog/components/pre-setting/index.js +0 -38
- package/lib/modules/dialog/components/pre-setting-container/component/body.d.ts +0 -8
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +0 -78
- package/lib/modules/dialog/components/pre-setting-container/index.css +0 -82
- package/lib/modules/dialog/components/pre-setting-container/index.d.ts +0 -18
- package/lib/modules/dialog/components/pre-setting-container/index.js +0 -116
- package/lib/modules/dialog/components/rename/index.js +0 -72
- package/lib/modules/dialog/dialogs.d.ts +0 -3
- package/lib/modules/dialog/dialogs.js +0 -28
- package/lib/utilities/setting-config-storage.d.ts +0 -18
- package/lib/utilities/setting-config-storage.js +0 -133
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/color-panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/color-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/graphic-panel/libs.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/graphic-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/item.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/item/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/panel/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/pen-tool/pen-panel/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.d.ts +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/index.js +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/components/tips/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/style.css +0 -0
- /package/lib/{modules/annotation/components → fragments/annotation}/toolbar/view.d.ts +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/app-item/index.css +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/app-item/index.js +0 -0
- /package/lib/modules/{action-bar/components → components}/apps/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/annotation-tool/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/confirm/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/confirm/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/connection-gateway/tabs.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/control-bar/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/device-setting/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/device-setting/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/interpreter/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/interpreter/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/pre-setting/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/rename/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/share-screen-selection/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg1.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/bg2.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/assets/fcr_png_host.png +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/electron.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.css +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/system-preference/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/toast/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/toast/index.js +0 -0
- /package/lib/modules/dialog/{components → dialogs}/video-window/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/whiteboard/index.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/widget/electron.d.ts +0 -0
- /package/lib/modules/dialog/{components → dialogs}/widget/index.d.ts +0 -0
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { FcrAnnotationControl } from 'fcr-core/lib/room-control/whiteboard-control-v2/annotation-control/type';
|
|
2
2
|
import { FcrUIDialogProvider } from './dialog-provider';
|
|
3
3
|
import { CurrentShareScreenTypes } from '../modules/share-screen/types';
|
|
4
|
-
import { FcrUISharingProvider } from './sharing-provider';
|
|
5
|
-
import { FcrUIMemberSharedDataSource } from '../shared-data-source/member-data';
|
|
6
|
-
import { FcrBoardMainWindow } from 'fcr-core/lib/room-control/whiteboard-control/types';
|
|
7
4
|
import { FcrUIVideoWindowDataSource } from '../shared-data-source/video-window';
|
|
8
5
|
import { FcrUIVideoWindowData } from '../type';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { FcrUIPrivilegeProvider } from './privilege-provider';
|
|
7
|
+
import { FcrUIScreenShareSharedDataSource } from '../shared-data-source/screen-share-data';
|
|
11
8
|
export interface FcrUIAnnotationProvider {
|
|
12
9
|
/**
|
|
13
10
|
* 接收端属性,用于获取当前标注窗口的缩放比例
|
|
@@ -17,10 +14,6 @@ export interface FcrUIAnnotationProvider {
|
|
|
17
14
|
* 接收端方法,用于获取标注功能的 Control 对象
|
|
18
15
|
*/
|
|
19
16
|
get annotationControl(): FcrAnnotationControl | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* 接收端方法,用于获取标注窗口的 MainWindow 对象
|
|
22
|
-
*/
|
|
23
|
-
get boardMainWindow(): FcrBoardMainWindow | undefined;
|
|
24
17
|
/**
|
|
25
18
|
* 接收端属性,用于获取当前共享窗口数据
|
|
26
19
|
*/
|
|
@@ -30,9 +23,13 @@ export interface FcrUIAnnotationProvider {
|
|
|
30
23
|
*/
|
|
31
24
|
get annotationHasStart(): boolean;
|
|
32
25
|
/**
|
|
33
|
-
*
|
|
26
|
+
* 安全中是否允许书写
|
|
27
|
+
*/
|
|
28
|
+
get allowAnnotationWrite(): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* 当前用户是否允许书写
|
|
34
31
|
*/
|
|
35
|
-
get
|
|
32
|
+
get allowAnnotationSelfWrite(): boolean;
|
|
36
33
|
/**
|
|
37
34
|
* 发起端状态,用于获取当前是否正在标注
|
|
38
35
|
*/
|
|
@@ -41,18 +38,38 @@ export interface FcrUIAnnotationProvider {
|
|
|
41
38
|
* 发起端数据,当前共享屏幕信息
|
|
42
39
|
*/
|
|
43
40
|
get currentShareInfo(): CurrentShareScreenTypes;
|
|
41
|
+
/**
|
|
42
|
+
* 是否展示toolbar
|
|
43
|
+
*/
|
|
44
|
+
get isShowToolbar(): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* 设置是否展示toolbar
|
|
47
|
+
*/
|
|
48
|
+
setIsShowToolbar(isShow: boolean): void;
|
|
44
49
|
/**
|
|
45
50
|
* 发起端方法,用于打开关闭标注,由用户触发,此操切换标注工具栏打开状态合窗口的鼠标穿透模式
|
|
46
51
|
*/
|
|
47
52
|
toggleAnnotation(): void;
|
|
48
53
|
/**
|
|
49
|
-
*
|
|
54
|
+
* 发起端方法,启动/初始化标注窗口,在主窗口启动时调用
|
|
55
|
+
*/
|
|
56
|
+
initAnnotationWindow(): void;
|
|
57
|
+
/**
|
|
58
|
+
* 发起端方法,打开标注窗口
|
|
50
59
|
*/
|
|
51
60
|
openAnnotationWindow(): void;
|
|
61
|
+
/**
|
|
62
|
+
* 发起端方法,展示标注窗口
|
|
63
|
+
*/
|
|
64
|
+
showAnnotationWindow(): void;
|
|
52
65
|
/**
|
|
53
66
|
* 发起端方法,用于隐藏标注窗口,不是关闭
|
|
54
67
|
*/
|
|
55
68
|
hideAnnotationWindow(): void;
|
|
69
|
+
/**
|
|
70
|
+
* 发起端方法,用于关闭标注窗口
|
|
71
|
+
*/
|
|
72
|
+
closeAnnotationWindow(): void;
|
|
56
73
|
/**
|
|
57
74
|
* 发起端方法,用于设置当前共享屏幕信息
|
|
58
75
|
*/
|
|
@@ -62,21 +79,9 @@ export interface FcrUIAnnotationProvider {
|
|
|
62
79
|
*/
|
|
63
80
|
setBoundsToAnnotationWindow(info?: CurrentShareScreenTypes): void;
|
|
64
81
|
/**
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
67
|
-
zoomIn(): void;
|
|
68
|
-
/**
|
|
69
|
-
* 接收端方法,用于缩小标注窗口
|
|
82
|
+
* 发起端方法,更新标注白板的viewport
|
|
70
83
|
*/
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* 接收端方法,用于设置标注窗口的缩放比例
|
|
74
|
-
*/
|
|
75
|
-
fullContainer(scalc: number): void;
|
|
76
|
-
/**
|
|
77
|
-
* 接收端方法,用于设置标注窗口的缩放比例
|
|
78
|
-
*/
|
|
79
|
-
setOriginScalc(): void;
|
|
84
|
+
updateWindowSize(width: number, height: number): void;
|
|
80
85
|
}
|
|
81
86
|
export declare enum FcrAnnotationState {
|
|
82
87
|
START = "start",
|
|
@@ -84,45 +89,36 @@ export declare enum FcrAnnotationState {
|
|
|
84
89
|
}
|
|
85
90
|
export declare class FcrUIAnnotationProviderImpl implements FcrUIAnnotationProvider {
|
|
86
91
|
private _dialogProvider;
|
|
87
|
-
private _sharingProvider;
|
|
88
|
-
private _memberDataSource;
|
|
89
92
|
private _videoWindowDataSource;
|
|
90
|
-
private
|
|
91
|
-
private
|
|
93
|
+
private _privilegeProvider;
|
|
94
|
+
private _sharedScreenShareSharedDataSource;
|
|
92
95
|
private _annotationDialogId;
|
|
93
96
|
private _annotationToolDialogId;
|
|
94
97
|
private _disposers;
|
|
95
98
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
96
99
|
private _annotationControl;
|
|
97
|
-
private _boardMainWindow;
|
|
98
|
-
private _shareScreenOwnerId;
|
|
99
|
-
private _maxScalcValue;
|
|
100
|
-
private _minScalcValue;
|
|
101
|
-
private _annotationObserver;
|
|
102
|
-
private _currentScreenShareOwnerCanStartAnnotation;
|
|
103
|
-
private _observer;
|
|
104
|
-
private get _localUser();
|
|
105
|
-
accessor scalcValue: number;
|
|
106
100
|
accessor annotationState: FcrAnnotationState;
|
|
107
101
|
accessor annotating: boolean;
|
|
102
|
+
accessor isShowToolbar: boolean;
|
|
108
103
|
accessor currentShareInfo: CurrentShareScreenTypes;
|
|
104
|
+
get allowAnnotationSelfWrite(): boolean;
|
|
109
105
|
get screenShareWindowData(): import("../shared-data-source/video-window").FcrUIVideoWindowDataImpl | undefined;
|
|
110
|
-
get
|
|
106
|
+
get scalcValue(): number;
|
|
111
107
|
get annotationControl(): FcrAnnotationControl | undefined;
|
|
112
108
|
get annotationHasStart(): boolean;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
fullContainer(scalc: number): void;
|
|
117
|
-
setOriginScalc(): void;
|
|
109
|
+
get allowAnnotationWrite(): boolean;
|
|
110
|
+
constructor(_dialogProvider: FcrUIDialogProvider, _videoWindowDataSource: FcrUIVideoWindowDataSource, _privilegeProvider: FcrUIPrivilegeProvider, _sharedScreenShareSharedDataSource: FcrUIScreenShareSharedDataSource);
|
|
111
|
+
updateWindowSize(width: number, height: number): void;
|
|
118
112
|
toggleAnnotation(): Promise<void>;
|
|
119
|
-
|
|
113
|
+
setIsShowToolbar(isShow: boolean): void;
|
|
114
|
+
initAnnotationWindow(): void;
|
|
120
115
|
openAnnotationWindow(): void;
|
|
116
|
+
showAnnotationWindow(): void;
|
|
121
117
|
hideAnnotationWindow(): void;
|
|
122
118
|
setCurrentShareInfo(info: CurrentShareScreenTypes): void;
|
|
123
119
|
setBoundsToAnnotationWindow(info?: CurrentShareScreenTypes): Promise<void>;
|
|
120
|
+
closeAnnotationWindow(): void;
|
|
124
121
|
release(): void;
|
|
125
122
|
private _openToolbar;
|
|
126
123
|
private _closeToolbar;
|
|
127
|
-
private _initAnnotationTransaction;
|
|
128
124
|
}
|
|
@@ -37,6 +37,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
37
37
|
value: true
|
|
38
38
|
});
|
|
39
39
|
exports.FcrUIAnnotationProviderImpl = exports.FcrAnnotationState = void 0;
|
|
40
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
41
|
+
require("core-js/modules/es.array.concat.js");
|
|
40
42
|
require("core-js/modules/es.array.find.js");
|
|
41
43
|
require("core-js/modules/es.array.for-each.js");
|
|
42
44
|
require("core-js/modules/es.array.iterator.js");
|
|
@@ -52,8 +54,6 @@ require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
|
52
54
|
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
53
55
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
54
56
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
55
|
-
require("core-js/modules/web.timers.js");
|
|
56
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
57
57
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
58
58
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
59
59
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -63,16 +63,13 @@ var _constant = require("../utilities/constant");
|
|
|
63
63
|
var _base = require("../base");
|
|
64
64
|
var _mobx = require("mobx");
|
|
65
65
|
var _type = require("agora-rte-sdk/lib/core/rtc/type");
|
|
66
|
-
var _type2 = require("fcr-core/lib/room-control/sharing-control/type");
|
|
67
66
|
var _imports = require("fcr-core/lib/imports");
|
|
68
67
|
var _rendererEvent = require("../utilities/renderer-event");
|
|
69
|
-
var
|
|
70
|
-
var
|
|
71
|
-
var _tools = require("../utilities/tools");
|
|
72
|
-
var _type4 = require("fcr-core/lib/type");
|
|
68
|
+
var _type2 = require("../modules/whiteboard/type");
|
|
69
|
+
var _dialogUtils = require("../utilities/dialog-utils");
|
|
73
70
|
var _logger = require("../utilities/logger");
|
|
74
71
|
var _FcrUIAnnotationProviderImpl;
|
|
75
|
-
var _initProto,
|
|
72
|
+
var _initProto, _init_annotationState, _init_annotating, _init_isShowToolbar, _init_currentShareInfo, _toggleAnnotationDecs, _setIsShowToolbarDecs, _initAnnotationWindowDecs, _openAnnotationWindowDecs, _showAnnotationWindowDecs, _hideAnnotationWindowDecs, _setCurrentShareInfoDecs, _openToolbarDecs, _closeToolbarDecs, _ref;
|
|
76
73
|
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
77
74
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
78
75
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
@@ -92,10 +89,9 @@ var _A = /*#__PURE__*/new WeakMap();
|
|
|
92
89
|
var _B = /*#__PURE__*/new WeakMap();
|
|
93
90
|
var _C = /*#__PURE__*/new WeakMap();
|
|
94
91
|
var _D = /*#__PURE__*/new WeakMap();
|
|
95
|
-
_ref = (
|
|
92
|
+
_ref = (_toggleAnnotationDecs = [_mobx.action, _mobx.action.bound], _setIsShowToolbarDecs = [_mobx.action, _mobx.action.bound], _initAnnotationWindowDecs = [_mobx.action, _mobx.action.bound], _openAnnotationWindowDecs = [_mobx.action, _mobx.action.bound], _showAnnotationWindowDecs = [_mobx.action, _mobx.action.bound], _hideAnnotationWindowDecs = [_mobx.action, _mobx.action.bound], _setCurrentShareInfoDecs = [_mobx.action, _mobx.action.bound], _openToolbarDecs = [_mobx.action, _mobx.action.bound], _closeToolbarDecs = [_mobx.action, _mobx.action.bound], "_annotationDialogId");
|
|
96
93
|
var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PURE__*/function () {
|
|
97
|
-
function FcrUIAnnotationProviderImpl(_dialogProvider,
|
|
98
|
-
var _this = this;
|
|
94
|
+
function FcrUIAnnotationProviderImpl(_dialogProvider, _videoWindowDataSource, _privilegeProvider, _sharedScreenShareSharedDataSource) {
|
|
99
95
|
(0, _classCallCheck2["default"])(this, FcrUIAnnotationProviderImpl);
|
|
100
96
|
(0, _defineProperty2["default"])(this, _ref, (_initProto(this), ''));
|
|
101
97
|
(0, _defineProperty2["default"])(this, "_annotationToolDialogId", '');
|
|
@@ -103,48 +99,9 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
103
99
|
(0, _defineProperty2["default"])(this, "logger", (0, _logger.createLogger)({
|
|
104
100
|
prefix: 'FcrUIAnnotationProviderImpl'
|
|
105
101
|
}));
|
|
106
|
-
(
|
|
107
|
-
(
|
|
108
|
-
(
|
|
109
|
-
(0, _defineProperty2["default"])(this, "_annotationObserver", {
|
|
110
|
-
onConnectionStateUpdated: function () {
|
|
111
|
-
var _onConnectionStateUpdated = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(state) {
|
|
112
|
-
var _this$_annotationCont, mainWindow;
|
|
113
|
-
return _regenerator["default"].wrap(function (_context) {
|
|
114
|
-
while (1) switch (_context.prev = _context.next) {
|
|
115
|
-
case 0:
|
|
116
|
-
if (state === _fcrCore.FcrConnectionState.CONNECTED) {
|
|
117
|
-
mainWindow = (_this$_annotationCont = _this._annotationControl) === null || _this$_annotationCont === void 0 ? void 0 : _this$_annotationCont.getMainWindow();
|
|
118
|
-
_this._boardMainWindow = mainWindow;
|
|
119
|
-
_this.annotationState = FcrAnnotationState.START;
|
|
120
|
-
}
|
|
121
|
-
case 1:
|
|
122
|
-
case "end":
|
|
123
|
-
return _context.stop();
|
|
124
|
-
}
|
|
125
|
-
}, _callee);
|
|
126
|
-
}));
|
|
127
|
-
function onConnectionStateUpdated(_x) {
|
|
128
|
-
return _onConnectionStateUpdated.apply(this, arguments);
|
|
129
|
-
}
|
|
130
|
-
return onConnectionStateUpdated;
|
|
131
|
-
}()
|
|
132
|
-
});
|
|
133
|
-
(0, _defineProperty2["default"])(this, "_observer", {
|
|
134
|
-
onScreenSharingUpdated: function onScreenSharingUpdated(ownerId, state) {
|
|
135
|
-
if (state === _type2.FcrScreenSharingState.START_WHIT_ANNOTATION || state === _type2.FcrScreenSharingState.START_ONLY_SCREEN) {
|
|
136
|
-
_this._shareScreenOwnerId = ownerId;
|
|
137
|
-
if (_this._currentScreenShareOwnerCanStartAnnotation()) {
|
|
138
|
-
_this._initAnnotationTransaction(_this._shareScreenOwnerId);
|
|
139
|
-
}
|
|
140
|
-
} else {
|
|
141
|
-
_this.annotationState = FcrAnnotationState.END;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
_classPrivateFieldInitSpec(this, _A, _init_scalcValue(this, 1));
|
|
146
|
-
_classPrivateFieldInitSpec(this, _B, _init_annotationState(this, FcrAnnotationState.END));
|
|
147
|
-
_classPrivateFieldInitSpec(this, _C, _init_annotating(this, false));
|
|
102
|
+
_classPrivateFieldInitSpec(this, _A, _init_annotationState(this, FcrAnnotationState.END));
|
|
103
|
+
_classPrivateFieldInitSpec(this, _B, _init_annotating(this, false));
|
|
104
|
+
_classPrivateFieldInitSpec(this, _C, _init_isShowToolbar(this, false));
|
|
148
105
|
_classPrivateFieldInitSpec(this, _D, _init_currentShareInfo(this, {
|
|
149
106
|
id: '',
|
|
150
107
|
type: _type.AgoraRtcScreenCaptureType.SCREEN,
|
|
@@ -156,35 +113,14 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
156
113
|
}
|
|
157
114
|
}));
|
|
158
115
|
this._dialogProvider = _dialogProvider;
|
|
159
|
-
this._sharingProvider = _sharingProvider;
|
|
160
|
-
this._memberDataSource = _memberDataSource;
|
|
161
116
|
this._videoWindowDataSource = _videoWindowDataSource;
|
|
162
|
-
this.
|
|
163
|
-
this.
|
|
117
|
+
this._privilegeProvider = _privilegeProvider;
|
|
118
|
+
this._sharedScreenShareSharedDataSource = _sharedScreenShareSharedDataSource;
|
|
164
119
|
//@ts-ignore
|
|
165
120
|
window._annotationProvider = this;
|
|
166
|
-
this._sharingProvider.getSharingControl().addObserver(this._observer);
|
|
167
|
-
setTimeout(function () {
|
|
168
|
-
return _this.openAnnotationWindow();
|
|
169
|
-
});
|
|
170
|
-
var exitScreenShareOwner = this._screenShareProvider.getCurrentScreenSharingOwner();
|
|
171
|
-
if (this._currentScreenShareOwnerCanStartAnnotation() && exitScreenShareOwner) {
|
|
172
|
-
this._initAnnotationTransaction(exitScreenShareOwner.userId);
|
|
173
|
-
}
|
|
174
121
|
}
|
|
175
122
|
return (0, _createClass2["default"])(FcrUIAnnotationProviderImpl, [{
|
|
176
|
-
key: "
|
|
177
|
-
value: function _currentScreenShareOwnerCanStartAnnotation() {
|
|
178
|
-
var owner = this._screenShareProvider.getCurrentScreenSharingOwner();
|
|
179
|
-
return owner && owner.platform !== _type4.FcrPlatform.IOS;
|
|
180
|
-
}
|
|
181
|
-
}, {
|
|
182
|
-
key: "_localUser",
|
|
183
|
-
get: function get() {
|
|
184
|
-
return this._memberDataSource.localUser;
|
|
185
|
-
}
|
|
186
|
-
}, {
|
|
187
|
-
key: "scalcValue",
|
|
123
|
+
key: "annotationState",
|
|
188
124
|
get: function get() {
|
|
189
125
|
return _classPrivateFieldGet(_A, this);
|
|
190
126
|
},
|
|
@@ -192,7 +128,7 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
192
128
|
_classPrivateFieldSet(_A, this, v);
|
|
193
129
|
}
|
|
194
130
|
}, {
|
|
195
|
-
key: "
|
|
131
|
+
key: "annotating",
|
|
196
132
|
get: function get() {
|
|
197
133
|
return _classPrivateFieldGet(_B, this);
|
|
198
134
|
},
|
|
@@ -200,7 +136,7 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
200
136
|
_classPrivateFieldSet(_B, this, v);
|
|
201
137
|
}
|
|
202
138
|
}, {
|
|
203
|
-
key: "
|
|
139
|
+
key: "isShowToolbar",
|
|
204
140
|
get: function get() {
|
|
205
141
|
return _classPrivateFieldGet(_C, this);
|
|
206
142
|
},
|
|
@@ -215,6 +151,11 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
215
151
|
set: function set(v) {
|
|
216
152
|
_classPrivateFieldSet(_D, this, v);
|
|
217
153
|
}
|
|
154
|
+
}, {
|
|
155
|
+
key: "allowAnnotationSelfWrite",
|
|
156
|
+
get: function get() {
|
|
157
|
+
return this._privilegeProvider.hasAnnotationWritePermission();
|
|
158
|
+
}
|
|
218
159
|
}, {
|
|
219
160
|
key: "screenShareWindowData",
|
|
220
161
|
get: function get() {
|
|
@@ -223,9 +164,9 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
223
164
|
});
|
|
224
165
|
}
|
|
225
166
|
}, {
|
|
226
|
-
key: "
|
|
167
|
+
key: "scalcValue",
|
|
227
168
|
get: function get() {
|
|
228
|
-
return this.
|
|
169
|
+
return this._sharedScreenShareSharedDataSource.screenShareScalcValue;
|
|
229
170
|
}
|
|
230
171
|
}, {
|
|
231
172
|
key: "annotationControl",
|
|
@@ -238,35 +179,28 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
238
179
|
return this.annotationState === FcrAnnotationState.START;
|
|
239
180
|
}
|
|
240
181
|
}, {
|
|
241
|
-
key: "
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
this.scalcValue = this.scalcValue + 0.5;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}, {
|
|
248
|
-
key: "zoomOut",
|
|
249
|
-
value: function zoomOut() {
|
|
250
|
-
if (this.scalcValue > this._minScalcValue) {
|
|
251
|
-
this.scalcValue = this.scalcValue - 0.5;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}, {
|
|
255
|
-
key: "fullContainer",
|
|
256
|
-
value: function fullContainer(scalc) {
|
|
257
|
-
this.scalcValue = scalc;
|
|
182
|
+
key: "allowAnnotationWrite",
|
|
183
|
+
get: function get() {
|
|
184
|
+
return this._privilegeProvider.allowAnnotationWriteState();
|
|
258
185
|
}
|
|
259
186
|
}, {
|
|
260
|
-
key: "
|
|
261
|
-
value: function
|
|
262
|
-
this.
|
|
187
|
+
key: "updateWindowSize",
|
|
188
|
+
value: function updateWindowSize(width, height) {
|
|
189
|
+
this.logger.info("[Annotation] updateWindowSize width: ".concat(width, ", height: ").concat(height));
|
|
190
|
+
(0, _rendererEvent.sendEvent)({
|
|
191
|
+
action: _constant.FcrUIRendererEventAction.UPDATE_ANNOTATION_WINDOW_SIZE,
|
|
192
|
+
payload: {
|
|
193
|
+
width: width,
|
|
194
|
+
height: height
|
|
195
|
+
}
|
|
196
|
+
});
|
|
263
197
|
}
|
|
264
198
|
}, {
|
|
265
199
|
key: "toggleAnnotation",
|
|
266
200
|
value: function () {
|
|
267
|
-
var _toggleAnnotation = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
268
|
-
return _regenerator["default"].wrap(function (
|
|
269
|
-
while (1) switch (
|
|
201
|
+
var _toggleAnnotation = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
202
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
203
|
+
while (1) switch (_context.prev = _context.next) {
|
|
270
204
|
case 0:
|
|
271
205
|
if (this.annotating) {
|
|
272
206
|
this.annotating = false;
|
|
@@ -287,9 +221,9 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
287
221
|
}
|
|
288
222
|
case 1:
|
|
289
223
|
case "end":
|
|
290
|
-
return
|
|
224
|
+
return _context.stop();
|
|
291
225
|
}
|
|
292
|
-
},
|
|
226
|
+
}, _callee, this);
|
|
293
227
|
}));
|
|
294
228
|
function toggleAnnotation() {
|
|
295
229
|
return _toggleAnnotation.apply(this, arguments);
|
|
@@ -297,25 +231,38 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
297
231
|
return toggleAnnotation;
|
|
298
232
|
}()
|
|
299
233
|
}, {
|
|
300
|
-
key: "
|
|
301
|
-
value: function
|
|
302
|
-
|
|
234
|
+
key: "setIsShowToolbar",
|
|
235
|
+
value: function setIsShowToolbar(isShow) {
|
|
236
|
+
this.isShowToolbar = isShow;
|
|
237
|
+
}
|
|
238
|
+
}, {
|
|
239
|
+
key: "initAnnotationWindow",
|
|
240
|
+
value: function initAnnotationWindow() {
|
|
241
|
+
this.logger.info('[Annotation] init annotation fragment');
|
|
242
|
+
this._annotationDialogId = this._dialogProvider.openDialog(_constant.FcrUIDialogKey.ANNOTATION);
|
|
303
243
|
}
|
|
304
244
|
}, {
|
|
305
245
|
key: "openAnnotationWindow",
|
|
306
246
|
value: function openAnnotationWindow() {
|
|
307
|
-
this.
|
|
308
|
-
|
|
247
|
+
this.logger.info('[Annotation] openAnnotationWindow');
|
|
248
|
+
(0, _rendererEvent.sendEvent)({
|
|
249
|
+
action: _constant.FcrUIRendererEventAction.SET_ANNOTATION_TO_OPEN,
|
|
250
|
+
payload: true
|
|
251
|
+
});
|
|
309
252
|
}
|
|
310
253
|
}, {
|
|
311
|
-
key: "
|
|
312
|
-
value: function
|
|
313
|
-
this.logger.info('[Annotation]
|
|
314
|
-
this.annotating = false;
|
|
254
|
+
key: "showAnnotationWindow",
|
|
255
|
+
value: function showAnnotationWindow() {
|
|
256
|
+
this.logger.info('[Annotation] showAnnotationWindow');
|
|
315
257
|
(0, _rendererEvent.sendEvent)({
|
|
316
|
-
action:
|
|
258
|
+
action: _constant.FcrUIRendererEventAction.SET_ANNOTATION_TO_SHOW,
|
|
317
259
|
payload: true
|
|
318
260
|
});
|
|
261
|
+
}
|
|
262
|
+
}, {
|
|
263
|
+
key: "hideAnnotationWindow",
|
|
264
|
+
value: function hideAnnotationWindow() {
|
|
265
|
+
this.logger.info('[Annotation] hideAnnotationWindow');
|
|
319
266
|
(0, _rendererEvent.sendEvent)({
|
|
320
267
|
action: _constant.FcrUIRendererEventAction.SET_ANNOTATION_TO_SHOW,
|
|
321
268
|
payload: false
|
|
@@ -330,28 +277,28 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
330
277
|
}, {
|
|
331
278
|
key: "setBoundsToAnnotationWindow",
|
|
332
279
|
value: function () {
|
|
333
|
-
var _setBoundsToAnnotationWindow = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function
|
|
334
|
-
var
|
|
335
|
-
var targetBounds, _ref2, bounds, _getCurrentSharingWor,
|
|
336
|
-
return _regenerator["default"].wrap(function (
|
|
337
|
-
while (1) switch (
|
|
280
|
+
var _setBoundsToAnnotationWindow = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(info) {
|
|
281
|
+
var _this = this;
|
|
282
|
+
var targetBounds, _ref2, bounds, _getCurrentSharingWor, _width, _height, x, y, windows, win;
|
|
283
|
+
return _regenerator["default"].wrap(function (_context2) {
|
|
284
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
338
285
|
case 0:
|
|
339
286
|
targetBounds = null;
|
|
340
287
|
if (this.currentShareInfo.type === _type.AgoraRtcScreenCaptureType.SCREEN) {
|
|
341
288
|
_ref2 = info || this.currentShareInfo, bounds = _ref2.bounds;
|
|
342
|
-
_getCurrentSharingWor = (0,
|
|
289
|
+
_getCurrentSharingWor = (0, _dialogUtils.getCurrentSharingWorkArea)({
|
|
343
290
|
currentShareBounds: bounds
|
|
344
|
-
}),
|
|
291
|
+
}), _width = _getCurrentSharingWor.width, _height = _getCurrentSharingWor.height, x = _getCurrentSharingWor.x, y = _getCurrentSharingWor.y;
|
|
345
292
|
targetBounds = {
|
|
346
|
-
width:
|
|
347
|
-
height:
|
|
293
|
+
width: _width,
|
|
294
|
+
height: _height,
|
|
348
295
|
x: x,
|
|
349
296
|
y: y
|
|
350
297
|
};
|
|
351
298
|
} else {
|
|
352
299
|
windows = window.runtime.getWindows();
|
|
353
300
|
win = windows.find(function (win) {
|
|
354
|
-
return win.id === +
|
|
301
|
+
return win.id === +_this.currentShareInfo.id;
|
|
355
302
|
});
|
|
356
303
|
if (win) {
|
|
357
304
|
targetBounds = win.getBounds();
|
|
@@ -368,15 +315,29 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
368
315
|
});
|
|
369
316
|
case 1:
|
|
370
317
|
case "end":
|
|
371
|
-
return
|
|
318
|
+
return _context2.stop();
|
|
372
319
|
}
|
|
373
|
-
},
|
|
320
|
+
}, _callee2, this);
|
|
374
321
|
}));
|
|
375
|
-
function setBoundsToAnnotationWindow(
|
|
322
|
+
function setBoundsToAnnotationWindow(_x) {
|
|
376
323
|
return _setBoundsToAnnotationWindow.apply(this, arguments);
|
|
377
324
|
}
|
|
378
325
|
return setBoundsToAnnotationWindow;
|
|
379
326
|
}()
|
|
327
|
+
}, {
|
|
328
|
+
key: "closeAnnotationWindow",
|
|
329
|
+
value: function closeAnnotationWindow() {
|
|
330
|
+
this.annotating = false;
|
|
331
|
+
(0, _rendererEvent.sendEvent)({
|
|
332
|
+
action: _type2.ToolbarEvents.CLEAN,
|
|
333
|
+
payload: true
|
|
334
|
+
});
|
|
335
|
+
(0, _rendererEvent.sendEvent)({
|
|
336
|
+
action: _constant.FcrUIRendererEventAction.SET_ANNOTATION_TO_OPEN,
|
|
337
|
+
payload: false
|
|
338
|
+
});
|
|
339
|
+
this._closeToolbar();
|
|
340
|
+
}
|
|
380
341
|
}, {
|
|
381
342
|
key: "release",
|
|
382
343
|
value: function release() {
|
|
@@ -396,22 +357,13 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
396
357
|
this._dialogProvider.closeDialog(this._annotationToolDialogId);
|
|
397
358
|
this._annotationToolDialogId = '';
|
|
398
359
|
}
|
|
399
|
-
}, {
|
|
400
|
-
key: "_initAnnotationTransaction",
|
|
401
|
-
value: function _initAnnotationTransaction(screenShareOwnerId) {
|
|
402
|
-
this._annotationControl = this.getAnnotationControl();
|
|
403
|
-
if (this._annotationControl) {
|
|
404
|
-
this._annotationControl.addObserver(this._annotationObserver);
|
|
405
|
-
this._annotationControl.open();
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
360
|
}]);
|
|
409
361
|
}();
|
|
410
362
|
_FcrUIAnnotationProviderImpl = FcrUIAnnotationProviderImpl;
|
|
411
|
-
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIAnnotationProviderImpl, [[_mobx.observable, 1, "
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
363
|
+
var _applyDecs$e = (0, _slicedToArray2["default"])(_applyDecs(_FcrUIAnnotationProviderImpl, [[_mobx.observable, 1, "annotationState"], [_mobx.observable, 1, "annotating"], [_mobx.observable, 1, "isShowToolbar"], [_mobx.observable, 1, "currentShareInfo"], [_mobx.computed, 3, "screenShareWindowData"], [_imports.bound, 2, "updateWindowSize"], [_toggleAnnotationDecs, 18, "toggleAnnotation"], [_setIsShowToolbarDecs, 18, "setIsShowToolbar"], [_initAnnotationWindowDecs, 18, "initAnnotationWindow"], [_openAnnotationWindowDecs, 18, "openAnnotationWindow"], [_showAnnotationWindowDecs, 18, "showAnnotationWindow"], [_hideAnnotationWindowDecs, 18, "hideAnnotationWindow"], [_setCurrentShareInfoDecs, 18, "setCurrentShareInfo"], [_imports.bound, 2, "setBoundsToAnnotationWindow"], [_imports.bound, 2, "closeAnnotationWindow"], [_imports.bound, 2, "release"], [_openToolbarDecs, 18, "_openToolbar"], [_closeToolbarDecs, 18, "_closeToolbar"]], []).e, 5);
|
|
364
|
+
_init_annotationState = _applyDecs$e[0];
|
|
365
|
+
_init_annotating = _applyDecs$e[1];
|
|
366
|
+
_init_isShowToolbar = _applyDecs$e[2];
|
|
415
367
|
_init_currentShareInfo = _applyDecs$e[3];
|
|
416
368
|
_initProto = _applyDecs$e[4];
|
|
417
369
|
(0, _base.registerDependency)('annotationProvider');
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { DeviceSettingDialogConfig } from '../modules/setting/store';
|
|
2
|
+
import { FcrUIWebWidgetConfig } from '../type';
|
|
3
|
+
import { FcrUIDialogProvider } from './dialog-provider';
|
|
4
|
+
import { FcrUIEventProvider } from './event-provider';
|
|
5
|
+
import { FcrUIWidgetProvider } from './widget-provider';
|
|
6
|
+
import { AppItemProps } from '../modules/action-bar/types';
|
|
7
|
+
import { FcrUISharedApplistSourceImpl } from '../shared-data-source/app-list-data';
|
|
8
|
+
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
9
|
+
import { FcrLiveStreamingState } from 'fcr-core/lib/type';
|
|
10
|
+
export declare enum FcrUIApplistItemType {
|
|
11
|
+
INTERPRETER = 0,
|
|
12
|
+
LIVE_STREAMING = 1,
|
|
13
|
+
BEAUTY_BACKGROUND = 2,
|
|
14
|
+
WIDGETS = 3
|
|
15
|
+
}
|
|
16
|
+
export interface FcrUIApplistObserver {
|
|
17
|
+
/**
|
|
18
|
+
* 私聊用户变更
|
|
19
|
+
* @param user
|
|
20
|
+
* @param roomType
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
onApplistItemClick?: (type: FcrUIApplistItemType) => void;
|
|
24
|
+
}
|
|
25
|
+
export interface FcrUIApplistProvider {
|
|
26
|
+
get appItemOptions(): AppItemProps[];
|
|
27
|
+
openDeviceSettingDialog: (arg: Partial<DeviceSettingDialogConfig>) => void;
|
|
28
|
+
openInterpreterDialog(): void;
|
|
29
|
+
openLiveStreamingDialog(): void;
|
|
30
|
+
clickWidget(widgetConfig: FcrUIWebWidgetConfig): void;
|
|
31
|
+
addObserver(observer: FcrUIApplistObserver): void;
|
|
32
|
+
removeObserver(observer: FcrUIApplistObserver): void;
|
|
33
|
+
}
|
|
34
|
+
export declare class FcrUIApplistProviderImpl implements FcrUIApplistProvider {
|
|
35
|
+
private _dialogProvider;
|
|
36
|
+
private _eventProvider;
|
|
37
|
+
private _widgetProvider;
|
|
38
|
+
private _sharedApplistDataSource;
|
|
39
|
+
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
40
|
+
private _observable;
|
|
41
|
+
constructor(_dialogProvider: FcrUIDialogProvider, _eventProvider: FcrUIEventProvider, _widgetProvider: FcrUIWidgetProvider, _sharedApplistDataSource: FcrUISharedApplistSourceImpl);
|
|
42
|
+
get isInterpreterEnabled(): boolean;
|
|
43
|
+
get liveStreamingState(): FcrLiveStreamingState;
|
|
44
|
+
get hasEnableInterpreterPermission(): boolean;
|
|
45
|
+
get hasStartLiveStreamingPermission(): boolean;
|
|
46
|
+
get widgetConfigs(): FcrUIWebWidgetConfig[];
|
|
47
|
+
get appItemOptions(): AppItemProps[];
|
|
48
|
+
private _notifyClick;
|
|
49
|
+
openDeviceSettingDialog(arg: Partial<DeviceSettingDialogConfig>): void;
|
|
50
|
+
openInterpreterDialog(): void;
|
|
51
|
+
openLiveStreamingDialog(): void;
|
|
52
|
+
clickWidget(widgetConfig: FcrUIWebWidgetConfig): void;
|
|
53
|
+
get interpreterProps(): {
|
|
54
|
+
name: string;
|
|
55
|
+
onClick: () => void;
|
|
56
|
+
fcrToolTipProps: {
|
|
57
|
+
content: string;
|
|
58
|
+
};
|
|
59
|
+
fcrIconProps: {
|
|
60
|
+
type: FcrIconType;
|
|
61
|
+
iconPrimary: string;
|
|
62
|
+
};
|
|
63
|
+
permission: boolean;
|
|
64
|
+
};
|
|
65
|
+
get liveStreamingProps(): {
|
|
66
|
+
name: string;
|
|
67
|
+
onClick: () => void;
|
|
68
|
+
fcrToolTipProps: {
|
|
69
|
+
content: string;
|
|
70
|
+
};
|
|
71
|
+
fcrIconProps: {
|
|
72
|
+
type: FcrIconType;
|
|
73
|
+
iconColors: {
|
|
74
|
+
iconPrimary: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
permission: boolean;
|
|
78
|
+
};
|
|
79
|
+
get beautyBackgroundProps(): {
|
|
80
|
+
name: string;
|
|
81
|
+
onClick: () => void;
|
|
82
|
+
fcrIconProps: {
|
|
83
|
+
type: FcrIconType;
|
|
84
|
+
};
|
|
85
|
+
permission: boolean;
|
|
86
|
+
};
|
|
87
|
+
get widgetListProps(): {
|
|
88
|
+
name: string;
|
|
89
|
+
fcrToolTipProps: {
|
|
90
|
+
content: string;
|
|
91
|
+
};
|
|
92
|
+
onClick: () => void;
|
|
93
|
+
imgSrc: string;
|
|
94
|
+
permission: boolean;
|
|
95
|
+
}[];
|
|
96
|
+
addObserver(observer: FcrUIApplistObserver): void;
|
|
97
|
+
removeObserver(observer: FcrUIApplistObserver): void;
|
|
98
|
+
}
|