fcr-ui-scene 3.6.3 → 3.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base.js +0 -3
- package/lib/creator.js +26 -24
- package/lib/electron/app.js +31 -13
- package/lib/electron/bootstrap-dev.js +2 -3
- package/lib/electron/bootstrap-sdk.js +4 -10
- package/lib/electron/exit-codes.d.ts +14 -0
- package/lib/electron/exit-codes.js +22 -0
- package/lib/electron/injections.js +117 -118
- package/lib/electron/ipc/ipc.js +0 -1
- package/lib/electron/main.js +44 -3
- package/lib/electron/tools.js +0 -4
- package/lib/electron/window.js +1 -4
- package/lib/fragments/annotation/index.js +1 -2
- package/lib/fragments/annotation/store.js +47 -48
- package/lib/modules/action-bar/components/apps/app-item/index.js +0 -2
- package/lib/modules/action-bar/components/apps/app-list.js +2 -5
- package/lib/modules/action-bar/components/apps/useAppItemOptions.js +0 -3
- package/lib/modules/action-bar/components/apps/useWidgetList.js +2 -1
- package/lib/modules/action-bar/components/collapse/index.js +0 -4
- package/lib/modules/action-bar/components/item/index.js +0 -2
- package/lib/modules/action-bar/components/leave/index.js +0 -2
- package/lib/modules/action-bar/components/more/poppover-content.js +0 -4
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.js +2 -1
- package/lib/modules/action-bar/components/notification-bar/index.js +0 -2
- package/lib/modules/action-bar/components/screen-share/index.js +0 -1
- package/lib/modules/action-bar/components/screen-share/submenu.js +0 -3
- package/lib/modules/action-bar/components/trigger-output-language/index.js +11 -14
- package/lib/modules/action-bar/components/trigger-subscribe-language/index.js +8 -11
- package/lib/modules/action-bar/index.js +1 -2
- package/lib/modules/action-bar/store.js +32 -36
- package/lib/modules/annotation/components/control-bar/index.js +3 -2
- package/lib/modules/annotation/components/toolbar/components/color-tool/color-panel/index.js +2 -1
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/graphic-panel/index.js +2 -1
- package/lib/modules/annotation/components/toolbar/components/graphic-tool/index.js +0 -2
- package/lib/modules/annotation/components/toolbar/components/pen-tool/pen-panel/index.js +1 -0
- package/lib/modules/annotation/components/toolbar/store.js +0 -1
- package/lib/modules/annotation/index.d.ts +2 -0
- package/lib/modules/annotation/index.js +2 -1
- package/lib/modules/annotation/store.d.ts +5 -3
- package/lib/modules/annotation/store.js +35 -43
- package/lib/modules/audio-stream/index.js +0 -4
- package/lib/modules/chat/chat-room-store.js +6 -10
- package/lib/modules/chat/components/chat-bar/index.js +0 -2
- package/lib/modules/chat/components/chat-select/index.js +0 -1
- package/lib/modules/chat/components/chat-select/select-item/index.js +2 -5
- package/lib/modules/chat/components/message-list/index.js +1 -3
- package/lib/modules/chat/components/message-list/message-item/index.js +11 -13
- package/lib/modules/chat/index.js +13 -14
- package/lib/modules/chat/store.js +0 -1
- package/lib/modules/chat/view.js +11 -15
- package/lib/modules/components/annotation-menu/index.js +0 -3
- package/lib/modules/components/device-control/components/audio-menu/index.js +2 -1
- package/lib/modules/components/device-control/components/video-menu/index.js +2 -1
- package/lib/modules/components/device-control/store.js +0 -1
- package/lib/modules/components/leave-meeting/components/assign-host.js +4 -5
- package/lib/modules/components/leave-meeting/store.js +11 -12
- package/lib/modules/components/member-window/components/member-actions/components/layout/index.js +1 -2
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +1 -2
- package/lib/modules/components/member-window/components/member-actions/components/user-info.js +1 -3
- package/lib/modules/components/member-window/components/member-actions/index.js +0 -1
- package/lib/modules/components/member-window/components/member-actions/provider.js +1 -2
- package/lib/modules/components/member-window/components/member-actions/store.js +20 -20
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.d.ts +3 -0
- package/lib/modules/components/member-window/components/video-player/components/local-video-player.js +16 -3
- package/lib/modules/components/member-window/components/video-player/index.d.ts +2 -0
- package/lib/modules/components/member-window/components/video-player/index.js +3 -3
- package/lib/modules/components/member-window/index.js +1 -0
- package/lib/modules/components/security-menu/index.js +1 -4
- package/lib/modules/components/tab-frame/index.js +0 -4
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -1
- package/lib/modules/connection-gateway/components/phone/index.js +5 -4
- package/lib/modules/connection-gateway/index.js +1 -2
- package/lib/modules/connection-gateway/store.js +23 -26
- package/lib/modules/control-bar/components/more-actions/index.js +0 -3
- package/lib/modules/control-bar/index.js +1 -2
- package/lib/modules/control-bar/store.d.ts +1 -0
- package/lib/modules/control-bar/store.js +8 -2
- package/lib/modules/control-bar/view.js +9 -11
- package/lib/modules/device-pretest/settings/beauty.js +1 -2
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -1
- package/lib/modules/device-pretest/store.js +2 -4
- package/lib/modules/dialog/components/control-bar/index.js +3 -3
- package/lib/modules/dialog/components/dialog-container/component/body.js +0 -2
- package/lib/modules/dialog/components/dialog-container/index.js +1 -2
- package/lib/modules/dialog/components/host-area-container/index.js +0 -3
- package/lib/modules/dialog/components/pre-setting-container/component/body.js +0 -2
- package/lib/modules/dialog/components/pre-setting-container/index.js +1 -2
- package/lib/modules/dialog/components/system-preference/index.js +2 -5
- package/lib/modules/dialog/components/video-window/index.js +0 -2
- package/lib/modules/dialog/hooks/use-popover-watcher.js +0 -1
- package/lib/modules/dialog/hooks/useElectron.js +0 -2
- package/lib/modules/dialog/index.js +1 -3
- package/lib/modules/dialog/store.js +1 -5
- package/lib/modules/dialog/view.js +2 -1
- package/lib/modules/event-confirm/components/window/index.js +0 -2
- package/lib/modules/event-confirm/index.js +1 -2
- package/lib/modules/event-confirm/store.js +4 -7
- package/lib/modules/event-confirm/view.js +2 -1
- package/lib/modules/event-sound/index.js +1 -2
- package/lib/modules/event-sound/sound-effect-player.js +2 -2
- package/lib/modules/event-toast/index.js +1 -2
- package/lib/modules/event-toast/store.js +0 -2
- package/lib/modules/event-toast/view.js +2 -1
- package/lib/modules/interpreter/index.js +1 -2
- package/lib/modules/interpreter/interpreter-list/index.js +3 -4
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +2 -5
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +0 -2
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +0 -4
- package/lib/modules/interpreter/store.js +5 -10
- package/lib/modules/interpreter/utils.js +15 -14
- package/lib/modules/invite/components/pstn-invite.js +22 -23
- package/lib/modules/invite/components/voip-invite.js +7 -7
- package/lib/modules/invite/enums.js +1 -0
- package/lib/modules/invite/index.js +1 -2
- package/lib/modules/invite/store.js +46 -45
- package/lib/modules/layout/components/CommonVideoRenderer.js +2 -1
- package/lib/modules/layout/components/Gallery.js +5 -3
- package/lib/modules/layout/components/index.js +0 -1
- package/lib/modules/layout/index.js +1 -2
- package/lib/modules/layout/store.d.ts +3 -0
- package/lib/modules/layout/store.js +38 -14
- package/lib/modules/layout/type.js +9 -0
- package/lib/modules/live-streaming/index.dev.js +6 -6
- package/lib/modules/live-streaming/index.js +1 -2
- package/lib/modules/live-streaming/store.js +19 -19
- package/lib/modules/notification/index.js +1 -2
- package/lib/modules/notification/interpreter-status/index.js +2 -1
- package/lib/modules/notification/view.js +1 -2
- package/lib/modules/offscreen-pulling/index.js +0 -1
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.js +1 -4
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +0 -2
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +1 -4
- package/lib/modules/participant/components/participants/components/participants/index.js +0 -2
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/components/interpreter-tag/index.js +0 -1
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.js +0 -2
- package/lib/modules/participant/index.js +1 -4
- package/lib/modules/participant/member-list-data-source.js +0 -3
- package/lib/modules/participant/store.js +81 -86
- package/lib/modules/pc-audio-connect/index.js +1 -2
- package/lib/modules/pc-audio-connect/store.js +9 -10
- package/lib/modules/phone-audio-connect/components/callinfo/index.js +2 -1
- package/lib/modules/phone-audio-connect/index.js +1 -2
- package/lib/modules/phone-audio-connect/store.js +0 -3
- package/lib/modules/phone-audio-connect/view.js +5 -4
- package/lib/modules/setting/audio-settings/audio-settings.js +1 -4
- package/lib/modules/setting/general-settings/general-settings.js +1 -2
- package/lib/modules/setting/index.js +1 -2
- package/lib/modules/setting/minutes-settings/minutes-settings.js +1 -2
- package/lib/modules/setting/state/index.js +0 -4
- package/lib/modules/setting/storage-settings/storage-settings.js +4 -4
- package/lib/modules/setting/store.js +11 -15
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/video-settings/video-settings.js +1 -2
- package/lib/modules/setting/view.js +1 -2
- package/lib/modules/share-screen/components/selection/index.js +16 -9
- package/lib/modules/share-screen/index.d.ts +2 -0
- package/lib/modules/share-screen/index.js +3 -3
- package/lib/modules/share-screen/store.d.ts +9 -2
- package/lib/modules/share-screen/store.js +97 -93
- package/lib/modules/state-bar/index.js +1 -2
- package/lib/modules/state-bar/layout-config.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -3
- package/lib/modules/state-bar/store.js +0 -1
- package/lib/modules/video-window/components/members/index.js +2 -1
- package/lib/modules/video-window/components/topControl/index.js +0 -3
- package/lib/modules/video-window/index.js +1 -2
- package/lib/modules/video-window/store.js +0 -4
- package/lib/modules/waiting-room-layout/index.js +1 -2
- package/lib/modules/whiteboard/components/control-bar/store.js +0 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +0 -2
- package/lib/modules/whiteboard/components/switch-theme/item.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +2 -1
- package/lib/modules/whiteboard/components/toolbar/components/expansion/index.js +1 -4
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +2 -3
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +0 -2
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +1 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +1 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +2 -4
- package/lib/modules/whiteboard/components/toolbar/index.js +1 -1
- package/lib/modules/whiteboard/components/toolbar/store.js +12 -11
- package/lib/modules/whiteboard/index.js +2 -6
- package/lib/modules/whiteboard/style.css +12 -0
- package/lib/modules/whiteboard/view.js +2 -0
- package/lib/modules/widget/index.js +1 -2
- package/lib/modules/widget/web-widget.js +1 -1
- package/lib/plugins/browser-runtime-plugin.js +1 -1
- package/lib/plugins/module-dev-plugin.js +13 -13
- package/lib/providers/ability-provider.d.ts +12 -1
- package/lib/providers/ability-provider.js +8 -1
- package/lib/providers/annotation-provider.js +7 -11
- package/lib/providers/device-privilege-provider.js +81 -83
- package/lib/providers/device-provider.js +193 -198
- package/lib/providers/device-stream-provider.js +24 -27
- package/lib/providers/event-provider.js +0 -2
- package/lib/providers/interpreter-provider.js +195 -197
- package/lib/providers/message-provider.js +0 -2
- package/lib/providers/phone-audio-provider.js +17 -19
- package/lib/providers/privilege-provider.js +53 -58
- package/lib/providers/renderer-provider.d.ts +3 -1
- package/lib/providers/renderer-provider.js +18 -4
- package/lib/providers/room-provider.js +31 -33
- package/lib/providers/screen-share-provider.d.ts +1 -0
- package/lib/providers/screen-share-provider.js +66 -65
- package/lib/providers/sharing-provider.js +2 -1
- package/lib/providers/user-setting-storage-provider.js +0 -2
- package/lib/providers/widget-provider.js +0 -1
- package/lib/scenes/main-scene.js +11 -13
- package/lib/scenes/waiting-scene.js +3 -3
- package/lib/shared-data-source/chat-data.js +0 -2
- package/lib/shared-data-source/interpreter.js +0 -2
- package/lib/shared-data-source/layout-data.js +1 -4
- package/lib/shared-data-source/member-data.js +0 -4
- package/lib/shared-data-source/pin-data.js +0 -1
- package/lib/shared-data-source/screen-share-data.d.ts +2 -2
- package/lib/shared-data-source/screen-share-data.js +1 -2
- package/lib/shared-data-source/security-data.js +0 -1
- package/lib/shared-data-source/setting.js +0 -2
- package/lib/shared-data-source/video-window.js +26 -30
- package/lib/shared-data-source/waiting-room.js +0 -2
- package/lib/type.js +14 -0
- package/lib/ui-scene.js +7 -8
- package/lib/utilities/constant.js +7 -0
- package/lib/utilities/copyText.js +12 -12
- package/lib/utilities/hooks.js +1 -2
- package/lib/utilities/logger.js +0 -1
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/privilege.js +0 -3
- package/lib/utilities/renderer-event.js +0 -2
- package/lib/utilities/setting-config-storage.d.ts +2 -0
- package/lib/utilities/setting-config-storage.js +24 -4
- package/lib/utilities/tools.js +6 -10
- package/lib/waiting-room-control-manager.js +26 -28
- package/package.json +5 -5
|
@@ -18,7 +18,7 @@ require("core-js/modules/es.array.map.js");
|
|
|
18
18
|
require("core-js/modules/es.date.to-string.js");
|
|
19
19
|
require("core-js/modules/es.object.to-string.js");
|
|
20
20
|
require("core-js/modules/es.regexp.to-string.js");
|
|
21
|
-
require("core-js/modules/esnext.
|
|
21
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
22
22
|
require("core-js/modules/esnext.iterator.map.js");
|
|
23
23
|
var _mobxReact = require("mobx-react");
|
|
24
24
|
var _hooks = require("../hooks");
|
|
@@ -28,8 +28,7 @@ var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
|
28
28
|
var _store = require("../store");
|
|
29
29
|
var _expansion = require("./expansion");
|
|
30
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
|
-
function
|
|
32
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
31
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
33
32
|
var AdditionToolPickerItem = exports.AdditionToolPickerItem = (0, _mobxReact.observer)(function () {
|
|
34
33
|
var _useContext = (0, _react.useContext)(_store.ToolbarContext),
|
|
35
34
|
toolbarDockPosition = _useContext.observables.toolbarDockPosition;
|
|
@@ -10,8 +10,6 @@ require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
|
10
10
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
11
|
require("core-js/modules/es.object.keys.js");
|
|
12
12
|
require("core-js/modules/es.object.to-string.js");
|
|
13
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
14
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
15
13
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
16
14
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
17
15
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
@@ -7,8 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.PenPickerItem = void 0;
|
|
9
9
|
require("core-js/modules/es.array.map.js");
|
|
10
|
-
require("core-js/modules/
|
|
11
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
10
|
+
require("core-js/modules/es.object.to-string.js");
|
|
12
11
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
13
|
var _react = require("react");
|
|
@@ -8,9 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.ShapePickerItem = void 0;
|
|
9
9
|
require("core-js/modules/es.array.includes.js");
|
|
10
10
|
require("core-js/modules/es.array.map.js");
|
|
11
|
-
require("core-js/modules/es.string.
|
|
12
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
13
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
11
|
+
require("core-js/modules/es.object.to-string.js");
|
|
14
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
14
|
var _react = require("react");
|
|
@@ -11,8 +11,6 @@ require("core-js/modules/es.array.filter.js");
|
|
|
11
11
|
require("core-js/modules/es.array.map.js");
|
|
12
12
|
require("core-js/modules/es.array.reverse.js");
|
|
13
13
|
require("core-js/modules/es.object.to-string.js");
|
|
14
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
15
|
-
require("core-js/modules/esnext.async-iterator.map.js");
|
|
16
14
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
17
15
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
18
16
|
require("core-js/modules/esnext.iterator.map.js");
|
|
@@ -349,8 +347,8 @@ var useAnnotationVisibleTools = exports.useAnnotationVisibleTools = function use
|
|
|
349
347
|
// },
|
|
350
348
|
{
|
|
351
349
|
renderItem: function renderItem() {
|
|
352
|
-
var
|
|
353
|
-
offset =
|
|
350
|
+
var _ref0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
351
|
+
offset = _ref0.offset;
|
|
354
352
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_eraserPicker.EraserPickerItem, {
|
|
355
353
|
offset: offset
|
|
356
354
|
});
|
|
@@ -11,7 +11,7 @@ require("core-js/modules/es.array.map.js");
|
|
|
11
11
|
require("core-js/modules/es.date.to-string.js");
|
|
12
12
|
require("core-js/modules/es.object.to-string.js");
|
|
13
13
|
require("core-js/modules/es.regexp.to-string.js");
|
|
14
|
-
require("core-js/modules/esnext.
|
|
14
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
15
15
|
require("core-js/modules/esnext.iterator.map.js");
|
|
16
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
17
|
var _mobxReact = require("mobx-react");
|
|
@@ -165,16 +165,17 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
165
165
|
key: "_onUiEvent",
|
|
166
166
|
value: function () {
|
|
167
167
|
var _onUiEvent2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(event, params) {
|
|
168
|
-
|
|
168
|
+
var _t;
|
|
169
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
169
170
|
while (1) switch (_context.prev = _context.next) {
|
|
170
171
|
case 0:
|
|
171
|
-
|
|
172
|
-
_context.next =
|
|
172
|
+
_t = event;
|
|
173
|
+
_context.next = _t === _constant.FcrUIAction.RESET_WHITEBOARD_TOOLBAR_VARS ? 1 : 2;
|
|
173
174
|
break;
|
|
174
|
-
case
|
|
175
|
+
case 1:
|
|
175
176
|
this.resetToolbarVars();
|
|
176
|
-
return _context.abrupt("
|
|
177
|
-
case
|
|
177
|
+
return _context.abrupt("continue", 2);
|
|
178
|
+
case 2:
|
|
178
179
|
case "end":
|
|
179
180
|
return _context.stop();
|
|
180
181
|
}
|
|
@@ -410,13 +411,13 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
410
411
|
var _getSnapshotImage2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
411
412
|
var _this5 = this;
|
|
412
413
|
var mainWindow, progress, imageData;
|
|
413
|
-
return _regenerator["default"].wrap(function
|
|
414
|
+
return _regenerator["default"].wrap(function (_context2) {
|
|
414
415
|
while (1) switch (_context2.prev = _context2.next) {
|
|
415
416
|
case 0:
|
|
416
417
|
this.observables.progress = 0;
|
|
417
418
|
mainWindow = this.boardMainWindow;
|
|
418
419
|
if (!mainWindow) {
|
|
419
|
-
_context2.next =
|
|
420
|
+
_context2.next = 2;
|
|
420
421
|
break;
|
|
421
422
|
}
|
|
422
423
|
progress = setInterval(function () {
|
|
@@ -426,9 +427,9 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
426
427
|
clearInterval(progress);
|
|
427
428
|
}
|
|
428
429
|
}, 4);
|
|
429
|
-
_context2.next =
|
|
430
|
+
_context2.next = 1;
|
|
430
431
|
return mainWindow.getSnapshotImage();
|
|
431
|
-
case
|
|
432
|
+
case 1:
|
|
432
433
|
imageData = _context2.sent;
|
|
433
434
|
(0, _mobx.runInAction)(function () {
|
|
434
435
|
setTimeout(function () {
|
|
@@ -444,7 +445,7 @@ var ToolbarStore = exports.ToolbarStore = /*#__PURE__*/function () {
|
|
|
444
445
|
// });
|
|
445
446
|
}, 400);
|
|
446
447
|
});
|
|
447
|
-
case
|
|
448
|
+
case 2:
|
|
448
449
|
case "end":
|
|
449
450
|
return _context2.stop();
|
|
450
451
|
}
|
|
@@ -18,7 +18,6 @@ require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
|
18
18
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
19
19
|
require("core-js/modules/es.object.keys.js");
|
|
20
20
|
require("core-js/modules/es.reflect.construct.js");
|
|
21
|
-
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
22
21
|
require("core-js/modules/esnext.function.metadata.js");
|
|
23
22
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
24
23
|
require("core-js/modules/esnext.map.delete-all.js");
|
|
@@ -57,9 +56,6 @@ require("core-js/modules/es.set.js");
|
|
|
57
56
|
require("core-js/modules/es.string.includes.js");
|
|
58
57
|
require("core-js/modules/es.string.iterator.js");
|
|
59
58
|
require("core-js/modules/es.weak-map.js");
|
|
60
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
61
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
62
|
-
require("core-js/modules/esnext.async-iterator.some.js");
|
|
63
59
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
64
60
|
require("core-js/modules/esnext.iterator.find.js");
|
|
65
61
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
@@ -180,7 +176,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
180
176
|
onConnectionStateUpdated: function () {
|
|
181
177
|
var _onConnectionStateUpdated = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(state) {
|
|
182
178
|
var _this$_whiteboardCont, _this$_whiteboardCont2, mainWindow, isActive, ownerUserId, _this$_userControl, ownerUser;
|
|
183
|
-
return _regenerator["default"].wrap(function
|
|
179
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
184
180
|
while (1) switch (_context.prev = _context.next) {
|
|
185
181
|
case 0:
|
|
186
182
|
_this.logger.info('Fcr board connection state changed to', state);
|
|
@@ -208,7 +204,7 @@ var FcrWhiteboardUIModule = exports.FcrWhiteboardUIModule = /*#__PURE__*/functio
|
|
|
208
204
|
_this._boardMainWindow = mainWindow;
|
|
209
205
|
_this.mount();
|
|
210
206
|
}
|
|
211
|
-
case
|
|
207
|
+
case 1:
|
|
212
208
|
case "end":
|
|
213
209
|
return _context.stop();
|
|
214
210
|
}
|
|
@@ -136,3 +136,15 @@
|
|
|
136
136
|
width: 100%;
|
|
137
137
|
height: 100%;
|
|
138
138
|
} */
|
|
139
|
+
|
|
140
|
+
.whiteboard-action-prevent {
|
|
141
|
+
width: 100%;
|
|
142
|
+
height: 100%;
|
|
143
|
+
position: absolute;
|
|
144
|
+
left: 0px;
|
|
145
|
+
top: 0px;
|
|
146
|
+
z-index: 100;
|
|
147
|
+
cursor:
|
|
148
|
+
url('data:image/svg+xml,%3Csvg width="18" height="18" viewBox="0 0 " fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-path="url(%23clip0_71146_163811)"%3E%3Cg filter="url(%23filter0_d_71146_163811)"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M4.95701 14.2575L1.05431 2.41514C0.867777 1.84912 1.1772 1.23963 1.74543 1.05381C1.96805 0.981012 2.20837 0.982105 2.43032 1.05693L14.264 5.04624C14.8305 5.23722 15.1343 5.84949 14.9426 6.4138C14.8422 6.70924 14.6183 6.94694 14.3288 7.0656L9.3004 9.12601C9.08832 9.21291 8.92123 9.38255 8.83806 9.59543L6.99502 14.3123C6.77809 14.8675 6.15043 15.1423 5.59309 14.9263C5.29135 14.8093 5.058 14.5639 4.95701 14.2575Z" fill="%234262FF"/%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M4.95701 14.2575L1.05431 2.41514C0.867777 1.84912 1.1772 1.23963 1.74543 1.05381C1.96805 0.981012 2.20837 0.982105 2.43032 1.05693L14.264 5.04624C14.8305 5.23722 15.1343 5.84949 14.9426 6.4138C14.8422 6.70924 14.6183 6.94694 14.3288 7.0656L9.3004 9.12601C9.08832 9.21291 8.92123 9.38255 8.83806 9.59543L6.99502 14.3123C6.77809 14.8675 6.15043 15.1423 5.59309 14.9263C5.29135 14.8093 5.058 14.5639 4.95701 14.2575Z" stroke="white" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3Cfilter id="filter0_d_71146_163811" x="-2.5" y="-1.5" width="23" height="23" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/%3E%3CfeOffset dx="1" dy="2"/%3E%3CfeGaussianBlur stdDeviation="2"/%3E%3CfeComposite in2="hardAlpha" operator="out"/%3E%3CfeColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.14 0"/%3E%3CfeBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_71146_163811"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_71146_163811" result="shape"/%3E%3C/filter%3E%3CclipPath id="clip0_71146_163811"%3E%3Crect width="18" height="18" fill="white"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E'),
|
|
149
|
+
auto;
|
|
150
|
+
}
|
|
@@ -52,6 +52,8 @@ var Whiteboard = exports.Whiteboard = (0, _mobxReact.observer)(function () {
|
|
|
52
52
|
}), canOperate && showToolbar && writeEnabled && /*#__PURE__*/(0, _jsxRuntime.jsx)(_toolbar.Toolbar, {}), loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_loading.Loading, {}), progress > 0 && progress < 100 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_progress["default"], {
|
|
53
53
|
title: "".concat(transI18n('fmt_screenshare_whiteboard_tips_downloading'), "..."),
|
|
54
54
|
progress: progress
|
|
55
|
+
}), (!canOperate || !showToolbar || !writeEnabled) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
56
|
+
className: "whiteboard-action-prevent"
|
|
55
57
|
})]
|
|
56
58
|
});
|
|
57
59
|
});
|
|
@@ -60,8 +60,7 @@ var _store = _interopRequireWildcard(require("./store"));
|
|
|
60
60
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
61
61
|
var _WebWidgetUIModule;
|
|
62
62
|
var _initProto;
|
|
63
|
-
function
|
|
64
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
63
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
65
64
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
66
65
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
67
66
|
function _applyDecs(e, t, r, n, o, a) { function i(e, t, r) { return function (n, o) { return r && r(n), e[t].call(n, o); }; } function c(e, t) { for (var r = 0; r < e.length; r++) e[r].call(t); return t; } function s(e, t, r, n) { if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); return e; } function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { function m(e) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, v = t[0], g = t[3], b = !u; if (!b) { r || Array.isArray(v) || (v = [v]); var w = {}, S = [], A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; f ? (p || d ? w = { get: _setFunctionName(function () { return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } } : w[A] = g, p || _setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { var D = v[j], E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], name: n, metadata: a, addInitializer: function (e, t) { if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); s(t, "An initializer", "be", !0), c.push(t); }.bind(null, I) }; try { if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { return m(e), w.value; } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { has: f ? h.bind() : function (e) { return n in e; } }; if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { get: w.get, set: w.set } : w[A], O), d) { if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { configurable: !0, enumerable: !0, value: t }); } if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; var f = Object.create(null == l ? null : l), p = function (e, t, r, n) { var o, a, i = [], s = function s(t) { return _checkInRHS(t) === e; }, u = new Map(); function l(e) { e && i.push(c.bind(null, e)); } for (var f = 0; f < t.length; f++) { var p = t[f]; if (Array.isArray(p)) { var d = p[1], h = p[2], m = p.length > 3, y = 16 & d, v = !!(8 & d), g = 0 == (d &= 7), b = h + "/" + v; if (!g && !m) { var w = u.get(b); if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); u.set(b, !(d > 2) || d); } applyDec(v ? e : e.prototype, p, y, m ? "#" + h : _toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); } } return l(o), l(a), i; }(e, t, o, f); return r.length || u(e, f), { e: p, get c() { var t = []; return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
|
|
@@ -161,7 +161,7 @@ var FcrUIWebWidgetImpl = exports.FcrUIWebWidgetImpl = /*#__PURE__*/function () {
|
|
|
161
161
|
key: "fetchUserList",
|
|
162
162
|
value: function () {
|
|
163
163
|
var _fetchUserList = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(params) {
|
|
164
|
-
return _regenerator["default"].wrap(function
|
|
164
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
165
165
|
while (1) switch (_context.prev = _context.next) {
|
|
166
166
|
case 0:
|
|
167
167
|
return _context.abrupt("return", this._userControl.fetchUserList(params));
|
|
@@ -61,7 +61,7 @@ if (!window.runtime) {
|
|
|
61
61
|
},
|
|
62
62
|
checkMediaPermission: function () {
|
|
63
63
|
var _checkMediaPermission = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(mediaType) {
|
|
64
|
-
return _regenerator["default"].wrap(function
|
|
64
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
65
65
|
while (1) switch (_context.prev = _context.next) {
|
|
66
66
|
case 0:
|
|
67
67
|
return _context.abrupt("return", true);
|
|
@@ -17,11 +17,11 @@ var _fcrCore = require("fcr-core");
|
|
|
17
17
|
var createRoom = /*#__PURE__*/function () {
|
|
18
18
|
var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(roomName) {
|
|
19
19
|
var url, res, json;
|
|
20
|
-
return _regenerator["default"].wrap(function
|
|
20
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
21
21
|
while (1) switch (_context.prev = _context.next) {
|
|
22
22
|
case 0:
|
|
23
23
|
url = "http://api-solutions-dev.bj2.agoralab.co/conference/companys/v1/rooms";
|
|
24
|
-
_context.next =
|
|
24
|
+
_context.next = 1;
|
|
25
25
|
return fetch(url, {
|
|
26
26
|
headers: {
|
|
27
27
|
'Content-Type': 'application/json'
|
|
@@ -36,14 +36,14 @@ var createRoom = /*#__PURE__*/function () {
|
|
|
36
36
|
roomProperties: {}
|
|
37
37
|
})
|
|
38
38
|
});
|
|
39
|
-
case
|
|
39
|
+
case 1:
|
|
40
40
|
res = _context.sent;
|
|
41
|
-
_context.next =
|
|
41
|
+
_context.next = 2;
|
|
42
42
|
return res.json();
|
|
43
|
-
case
|
|
43
|
+
case 2:
|
|
44
44
|
json = _context.sent;
|
|
45
45
|
return _context.abrupt("return", json.data.roomId);
|
|
46
|
-
case
|
|
46
|
+
case 3:
|
|
47
47
|
case "end":
|
|
48
48
|
return _context.stop();
|
|
49
49
|
}
|
|
@@ -65,11 +65,11 @@ var createRoom = /*#__PURE__*/function () {
|
|
|
65
65
|
var getUserToken = /*#__PURE__*/function () {
|
|
66
66
|
var _ref2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(roomId, userId, userName, role) {
|
|
67
67
|
var url, res, json;
|
|
68
|
-
return _regenerator["default"].wrap(function
|
|
68
|
+
return _regenerator["default"].wrap(function (_context2) {
|
|
69
69
|
while (1) switch (_context2.prev = _context2.next) {
|
|
70
70
|
case 0:
|
|
71
71
|
url = "https://api-solutions-dev.bj2.agoralab.co/conference/companys/v1/rooms";
|
|
72
|
-
_context2.next =
|
|
72
|
+
_context2.next = 1;
|
|
73
73
|
return fetch(url, {
|
|
74
74
|
headers: {
|
|
75
75
|
'Content-Type': 'application/json'
|
|
@@ -82,17 +82,17 @@ var getUserToken = /*#__PURE__*/function () {
|
|
|
82
82
|
userName: userName
|
|
83
83
|
})
|
|
84
84
|
});
|
|
85
|
-
case
|
|
85
|
+
case 1:
|
|
86
86
|
res = _context2.sent;
|
|
87
|
-
_context2.next =
|
|
87
|
+
_context2.next = 2;
|
|
88
88
|
return res.json();
|
|
89
|
-
case
|
|
89
|
+
case 2:
|
|
90
90
|
json = _context2.sent;
|
|
91
91
|
return _context2.abrupt("return", {
|
|
92
92
|
token: json.data.token,
|
|
93
93
|
appId: json.data.appId
|
|
94
94
|
});
|
|
95
|
-
case
|
|
95
|
+
case 3:
|
|
96
96
|
case "end":
|
|
97
97
|
return _context2.stop();
|
|
98
98
|
}
|
|
@@ -107,7 +107,7 @@ var userId = "test-user-".concat(Date.now());
|
|
|
107
107
|
var role = 'host';
|
|
108
108
|
window.__DEV_ENGINE_IS_READY__ = createRoom(roomId).then(/*#__PURE__*/function () {
|
|
109
109
|
var _ref3 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(roomId) {
|
|
110
|
-
return _regenerator["default"].wrap(function
|
|
110
|
+
return _regenerator["default"].wrap(function (_context3) {
|
|
111
111
|
while (1) switch (_context3.prev = _context3.next) {
|
|
112
112
|
case 0:
|
|
113
113
|
return _context3.abrupt("return", getUserToken(roomId, userId, userId, role).then(function (_ref4) {
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { FcrAbilityControl } from 'fcr-core/lib/room-control/ability-control/type';
|
|
2
2
|
import { FcrPlatform } from 'fcr-core/lib/type';
|
|
3
3
|
export interface FcrUIAbilityProvider {
|
|
4
|
+
/**
|
|
5
|
+
* 检查当前平台是否支持获取房间详情
|
|
6
|
+
*/
|
|
4
7
|
isRoomDetailSupported(): boolean;
|
|
5
8
|
/**
|
|
6
9
|
* 判断指定平台是否支持设置主持人
|
|
7
10
|
* @param platform 目标平台
|
|
8
11
|
*/
|
|
9
12
|
isHostSupportedByPlatform(platform: FcrPlatform): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 检查当前平台是否支持批注
|
|
15
|
+
*/
|
|
16
|
+
isAnnotationSupported(): boolean;
|
|
10
17
|
}
|
|
11
18
|
export declare class FcrUIAbilityProviderImpl implements FcrUIAbilityProvider {
|
|
12
19
|
private _abilityControl;
|
|
13
20
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
14
21
|
constructor(_abilityControl: FcrAbilityControl);
|
|
15
22
|
/**
|
|
16
|
-
*
|
|
23
|
+
* 检查当前平台是否支持获取房间详情
|
|
17
24
|
*/
|
|
18
25
|
isRoomDetailSupported: () => boolean;
|
|
19
26
|
/**
|
|
@@ -29,4 +36,8 @@ export declare class FcrUIAbilityProviderImpl implements FcrUIAbilityProvider {
|
|
|
29
36
|
* 检查当前平台是否支持指定能力
|
|
30
37
|
*/
|
|
31
38
|
isInterpreterSupported: () => boolean;
|
|
39
|
+
/**
|
|
40
|
+
* 检查当前平台是否支持批注
|
|
41
|
+
*/
|
|
42
|
+
isAnnotationSupported: () => boolean;
|
|
32
43
|
}
|
|
@@ -19,7 +19,7 @@ var FcrUIAbilityProviderImpl = exports.FcrUIAbilityProviderImpl = /*#__PURE__*/(
|
|
|
19
19
|
prefix: 'FcrUIAbilityProviderImpl'
|
|
20
20
|
}));
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 检查当前平台是否支持获取房间详情
|
|
23
23
|
*/
|
|
24
24
|
(0, _defineProperty2["default"])(this, "isRoomDetailSupported", function () {
|
|
25
25
|
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.RoomDetail);
|
|
@@ -47,6 +47,13 @@ var FcrUIAbilityProviderImpl = exports.FcrUIAbilityProviderImpl = /*#__PURE__*/(
|
|
|
47
47
|
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.Interpreter);
|
|
48
48
|
return result;
|
|
49
49
|
});
|
|
50
|
+
/**
|
|
51
|
+
* 检查当前平台是否支持批注
|
|
52
|
+
*/
|
|
53
|
+
(0, _defineProperty2["default"])(this, "isAnnotationSupported", function () {
|
|
54
|
+
var result = _this._abilityControl.isAbilitySupported(_type.FcrAbility.Annotation);
|
|
55
|
+
return result;
|
|
56
|
+
});
|
|
50
57
|
this._abilityControl = _abilityControl;
|
|
51
58
|
});
|
|
52
59
|
(0, _base.registerDependency)('abilityProvider');
|
|
@@ -45,8 +45,6 @@ require("core-js/modules/es.json.stringify.js");
|
|
|
45
45
|
require("core-js/modules/es.object.to-string.js");
|
|
46
46
|
require("core-js/modules/es.string.iterator.js");
|
|
47
47
|
require("core-js/modules/es.weak-map.js");
|
|
48
|
-
require("core-js/modules/esnext.async-iterator.find.js");
|
|
49
|
-
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
50
48
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
51
49
|
require("core-js/modules/esnext.iterator.find.js");
|
|
52
50
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
@@ -112,7 +110,7 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
112
110
|
onConnectionStateUpdated: function () {
|
|
113
111
|
var _onConnectionStateUpdated = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(state) {
|
|
114
112
|
var _this$_annotationCont, mainWindow;
|
|
115
|
-
return _regenerator["default"].wrap(function
|
|
113
|
+
return _regenerator["default"].wrap(function (_context) {
|
|
116
114
|
while (1) switch (_context.prev = _context.next) {
|
|
117
115
|
case 0:
|
|
118
116
|
if (state === _fcrCore.FcrConnectionState.CONNECTED) {
|
|
@@ -267,7 +265,7 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
267
265
|
key: "toggleAnnotation",
|
|
268
266
|
value: function () {
|
|
269
267
|
var _toggleAnnotation = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
270
|
-
return _regenerator["default"].wrap(function
|
|
268
|
+
return _regenerator["default"].wrap(function (_context2) {
|
|
271
269
|
while (1) switch (_context2.prev = _context2.next) {
|
|
272
270
|
case 0:
|
|
273
271
|
if (this.annotating) {
|
|
@@ -335,7 +333,7 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
335
333
|
var _setBoundsToAnnotationWindow = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(info) {
|
|
336
334
|
var _this2 = this;
|
|
337
335
|
var targetBounds, _ref2, bounds, _getCurrentSharingWor, width, height, x, y, windows, win;
|
|
338
|
-
return _regenerator["default"].wrap(function
|
|
336
|
+
return _regenerator["default"].wrap(function (_context3) {
|
|
339
337
|
while (1) switch (_context3.prev = _context3.next) {
|
|
340
338
|
case 0:
|
|
341
339
|
targetBounds = null;
|
|
@@ -368,7 +366,7 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
368
366
|
action: _constant.FcrUIRendererEventAction.SET_CURRENT_SHARE_SCREEN_BOUNDS,
|
|
369
367
|
payload: targetBounds
|
|
370
368
|
});
|
|
371
|
-
case
|
|
369
|
+
case 1:
|
|
372
370
|
case "end":
|
|
373
371
|
return _context3.stop();
|
|
374
372
|
}
|
|
@@ -402,11 +400,9 @@ var FcrUIAnnotationProviderImpl = exports.FcrUIAnnotationProviderImpl = /*#__PUR
|
|
|
402
400
|
key: "_initAnnotationTransaction",
|
|
403
401
|
value: function _initAnnotationTransaction(screenShareOwnerId) {
|
|
404
402
|
this._annotationControl = this.getAnnotationControl();
|
|
405
|
-
if (this.
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
this._annotationControl.open();
|
|
409
|
-
}
|
|
403
|
+
if (this._annotationControl) {
|
|
404
|
+
this._annotationControl.addObserver(this._annotationObserver);
|
|
405
|
+
this._annotationControl.open();
|
|
410
406
|
}
|
|
411
407
|
}
|
|
412
408
|
}]);
|