@cloud-app-dev/vidc 3.2.17 → 3.2.19

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.
Files changed (187) hide show
  1. package/.prettierrc.js +1 -1
  2. package/.stylelintrc.js +113 -0
  3. package/es/AppContext/Sync.d.ts +0 -1
  4. package/es/AppContext/index.js +3 -4
  5. package/es/Box/InfoBox/index.less +8 -6
  6. package/es/Box/TwoColumnBox/index.less +32 -22
  7. package/es/Box/index.d.ts +3 -3
  8. package/es/Box/index.less +1 -1
  9. package/es/CheckGroupFixed/demo.d.ts +0 -1
  10. package/es/CheckGroupFixed/index.d.ts +0 -1
  11. package/es/CheckGroupFixed/index.less +17 -14
  12. package/es/CustomRenderSelect/index.less +7 -7
  13. package/es/DisableMark/index.less +3 -3
  14. package/es/DomMove/demo.d.ts +0 -1
  15. package/es/DomMove/index.js +5 -5
  16. package/es/Drag/DragAndDropItem.js +1 -2
  17. package/es/Drag/DropItem.js +2 -2
  18. package/es/Drawer/Footer.d.ts +0 -1
  19. package/es/Drawer/index.d.ts +1 -1
  20. package/es/Drawer/index.js +19 -20
  21. package/es/Drawer/index.less +8 -8
  22. package/es/Drawer/interface.d.ts +4 -3
  23. package/es/DynamicGridList/Demo.d.ts +0 -1
  24. package/es/DynamicList/demo.d.ts +0 -1
  25. package/es/DynamicList/index.d.ts +0 -1
  26. package/es/DynamicList/index.less +2 -0
  27. package/es/ErrorFallback/index.d.ts +0 -1
  28. package/es/FullScreen/index.d.ts +0 -1
  29. package/es/FullScreen/index.less +6 -4
  30. package/es/GridList/Demo.d.ts +0 -1
  31. package/es/GridList/index.js +1 -1
  32. package/es/GridList/index.less +1 -1
  33. package/es/ImageView/index.less +2 -1
  34. package/es/Input/demo.d.ts +0 -1
  35. package/es/Input/index.d.ts +0 -1
  36. package/es/Input/index.less +1 -1
  37. package/es/InstanceHistory/index.d.ts +0 -1
  38. package/es/LabelValue/index.less +5 -2
  39. package/es/List/demo.d.ts +0 -1
  40. package/es/List/index.d.ts +4 -4
  41. package/es/List/index.less +2 -2
  42. package/es/ListWithSizeAnimate/demo.d.ts +0 -1
  43. package/es/ListWithSizeAnimate/demo.js +0 -1
  44. package/es/ListWithSizeAnimate/index.d.ts +0 -1
  45. package/es/ListWithSizeAnimate/index.js +18 -28
  46. package/es/ListWithSizeAnimate/index.less +10 -6
  47. package/es/Map/BasicMap/LeafletInstance.d.ts +1 -1
  48. package/es/Map/BasicMap/index.less +8 -3
  49. package/es/Map/ClusterLayer/hook.d.ts +2 -2
  50. package/es/Map/ClusterLayer/index.d.ts +0 -1
  51. package/es/Map/ClusterLayer/index.less +8 -6
  52. package/es/Map/FindPio/index.d.ts +0 -1
  53. package/es/Map/FindPio/index.less +2 -2
  54. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -1
  55. package/es/Map/InfoWindow/demo.d.ts +0 -1
  56. package/es/Map/InfoWindow/index.d.ts +0 -1
  57. package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -1
  58. package/es/Map/LevelCenter/demo.d.ts +0 -1
  59. package/es/Map/LevelCenter/index.d.ts +1 -2
  60. package/es/Map/LevelCenter/index.js +3 -4
  61. package/es/Map/MapDrawSelect/demo.d.ts +0 -1
  62. package/es/Map/MapDrawSelect/index.d.ts +1 -2
  63. package/es/Map/MapDrawSelect/index.js +2 -3
  64. package/es/Map/ResetTools/index.d.ts +0 -1
  65. package/es/Map/ResetTools/index.less +10 -6
  66. package/es/Map/SinglePoint/index.d.ts +1 -1
  67. package/es/Map/SinglePoint/index.less +3 -3
  68. package/es/Map/icon.d.ts +1 -1
  69. package/es/Map/index.d.ts +11 -21
  70. package/es/Map/useMarker/index.d.ts +0 -1
  71. package/es/Map/useMarker/index.js +1 -1
  72. package/es/Map/withMap/index.d.ts +0 -1
  73. package/es/Modal/demo.d.ts +0 -1
  74. package/es/Modal/index.d.ts +9 -9
  75. package/es/Modal/index.js +17 -17
  76. package/es/Modal/index.less +10 -11
  77. package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -1
  78. package/es/Picture/component/DefaultRects/index.d.ts +1 -2
  79. package/es/Picture/component/DefaultRects/index.js +3 -1
  80. package/es/Picture/component/DefaultRects/index.less +51 -28
  81. package/es/Picture/component/DrawRect/index.d.ts +2 -3
  82. package/es/Picture/component/DrawRect/index.js +3 -1
  83. package/es/Picture/component/DrawRect/index.less +2 -2
  84. package/es/Picture/component/RectMenu/index.d.ts +0 -1
  85. package/es/Picture/component/RectMenu/index.less +11 -6
  86. package/es/Picture/component/Tools/index.d.ts +1 -1
  87. package/es/Picture/component/Tools/index.js +1 -1
  88. package/es/Picture/component/Tools/index.less +12 -6
  89. package/es/Picture/component/WheelScale/index.d.ts +0 -1
  90. package/es/Picture/demo.d.ts +0 -1
  91. package/es/Picture/index.d.ts +0 -1
  92. package/es/Picture/index.js +50 -26
  93. package/es/Picture/index.less +3 -2
  94. package/es/Picture/useDraw.d.ts +1 -1
  95. package/es/Picture/useDraw.js +1 -1
  96. package/es/Picture/utils.d.ts +3 -3
  97. package/es/Picture/utils.js +35 -34
  98. package/es/Player/api/index.d.ts +8 -8
  99. package/es/Player/api/index.js +67 -35
  100. package/es/Player/context.d.ts +4 -4
  101. package/es/Player/contraller_bar/contraller_event.js +4 -4
  102. package/es/Player/contraller_bar/left_bar.js +12 -10
  103. package/es/Player/contraller_bar/time.d.ts +0 -1
  104. package/es/Player/demo.d.ts +0 -1
  105. package/es/Player/empty.d.ts +1 -0
  106. package/es/Player/empty.js +6 -0
  107. package/es/Player/event/errorEvent.d.ts +3 -5
  108. package/es/Player/event/errorEvent.js +7 -8
  109. package/es/Player/event/index.d.ts +3 -3
  110. package/es/Player/event/index.js +1 -1
  111. package/es/Player/fps_play.d.ts +2 -3
  112. package/es/Player/fps_play.js +10 -8
  113. package/es/Player/frontend_player.d.ts +0 -1
  114. package/es/Player/frontend_player.js +13 -10
  115. package/es/Player/frontend_timeline.d.ts +0 -1
  116. package/es/Player/frontend_timeline.js +41 -41
  117. package/es/Player/iconfont.d.ts +0 -1
  118. package/es/Player/live_heart.d.ts +3 -3
  119. package/es/Player/live_heart.js +15 -5
  120. package/es/Player/message.d.ts +0 -1
  121. package/es/Player/message.js +5 -5
  122. package/es/Player/segment_player.d.ts +0 -1
  123. package/es/Player/segment_player.js +31 -24
  124. package/es/Player/segment_timeline.d.ts +0 -1
  125. package/es/Player/segment_timeline.js +71 -71
  126. package/es/Player/single_player.d.ts +1 -1
  127. package/es/Player/single_player.js +17 -21
  128. package/es/Player/style/bar.less +13 -9
  129. package/es/Player/style/index.less +8 -4
  130. package/es/Player/style/message.less +22 -16
  131. package/es/Player/style/slider.less +40 -37
  132. package/es/Player/style/timeline.less +43 -33
  133. package/es/Player/style/volume.less +7 -4
  134. package/es/Player/timeline.d.ts +0 -1
  135. package/es/Player/timeline.js +16 -8
  136. package/es/Player/util.d.ts +21 -7
  137. package/es/Player/util.js +82 -58
  138. package/es/PlayerExt/demo.d.ts +0 -1
  139. package/es/PlayerExt/index.d.ts +0 -1
  140. package/es/PlayerExt/index.less +2 -2
  141. package/es/Progress/index.d.ts +0 -1
  142. package/es/Progress/index.less +5 -4
  143. package/es/ROI/demo.d.ts +0 -1
  144. package/es/ROI/index.less +8 -4
  145. package/es/ScreenPlayer/Live.d.ts +0 -1
  146. package/es/ScreenPlayer/RatePick.d.ts +0 -1
  147. package/es/ScreenPlayer/Record.d.ts +0 -1
  148. package/es/ScreenPlayer/ScreenSelect.d.ts +0 -1
  149. package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -1
  150. package/es/ScreenPlayer/TimeMode.d.ts +0 -1
  151. package/es/ScreenPlayer/TimeSelect.d.ts +0 -1
  152. package/es/ScreenPlayer/demo.d.ts +0 -1
  153. package/es/ScreenPlayer/demo2.d.ts +0 -1
  154. package/es/ScreenPlayer/index.d.ts +2 -3
  155. package/es/ScreenPlayer/index.less +49 -26
  156. package/es/ScreenPlayer/useTimeSlider.d.ts +0 -1
  157. package/es/ScreenPlayer/useVideoFit.d.ts +2 -2
  158. package/es/TableLayout/index.less +1 -1
  159. package/es/ThemeAntd/demo.d.ts +0 -1
  160. package/es/ThemeAntd/demo.less +4 -3
  161. package/es/ThemeAntd/index.less +12 -12
  162. package/es/ThemeAntd/style/button.less +4 -4
  163. package/es/ThemeAntd/style/checkbox.less +3 -3
  164. package/es/ThemeAntd/style/input.less +7 -7
  165. package/es/ThemeAntd/style/pagination.less +4 -4
  166. package/es/ThemeAntd/style/picker.less +5 -5
  167. package/es/ThemeAntd/style/radio.less +2 -2
  168. package/es/ThemeAntd/style/scrollbar.less +5 -3
  169. package/es/ThemeAntd/style/select.less +8 -8
  170. package/es/ThemeAntd/style/table.less +4 -4
  171. package/es/Timeout/index.d.ts +0 -1
  172. package/es/Tree/demo.d.ts +0 -1
  173. package/es/Tree/index.d.ts +1 -1
  174. package/es/Tree/index.less +13 -12
  175. package/es/VList/index.d.ts +0 -1
  176. package/es/useDrawROI/index.d.ts +4 -4
  177. package/es/useFullscreen/demo.d.ts +0 -1
  178. package/es/useFullscreen/index.d.ts +4 -5
  179. package/es/useHistory/index.d.ts +0 -1
  180. package/es/useSimpleState/index.js +1 -1
  181. package/es/useVirtualList/index.d.ts +1 -1
  182. package/package.json +12 -6
  183. package/tsconfig.json +1 -0
  184. package/es/Drag/index.less +0 -0
  185. package/es/Map/LevelCenter/index.less +0 -2
  186. package/es/Map/MapDrawSelect/index.less +0 -2
  187. package/es/Map/useMarker/index.less +0 -0
