fcr-ui-scene 3.7.2 → 3.7.4-rc.1
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 +2 -0
- package/lib/creator.js +37 -44
- package/lib/electron/app.js +7 -0
- package/lib/electron/injections.d.ts +1 -1
- package/lib/electron/injections.js +5 -3
- package/lib/electron/main.js +3 -1
- package/lib/fragments/annotation/index.d.ts +1 -0
- package/lib/fragments/annotation/index.js +13 -7
- package/lib/fragments/annotation/libs.d.ts +7 -6
- package/lib/fragments/annotation/libs.js +9 -8
- package/lib/fragments/annotation/store.d.ts +8 -4
- package/lib/fragments/annotation/store.js +351 -267
- package/lib/fragments/annotation/toolbar/components/color-tool/index.js +4 -0
- package/lib/fragments/annotation/toolbar/components/graphic-tool/index.js +4 -0
- package/lib/fragments/annotation/toolbar/components/item/item.d.ts +2 -0
- package/lib/fragments/annotation/toolbar/components/item/item.js +2 -4
- package/lib/fragments/annotation/toolbar/components/item/style.css +4 -2
- package/lib/fragments/annotation/toolbar/components/pen-tool/index.js +4 -0
- package/lib/fragments/annotation/utils.d.ts +1 -0
- package/lib/fragments/annotation/utils.js +27 -0
- package/lib/fragments/annotation/view.js +1 -6
- package/lib/fragments/base.js +5 -3
- package/lib/fragments/whiteboard/cursor.css +77 -0
- package/lib/fragments/whiteboard/index.d.ts +11 -0
- package/lib/fragments/whiteboard/index.js +91 -0
- package/lib/fragments/whiteboard/store.d.ts +31 -0
- package/lib/fragments/whiteboard/store.js +480 -0
- package/lib/fragments/whiteboard/style.css +4 -0
- package/lib/fragments/whiteboard/view.d.ts +4 -0
- package/lib/fragments/whiteboard/view.js +31 -0
- package/lib/global.css +6 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/modules/action-bar/components/apps/index.js +15 -5
- package/lib/modules/action-bar/components/leave/index.js +4 -11
- package/lib/modules/action-bar/components/screen-share/submenu.js +2 -2
- package/lib/modules/action-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/index.js +2 -1
- package/lib/modules/action-bar/store.d.ts +6 -2
- package/lib/modules/action-bar/store.js +56 -93
- package/lib/modules/action-bar/view.d.ts +1 -0
- package/lib/modules/action-bar/view.js +3 -2
- package/lib/modules/annotation/annotation-toolbar-store.d.ts +4 -11
- package/lib/modules/annotation/annotation-toolbar-store.js +48 -90
- package/lib/modules/annotation/index.d.ts +2 -0
- package/lib/modules/annotation/index.js +2 -2
- package/lib/modules/annotation/store.d.ts +11 -49
- package/lib/modules/annotation/store.js +144 -429
- package/lib/modules/annotation/view.js +3 -6
- package/lib/modules/audio-stream/index.js +1 -2
- package/lib/modules/chat/components/chat-select/index.js +3 -0
- package/lib/modules/components/control-bar/components/loading/index.css +76 -0
- package/lib/modules/components/control-bar/components/loading/index.d.ts +8 -0
- package/lib/modules/components/control-bar/components/loading/index.js +64 -0
- package/lib/modules/components/control-bar/components/loading/loading.png +0 -0
- package/lib/modules/components/control-bar/components/progress/index.d.ts +5 -0
- package/lib/modules/components/control-bar/components/progress/index.js +43 -0
- package/lib/modules/components/control-bar/components/progress/style.css +51 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.css +99 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.d.ts +9 -0
- package/lib/modules/components/control-bar/components/switch-theme/index.js +94 -0
- package/lib/modules/components/control-bar/components/switch-theme/item.d.ts +9 -0
- package/lib/modules/components/control-bar/components/switch-theme/item.js +54 -0
- package/lib/modules/components/control-bar/components/switch-theme/libs.d.ts +4 -0
- package/lib/modules/components/control-bar/components/switch-theme/libs.js +31 -0
- package/lib/modules/components/control-bar/index.css +87 -0
- package/lib/modules/components/control-bar/index.d.ts +20 -0
- package/lib/modules/components/control-bar/index.js +276 -0
- package/lib/modules/components/device-control/store.js +2 -2
- package/lib/modules/components/leave-meeting/components/index.css +0 -9
- package/lib/modules/components/leave-meeting/index.d.ts +2 -1
- package/lib/modules/components/leave-meeting/index.js +19 -8
- package/lib/modules/components/leave-meeting/portal.d.ts +6 -0
- package/lib/modules/components/leave-meeting/portal.js +29 -0
- package/lib/modules/components/leave-meeting/style.css +9 -0
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.d.ts +5 -2
- package/lib/modules/components/member-window/components/member-actions/components/more-actions.js +19 -9
- package/lib/modules/components/member-window/components/member-actions/components/share-status.js +4 -4
- package/lib/modules/components/member-window/components/member-actions/index.js +13 -6
- package/lib/modules/components/member-window/components/member-actions/provider.d.ts +1 -0
- package/lib/modules/components/member-window/components/member-actions/provider.js +4 -3
- package/lib/modules/components/member-window/components/member-actions/store.d.ts +2 -1
- package/lib/modules/components/member-window/components/member-actions/store.js +5 -1
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.d.ts +6 -4
- package/lib/modules/components/member-window/components/video-player/components/local-video-player-with-zoom.js +77 -41
- package/lib/modules/components/member-window/components/video-player/components/remote-video-player-with-zoom.d.ts +3 -3
- package/lib/modules/components/member-window/components/video-player/index.d.ts +3 -3
- package/lib/modules/components/member-window/index.css +4 -0
- package/lib/modules/components/member-window/types.d.ts +9 -5
- package/lib/modules/components/toolbar/components/capture-tool/index.d.ts +9 -0
- package/lib/modules/components/toolbar/components/capture-tool/index.js +68 -0
- package/lib/modules/components/toolbar/components/clean-tool/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/clean-tool/index.js +71 -0
- package/lib/modules/components/toolbar/components/color-tool/color-panel/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/color-tool/color-panel/index.js +77 -0
- package/lib/modules/components/toolbar/components/color-tool/index.d.ts +14 -0
- package/lib/modules/components/toolbar/components/color-tool/index.js +66 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.d.ts +11 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/index.js +64 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.d.ts +12 -0
- package/lib/modules/components/toolbar/components/graphic-tool/graphic-panel/libs.js +65 -0
- package/lib/modules/components/toolbar/components/graphic-tool/index.d.ts +15 -0
- package/lib/modules/components/toolbar/components/graphic-tool/index.js +82 -0
- package/lib/modules/components/toolbar/components/group-tool/index.d.ts +5 -0
- package/lib/modules/components/toolbar/components/group-tool/index.js +43 -0
- package/lib/modules/components/toolbar/components/icons/fold-icon.d.ts +2 -0
- package/lib/modules/components/toolbar/components/icons/fold-icon.js +41 -0
- package/lib/modules/components/toolbar/components/icons/move-icon.d.ts +1 -0
- package/lib/modules/components/toolbar/components/icons/move-icon.js +66 -0
- package/lib/modules/components/toolbar/components/item/index.d.ts +25 -0
- package/lib/modules/components/toolbar/components/item/index.js +165 -0
- package/lib/modules/components/toolbar/components/item/style.css +94 -0
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.d.ts +12 -0
- package/lib/modules/components/toolbar/components/multiple-color-tool/index.js +75 -0
- package/lib/modules/components/toolbar/components/panel/index.d.ts +9 -0
- package/lib/modules/components/toolbar/components/panel/index.js +28 -0
- package/lib/modules/components/toolbar/components/panel/style.css +86 -0
- package/lib/modules/components/toolbar/components/pen-tool/index.d.ts +13 -0
- package/lib/modules/components/toolbar/components/pen-tool/index.js +62 -0
- package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.d.ts +8 -0
- package/lib/modules/components/toolbar/components/pen-tool/pen-panel/index.js +39 -0
- package/lib/modules/components/toolbar/components/save-draft/index.d.ts +7 -0
- package/lib/modules/components/toolbar/components/save-draft/index.js +59 -0
- package/lib/modules/components/toolbar/components/vertical-frame/index.d.ts +8 -0
- package/lib/modules/components/toolbar/components/vertical-frame/index.js +179 -0
- package/lib/modules/components/toolbar/hooks/use-resize-visible.d.ts +4 -0
- package/lib/modules/components/toolbar/hooks/use-resize-visible.js +59 -0
- package/lib/modules/components/toolbar/index.d.ts +29 -0
- package/lib/modules/components/toolbar/index.js +258 -0
- package/lib/modules/components/toolbar/style.css +85 -0
- package/lib/modules/components/toolbar/types.d.ts +13 -0
- package/lib/modules/components/toolbar/types.js +6 -0
- package/lib/modules/control-bar/components/more-actions/index.js +0 -6
- package/lib/modules/control-bar/components/share-state-nav/index.js +3 -2
- package/lib/modules/control-bar/index.js +2 -1
- package/lib/modules/control-bar/store.d.ts +15 -12
- package/lib/modules/control-bar/store.js +68 -29
- package/lib/modules/control-bar/view.js +33 -67
- package/lib/modules/device-pretest/store.js +4 -2
- package/lib/modules/dialog/components/dialog-container/component/body.js +3 -24
- package/lib/modules/dialog/components/dialog-container/index.d.ts +4 -0
- package/lib/modules/dialog/components/dialog-container/index.js +67 -44
- package/lib/modules/dialog/components/normal-window/index.js +4 -0
- package/lib/modules/dialog/dialogs/control-bar/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/control-bar/index.js +26 -35
- package/lib/modules/dialog/dialogs/participant/components/title.js +1 -1
- package/lib/modules/dialog/dialogs/sub-window/index.d.ts +2 -0
- package/lib/modules/dialog/dialogs/sub-window/index.js +102 -0
- package/lib/modules/dialog/dialogs/video-window/index.d.ts +1 -0
- package/lib/modules/dialog/dialogs/video-window/index.js +31 -25
- package/lib/modules/dialog/dialogs/whiteboard/index.js +0 -1
- package/lib/modules/dialog/hooks/use-popover-watcher.js +1 -2
- package/lib/modules/dialog/hooks/useElectron.d.ts +13 -0
- package/lib/modules/dialog/hooks/useElectron.js +66 -13
- package/lib/modules/dialog/index.d.ts +6 -3
- package/lib/modules/dialog/index.js +5 -3
- package/lib/modules/dialog/level-config.js +1 -1
- package/lib/modules/dialog/store.d.ts +23 -9
- package/lib/modules/dialog/store.js +84 -12
- package/lib/modules/dialog/type.d.ts +8 -0
- package/lib/modules/event-confirm/components/window/index.d.ts +5 -2
- package/lib/modules/event-confirm/components/window/index.js +38 -14
- package/lib/modules/event-confirm/index.css +3 -2
- package/lib/modules/event-confirm/store.d.ts +10 -5
- package/lib/modules/event-confirm/store.js +68 -20
- package/lib/modules/event-confirm/view.js +10 -8
- package/lib/modules/event-sound/index.d.ts +1 -0
- package/lib/modules/event-sound/index.js +11 -24
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +1 -2
- package/lib/modules/interpreter/store.js +11 -13
- package/lib/modules/invite/components/pstn-invite.js +0 -1
- package/lib/modules/layout/components/CommonVideoRenderer.js +26 -26
- package/lib/modules/layout/components/who-is-speaking.js +3 -6
- package/lib/modules/layout/index.d.ts +3 -1
- package/lib/modules/layout/index.js +2 -1
- package/lib/modules/layout/store.d.ts +7 -59
- package/lib/modules/layout/store.js +133 -45
- package/lib/modules/layout/type.d.ts +55 -0
- package/lib/modules/participant/components/can-moveable/index.js +0 -1
- package/lib/modules/participant/components/participants/components/participants/components/attendee/index.js +4 -2
- package/lib/modules/participant/components/participants/components/participants/components/participants-more/index.js +14 -2
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.d.ts +1 -1
- package/lib/modules/participant/components/participants/components/participants/components/user-row/index.js +3 -2
- package/lib/modules/participant/components/participants/components/participants/index.js +3 -2
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.d.ts +1 -0
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/components/move-actions-popover/index.js +3 -1
- package/lib/modules/participant/components/participants/components/render-user/components/user-action/index.js +4 -2
- package/lib/modules/participant/components/participants/components/render-user/index.d.ts +4 -2
- package/lib/modules/participant/components/participants/components/render-user/index.js +5 -3
- package/lib/modules/participant/components/participants/index.js +5 -2
- package/lib/modules/participant/components/participants/types.d.ts +3 -0
- package/lib/modules/participant/index.d.ts +2 -0
- package/lib/modules/participant/index.js +2 -1
- package/lib/modules/participant/member-list-data-source.js +3 -5
- package/lib/modules/participant/store.d.ts +5 -1
- package/lib/modules/participant/store.js +51 -44
- package/lib/modules/secondary-window/index.d.ts +50 -0
- package/lib/modules/secondary-window/index.js +113 -0
- package/lib/modules/secondary-window/store.d.ts +76 -0
- package/lib/modules/secondary-window/store.js +407 -0
- package/lib/modules/secondary-window/type.d.ts +110 -0
- package/lib/modules/secondary-window/type.js +35 -0
- package/lib/modules/secondary-window/view.d.ts +6 -0
- package/lib/modules/secondary-window/view.js +257 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +4 -2
- package/lib/modules/setting/config.d.ts +4 -0
- package/lib/modules/setting/config.js +6 -3
- package/lib/modules/setting/general-settings/general-settings.js +9 -0
- package/lib/modules/setting/state/index.js +0 -10
- package/lib/modules/setting/store.d.ts +9 -3
- package/lib/modules/setting/store.js +110 -77
- package/lib/modules/setting/view.js +3 -2
- package/lib/modules/share-screen/components/control-bar/index.d.ts +14 -1
- package/lib/modules/share-screen/components/control-bar/index.js +17 -12
- package/lib/modules/share-screen/components/selection/index.js +16 -23
- package/lib/modules/share-screen/index.d.ts +4 -1
- package/lib/modules/share-screen/index.js +6 -3
- package/lib/modules/share-screen/store.d.ts +18 -19
- package/lib/modules/share-screen/store.js +101 -151
- package/lib/modules/share-screen/types.d.ts +7 -8
- package/lib/modules/state-bar/index.d.ts +2 -0
- package/lib/modules/state-bar/index.js +2 -1
- package/lib/modules/state-bar/live-streaming-state.js +0 -1
- package/lib/modules/state-bar/store.d.ts +5 -2
- package/lib/modules/state-bar/store.js +14 -7
- package/lib/modules/state-bar/view.js +3 -3
- package/lib/modules/video-window/components/members/index.js +10 -15
- package/lib/modules/video-window/store.d.ts +1 -0
- package/lib/modules/video-window/store.js +8 -3
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +3 -0
- package/lib/modules/whiteboard/components/control-bar/store.js +20 -11
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +2 -2
- package/lib/modules/whiteboard/components/toolbar/store.js +2 -2
- package/lib/modules/whiteboard/index.d.ts +20 -17
- package/lib/modules/whiteboard/index.js +167 -132
- package/lib/plugins/module-dev-plugin.js +4 -0
- package/lib/providers/ability-provider.js +2 -0
- package/lib/providers/annotation-provider.js +3 -3
- package/lib/providers/device-privilege-provider.js +13 -12
- package/lib/providers/device-provider.d.ts +40 -31
- package/lib/providers/device-provider.js +657 -713
- package/lib/providers/device-stream-provider.js +4 -4
- package/lib/providers/interpreter-provider.js +7 -9
- package/lib/providers/multi-display-provider.d.ts +90 -0
- package/lib/providers/multi-display-provider.js +593 -0
- package/lib/providers/privilege-provider.d.ts +3 -11
- package/lib/providers/privilege-provider.js +3 -12
- package/lib/providers/renderer-provider.d.ts +3 -3
- package/lib/providers/renderer-provider.js +20 -32
- package/lib/providers/room-provider.js +21 -16
- package/lib/providers/screen-share-provider.d.ts +15 -11
- package/lib/providers/screen-share-provider.js +118 -99
- package/lib/providers/sharing-provider.d.ts +7 -1
- package/lib/providers/sharing-provider.js +39 -3
- package/lib/providers/whiteboard-provider.d.ts +24 -0
- package/lib/providers/whiteboard-provider.js +128 -0
- package/lib/runtime.d.ts +1 -0
- package/lib/scenes/main-scene.d.ts +6 -0
- package/lib/scenes/main-scene.js +44 -2
- package/lib/scenes/waiting-scene.d.ts +0 -2
- package/lib/scenes/waiting-scene.js +0 -6
- package/lib/schema.d.ts +3 -3
- package/lib/schema.js +1 -1
- package/lib/shared-data-source/confirm-data.d.ts +19 -0
- package/lib/shared-data-source/confirm-data.js +119 -15
- package/lib/shared-data-source/member-data.d.ts +2 -2
- package/lib/shared-data-source/screen-share-data.d.ts +35 -28
- package/lib/shared-data-source/screen-share-data.js +19 -8
- package/lib/shared-data-source/setting.js +4 -3
- package/lib/shared-data-source/video-window.js +1 -2
- package/lib/shared-data-source/whiteboard-data.d.ts +70 -0
- package/lib/shared-data-source/whiteboard-data.js +348 -0
- package/lib/translations/enUS.d.ts +1 -0
- package/lib/translations/enUS.js +2 -1
- package/lib/translations/zhCN.d.ts +1 -0
- package/lib/translations/zhCN.js +2 -1
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +77 -24
- package/lib/utilities/constant.d.ts +9 -2
- package/lib/utilities/constant.js +10 -3
- package/lib/utilities/debug.d.ts +4 -0
- package/lib/utilities/debug.js +40 -0
- package/lib/utilities/default-config.d.ts +4 -0
- package/lib/utilities/default-config.js +8 -4
- package/lib/utilities/dialog-utils.d.ts +3 -2
- package/lib/utilities/dialog-utils.js +56 -15
- package/lib/utilities/meeting-detail.js +4 -1
- package/lib/utilities/package-info.d.ts +3 -0
- package/lib/utilities/package-info.js +15 -0
- package/lib/utilities/renderer-event.d.ts +4 -6
- package/lib/utilities/renderer-event.js +23 -43
- package/lib/utilities/renderer.d.ts +1 -1
- package/lib/utilities/renderer.js +44 -10
- package/lib/utilities/shared-storage.d.ts +18 -0
- package/lib/utilities/shared-storage.js +63 -0
- package/lib/utilities/tools.js +2 -1
- package/lib/waiting-room-control-manager.js +6 -6
- package/package.json +6 -7
- package/public/index.html +5 -0
- package/lib/electron/tools.d.ts +0 -5
- package/lib/electron/tools.js +0 -62
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.AnnotationColorTool = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
11
|
+
var _item = require("../item");
|
|
12
|
+
var _colorPanel = require("./color-panel");
|
|
13
|
+
var _mobxReact = require("mobx-react");
|
|
14
|
+
var _react = require("react");
|
|
15
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
var AnnotationColorTool = exports.AnnotationColorTool = (0, _mobxReact.observer)(function (props) {
|
|
18
|
+
var size = props.size,
|
|
19
|
+
hideTitle = props.hideTitle,
|
|
20
|
+
colors = props.colors,
|
|
21
|
+
currentColor = props.currentColor,
|
|
22
|
+
placement = props.placement,
|
|
23
|
+
direction = props.direction,
|
|
24
|
+
commonColors = props.commonColors,
|
|
25
|
+
setStrokeColor = props.setStrokeColor,
|
|
26
|
+
contextMenu = props.contextMenu,
|
|
27
|
+
onContextMenuClick = props.onContextMenuClick,
|
|
28
|
+
selected = props.selected;
|
|
29
|
+
var t = (0, _i18n.useI18n)();
|
|
30
|
+
var _useState = (0, _react.useState)(false),
|
|
31
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
32
|
+
visible = _useState2[0],
|
|
33
|
+
setVisible = _useState2[1];
|
|
34
|
+
var handleClick = function handleClick(color) {
|
|
35
|
+
setStrokeColor(color);
|
|
36
|
+
setVisible(!visible);
|
|
37
|
+
};
|
|
38
|
+
var handleVisibleChange = function handleVisibleChange(visible) {
|
|
39
|
+
setVisible(visible);
|
|
40
|
+
};
|
|
41
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_item.AnnotationToolItem, {
|
|
42
|
+
placement: placement,
|
|
43
|
+
size: size,
|
|
44
|
+
hideTitle: hideTitle,
|
|
45
|
+
iconType: _type.FcrIconType.FCR_COLOR,
|
|
46
|
+
color: currentColor,
|
|
47
|
+
title: t('fmt_whiteboard_labels_colour'),
|
|
48
|
+
lineColor: "transparent",
|
|
49
|
+
visible: visible,
|
|
50
|
+
onVisibleChange: handleVisibleChange,
|
|
51
|
+
showArrow: true,
|
|
52
|
+
selected: selected,
|
|
53
|
+
commonColors: commonColors,
|
|
54
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_colorPanel.AnnotationColorPanel, {
|
|
55
|
+
size: size,
|
|
56
|
+
contextMenu: contextMenu,
|
|
57
|
+
direction: direction,
|
|
58
|
+
hideTitle: hideTitle,
|
|
59
|
+
onClick: handleClick,
|
|
60
|
+
colors: colors,
|
|
61
|
+
currentColor: currentColor,
|
|
62
|
+
commonColors: commonColors,
|
|
63
|
+
onContextMenuClick: onContextMenuClick
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FcrBoardShape, FcrBoardToolType } from 'fcr-core/lib/room-control/whiteboard-control/enums';
|
|
2
|
+
export declare const AnnotationGraphicPanel: (props: {
|
|
3
|
+
size?: number;
|
|
4
|
+
hideTitle?: boolean;
|
|
5
|
+
currentShape: FcrBoardShape;
|
|
6
|
+
setShape: (shape: FcrBoardShape) => void;
|
|
7
|
+
setTool: (tool: FcrBoardToolType) => void;
|
|
8
|
+
setStrokeWidth: (width: number) => void;
|
|
9
|
+
currentStrokeWidth: number;
|
|
10
|
+
direction?: "horizontal" | "vertical";
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.AnnotationGraphicPanel = void 0;
|
|
8
|
+
require("core-js/modules/es.array.map.js");
|
|
9
|
+
require("core-js/modules/es.object.to-string.js");
|
|
10
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
11
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
12
|
+
var _item = require("../../item");
|
|
13
|
+
var _panel = require("../../panel");
|
|
14
|
+
var _libs = require("./libs");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
var AnnotationGraphicPanel = exports.AnnotationGraphicPanel = function AnnotationGraphicPanel(props) {
|
|
17
|
+
var size = props.size,
|
|
18
|
+
hideTitle = props.hideTitle,
|
|
19
|
+
currentShape = props.currentShape,
|
|
20
|
+
setShape = props.setShape,
|
|
21
|
+
setTool = props.setTool,
|
|
22
|
+
setStrokeWidth = props.setStrokeWidth,
|
|
23
|
+
currentStrokeWidth = props.currentStrokeWidth,
|
|
24
|
+
direction = props.direction;
|
|
25
|
+
var handleShapeClick = function handleShapeClick(shape) {
|
|
26
|
+
return function () {
|
|
27
|
+
// onClick();
|
|
28
|
+
setShape(shape);
|
|
29
|
+
setTool((0, _libs.convertShapeToBoardToolType)(shape));
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
var handleLineWidthClick = function handleLineWidthClick(lineWidth) {
|
|
33
|
+
return function () {
|
|
34
|
+
// onClick();
|
|
35
|
+
setStrokeWidth(lineWidth);
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_panel.AnnotationToolPanel, {
|
|
39
|
+
direction: direction,
|
|
40
|
+
size: "small",
|
|
41
|
+
header: _libs.tools.map(function (tool) {
|
|
42
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_item.AnnotationToolItem, {
|
|
43
|
+
size: size,
|
|
44
|
+
onClick: handleShapeClick(tool.shape),
|
|
45
|
+
active: currentShape === tool.shape,
|
|
46
|
+
iconType: tool.iconType,
|
|
47
|
+
title: tool.tip,
|
|
48
|
+
hideTitle: hideTitle
|
|
49
|
+
}, tool.shape);
|
|
50
|
+
}),
|
|
51
|
+
footer: _libs.lineWidths.map(function (_ref, index) {
|
|
52
|
+
var iconType = _ref.iconType,
|
|
53
|
+
width = _ref.width;
|
|
54
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_item.AnnotationToolItem, {
|
|
55
|
+
size: size,
|
|
56
|
+
hideTitle: hideTitle,
|
|
57
|
+
onClick: handleLineWidthClick(width),
|
|
58
|
+
active: currentStrokeWidth === width,
|
|
59
|
+
iconType: iconType,
|
|
60
|
+
level: index + 1
|
|
61
|
+
}, width);
|
|
62
|
+
})
|
|
63
|
+
});
|
|
64
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
2
|
+
import { FcrBoardShape, FcrBoardToolType } from 'fcr-core/lib/room-control/whiteboard-control/enums';
|
|
3
|
+
export declare const tools: {
|
|
4
|
+
iconType: FcrIconType;
|
|
5
|
+
shape: FcrBoardShape;
|
|
6
|
+
tip: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const lineWidths: {
|
|
9
|
+
iconType: FcrIconType;
|
|
10
|
+
width: number;
|
|
11
|
+
}[];
|
|
12
|
+
export declare function convertShapeToBoardToolType(shape: FcrBoardShape): FcrBoardToolType;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.convertShapeToBoardToolType = convertShapeToBoardToolType;
|
|
8
|
+
exports.tools = exports.lineWidths = void 0;
|
|
9
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
10
|
+
var _enums = require("fcr-core/lib/room-control/whiteboard-control/enums");
|
|
11
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
12
|
+
var tools = exports.tools = [{
|
|
13
|
+
iconType: _type.FcrIconType.FCR_WHITEBOARD_SHAP_SQUARE,
|
|
14
|
+
shape: _enums.FcrBoardShape.Rectangle,
|
|
15
|
+
tip: (0, _i18n.transI18n)('fmt_whiteboard_tips_rectangle')
|
|
16
|
+
}, {
|
|
17
|
+
iconType: _type.FcrIconType.FCR_WHITEBOARD_SHAP_CIRCLE,
|
|
18
|
+
shape: _enums.FcrBoardShape.Ellipse,
|
|
19
|
+
tip: (0, _i18n.transI18n)('fmt_whiteboard_tips_circle')
|
|
20
|
+
}, {
|
|
21
|
+
iconType: _type.FcrIconType.FCR_WHITEBOARD_SHAP_TRIANGLE,
|
|
22
|
+
shape: _enums.FcrBoardShape.Triangle,
|
|
23
|
+
tip: (0, _i18n.transI18n)('fmt_whiteboard_tips_triangle')
|
|
24
|
+
}, {
|
|
25
|
+
iconType: _type.FcrIconType.FCR_WHITEBOARD_SHAP_LINE,
|
|
26
|
+
shape: _enums.FcrBoardShape.Straight,
|
|
27
|
+
tip: (0, _i18n.transI18n)('fmt_whiteboard_tips_straight')
|
|
28
|
+
}, {
|
|
29
|
+
iconType: _type.FcrIconType.FCR_WHITEBOARD_SHAP_ARROW,
|
|
30
|
+
shape: _enums.FcrBoardShape.Arrow,
|
|
31
|
+
tip: (0, _i18n.transI18n)('fmt_whiteboard_tips_arrow')
|
|
32
|
+
}];
|
|
33
|
+
var lineWidths = exports.lineWidths = [{
|
|
34
|
+
iconType: _type.FcrIconType.FCR_PENSIZE,
|
|
35
|
+
width: 2
|
|
36
|
+
}, {
|
|
37
|
+
iconType: _type.FcrIconType.FCR_PENSIZE,
|
|
38
|
+
width: 4
|
|
39
|
+
}, {
|
|
40
|
+
iconType: _type.FcrIconType.FCR_PENSIZE,
|
|
41
|
+
width: 5
|
|
42
|
+
}, {
|
|
43
|
+
iconType: _type.FcrIconType.FCR_PENSIZE,
|
|
44
|
+
width: 6
|
|
45
|
+
}];
|
|
46
|
+
function convertShapeToBoardToolType(shape) {
|
|
47
|
+
switch (shape) {
|
|
48
|
+
case _enums.FcrBoardShape.Arrow:
|
|
49
|
+
return _enums.FcrBoardToolType.ARROW;
|
|
50
|
+
case _enums.FcrBoardShape.Curve:
|
|
51
|
+
return _enums.FcrBoardToolType.CURVE;
|
|
52
|
+
case _enums.FcrBoardShape.Ellipse:
|
|
53
|
+
return _enums.FcrBoardToolType.ELLIPSE;
|
|
54
|
+
case _enums.FcrBoardShape.Pentagram:
|
|
55
|
+
return _enums.FcrBoardToolType.PENTAGRAM;
|
|
56
|
+
case _enums.FcrBoardShape.Rectangle:
|
|
57
|
+
return _enums.FcrBoardToolType.RECTANGLE;
|
|
58
|
+
case _enums.FcrBoardShape.Straight:
|
|
59
|
+
return _enums.FcrBoardToolType.STRAIGHT;
|
|
60
|
+
case _enums.FcrBoardShape.Triangle:
|
|
61
|
+
return _enums.FcrBoardToolType.TRIANGLE;
|
|
62
|
+
default:
|
|
63
|
+
return _enums.FcrBoardToolType.NONE;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FcrBoardShape, FcrBoardToolType } from 'fcr-core/lib/room-control/whiteboard-control/enums';
|
|
2
|
+
import { ToolTipProps } from 'agora-ui-foundation/lib/components/tooltip';
|
|
3
|
+
export declare const AnnotationGraphicTool: (props: {
|
|
4
|
+
size?: number;
|
|
5
|
+
currentColor: string;
|
|
6
|
+
currentTool: FcrBoardToolType;
|
|
7
|
+
currentShape: FcrBoardShape;
|
|
8
|
+
setShape: (shape: FcrBoardShape) => void;
|
|
9
|
+
setStrokeWidth: (width: number) => void;
|
|
10
|
+
currentStrokeWidth: number;
|
|
11
|
+
setTool: (tool: FcrBoardToolType) => void;
|
|
12
|
+
hideTitle?: boolean;
|
|
13
|
+
placement: ToolTipProps["placement"];
|
|
14
|
+
direction?: "horizontal" | "vertical";
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.AnnotationGraphicTool = void 0;
|
|
9
|
+
require("core-js/modules/es.array.find.js");
|
|
10
|
+
require("core-js/modules/es.array.some.js");
|
|
11
|
+
require("core-js/modules/es.object.to-string.js");
|
|
12
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
13
|
+
require("core-js/modules/esnext.iterator.find.js");
|
|
14
|
+
require("core-js/modules/esnext.iterator.some.js");
|
|
15
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
|
+
var _item = require("../item");
|
|
17
|
+
var _graphicPanel = require("./graphic-panel");
|
|
18
|
+
var _mobxReact = require("mobx-react");
|
|
19
|
+
var _react = require("react");
|
|
20
|
+
var _libs = require("./graphic-panel/libs");
|
|
21
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
22
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
+
var AnnotationGraphicTool = exports.AnnotationGraphicTool = (0, _mobxReact.observer)(function (props) {
|
|
24
|
+
var size = props.size,
|
|
25
|
+
currentTool = props.currentTool,
|
|
26
|
+
currentColor = props.currentColor,
|
|
27
|
+
currentShape = props.currentShape,
|
|
28
|
+
setShape = props.setShape,
|
|
29
|
+
setStrokeWidth = props.setStrokeWidth,
|
|
30
|
+
currentStrokeWidth = props.currentStrokeWidth,
|
|
31
|
+
setTool = props.setTool,
|
|
32
|
+
hideTitle = props.hideTitle,
|
|
33
|
+
placement = props.placement,
|
|
34
|
+
direction = props.direction;
|
|
35
|
+
var _useState = (0, _react.useState)(false),
|
|
36
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
37
|
+
visible = _useState2[0],
|
|
38
|
+
setVisible = _useState2[1];
|
|
39
|
+
var t = (0, _i18n.useI18n)();
|
|
40
|
+
var handleClick = function handleClick() {
|
|
41
|
+
setVisible(!visible);
|
|
42
|
+
setTool((0, _libs.convertShapeToBoardToolType)(currentShape));
|
|
43
|
+
};
|
|
44
|
+
var handleShapeClick = function handleShapeClick(shape) {
|
|
45
|
+
setShape(shape);
|
|
46
|
+
setVisible(!visible);
|
|
47
|
+
};
|
|
48
|
+
var handleStrokeWidthClick = function handleStrokeWidthClick(width) {
|
|
49
|
+
setStrokeWidth(width);
|
|
50
|
+
setVisible(!visible);
|
|
51
|
+
};
|
|
52
|
+
var handleVisibleChange = function handleVisibleChange(visible) {
|
|
53
|
+
setVisible(visible);
|
|
54
|
+
};
|
|
55
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_item.AnnotationToolItem, {
|
|
56
|
+
size: size,
|
|
57
|
+
placement: placement,
|
|
58
|
+
hideTitle: hideTitle,
|
|
59
|
+
active: _libs.tools.some(function (tool) {
|
|
60
|
+
return (0, _libs.convertShapeToBoardToolType)(tool.shape) === currentTool;
|
|
61
|
+
}),
|
|
62
|
+
iconType: _libs.tools.find(function (tool) {
|
|
63
|
+
return tool.shape === currentShape;
|
|
64
|
+
}).iconType,
|
|
65
|
+
title: t('fmt_screenshare_whiteboard_button_shape'),
|
|
66
|
+
color: currentColor,
|
|
67
|
+
visible: visible,
|
|
68
|
+
onVisibleChange: handleVisibleChange,
|
|
69
|
+
onClick: handleClick,
|
|
70
|
+
showArrow: true,
|
|
71
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_graphicPanel.AnnotationGraphicPanel, {
|
|
72
|
+
hideTitle: hideTitle,
|
|
73
|
+
size: size,
|
|
74
|
+
currentShape: currentShape,
|
|
75
|
+
setShape: handleShapeClick,
|
|
76
|
+
setTool: setTool,
|
|
77
|
+
setStrokeWidth: handleStrokeWidthClick,
|
|
78
|
+
currentStrokeWidth: currentStrokeWidth,
|
|
79
|
+
direction: direction
|
|
80
|
+
})
|
|
81
|
+
});
|
|
82
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.AnnotationGroupTool = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
11
|
+
var _item = require("../item");
|
|
12
|
+
var _panel = require("../panel");
|
|
13
|
+
var _react = require("react");
|
|
14
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
var AnnotationGroupTool = exports.AnnotationGroupTool = function AnnotationGroupTool(props) {
|
|
17
|
+
var size = props.size,
|
|
18
|
+
placement = props.placement,
|
|
19
|
+
children = props.children;
|
|
20
|
+
var t = (0, _i18n.useI18n)();
|
|
21
|
+
var _useState = (0, _react.useState)(false),
|
|
22
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
23
|
+
visible = _useState2[0],
|
|
24
|
+
setVisible = _useState2[1];
|
|
25
|
+
var handleClick = function handleClick() {
|
|
26
|
+
setVisible(!visible);
|
|
27
|
+
};
|
|
28
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_item.AnnotationToolItem, {
|
|
29
|
+
size: size,
|
|
30
|
+
iconType: _type.FcrIconType.FCR_SUBTRACT,
|
|
31
|
+
title: t('fmt_screenshare_whiteboard_button_additionaltools'),
|
|
32
|
+
hideTitle: true,
|
|
33
|
+
placement: placement,
|
|
34
|
+
visible: visible,
|
|
35
|
+
onClick: handleClick,
|
|
36
|
+
onVisibleChange: setVisible,
|
|
37
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_panel.AnnotationToolPanel, {
|
|
38
|
+
size: "small",
|
|
39
|
+
direction: "vertical",
|
|
40
|
+
header: children
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var FoldIcon = function FoldIcon() {
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
|
|
13
|
+
width: "16",
|
|
14
|
+
height: "72",
|
|
15
|
+
viewBox: "0 0 16 72",
|
|
16
|
+
fill: "none",
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
|
|
19
|
+
clipPath: "url(#clip0_9209_166297)",
|
|
20
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
21
|
+
d: "M9.49744 11.6558C12.3854 14.6399 14 18.63 14 22.7827L14 49.2173C14 53.37 12.3854 57.3601 9.49744 60.3442L7 62.9248C4.68094 64.9898 2.69913 67.4048 1.12644 70.0823L-2.86197e-07 72L2.86102e-06 -6.11959e-07L1.12644 1.91773C2.69914 4.5952 4.68094 7.0102 7 9.07519L9.49744 11.6558Z",
|
|
22
|
+
fill: "#2F2F2F",
|
|
23
|
+
fillOpacity: "0.95"
|
|
24
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
25
|
+
d: "M6.56598 35.0095L8.13153 32.2698C8.6403 31.3795 10 31.7401 10 32.7656L10 39.2344C10 40.2599 8.64053 40.6209 8.13176 39.7306L6.56702 36.9923C6.21566 36.3774 6.21463 35.6244 6.56598 35.0095Z",
|
|
26
|
+
fill: "#4262FF"
|
|
27
|
+
})]
|
|
28
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("defs", {
|
|
29
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("clipPath", {
|
|
30
|
+
id: "clip0_9209_166297",
|
|
31
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
|
|
32
|
+
width: "72",
|
|
33
|
+
height: "16",
|
|
34
|
+
fill: "white",
|
|
35
|
+
transform: "translate(16) rotate(90)"
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
var _default = exports["default"] = FoldIcon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function MoveIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = MoveIcon;
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
function MoveIcon() {
|
|
10
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
|
|
11
|
+
width: "40",
|
|
12
|
+
height: "16",
|
|
13
|
+
viewBox: "0 0 40 16",
|
|
14
|
+
fill: "none",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
17
|
+
cx: "7.5",
|
|
18
|
+
cy: "4.5",
|
|
19
|
+
r: "1.5",
|
|
20
|
+
fill: "black",
|
|
21
|
+
fillOpacity: "0.1"
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
23
|
+
cx: "7.5",
|
|
24
|
+
cy: "10.5",
|
|
25
|
+
r: "1.5",
|
|
26
|
+
fill: "black",
|
|
27
|
+
fillOpacity: "0.1"
|
|
28
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
29
|
+
cx: "15.5",
|
|
30
|
+
cy: "4.5",
|
|
31
|
+
r: "1.5",
|
|
32
|
+
fill: "black",
|
|
33
|
+
fillOpacity: "0.1"
|
|
34
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
35
|
+
cx: "15.5",
|
|
36
|
+
cy: "10.5",
|
|
37
|
+
r: "1.5",
|
|
38
|
+
fill: "black",
|
|
39
|
+
fillOpacity: "0.1"
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
41
|
+
cx: "23.5",
|
|
42
|
+
cy: "4.5",
|
|
43
|
+
r: "1.5",
|
|
44
|
+
fill: "black",
|
|
45
|
+
fillOpacity: "0.1"
|
|
46
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
47
|
+
cx: "23.5",
|
|
48
|
+
cy: "10.5",
|
|
49
|
+
r: "1.5",
|
|
50
|
+
fill: "black",
|
|
51
|
+
fillOpacity: "0.1"
|
|
52
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
53
|
+
cx: "31.5",
|
|
54
|
+
cy: "4.5",
|
|
55
|
+
r: "1.5",
|
|
56
|
+
fill: "black",
|
|
57
|
+
fillOpacity: "0.1"
|
|
58
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
59
|
+
cx: "31.5",
|
|
60
|
+
cy: "10.5",
|
|
61
|
+
r: "1.5",
|
|
62
|
+
fill: "black",
|
|
63
|
+
fillOpacity: "0.1"
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FcrIconType } from 'agora-ui-foundation/lib/components/icon/type';
|
|
2
|
+
import { ToolTipProps } from 'agora-ui-foundation/lib/components/tooltip';
|
|
3
|
+
import './style.css';
|
|
4
|
+
export declare const toolBarItemClassName = "annotation-toolbar-item";
|
|
5
|
+
export declare const AnnotationToolItem: (props: {
|
|
6
|
+
iconType: FcrIconType;
|
|
7
|
+
title?: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
content?: React.ReactNode;
|
|
11
|
+
color?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
lineColor?: string;
|
|
14
|
+
onClick?: (value: string) => void;
|
|
15
|
+
visible?: boolean;
|
|
16
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
17
|
+
level?: number;
|
|
18
|
+
selected?: boolean;
|
|
19
|
+
hideTitle?: boolean;
|
|
20
|
+
placement?: ToolTipProps["placement"];
|
|
21
|
+
contextMenu?: React.ReactNode;
|
|
22
|
+
showArrow?: boolean;
|
|
23
|
+
onContextMenuClick?: (color: string) => void;
|
|
24
|
+
commonColors?: string[];
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element;
|