@cloud-app-dev/vidc 3.2.11 → 3.2.13
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/.dumi/tmp/core/EmptyRoute.tsx +9 -0
- package/.dumi/tmp/core/defineApp.ts +16 -0
- package/.dumi/tmp/core/history.ts +61 -0
- package/.dumi/tmp/core/plugin.ts +42 -0
- package/.dumi/tmp/core/pluginConfig.d.ts +276 -0
- package/.dumi/tmp/core/polyfill.ts +202 -0
- package/.dumi/tmp/core/route.tsx +38 -0
- package/.dumi/tmp/core/terminal.ts +38 -0
- package/.dumi/tmp/dumi/exports.ts +5 -0
- package/.dumi/tmp/dumi/locales/config.ts +56 -0
- package/.dumi/tmp/dumi/locales/runtime.tsx +38 -0
- package/.dumi/tmp/dumi/meta/atoms.ts +4 -0
- package/.dumi/tmp/dumi/meta/index.ts +186 -0
- package/.dumi/tmp/dumi/meta/runtime.ts +18 -0
- package/.dumi/tmp/dumi/meta/tabs.ts +8 -0
- package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +41 -0
- package/.dumi/tmp/dumi/theme/builtins/API.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Badge.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Container.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +4 -0
- package/.dumi/tmp/dumi/theme/builtins/Table.ts +4 -0
- package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Content.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Features.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Footer.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Header.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Hero.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Logo.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Navbar.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/NotFound.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +4 -0
- package/.dumi/tmp/dumi/theme/slots/Toc.ts +4 -0
- package/.dumi/tmp/exports.ts +15 -0
- package/.dumi/tmp/testBrowser.tsx +82 -0
- package/.dumi/tmp/tsconfig.json +35 -0
- package/.dumi/tmp/typings.d.ts +136 -0
- package/.dumi/tmp/umi.ts +77 -0
- package/.dumi/tmp-production/core/EmptyRoute.tsx +9 -0
- package/.dumi/tmp-production/core/defineApp.ts +16 -0
- package/.dumi/tmp-production/core/history.ts +61 -0
- package/.dumi/tmp-production/core/plugin.ts +42 -0
- package/.dumi/tmp-production/core/pluginConfig.d.ts +276 -0
- package/.dumi/tmp-production/core/polyfill.ts +202 -0
- package/.dumi/tmp-production/core/route.tsx +38 -0
- package/.dumi/tmp-production/core/terminal.ts +38 -0
- package/.dumi/tmp-production/dumi/exports.ts +5 -0
- package/.dumi/tmp-production/dumi/locales/config.ts +56 -0
- package/.dumi/tmp-production/dumi/locales/runtime.tsx +38 -0
- package/.dumi/tmp-production/dumi/meta/atoms.ts +4 -0
- package/.dumi/tmp-production/dumi/meta/index.ts +178 -0
- package/.dumi/tmp-production/dumi/meta/runtime.ts +18 -0
- package/.dumi/tmp-production/dumi/meta/tabs.ts +5 -0
- package/.dumi/tmp-production/dumi/theme/ContextWrapper.tsx +41 -0
- package/.dumi/tmp-production/dumi/theme/builtins/API.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/builtins/Badge.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/builtins/Container.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/builtins/Previewer.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/builtins/SourceCode.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/builtins/Table.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/layouts/DocLayout.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Content.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/ContentTabs.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Features.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Footer.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Header.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Hero.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/HeroTitle.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/LangSwitch.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Logo.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Navbar.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/NotFound.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/PreviewerActions.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/PreviewerActionsExtra.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/RtlSwitch.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/SearchBar.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/SearchResult.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Sidebar.ts +4 -0
- package/.dumi/tmp-production/dumi/theme/slots/Toc.ts +4 -0
- package/.dumi/tmp-production/exports.ts +14 -0
- package/.dumi/tmp-production/testBrowser.tsx +82 -0
- package/.dumi/tmp-production/tsconfig.json +35 -0
- package/.dumi/tmp-production/typings.d.ts +136 -0
- package/.dumi/tmp-production/umi.ts +77 -0
- package/.dumirc.ts +71 -0
- package/.editorconfig +0 -3
- package/.eslintrc.js +3 -0
- package/.fatherrc.ts +19 -0
- package/.husky/commit-msg +5 -0
- package/.husky/pre-commit +4 -0
- package/.prettierrc.js +16 -0
- package/.stylelintrc +3 -0
- package/README.md +14 -26
- package/es/Api/index.js +100 -30
- package/es/AppContext/Sync.js +19 -3
- package/es/AppContext/index.js +86 -42
- package/es/AppContext/static.js +7 -0
- package/es/Auth/index.js +11 -4
- package/es/AutoExit/index.js +11 -3
- package/es/Box/BetweenBox/index.js +19 -10
- package/es/Box/BetweenBox/{index.css → index.less} +0 -0
- package/es/Box/InfoBox/index.js +24 -18
- package/es/Box/InfoBox/index.less +22 -0
- package/es/Box/TwoColumnBox/index.js +42 -25
- package/es/Box/TwoColumnBox/index.less +70 -0
- package/es/Box/deps/grid-factory.d.ts +2 -2
- package/es/Box/deps/grid-factory.js +12 -0
- package/es/Box/index.js +29 -16
- package/es/Box/{index.css → index.less} +5 -4
- package/es/CheckGroupFixed/demo.d.ts +3 -0
- package/es/CheckGroupFixed/demo.js +28 -0
- package/es/CheckGroupFixed/index.js +117 -82
- package/es/CheckGroupFixed/index.less +50 -0
- package/es/Config/index.js +5 -1
- package/es/Config/utils.js +18 -3
- package/es/ConfigContext/index.js +8 -4
- package/es/CustomRenderSelect/index.js +71 -36
- package/es/CustomRenderSelect/index.less +25 -0
- package/es/DisableMark/index.js +14 -11
- package/es/DisableMark/{index.css → index.less} +0 -0
- package/es/DomMove/demo.js +14 -10
- package/es/DomMove/index.js +52 -30
- package/es/DomMove/utils.js +8 -3
- package/es/Drag/DragAndDropItem.js +44 -20
- package/es/Drag/DropItem.js +22 -6
- package/es/Drag/index.js +2 -2
- package/es/Drag/{index.css → index.less} +0 -0
- package/es/Drawer/Footer.js +22 -15
- package/es/Drawer/{Demo.d.ts → demo.d.ts} +0 -0
- package/es/Drawer/demo.js +109 -0
- package/es/Drawer/index.js +98 -60
- package/es/Drawer/index.less +42 -0
- package/es/ErrorFallback/index.js +23 -14
- package/es/FrontendPlayer/index.js +1 -1
- package/es/FullScreen/index.js +30 -17
- package/es/FullScreen/index.less +16 -0
- package/es/HightLevel/index.js +11 -4
- package/es/HightLevel/{index.css → index.less} +0 -0
- package/es/IconFont/index.js +39 -18
- package/es/ImageView/index.js +37 -13
- package/es/ImageView/index.less +10 -0
- package/es/Input/demo.d.ts +3 -0
- package/es/Input/demo.js +16 -0
- package/es/Input/index.js +46 -22
- package/es/Input/index.less +12 -0
- package/es/InstanceHistory/index.js +2 -0
- package/es/LabelValue/index.js +25 -18
- package/es/LabelValue/index.less +20 -0
- package/es/List/DynamicGridList/Demo.d.ts +1 -0
- package/es/List/DynamicGridList/Demo.js +52 -32
- package/es/List/DynamicGridList/index.js +37 -22
- package/es/List/DynamicList/index.js +76 -56
- package/es/List/DynamicList/index.less +15 -0
- package/es/List/GridList/Demo.d.ts +1 -0
- package/es/List/GridList/Demo.js +60 -38
- package/es/List/GridList/hook.d.ts +1 -1
- package/es/List/GridList/hook.js +66 -35
- package/es/List/GridList/index.js +33 -29
- package/es/List/GridList/{index.css → index.less} +0 -0
- package/es/List/GridList/utils.d.ts +2 -2
- package/es/List/GridList/utils.js +1 -0
- package/es/List/VList/index.d.ts +1 -1
- package/es/List/VList/index.js +32 -19
- package/es/List/VList/{index.css → index.less} +0 -0
- package/es/List/VList/utils.d.ts +2 -2
- package/es/List/VList/utils.js +8 -6
- package/es/List/demo.d.ts +3 -0
- package/es/List/demo.js +26 -0
- package/es/List/index.d.ts +1 -1
- package/es/List/index.js +31 -23
- package/es/List/{index.css → index.less} +5 -4
- package/es/LoaderApp/index.js +59 -25
- package/es/LoaderApp/{index.css → index.less} +0 -0
- package/es/LoaderApp/loader.js +40 -23
- package/es/LoaderApp/sandbox.back.js +101 -24
- package/es/LoaderApp/sandbox.js +26 -9
- package/es/LoaderApp/utils.d.ts +1 -1
- package/es/LoaderApp/utils.js +68 -25
- package/es/LoaderScript/index.js +25 -10
- package/es/LoaderScript/utils.js +151 -87
- package/es/Map/BasicMap/AMapInstance.d.ts +1 -1
- package/es/Map/BasicMap/AMapInstance.js +25 -3
- package/es/Map/BasicMap/LeafletInstance.js +28 -11
- package/es/Map/BasicMap/index.js +67 -27
- package/es/Map/BasicMap/index.less +24 -0
- package/es/Map/ClusterLayer/hook.d.ts +2 -2
- package/es/Map/ClusterLayer/hook.js +51 -23
- package/es/Map/ClusterLayer/index.d.ts +1 -1
- package/es/Map/ClusterLayer/index.js +14 -6
- package/es/Map/ClusterLayer/index.less +27 -0
- package/es/Map/Config/index.js +44 -16
- package/es/Map/Config/utils.js +17 -3
- package/es/Map/Context/index.js +43 -9
- package/es/Map/FindPio/index.js +5 -2
- package/es/Map/FindPio/{index.css → index.less} +0 -0
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +1 -1
- package/es/Map/InfoWindow/MakerLikeWindow.js +41 -18
- package/es/Map/InfoWindow/demo.d.ts +1 -0
- package/es/Map/InfoWindow/demo.js +51 -29
- package/es/Map/InfoWindow/index.d.ts +1 -1
- package/es/Map/InfoWindow/index.js +39 -18
- package/es/Map/LevelCenter/DragMarker/index.js +16 -10
- package/es/Map/LevelCenter/demo.d.ts +1 -0
- package/es/Map/LevelCenter/demo.js +41 -22
- package/es/Map/LevelCenter/index.js +41 -29
- package/es/Map/LevelCenter/index.less +2 -0
- package/es/Map/LoaderMap/index.js +38 -22
- package/es/Map/MapDrawSelect/demo.d.ts +1 -0
- package/es/Map/MapDrawSelect/demo.js +65 -46
- package/es/Map/MapDrawSelect/index.js +43 -31
- package/es/Map/MapDrawSelect/index.less +2 -0
- package/es/Map/MouseTool/index.js +32 -18
- package/es/Map/MouseTool/useMouseTools.js +37 -8
- package/es/Map/ResetTools/index.js +58 -44
- package/es/Map/ResetTools/index.less +35 -0
- package/es/Map/SinglePoint/index.js +39 -27
- package/es/Map/SinglePoint/index.less +41 -0
- package/es/Map/hook/useMapEvent.js +8 -4
- package/es/Map/hook/useMapType.js +3 -2
- package/es/Map/index.d.ts +1 -0
- package/es/Map/index.js +11 -11
- package/es/Map/useMarker/index.d.ts +1 -1
- package/es/Map/useMarker/index.js +33 -13
- package/es/Map/{LevelCenter/index.css → useMarker/index.less} +0 -0
- package/es/Map/withMap/index.d.ts +1 -0
- package/es/Map/withMap/index.js +14 -4
- package/es/Modal/demo.d.ts +3 -0
- package/es/Modal/demo.js +106 -0
- package/es/Modal/index.js +94 -57
- package/es/Modal/index.less +45 -0
- package/es/Picture/component/DefaultRects/RectInfo.js +59 -37
- package/es/Picture/component/DefaultRects/index.js +46 -32
- package/es/Picture/component/DefaultRects/index.less +188 -0
- package/es/Picture/component/DrawRect/index.js +37 -24
- package/es/Picture/component/DrawRect/{index.css → index.less} +0 -0
- package/es/Picture/component/RectMenu/index.js +35 -26
- package/es/Picture/component/RectMenu/index.less +31 -0
- package/es/Picture/component/RectMenu/utils.js +6 -3
- package/es/Picture/component/Tools/index.js +91 -69
- package/es/Picture/component/Tools/index.less +43 -0
- package/es/Picture/component/WheelScale/index.js +9 -4
- package/es/Picture/demo.js +14 -11
- package/es/Picture/dragBound.d.ts +1 -1
- package/es/Picture/dragBound.js +17 -4
- package/es/Picture/index.d.ts +2 -2
- package/es/Picture/index.js +201 -137
- package/es/Picture/index.less +14 -0
- package/es/Picture/loadCaptureRectImage.d.ts +1 -1
- package/es/Picture/loadCaptureRectImage.js +39 -14
- package/es/Picture/useDraw.js +40 -20
- package/es/Picture/utils.d.ts +9 -9
- package/es/Picture/utils.js +18 -3
- package/es/Player/api/index.d.ts +3 -3
- package/es/Player/api/index.js +117 -82
- package/es/Player/context.js +21 -7
- package/es/Player/contraller_bar/bar.d.ts +1 -1
- package/es/Player/contraller_bar/bar.js +28 -10
- package/es/Player/contraller_bar/contraller_event.js +34 -12
- package/es/Player/contraller_bar/index.js +30 -22
- package/es/Player/contraller_bar/left_bar.js +62 -39
- package/es/Player/contraller_bar/right_bar.js +34 -18
- package/es/Player/contraller_bar/time.js +19 -8
- package/es/Player/contraller_bar/useBarStatus.js +29 -11
- package/es/Player/contraller_bar/volume.js +43 -21
- package/es/Player/demo.d.ts +1 -0
- package/es/Player/demo.js +258 -215
- package/es/Player/event/errorEvent.js +41 -16
- package/es/Player/event/eventName.js +12 -1
- package/es/Player/event/index.js +66 -24
- package/es/Player/fps_play.js +33 -15
- package/es/Player/frontend_player.js +42 -20
- package/es/Player/frontend_timeline.js +95 -55
- package/es/Player/iconfont.js +23 -8
- package/es/Player/index.js +1 -1
- package/es/Player/live_heart.js +15 -3
- package/es/Player/message.js +68 -37
- package/es/Player/segment_player.js +113 -62
- package/es/Player/segment_timeline.js +145 -97
- package/es/Player/single_player.js +153 -111
- package/es/Player/style/bar.less +39 -0
- package/es/Player/style/iconfont.js +17 -10
- package/es/Player/style/index.less +30 -0
- package/es/Player/style/message.less +50 -0
- package/es/Player/style/slider.less +103 -0
- package/es/Player/style/timeline.less +106 -0
- package/es/Player/style/volume.less +21 -0
- package/es/Player/timeline.d.ts +1 -1
- package/es/Player/timeline.js +59 -32
- package/es/Player/util.js +46 -7
- package/es/PlayerExt/demo.d.ts +1 -0
- package/es/PlayerExt/demo.js +145 -112
- package/es/PlayerExt/index.d.ts +1 -1
- package/es/PlayerExt/index.js +135 -82
- package/es/PlayerExt/{index.css → index.less} +0 -0
- package/es/Progress/index.js +18 -5
- package/es/Progress/index.less +20 -0
- package/es/ROI/demo.d.ts +1 -0
- package/es/ROI/demo.js +12 -8
- package/es/ROI/index.js +45 -35
- package/es/ROI/index.less +29 -0
- package/es/ScreenPlayer/Live.d.ts +1 -1
- package/es/ScreenPlayer/Live.js +159 -103
- package/es/ScreenPlayer/LiveTools.js +153 -116
- package/es/ScreenPlayer/PlayerWithExt.js +168 -113
- package/es/ScreenPlayer/RatePick.js +35 -22
- package/es/ScreenPlayer/Record.js +291 -185
- package/es/ScreenPlayer/RecordTools.js +192 -148
- package/es/ScreenPlayer/ScreenSelect.js +33 -26
- package/es/ScreenPlayer/SegmentTimeLine.js +23 -16
- package/es/ScreenPlayer/TimeMode.js +22 -16
- package/es/ScreenPlayer/TimeSelect.js +84 -63
- package/es/ScreenPlayer/demo.js +16 -18
- package/es/ScreenPlayer/demo2.js +192 -177
- package/es/ScreenPlayer/index.d.ts +1 -0
- package/es/ScreenPlayer/index.js +3 -3
- package/es/ScreenPlayer/index.less +178 -0
- package/es/ScreenPlayer/useTimeSlider.js +148 -49
- package/es/ScreenPlayer/useVideoFit.js +18 -5
- package/es/ScreenPlayer/utils.js +6 -0
- package/es/SegmentPlayer/index.js +1 -1
- package/es/Service/fetch-adapter.d.ts +1 -1
- package/es/Service/fetch-adapter.js +48 -5
- package/es/Service/http.js +46 -16
- package/es/Service/index.js +2 -2
- package/es/TableLayout/index.js +18 -12
- package/es/TableLayout/{index.css → index.less} +0 -0
- package/es/ThemeAntd/demo.d.ts +1 -0
- package/es/ThemeAntd/demo.js +126 -76
- package/es/ThemeAntd/{demo.css → demo.less} +4 -3
- package/es/ThemeAntd/index.js +6 -2
- package/es/ThemeAntd/index.less +16 -0
- package/es/ThemeAntd/style/button.less +67 -0
- package/es/ThemeAntd/style/checkbox.less +72 -0
- package/es/ThemeAntd/style/form.less +12 -0
- package/es/ThemeAntd/style/input.less +83 -0
- package/es/ThemeAntd/style/pagination.less +95 -0
- package/es/ThemeAntd/style/picker.less +106 -0
- package/es/ThemeAntd/style/popover.less +5 -0
- package/es/ThemeAntd/style/radio.less +87 -0
- package/es/ThemeAntd/style/{scrollbar.css → scrollbar.less} +4 -2
- package/es/ThemeAntd/style/select.less +81 -0
- package/es/ThemeAntd/style/table.less +57 -0
- package/es/ThemeAntd/style/tree.less +18 -0
- package/es/Timeout/index.js +36 -12
- package/es/Tree/demo.js +26 -21
- package/es/Tree/index.js +51 -30
- package/es/Tree/index.less +59 -0
- package/es/index.js +47 -47
- package/es/useDrawROI/index.js +130 -65
- package/es/useEventEmitterHandle/index.js +6 -2
- package/es/useFullscreen/demo.js +44 -27
- package/es/useFullscreen/index.js +30 -8
- package/es/useHistory/index.js +3 -1
- package/es/useInfiniteScroll/index.js +50 -19
- package/es/useRafInterval/index.js +28 -4
- package/es/useSimpleState/index.js +23 -6
- package/es/useVirtualList/index.js +58 -20
- package/es/utils.d.ts +1 -1
- package/es/utils.js +53 -14
- package/package.json +42 -32
- package/tsconfig.json +8 -32
- package/.eslintrc +0 -4
- package/.fatherrc.js +0 -25
- package/.prettierrc +0 -11
- package/.umirc.ts +0 -55
- package/es/Box/InfoBox/index.css +0 -22
- package/es/Box/TwoColumnBox/index.css +0 -70
- package/es/CheckGroupFixed/index.css +0 -49
- package/es/CustomRenderSelect/index.css +0 -20
- package/es/Drawer/Demo.js +0 -59
- package/es/Drawer/index.css +0 -40
- package/es/FullScreen/index.css +0 -16
- package/es/ImageView/index.css +0 -10
- package/es/Input/index.css +0 -8
- package/es/LabelValue/index.css +0 -18
- package/es/List/DynamicList/index.css +0 -15
- package/es/Map/BasicMap/index.css +0 -24
- package/es/Map/ClusterLayer/index.css +0 -26
- package/es/Map/MapDrawSelect/index.css +0 -0
- package/es/Map/ResetTools/index.css +0 -32
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Hover.svg +0 -15
- package/es/Map/SinglePoint/icon/Place_icon_OnLine_Normal.svg +0 -15
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Hover.svg +0 -15
- package/es/Map/SinglePoint/icon/Place_icon_OutLine_Normal.svg +0 -15
- package/es/Map/SinglePoint/index.css +0 -29
- package/es/Map/useMarker/index.css +0 -0
- package/es/Modal/index.css +0 -43
- package/es/Picture/component/DefaultRects/index.css +0 -247
- package/es/Picture/component/RectMenu/index.css +0 -31
- package/es/Picture/component/Tools/index.css +0 -42
- package/es/Picture/index.css +0 -12
- package/es/Player/style/bar.css +0 -38
- package/es/Player/style/index.css +0 -30
- package/es/Player/style/message.css +0 -49
- package/es/Player/style/slider.css +0 -96
- package/es/Player/style/timeline.css +0 -99
- package/es/Player/style/volume.css +0 -19
- package/es/Progress/index.css +0 -20
- package/es/ROI/index.css +0 -29
- package/es/ScreenPlayer/index.css +0 -166
- package/es/ThemeAntd/index.css +0 -620
- package/es/ThemeAntd/style/button.css +0 -55
- package/es/ThemeAntd/style/checkbox.css +0 -64
- package/es/ThemeAntd/style/form.css +0 -10
- package/es/ThemeAntd/style/input.css +0 -68
- package/es/ThemeAntd/style/pagination.css +0 -82
- package/es/ThemeAntd/style/picker.css +0 -98
- package/es/ThemeAntd/style/popover.css +0 -3
- package/es/ThemeAntd/style/radio.css +0 -80
- package/es/ThemeAntd/style/select.css +0 -76
- package/es/ThemeAntd/style/table.css +0 -46
- package/es/ThemeAntd/style/tree.css +0 -16
- package/es/Tree/index.css +0 -64
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
.border-decorator-color-mixin(@color) {
|
|
2
|
+
.border-top-decorator {
|
|
3
|
+
&::before {
|
|
4
|
+
border-top-color: @color;
|
|
5
|
+
border-left-color: @color;
|
|
6
|
+
}
|
|
7
|
+
&::after {
|
|
8
|
+
border-top-color: @color;
|
|
9
|
+
border-right-color: @color;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
.border-bottom-decorator {
|
|
13
|
+
&::before {
|
|
14
|
+
border-bottom-color: @color;
|
|
15
|
+
border-left-color: @color;
|
|
16
|
+
}
|
|
17
|
+
&::after {
|
|
18
|
+
border-bottom-color: @color;
|
|
19
|
+
border-right-color: @color;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.rect-item-style-mixin(@color, @lightColor, @shadowColor) {
|
|
25
|
+
.rect-item {
|
|
26
|
+
border-color: @lightColor;
|
|
27
|
+
.border-decorator-color-mixin(@color);
|
|
28
|
+
&:hover {
|
|
29
|
+
border-color: @color;
|
|
30
|
+
box-shadow: inset 0 0 24px 0 @shadowColor;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.rect-info-list-mixin(@color, @bgColor, @shadowColor) {
|
|
36
|
+
.rect-info-list-wrapper {
|
|
37
|
+
.data-type {
|
|
38
|
+
.data-tag {
|
|
39
|
+
border: 1px solid @color;
|
|
40
|
+
background: @bgColor;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// border-color: @color;
|
|
44
|
+
// .rect-card-corner {
|
|
45
|
+
// color: @color;
|
|
46
|
+
// }
|
|
47
|
+
// .rect-info-list {
|
|
48
|
+
// display: block;
|
|
49
|
+
// background: @bgColor;
|
|
50
|
+
// box-shadow: inset 0 0 8px 0 @shadowColor;
|
|
51
|
+
// }
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.rect-item-face-wrapper {
|
|
56
|
+
.rect-item-style-mixin(#ff5f57, rgba(255, 95, 87, 0.6), rgba(255, 95, 87, 0.4));
|
|
57
|
+
.rect-info-list-mixin(#FF5F57, rgba(255,95,87,0.6), rgba(179,49,43,0.6));
|
|
58
|
+
}
|
|
59
|
+
.rect-item-body-wrapper {
|
|
60
|
+
.rect-item-style-mixin(#ffbb22, rgba(255, 187, 34, 0.6), rgba(255, 187, 34, 0.4));
|
|
61
|
+
.rect-info-list-mixin(#FFBB22, rgba(255,187,34,0.6), rgba(176,94,0,0.6));
|
|
62
|
+
}
|
|
63
|
+
.rect-item-vehicle-wrapper {
|
|
64
|
+
.rect-item-style-mixin(#44aaff, rgba(68, 170, 255, 0.6), rgba(68, 170, 255, 0.4));
|
|
65
|
+
.rect-info-list-mixin(#44aaff, rgba(68,170,255,0.6), rgba(31,114,183,0.6));
|
|
66
|
+
}
|
|
67
|
+
.rect-item-nonVehicle-wrapper {
|
|
68
|
+
.rect-item-style-mixin(#50e9b2, rgba(80, 233, 178, 0.6), rgba(80, 233, 178, 0.4));
|
|
69
|
+
.rect-info-list-mixin(#50e9b2, rgba(80,233,178,0.6), rgba(15,196,132,0.6));
|
|
70
|
+
}
|
|
71
|
+
.rect-item-thing-wrapper {
|
|
72
|
+
.rect-item-style-mixin(#b946d2, rgba(185, 70, 210, 0.6), rgba(185, 70, 210, 0.4));
|
|
73
|
+
.rect-info-list-mixin(#b946d2, rgba(185, 70, 210, 0.6), rgba(155, 58, 177, 0.4));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.rect-item {
|
|
77
|
+
position: absolute;
|
|
78
|
+
border-width: 1px;
|
|
79
|
+
border-style: solid;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
.border-top-decorator,
|
|
82
|
+
.border-bottom-decorator {
|
|
83
|
+
position: absolute;
|
|
84
|
+
pointer-events: none;
|
|
85
|
+
width: 100%;
|
|
86
|
+
&::before,
|
|
87
|
+
&::after {
|
|
88
|
+
content: '';
|
|
89
|
+
display: block;
|
|
90
|
+
width: 8px;
|
|
91
|
+
height: 8px;
|
|
92
|
+
border: 2px solid transparent;
|
|
93
|
+
}
|
|
94
|
+
&::before {
|
|
95
|
+
float: left;
|
|
96
|
+
margin-left: -1px;
|
|
97
|
+
}
|
|
98
|
+
&::after {
|
|
99
|
+
float: right;
|
|
100
|
+
margin-right: -1px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
.border-top-decorator {
|
|
104
|
+
top: 0;
|
|
105
|
+
&::before,
|
|
106
|
+
&::after {
|
|
107
|
+
margin-top: -1px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
.border-bottom-decorator {
|
|
111
|
+
bottom: 0;
|
|
112
|
+
&::before,
|
|
113
|
+
&::after {
|
|
114
|
+
margin-bottom: -1px;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
&:hover + .rect-info-list-wrapper {
|
|
118
|
+
display: block;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// 结构化窗体
|
|
123
|
+
.rect-info-list-wrapper {
|
|
124
|
+
display: none;
|
|
125
|
+
background: rgba(16, 21, 36, 0.8);
|
|
126
|
+
position: absolute;
|
|
127
|
+
z-index: 11;
|
|
128
|
+
border: 1px solid transparent;
|
|
129
|
+
padding-top: 5px;
|
|
130
|
+
|
|
131
|
+
/*高低质量*/
|
|
132
|
+
.data-type {
|
|
133
|
+
padding: 0 5px;
|
|
134
|
+
color: #fff;
|
|
135
|
+
|
|
136
|
+
.data-tag {
|
|
137
|
+
padding: 4px;
|
|
138
|
+
font-size: 12px;
|
|
139
|
+
margin-right: 4px;
|
|
140
|
+
|
|
141
|
+
.anticon {
|
|
142
|
+
margin-right: 4px;
|
|
143
|
+
color: #fff;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
.rect-card-corner {
|
|
148
|
+
position: absolute;
|
|
149
|
+
top: -9px;
|
|
150
|
+
left: -1px;
|
|
151
|
+
}
|
|
152
|
+
.rect-info-arrow {
|
|
153
|
+
position: absolute;
|
|
154
|
+
display: block;
|
|
155
|
+
background: transparent;
|
|
156
|
+
border-style: solid;
|
|
157
|
+
border-width: 4px;
|
|
158
|
+
border-color: rgba(16, 21, 36, 0.8);
|
|
159
|
+
transform: rotate(45deg);
|
|
160
|
+
left: -4px;
|
|
161
|
+
top: 6px;
|
|
162
|
+
}
|
|
163
|
+
.rect-info-list {
|
|
164
|
+
height: 100%;
|
|
165
|
+
border-radius: 2px;
|
|
166
|
+
padding: 3px 10px;
|
|
167
|
+
.info-item {
|
|
168
|
+
padding: 3px 0;
|
|
169
|
+
white-space: nowrap;
|
|
170
|
+
text-overflow: ellipsis;
|
|
171
|
+
overflow: hidden;
|
|
172
|
+
line-height: 18px;
|
|
173
|
+
font-size: var(--fs-small);
|
|
174
|
+
color: #fff;
|
|
175
|
+
.anticon {
|
|
176
|
+
position: relative;
|
|
177
|
+
top: 1px;
|
|
178
|
+
cursor: default;
|
|
179
|
+
font-size: 16px;
|
|
180
|
+
color: #fff;
|
|
181
|
+
padding-right: 4px;
|
|
182
|
+
}
|
|
183
|
+
.item-label {
|
|
184
|
+
margin: 0 4px;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
+
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
|
|
5
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
|
|
1
7
|
import React, { useCallback, useMemo } from 'react';
|
|
2
|
-
import RectMenu from
|
|
3
|
-
import "./index.
|
|
8
|
+
import RectMenu from "../RectMenu";
|
|
9
|
+
import "./index.less";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
|
|
4
14
|
function DrawRect(_ref) {
|
|
5
15
|
var _ref$rect = _ref.rect,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
16
|
+
rect = _ref$rect === void 0 ? [] : _ref$rect,
|
|
17
|
+
canRenderMenu = _ref.canRenderMenu,
|
|
18
|
+
containerDom = _ref.containerDom,
|
|
19
|
+
onMenuClick = _ref.onMenuClick,
|
|
20
|
+
menus = _ref.menus,
|
|
21
|
+
getRectImage = _ref.getRectImage;
|
|
12
22
|
var x = useMemo(function () {
|
|
13
23
|
return rect[0] + rect[2];
|
|
14
24
|
}, [rect]);
|
|
@@ -16,24 +26,27 @@ function DrawRect(_ref) {
|
|
|
16
26
|
return rect[1] + rect[3];
|
|
17
27
|
}, [rect]);
|
|
18
28
|
var onMenuClickAction = useCallback(function (item) {
|
|
19
|
-
onMenuClick === null || onMenuClick === void 0 ? void 0 : onMenuClick(
|
|
29
|
+
onMenuClick === null || onMenuClick === void 0 ? void 0 : onMenuClick(_objectSpread(_objectSpread({}, item), {}, {
|
|
20
30
|
base64: getRectImage(rect)
|
|
21
31
|
}));
|
|
22
32
|
}, [getRectImage, onMenuClick, rect]);
|
|
23
|
-
return /*#__PURE__*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
34
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
35
|
+
className: "select-rect-layout",
|
|
36
|
+
style: {
|
|
37
|
+
left: rect[0],
|
|
38
|
+
top: rect[1],
|
|
39
|
+
width: rect[2],
|
|
40
|
+
height: rect[3]
|
|
41
|
+
}
|
|
42
|
+
}), canRenderMenu && /*#__PURE__*/_jsx(RectMenu, {
|
|
43
|
+
x: x,
|
|
44
|
+
y: y,
|
|
45
|
+
containerDom: containerDom,
|
|
46
|
+
onMenuClick: onMenuClickAction,
|
|
47
|
+
menus: menus
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
38
50
|
}
|
|
51
|
+
|
|
39
52
|
export default DrawRect;
|
|
File without changes
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, useRef, useEffect } from 'react';
|
|
2
|
-
import IconFont from
|
|
3
|
-
import { computedMenuPosition } from
|
|
4
|
-
import "./index.
|
|
2
|
+
import IconFont from "../../../IconFont";
|
|
3
|
+
import { computedMenuPosition } from "./utils";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
7
|
var MENU_WIDTH = 110;
|
|
6
8
|
var MENU_HEIGHT = 30;
|
|
9
|
+
|
|
7
10
|
function RectMenu(_ref) {
|
|
8
11
|
var x = _ref.x,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
y = _ref.y,
|
|
13
|
+
menus = _ref.menus,
|
|
14
|
+
containerDom = _ref.containerDom,
|
|
15
|
+
onMenuClick = _ref.onMenuClick;
|
|
16
|
+
|
|
13
17
|
var _useMemo = useMemo(function () {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
return containerDom.getBoundingClientRect();
|
|
19
|
+
}, [containerDom]),
|
|
20
|
+
width = _useMemo.width,
|
|
21
|
+
height = _useMemo.height;
|
|
22
|
+
|
|
18
23
|
var size = useMemo(function () {
|
|
19
24
|
return {
|
|
20
25
|
w: MENU_WIDTH,
|
|
@@ -32,15 +37,17 @@ function RectMenu(_ref) {
|
|
|
32
37
|
var domRef = useRef(null);
|
|
33
38
|
var handleCancelB = useCallback(function (e) {
|
|
34
39
|
return e.stopPropagation();
|
|
35
|
-
}, []);
|
|
36
|
-
|
|
40
|
+
}, []); //防止click事件冒泡到查看器
|
|
41
|
+
|
|
37
42
|
useEffect(function () {
|
|
38
43
|
var dom = domRef.current;
|
|
44
|
+
|
|
39
45
|
if (dom) {
|
|
40
46
|
dom.addEventListener('mousedown', handleCancelB, false);
|
|
41
47
|
dom.addEventListener('mousemove', handleCancelB, false);
|
|
42
48
|
dom.addEventListener('mouseup', handleCancelB, false);
|
|
43
49
|
}
|
|
50
|
+
|
|
44
51
|
return function () {
|
|
45
52
|
if (dom) {
|
|
46
53
|
dom.removeEventListener('mousedown', handleCancelB, false);
|
|
@@ -53,23 +60,25 @@ function RectMenu(_ref) {
|
|
|
53
60
|
e.stopPropagation();
|
|
54
61
|
onMenuClick === null || onMenuClick === void 0 ? void 0 : onMenuClick(item);
|
|
55
62
|
}, [onMenuClick]);
|
|
56
|
-
return /*#__PURE__*/
|
|
63
|
+
return /*#__PURE__*/_jsx("div", {
|
|
57
64
|
className: "select-rect-menu-layout",
|
|
58
65
|
style: {
|
|
59
66
|
left: position.x,
|
|
60
67
|
top: position.y
|
|
61
68
|
},
|
|
62
|
-
ref: domRef
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
ref: domRef,
|
|
70
|
+
children: menus.map(function (v) {
|
|
71
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
72
|
+
className: "menu-action-item",
|
|
73
|
+
onClick: function onClick(e) {
|
|
74
|
+
return onClickMenu(e, v);
|
|
75
|
+
},
|
|
76
|
+
children: [/*#__PURE__*/_jsx(IconFont, {
|
|
77
|
+
type: v.icon
|
|
78
|
+
}), v.title]
|
|
79
|
+
}, v.pathname);
|
|
80
|
+
})
|
|
81
|
+
});
|
|
74
82
|
}
|
|
83
|
+
|
|
75
84
|
export default RectMenu;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.select-rect-menu-layout {
|
|
2
|
+
position: absolute;
|
|
3
|
+
font-size: var(--fs-small);
|
|
4
|
+
width: 105px;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
.menu-action-item {
|
|
7
|
+
padding: 4px 10px;
|
|
8
|
+
background: #ffffff;
|
|
9
|
+
margin-bottom: 4px;
|
|
10
|
+
border-radius: 15px;
|
|
11
|
+
box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
|
|
12
|
+
color: rgba(0, 0, 0, 0.65);
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
.anticon {
|
|
15
|
+
padding-right: 2px;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
color: #89b;
|
|
18
|
+
}
|
|
19
|
+
&:hover {
|
|
20
|
+
background: #ffaa00;
|
|
21
|
+
color: #fff;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
.anticon {
|
|
24
|
+
color: #fff;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
&:last-child {
|
|
28
|
+
margin-bottom: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
export function computedMenuPosition(_ref) {
|
|
2
2
|
var width = _ref.width,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
height = _ref.height,
|
|
4
|
+
position = _ref.position,
|
|
5
|
+
size = _ref.size;
|
|
6
6
|
var x, y;
|
|
7
7
|
x = position[0];
|
|
8
8
|
y = position[1];
|
|
9
|
+
|
|
9
10
|
if (width - x < size.w) {
|
|
10
11
|
x = width - size.w;
|
|
11
12
|
}
|
|
13
|
+
|
|
12
14
|
if (height - y < size.h) {
|
|
13
15
|
y = height - size.h;
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
return {
|
|
16
19
|
x: x,
|
|
17
20
|
y: y
|
|
@@ -1,76 +1,98 @@
|
|
|
1
1
|
import "antd/lib/tooltip/style";
|
|
2
2
|
import _Tooltip from "antd/lib/tooltip";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import IconFont from
|
|
5
|
-
import FullScreen from
|
|
6
|
-
import "./index.
|
|
4
|
+
import IconFont from "../../../Player/iconfont";
|
|
5
|
+
import FullScreen from "../../../FullScreen";
|
|
6
|
+
import "./index.less";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
+
|
|
7
11
|
function Tools(_ref) {
|
|
8
12
|
var scale = _ref.scale,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return /*#__PURE__*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
13
|
+
imgDownload = _ref.imgDownload,
|
|
14
|
+
setScale = _ref.setScale,
|
|
15
|
+
setRotate = _ref.setRotate,
|
|
16
|
+
containerEle = _ref.containerEle,
|
|
17
|
+
resetPicture = _ref.resetPicture,
|
|
18
|
+
fullScreenChange = _ref.fullScreenChange;
|
|
19
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
20
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
21
|
+
className: "picture-tools",
|
|
22
|
+
children: [/*#__PURE__*/_jsx(_Tooltip, {
|
|
23
|
+
placement: "left",
|
|
24
|
+
title: "\u590D\u4F4D",
|
|
25
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
26
|
+
onClick: resetPicture,
|
|
27
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
28
|
+
type: "lm-player-S_View_RotateMiddle"
|
|
29
|
+
})
|
|
30
|
+
})
|
|
31
|
+
}), /*#__PURE__*/_jsx(_Tooltip, {
|
|
32
|
+
placement: "left",
|
|
33
|
+
title: "\u653E\u5927",
|
|
34
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
35
|
+
onClick: function onClick() {
|
|
36
|
+
return setScale(0.2);
|
|
37
|
+
},
|
|
38
|
+
className: scale === 3 ? 'disabled' : '',
|
|
39
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
40
|
+
type: "lm-player-S_View_ZoomIn"
|
|
41
|
+
})
|
|
42
|
+
})
|
|
43
|
+
}), /*#__PURE__*/_jsx(_Tooltip, {
|
|
44
|
+
placement: "left",
|
|
45
|
+
title: "\u7F29\u5C0F",
|
|
46
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
47
|
+
onClick: function onClick() {
|
|
48
|
+
return setScale(-0.2);
|
|
49
|
+
},
|
|
50
|
+
className: scale === 1 ? 'disabled' : '',
|
|
51
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
52
|
+
type: "lm-player-S_View_ZoomOut"
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
}), /*#__PURE__*/_jsx(_Tooltip, {
|
|
56
|
+
placement: "left",
|
|
57
|
+
title: "\u5411\u5DE6",
|
|
58
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
59
|
+
onClick: function onClick() {
|
|
60
|
+
return setRotate(-90);
|
|
61
|
+
},
|
|
62
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
63
|
+
type: "lm-player-S_View_RotateLeft"
|
|
64
|
+
})
|
|
65
|
+
})
|
|
66
|
+
}), /*#__PURE__*/_jsx(_Tooltip, {
|
|
67
|
+
placement: "left",
|
|
68
|
+
title: "\u5411\u53F3",
|
|
69
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
70
|
+
onClick: function onClick() {
|
|
71
|
+
return setRotate(90);
|
|
72
|
+
},
|
|
73
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
74
|
+
type: "lm-player-S_View_RotateRight"
|
|
75
|
+
})
|
|
76
|
+
})
|
|
77
|
+
})]
|
|
78
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
79
|
+
className: "picture-actions",
|
|
80
|
+
children: [imgDownload && /*#__PURE__*/_jsx("div", {
|
|
81
|
+
onClick: imgDownload,
|
|
82
|
+
children: /*#__PURE__*/_jsx(IconFont, {
|
|
83
|
+
type: "lm-player-S_Edit_LoadDown"
|
|
84
|
+
})
|
|
85
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
86
|
+
children: /*#__PURE__*/_jsx(FullScreen, {
|
|
87
|
+
className: "footer_window",
|
|
88
|
+
getContainer: function getContainer() {
|
|
89
|
+
return containerEle;
|
|
90
|
+
},
|
|
91
|
+
fullScreenChange: fullScreenChange
|
|
92
|
+
})
|
|
93
|
+
})]
|
|
94
|
+
})]
|
|
95
|
+
});
|
|
75
96
|
}
|
|
97
|
+
|
|
76
98
|
export default Tools;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.picture-tools {
|
|
2
|
+
position: absolute;
|
|
3
|
+
bottom: 10px;
|
|
4
|
+
right: 10px;
|
|
5
|
+
background: #fff;
|
|
6
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.3);
|
|
7
|
+
&.actions-change-rotate {
|
|
8
|
+
bottom: 150px;
|
|
9
|
+
}
|
|
10
|
+
& > div {
|
|
11
|
+
width: 30px;
|
|
12
|
+
height: 25px;
|
|
13
|
+
line-height: 25px;
|
|
14
|
+
text-align: center;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
|
|
17
|
+
&.disabled {
|
|
18
|
+
cursor: not-allowed;
|
|
19
|
+
color: #999;
|
|
20
|
+
.anticon {
|
|
21
|
+
color: #999;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.picture-actions {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 8px;
|
|
29
|
+
right: 8px;
|
|
30
|
+
& > div {
|
|
31
|
+
width: 28px;
|
|
32
|
+
height: 28px;
|
|
33
|
+
line-height: 28px;
|
|
34
|
+
background: #fff;
|
|
35
|
+
float: left;
|
|
36
|
+
text-align: center;
|
|
37
|
+
margin-left: 4px;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
.tools-screen-layer .anticon {
|
|
41
|
+
padding-right: 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import React, { useCallback, useEffect } from 'react';
|
|
2
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
2
5
|
function WheelScale(_ref) {
|
|
3
6
|
var dom = _ref.dom,
|
|
4
|
-
|
|
7
|
+
setScale = _ref.setScale;
|
|
5
8
|
var onWheel = useCallback(function (e) {
|
|
6
9
|
if (e.ctrlKey || e.metaKey) {
|
|
7
10
|
e.preventDefault();
|
|
8
11
|
e.stopPropagation();
|
|
9
12
|
setScale(e.deltaY > 0 ? -0.2 : 0.2);
|
|
10
13
|
}
|
|
11
|
-
}, [setScale]);
|
|
12
|
-
|
|
14
|
+
}, [setScale]); //滚轮缩放
|
|
15
|
+
|
|
13
16
|
useEffect(function () {
|
|
14
17
|
if (!dom) {
|
|
15
18
|
return undefined;
|
|
16
19
|
}
|
|
20
|
+
|
|
17
21
|
dom.addEventListener('wheel', onWheel, {
|
|
18
22
|
passive: false
|
|
19
23
|
});
|
|
@@ -21,6 +25,7 @@ function WheelScale(_ref) {
|
|
|
21
25
|
return dom.removeEventListener('wheel', onWheel);
|
|
22
26
|
};
|
|
23
27
|
}, [dom, onWheel]);
|
|
24
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/_jsx(_Fragment, {});
|
|
25
29
|
}
|
|
30
|
+
|
|
26
31
|
export default WheelScale;
|