@@ -1,24 +1,24 @@
1
- import { IModalProps } from './interface';
2
1
  import React from 'react';
3
2
  import './index.less';
3
+ import { IModalProps } from './interface';
4
4
  declare function Modal({ children, className, style, getContainer, ...props }: IModalProps): JSX.Element;
5
5
  declare namespace Modal {
6
6
  var defaultProps: {
7
7
  className: string;
8
8
  getContainer: boolean;
9
9
  };
10
- var info: import("antd/lib/modal/confirm").ModalFunc;
11
- var success: import("antd/lib/modal/confirm").ModalFunc;
12
- var error: import("antd/lib/modal/confirm").ModalFunc;
13
- var warn: import("antd/lib/modal/confirm").ModalFunc;
14
- var warning: import("antd/lib/modal/confirm").ModalFunc;
15
- var confirm: import("antd/lib/modal/confirm").ModalFunc;
16
- var destroyAll: () => void;
10
+ var info: any;
11
+ var success: any;
12
+ var error: any;
13
+ var warn: any;
14
+ var warning: any;
15
+ var confirm: any;
16
+ var destroyAll: any;
17
17
  var useModal: (prefixCls?: string) => {
18
18
  open: (options: IUseModalHookState) => void;
19
19
  close: () => void;
20
20
  };
21
- var useAntdModal: typeof import("antd/lib/modal/useModal").default;
21
+ var useAntdModal: any;
22
22
  var RefModal: React.ForwardRefExoticComponent<IModalProps & React.RefAttributes<IRefModalMethodsProps>>;
23
23
  }
24
24
  export interface IUseModalHookState {
package/es/Modal/index.js CHANGED
@@ -82,6 +82,23 @@ function useModal() {
82
82
  var root = useMemo(function () {
83
83
  return ReactDOMClient.createRoot(div);
84
84
  }, [div]);
85
+
86
+ var open = function open(options) {
87
+ setState(function (old) {
88
+ return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
89
+ visible: true
90
+ });
91
+ });
92
+ };
93
+
94
+ var close = function close() {
95
+ setState(function (old) {
96
+ return _objectSpread(_objectSpread({}, old), {}, {
97
+ visible: false
98
+ });
99
+ });
100
+ };
101
+
85
102
  useEffect(function () {
86
103
  container.appendChild(div);
87
104
  return function () {
@@ -112,23 +129,6 @@ function useModal() {
112
129
  })
113
130
  }));
114
131
  }, [state.content, state.visible, state.title, state.onOk, state.width, state.className, root, prefixCls, container]);
115
-
116
- var open = function open(options) {
117
- setState(function (old) {
118
- return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
119
- visible: true
120
- });
121
- });
122
- };
123
-
124
- var close = function close() {
125
- setState(function (old) {
126
- return _objectSpread(_objectSpread({}, old), {}, {
127
- visible: false
128
- });
129
- });
130
- };
131
-
132
132
  return {
133
133
  open: open,
134
134
  close: close
@@ -2,14 +2,15 @@
2
2
  padding-bottom: 0;
3
3
  color: inherit;
4
4
  .@{ant-prefix}-modal-content {
5
- height: 100%;
6
5
  display: flex;
7
- flex-direction: column;
8
- border-radius: var(--redius1);
6
+ height: 100%;
9
7
  overflow: hidden;
10
8
  background-color: transparent;
9
+ border-radius: var(--redius1);
10
+ flex-direction: column;
11
11
  }
12
12
  .@{ant-prefix}-modal-close {
13
+ color: inherit;
13
14
  .@{ant-prefix}-modal-close-x {
14
15
  width: 48px;
15
16
  height: 47px;
@@ -19,27 +20,25 @@
19
20
  .@{ant-prefix}-modal-header {
20
21
  padding: 12px 24px;
21
22
  padding-right: 56px;
23
+ color: inherit;
22
24
  background: var(--modal-title-bg);
23
- border-bottom-color: var(--modal-divider-color);
24
25
  border-radius: 0;
25
- color: inherit;
26
+ border-bottom-color: var(--modal-divider-color);
26
27
  .@{ant-prefix}-modal-title {
27
- color: inherit;
28
28
  font-size: var(--fs-large);
29
+ color: inherit;
29
30
  }
30
31
  }
31
- .@{ant-prefix}-modal-close {
32
- color: inherit;
33
- }
32
+
34
33
  .@{ant-prefix}-modal-body {
34
+ overflow: hidden;
35
35
  background: var(--modal-content-bg);
36
36
  flex: 1;
37
- overflow: hidden;
38
37
  }
39
38
  .@{ant-prefix}-modal-footer {
40
39
  padding: 12px 24px;
41
- border-radius: 0;
42
40
  background: var(--modal-footer-bg);
41
+ border-radius: 0;
43
42
  border-top-color: var(--modal-divider-color);
44
43
  }
45
44
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RectType } from '../../interface';
3
2
  interface IRectInfoProps {
4
3
  item: RectType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RectType } from '../../interface';
3
2
  import './index.less';
4
3
  interface IDefaultRectsProps {
@@ -7,7 +6,7 @@ interface IDefaultRectsProps {
7
6
  onClickRect?: (item: RectType & {
8
7
  base64: string;
9
8
  }) => void;
10
- getRectImage: (rect: number[]) => string;
9
+ getRectImage: (rect: number[]) => string | null;
11
10
  }
12
11
  declare function DefaultRects({ rects, containerDom, onClickRect, getRectImage }: IDefaultRectsProps): JSX.Element;
13
12
  export default DefaultRects;
@@ -21,9 +21,11 @@ function DefaultRects(_ref) {
21
21
  return computedZIndex(rects);
22
22
  }, [rects]);
23
23
  var rectClick = useCallback(function (e, item) {
24
+ var _getRectImage;
25
+
24
26
  e.stopPropagation();
25
27
  onClickRect === null || onClickRect === void 0 ? void 0 : onClickRect(_objectSpread(_objectSpread({}, item), {}, {
26
- base64: getRectImage(item.rect)
28
+ base64: (_getRectImage = getRectImage(item.rect)) !== null && _getRectImage !== void 0 ? _getRectImage : ''
27
29
  }));
28
30
  }, [getRectImage, onClickRect]);
29
31
  return /*#__PURE__*/_jsx(_Fragment, {
@@ -4,16 +4,19 @@
4
4
  border-top-color: @color;
5
5
  border-left-color: @color;
6
6
  }
7
+
7
8
  &::after {
8
9
  border-top-color: @color;
9
10
  border-right-color: @color;
10
11
  }
11
12
  }
13
+
12
14
  .border-bottom-decorator {
13
15
  &::before {
14
16
  border-bottom-color: @color;
15
17
  border-left-color: @color;
16
18
  }
19
+
17
20
  &::after {
18
21
  border-bottom-color: @color;
19
22
  border-right-color: @color;
@@ -25,6 +28,7 @@
25
28
  .rect-item {
26
29
  border-color: @lightColor;
27
30
  .border-decorator-color-mixin(@color);
31
+
28
32
  &:hover {
29
33
  border-color: @color;
30
34
  box-shadow: inset 0 0 24px 0 @shadowColor;
@@ -36,8 +40,8 @@
36
40
  .rect-info-list-wrapper {
37
41
  .data-type {
38
42
  .data-tag {
39
- border: 1px solid @color;
40
43
  background: @bgColor;
44
+ border: 1px solid @color;
41
45
  }
42
46
  }
43
47
  // border-color: @color;
@@ -53,24 +57,28 @@
53
57
  }
54
58
 
55
59
  .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));
60
+ .rect-item-style-mixin(#ff5f57, rgba(255, 95, 87, .6), rgba(255, 95, 87, .4));
61
+ .rect-info-list-mixin(#FF5F57, rgba(255,95,87,.6), rgba(179,49,43,.6));
58
62
  }
63
+
59
64
  .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));
65
+ .rect-item-style-mixin(#ffbb22, rgba(255, 187, 34, .6), rgba(255, 187, 34, .4));
66
+ .rect-info-list-mixin(#FFBB22, rgba(255,187,34,.6), rgba(176,94,0,.6));
62
67
  }
68
+
63
69
  .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));
70
+ .rect-item-style-mixin(#44aaff, rgba(68, 170, 255, .6), rgba(68, 170, 255, .4));
71
+ .rect-info-list-mixin(#44aaff, rgba(68,170,255,.6), rgba(31,114,183,.6));
66
72
  }
73
+
67
74
  .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));
75
+ .rect-item-style-mixin(#50e9b2, rgba(80, 233, 178, .6), rgba(80, 233, 178, .4));
76
+ .rect-info-list-mixin(#50e9b2, rgba(80,233,178,.6), rgba(15,196,132,.6));
70
77
  }
78
+
71
79
  .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));
80
+ .rect-item-style-mixin(#b946d2, rgba(185, 70, 210, .6), rgba(185, 70, 210, .4));
81
+ .rect-info-list-mixin(#b946d2, rgba(185, 70, 210, .6), rgba(155, 58, 177, .4));
74
82
  }
75
83
 
76
84
  .rect-item {
@@ -78,42 +86,51 @@
78
86
  border-width: 1px;
79
87
  border-style: solid;
80
88
  cursor: pointer;
89
+
81
90
  .border-top-decorator,
82
91
  .border-bottom-decorator {
83
92
  position: absolute;
84
- pointer-events: none;
85
93
  width: 100%;
94
+ pointer-events: none;
95
+
86
96
  &::before,
87
97
  &::after {
88
- content: '';
89
98
  display: block;
90
99
  width: 8px;
91
100
  height: 8px;
92
101
  border: 2px solid transparent;
102
+ content: '';
93
103
  }
104
+
94
105
  &::before {
95
106
  float: left;
96
107
  margin-left: -1px;
97
108
  }
109
+
98
110
  &::after {
99
111
  float: right;
100
112
  margin-right: -1px;
101
113
  }
102
114
  }
115
+
103
116
  .border-top-decorator {
104
117
  top: 0;
118
+
105
119
  &::before,
106
120
  &::after {
107
121
  margin-top: -1px;
108
122
  }
109
123
  }
124
+
110
125
  .border-bottom-decorator {
111
126
  bottom: 0;
127
+
112
128
  &::before,
113
129
  &::after {
114
130
  margin-bottom: -1px;
115
131
  }
116
132
  }
133
+
117
134
  &:hover + .rect-info-list-wrapper {
118
135
  display: block;
119
136
  }
@@ -121,22 +138,22 @@
121
138
 
122
139
  // 结构化窗体
123
140
  .rect-info-list-wrapper {
124
- display: none;
125
- background: rgba(16, 21, 36, 0.8);
126
141
  position: absolute;
127
142
  z-index: 11;
128
- border: 1px solid transparent;
143
+ display: none;
129
144
  padding-top: 5px;
145
+ background: rgb(16 21 36 / 80%);
146
+ border: 1px solid transparent;
130
147
 
131
- /*高低质量*/
148
+ /* 高低质量 */
132
149
  .data-type {
133
150
  padding: 0 5px;
134
151
  color: #fff;
135
152
 
136
153
  .data-tag {
137
154
  padding: 4px;
138
- font-size: 12px;
139
155
  margin-right: 4px;
156
+ font-size: 12px;
140
157
 
141
158
  .anticon {
142
159
  margin-right: 4px;
@@ -144,42 +161,48 @@
144
161
  }
145
162
  }
146
163
  }
164
+
147
165
  .rect-card-corner {
148
166
  position: absolute;
149
167
  top: -9px;
150
168
  left: -1px;
151
169
  }
170
+
152
171
  .rect-info-arrow {
153
172
  position: absolute;
173
+ top: 6px;
174
+ left: -4px;
154
175
  display: block;
155
176
  background: transparent;
177
+ transform: rotate(45deg);
156
178
  border-style: solid;
157
179
  border-width: 4px;
158
- border-color: rgba(16, 21, 36, 0.8);
159
- transform: rotate(45deg);
160
- left: -4px;
161
- top: 6px;
180
+ border-color: rgb(16 21 36 / 80%);
162
181
  }
182
+
163
183
  .rect-info-list {
164
184
  height: 100%;
165
- border-radius: 2px;
166
185
  padding: 3px 10px;
186
+ border-radius: 2px;
187
+
167
188
  .info-item {
168
189
  padding: 3px 0;
169
- white-space: nowrap;
170
- text-overflow: ellipsis;
171
190
  overflow: hidden;
172
- line-height: 18px;
173
191
  font-size: var(--fs-small);
192
+ line-height: 18px;
174
193
  color: #fff;
194
+ text-overflow: ellipsis;
195
+ white-space: nowrap;
196
+
175
197
  .anticon {
176
198
  position: relative;
177
199
  top: 1px;
178
- cursor: default;
200
+ padding-right: 4px;
179
201
  font-size: 16px;
180
202
  color: #fff;
181
- padding-right: 4px;
203
+ cursor: default;
182
204
  }
205
+
183
206
  .item-label {
184
207
  margin: 0 4px;
185
208
  }
@@ -1,13 +1,12 @@
1
- /// <reference types="react" />
2
1
  import { MenuRectType } from '../../interface';
3
2
  import './index.less';
4
3
  interface IDrawRectProps {
5
4
  rect: number[];
6
5
  canRenderMenu?: boolean;
7
6
  containerDom: HTMLDivElement;
8
- onMenuClick: (options: MenuRectType) => void;
7
+ onMenuClick?: (options: MenuRectType) => void;
9
8
  menus: MenuRectType[];
10
- getRectImage: (rect: number[]) => string;
9
+ getRectImage: (rect: number[]) => string | null;
11
10
  }
12
11
  declare function DrawRect({ rect, canRenderMenu, containerDom, onMenuClick, menus, getRectImage }: IDrawRectProps): JSX.Element;
13
12
  export default DrawRect;
@@ -26,8 +26,10 @@ function DrawRect(_ref) {
26
26
  return rect[1] + rect[3];
27
27
  }, [rect]);
28
28
  var onMenuClickAction = useCallback(function (item) {
29
+ var _getRectImage;
30
+
29
31
  onMenuClick === null || onMenuClick === void 0 ? void 0 : onMenuClick(_objectSpread(_objectSpread({}, item), {}, {
30
- base64: getRectImage(rect)
32
+ base64: (_getRectImage = getRectImage(rect)) !== null && _getRectImage !== void 0 ? _getRectImage : ''
31
33
  }));
32
34
  }, [getRectImage, onMenuClick, rect]);
33
35
  return /*#__PURE__*/_jsxs(_Fragment, {
@@ -1,8 +1,8 @@
1
1
  .select-rect-layout {
2
- box-shadow: 0 0 0 9999em rgba(0, 0, 0, 0.4);
2
+ position: absolute;
3
3
  border: 1px solid;
4
+ box-shadow: 0 0 0 9999em rgb(0 0 0 / 40%);
4
5
  border-image-source: url('data:image/gif;base64,R0lGODlhCgAKAJECAAAAAP///////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OEI5RDc5MTFDNkE2MTFFM0JCMDZEODI2QTI4MzJBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OEI5RDc5MTBDNkE2MTFFM0JCMDZEODI2QTI4MzJBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuZGlkOjAyODAxMTc0MDcyMDY4MTE4MDgzQzNDMjA5MzREQ0ZDIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjAyODAxMTc0MDcyMDY4MTE4MDgzQzNDMjA5MzREQ0ZDIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEBQoAAgAsAAAAAAoACgAAAhWEERkn7W3ei7KlagMWF/dKgYeyGAUAIfkEBQoAAgAsAAAAAAoACgAAAg+UYwLJ7RnQm7QmsCyVKhUAIfkEBQoAAgAsAAAAAAoACgAAAhCUYgLJHdiinNSAVfOEKoUCACH5BAUKAAIALAAAAAAKAAoAAAIRVISAdusPo3RAzYtjaMIaUQAAIfkEBQoAAgAsAAAAAAoACgAAAg+MDiem7Q8bSLFaG5il6xQAIfkEBQoAAgAsAAAAAAoACgAAAg+UYRLJ7QnQm7SmsCyVKhUAIfkEBQoAAgAsAAAAAAoACgAAAhCUYBLJDdiinNSEVfOEKoECACH5BAUKAAIALAAAAAAKAAoAAAIRFISBdusPo3RBzYsjaMIaUQAAOw==');
5
6
  border-image-repeat: repeat;
6
7
  border-image-slice: 1;
7
- position: absolute;
8
8
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MenuRectType } from '../../../Picture/interface';
3
2
  import './index.less';
4
3
  interface IRectMenuProps {
@@ -1,29 +1,34 @@
1
1
  .select-rect-menu-layout {
2
2
  position: absolute;
3
- font-size: var(--fs-small);
4
3
  width: 105px;
5
4
  overflow: hidden;
5
+ font-size: var(--fs-small);
6
+
6
7
  .menu-action-item {
7
8
  padding: 4px 10px;
8
- background: #ffffff;
9
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);
10
+ color: rgb(0 0 0 / 65%);
13
11
  white-space: nowrap;
12
+ background: #fff;
13
+ border-radius: 15px;
14
+ box-shadow: 0 0 2px rgb(0 0 0 / 20%);
15
+
14
16
  .anticon {
15
17
  padding-right: 2px;
16
18
  font-size: 16px;
17
19
  color: #89b;
18
20
  }
21
+
19
22
  &:hover {
20
- background: #ffaa00;
21
23
  color: #fff;
22
24
  cursor: pointer;
25
+ background: #fa0;
26
+
23
27
  .anticon {
24
28
  color: #fff;
25
29
  }
26
30
  }
31
+
27
32
  &:last-child {
28
33
  margin-bottom: 0;
29
34
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import './index.less';
3
3
  interface IToolsProps {
4
4
  scale: number;
5
- imgDownload: () => void;
5
+ imgDownload?: () => void;
6
6
  setScale: (scale: number) => void;
7
7
  setRotate: (rotate: number) => void;
8
8
  containerEle: HTMLDivElement;
@@ -1,8 +1,8 @@
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 "../../../Player/iconfont";
5
4
  import FullScreen from "../../../FullScreen";
5
+ import IconFont from "../../../Player/iconfont";
6
6
  import "./index.less";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -1,12 +1,14 @@
1
1
  .picture-tools {
2
2
  position: absolute;
3
- bottom: 10px;
4
3
  right: 10px;
4
+ bottom: 10px;
5
5
  background: #fff;
6
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.3);
6
+ box-shadow: 0 2px 5px 0 rgb(0 0 0 / 30%);
7
+
7
8
  &.actions-change-rotate {
8
9
  bottom: 150px;
9
10
  }
11
+
10
12
  & > div {
11
13
  width: 30px;
12
14
  height: 25px;
@@ -15,28 +17,32 @@
15
17
  cursor: pointer;
16
18
 
17
19
  &.disabled {
18
- cursor: not-allowed;
19
20
  color: #999;
21
+ cursor: not-allowed;
22
+
20
23
  .anticon {
21
24
  color: #999;
22
25
  }
23
26
  }
24
27
  }
25
28
  }
29
+
26
30
  .picture-actions {
27
31
  position: absolute;
28
32
  top: 8px;
29
33
  right: 8px;
34
+
30
35
  & > div {
36
+ float: left;
31
37
  width: 28px;
32
38
  height: 28px;
39
+ margin-left: 4px;
33
40
  line-height: 28px;
34
- background: #fff;
35
- float: left;
36
41
  text-align: center;
37
- margin-left: 4px;
38
42
  cursor: pointer;
43
+ background: #fff;
39
44
  }
45
+
40
46
  .tools-screen-layer .anticon {
41
47
  padding-right: 0;
42
48
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IWheelScaleProps {
3
2
  dom: HTMLElement;
4
3
  setScale: (scale: number) => void;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export default function App(): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IPictureProps } from './interface';
3
2
  import './index.less';
4
3
  declare function Picture({ className, width, height, minHeight, disabledDrag, imagePath, rects, isOpenSelect, disabledDrawMenu, menus, hasTool, fullScreenEle, ...props }: IPictureProps): JSX.Element;