@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.
- package/.prettierrc.js +1 -1
- package/.stylelintrc.js +113 -0
- package/es/AppContext/Sync.d.ts +0 -1
- package/es/AppContext/index.js +3 -4
- package/es/Box/InfoBox/index.less +8 -6
- package/es/Box/TwoColumnBox/index.less +32 -22
- package/es/Box/index.d.ts +3 -3
- package/es/Box/index.less +1 -1
- package/es/CheckGroupFixed/demo.d.ts +0 -1
- package/es/CheckGroupFixed/index.d.ts +0 -1
- package/es/CheckGroupFixed/index.less +17 -14
- package/es/CustomRenderSelect/index.less +7 -7
- package/es/DisableMark/index.less +3 -3
- package/es/DomMove/demo.d.ts +0 -1
- package/es/DomMove/index.js +5 -5
- package/es/Drag/DragAndDropItem.js +1 -2
- package/es/Drag/DropItem.js +2 -2
- package/es/Drawer/Footer.d.ts +0 -1
- package/es/Drawer/index.d.ts +1 -1
- package/es/Drawer/index.js +19 -20
- package/es/Drawer/index.less +8 -8
- package/es/Drawer/interface.d.ts +4 -3
- package/es/DynamicGridList/Demo.d.ts +0 -1
- package/es/DynamicList/demo.d.ts +0 -1
- package/es/DynamicList/index.d.ts +0 -1
- package/es/DynamicList/index.less +2 -0
- package/es/ErrorFallback/index.d.ts +0 -1
- package/es/FullScreen/index.d.ts +0 -1
- package/es/FullScreen/index.less +6 -4
- package/es/GridList/Demo.d.ts +0 -1
- package/es/GridList/index.js +1 -1
- package/es/GridList/index.less +1 -1
- package/es/ImageView/index.less +2 -1
- package/es/Input/demo.d.ts +0 -1
- package/es/Input/index.d.ts +0 -1
- package/es/Input/index.less +1 -1
- package/es/InstanceHistory/index.d.ts +0 -1
- package/es/LabelValue/index.less +5 -2
- package/es/List/demo.d.ts +0 -1
- package/es/List/index.d.ts +4 -4
- package/es/List/index.less +2 -2
- package/es/ListWithSizeAnimate/demo.d.ts +0 -1
- package/es/ListWithSizeAnimate/demo.js +0 -1
- package/es/ListWithSizeAnimate/index.d.ts +0 -1
- package/es/ListWithSizeAnimate/index.js +18 -28
- package/es/ListWithSizeAnimate/index.less +10 -6
- package/es/Map/BasicMap/LeafletInstance.d.ts +1 -1
- package/es/Map/BasicMap/index.less +8 -3
- package/es/Map/ClusterLayer/hook.d.ts +2 -2
- package/es/Map/ClusterLayer/index.d.ts +0 -1
- package/es/Map/ClusterLayer/index.less +8 -6
- package/es/Map/FindPio/index.d.ts +0 -1
- package/es/Map/FindPio/index.less +2 -2
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -1
- package/es/Map/InfoWindow/demo.d.ts +0 -1
- package/es/Map/InfoWindow/index.d.ts +0 -1
- package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -1
- package/es/Map/LevelCenter/demo.d.ts +0 -1
- package/es/Map/LevelCenter/index.d.ts +1 -2
- package/es/Map/LevelCenter/index.js +3 -4
- package/es/Map/MapDrawSelect/demo.d.ts +0 -1
- package/es/Map/MapDrawSelect/index.d.ts +1 -2
- package/es/Map/MapDrawSelect/index.js +2 -3
- package/es/Map/ResetTools/index.d.ts +0 -1
- package/es/Map/ResetTools/index.less +10 -6
- package/es/Map/SinglePoint/index.d.ts +1 -1
- package/es/Map/SinglePoint/index.less +3 -3
- package/es/Map/icon.d.ts +1 -1
- package/es/Map/index.d.ts +11 -21
- package/es/Map/useMarker/index.d.ts +0 -1
- package/es/Map/useMarker/index.js +1 -1
- package/es/Map/withMap/index.d.ts +0 -1
- package/es/Modal/demo.d.ts +0 -1
- package/es/Modal/index.d.ts +9 -9
- package/es/Modal/index.js +17 -17
- package/es/Modal/index.less +10 -11
- package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -1
- package/es/Picture/component/DefaultRects/index.d.ts +1 -2
- package/es/Picture/component/DefaultRects/index.js +3 -1
- package/es/Picture/component/DefaultRects/index.less +51 -28
- package/es/Picture/component/DrawRect/index.d.ts +2 -3
- package/es/Picture/component/DrawRect/index.js +3 -1
- package/es/Picture/component/DrawRect/index.less +2 -2
- package/es/Picture/component/RectMenu/index.d.ts +0 -1
- package/es/Picture/component/RectMenu/index.less +11 -6
- package/es/Picture/component/Tools/index.d.ts +1 -1
- package/es/Picture/component/Tools/index.js +1 -1
- package/es/Picture/component/Tools/index.less +12 -6
- package/es/Picture/component/WheelScale/index.d.ts +0 -1
- package/es/Picture/demo.d.ts +0 -1
- package/es/Picture/index.d.ts +0 -1
- package/es/Picture/index.js +50 -26
- package/es/Picture/index.less +3 -2
- package/es/Picture/useDraw.d.ts +1 -1
- package/es/Picture/useDraw.js +1 -1
- package/es/Picture/utils.d.ts +3 -3
- package/es/Picture/utils.js +35 -34
- package/es/Player/api/index.d.ts +8 -8
- package/es/Player/api/index.js +67 -35
- package/es/Player/context.d.ts +4 -4
- package/es/Player/contraller_bar/contraller_event.js +4 -4
- package/es/Player/contraller_bar/left_bar.js +12 -10
- package/es/Player/contraller_bar/time.d.ts +0 -1
- package/es/Player/demo.d.ts +0 -1
- package/es/Player/empty.d.ts +1 -0
- package/es/Player/empty.js +6 -0
- package/es/Player/event/errorEvent.d.ts +3 -5
- package/es/Player/event/errorEvent.js +7 -8
- package/es/Player/event/index.d.ts +3 -3
- package/es/Player/event/index.js +1 -1
- package/es/Player/fps_play.d.ts +2 -3
- package/es/Player/fps_play.js +10 -8
- package/es/Player/frontend_player.d.ts +0 -1
- package/es/Player/frontend_player.js +13 -10
- package/es/Player/frontend_timeline.d.ts +0 -1
- package/es/Player/frontend_timeline.js +41 -41
- package/es/Player/iconfont.d.ts +0 -1
- package/es/Player/live_heart.d.ts +3 -3
- package/es/Player/live_heart.js +15 -5
- package/es/Player/message.d.ts +0 -1
- package/es/Player/message.js +5 -5
- package/es/Player/segment_player.d.ts +0 -1
- package/es/Player/segment_player.js +31 -24
- package/es/Player/segment_timeline.d.ts +0 -1
- package/es/Player/segment_timeline.js +71 -71
- package/es/Player/single_player.d.ts +1 -1
- package/es/Player/single_player.js +17 -21
- package/es/Player/style/bar.less +13 -9
- package/es/Player/style/index.less +8 -4
- package/es/Player/style/message.less +22 -16
- package/es/Player/style/slider.less +40 -37
- package/es/Player/style/timeline.less +43 -33
- package/es/Player/style/volume.less +7 -4
- package/es/Player/timeline.d.ts +0 -1
- package/es/Player/timeline.js +16 -8
- package/es/Player/util.d.ts +21 -7
- package/es/Player/util.js +82 -58
- package/es/PlayerExt/demo.d.ts +0 -1
- package/es/PlayerExt/index.d.ts +0 -1
- package/es/PlayerExt/index.less +2 -2
- package/es/Progress/index.d.ts +0 -1
- package/es/Progress/index.less +5 -4
- package/es/ROI/demo.d.ts +0 -1
- package/es/ROI/index.less +8 -4
- package/es/ScreenPlayer/Live.d.ts +0 -1
- package/es/ScreenPlayer/RatePick.d.ts +0 -1
- package/es/ScreenPlayer/Record.d.ts +0 -1
- package/es/ScreenPlayer/ScreenSelect.d.ts +0 -1
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -1
- package/es/ScreenPlayer/TimeMode.d.ts +0 -1
- package/es/ScreenPlayer/TimeSelect.d.ts +0 -1
- package/es/ScreenPlayer/demo.d.ts +0 -1
- package/es/ScreenPlayer/demo2.d.ts +0 -1
- package/es/ScreenPlayer/index.d.ts +2 -3
- package/es/ScreenPlayer/index.less +49 -26
- package/es/ScreenPlayer/useTimeSlider.d.ts +0 -1
- package/es/ScreenPlayer/useVideoFit.d.ts +2 -2
- package/es/TableLayout/index.less +1 -1
- package/es/ThemeAntd/demo.d.ts +0 -1
- package/es/ThemeAntd/demo.less +4 -3
- package/es/ThemeAntd/index.less +12 -12
- package/es/ThemeAntd/style/button.less +4 -4
- package/es/ThemeAntd/style/checkbox.less +3 -3
- package/es/ThemeAntd/style/input.less +7 -7
- package/es/ThemeAntd/style/pagination.less +4 -4
- package/es/ThemeAntd/style/picker.less +5 -5
- package/es/ThemeAntd/style/radio.less +2 -2
- package/es/ThemeAntd/style/scrollbar.less +5 -3
- package/es/ThemeAntd/style/select.less +8 -8
- package/es/ThemeAntd/style/table.less +4 -4
- package/es/Timeout/index.d.ts +0 -1
- package/es/Tree/demo.d.ts +0 -1
- package/es/Tree/index.d.ts +1 -1
- package/es/Tree/index.less +13 -12
- package/es/VList/index.d.ts +0 -1
- package/es/useDrawROI/index.d.ts +4 -4
- package/es/useFullscreen/demo.d.ts +0 -1
- package/es/useFullscreen/index.d.ts +4 -5
- package/es/useHistory/index.d.ts +0 -1
- package/es/useSimpleState/index.js +1 -1
- package/es/useVirtualList/index.d.ts +1 -1
- package/package.json +12 -6
- package/tsconfig.json +1 -0
- package/es/Drag/index.less +0 -0
- package/es/Map/LevelCenter/index.less +0 -2
- package/es/Map/MapDrawSelect/index.less +0 -2
- package/es/Map/useMarker/index.less +0 -0
package/es/FullScreen/index.less
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
.tools-screen-layer {
|
|
2
|
-
flex: 1;
|
|
3
|
-
align-self: center;
|
|
4
|
-
text-align: center;
|
|
5
|
-
font-size: var(--fs-small);
|
|
6
2
|
position: relative;
|
|
3
|
+
font-size: var(--fs-small);
|
|
4
|
+
text-align: center;
|
|
7
5
|
cursor: pointer;
|
|
6
|
+
flex: 1;
|
|
7
|
+
align-self: center;
|
|
8
|
+
|
|
8
9
|
.anticon {
|
|
9
10
|
padding-right: 5px;
|
|
10
11
|
}
|
|
12
|
+
|
|
11
13
|
.defualt-fullscreen-icon {
|
|
12
14
|
position: relative;
|
|
13
15
|
top: 1px;
|
package/es/GridList/Demo.d.ts
CHANGED
package/es/GridList/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var GridList = /*#__PURE__*/React.forwardRef(function GridList(props, ref) {
|
|
|
34
34
|
style: {
|
|
35
35
|
height: cell.height,
|
|
36
36
|
// maxWidth: cell.width,
|
|
37
|
-
width:
|
|
37
|
+
width: '100%',
|
|
38
38
|
gridColumnStart: "".concat(cell.columnNumber),
|
|
39
39
|
gridRowStart: getGridRowStart(cell, renderData)
|
|
40
40
|
},
|
package/es/GridList/index.less
CHANGED
package/es/ImageView/index.less
CHANGED
package/es/Input/demo.d.ts
CHANGED
package/es/Input/index.d.ts
CHANGED
package/es/Input/index.less
CHANGED
package/es/LabelValue/index.less
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
.lm-c-label-value-layout {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
font-size: var(--fs-small);
|
|
4
|
+
|
|
4
5
|
span {
|
|
5
6
|
&:first-child {
|
|
6
|
-
white-space: nowrap;
|
|
7
7
|
padding-right: 4px;
|
|
8
8
|
color: var(--color);
|
|
9
|
+
white-space: nowrap;
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
&:last-child {
|
|
11
13
|
flex: 1;
|
|
12
14
|
color: var(--color-dark);
|
|
15
|
+
|
|
13
16
|
&.no-wrap {
|
|
14
|
-
white-space: nowrap;
|
|
15
17
|
overflow: hidden;
|
|
16
18
|
text-overflow: ellipsis;
|
|
19
|
+
white-space: nowrap;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
}
|
package/es/List/demo.d.ts
CHANGED
package/es/List/index.d.ts
CHANGED
|
@@ -33,9 +33,9 @@ declare namespace List {
|
|
|
33
33
|
itemNameKey: string;
|
|
34
34
|
renderHeaderExt: () => JSX.Element;
|
|
35
35
|
};
|
|
36
|
-
var VList:
|
|
37
|
-
var DynamicList:
|
|
38
|
-
var GridList:
|
|
39
|
-
var DynamicGridList:
|
|
36
|
+
var VList: any;
|
|
37
|
+
var DynamicList: any;
|
|
38
|
+
var GridList: any;
|
|
39
|
+
var DynamicGridList: any;
|
|
40
40
|
}
|
|
41
41
|
export default List;
|
package/es/List/index.less
CHANGED
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { IDynamicGridListProps } from '../DynamicGridList';
|
|
3
3
|
import './index.less';
|
|
4
4
|
interface IListWithSizeAnimateProps<T> extends IDynamicGridListProps<T> {
|
|
5
|
-
headerSize: number;
|
|
6
5
|
children?: React.ReactNode;
|
|
7
6
|
header?: React.ReactNode;
|
|
8
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _useEventListener from "ahooks/es/useEventListener";
|
|
2
|
-
var _excluded = ["
|
|
2
|
+
var _excluded = ["header", "children"];
|
|
3
3
|
|
|
4
4
|
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; }
|
|
5
5
|
|
|
@@ -30,10 +30,9 @@ import "./index.less";
|
|
|
30
30
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
31
31
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
32
32
|
var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAnimate(_ref, forwardRef) {
|
|
33
|
-
var _ref$
|
|
33
|
+
var _ref$current2;
|
|
34
34
|
|
|
35
|
-
var
|
|
36
|
-
header = _ref.header,
|
|
35
|
+
var header = _ref.header,
|
|
37
36
|
children = _ref.children,
|
|
38
37
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
39
38
|
|
|
@@ -46,32 +45,25 @@ var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAni
|
|
|
46
45
|
|
|
47
46
|
var ref = useRef(null);
|
|
48
47
|
var headerHeight = useMemo(function () {
|
|
49
|
-
return state.open ?
|
|
48
|
+
return state.open ? 1000 : 0;
|
|
50
49
|
}, [state.open]);
|
|
51
|
-
var contentHeight = useMemo(function () {
|
|
52
|
-
return "calc(100% - ".concat(headerHeight, "px)");
|
|
53
|
-
}, [headerHeight]);
|
|
54
50
|
|
|
55
|
-
_useEventListener('
|
|
56
|
-
|
|
57
|
-
updateState({
|
|
58
|
-
open: false
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}, {
|
|
62
|
-
target: ref
|
|
63
|
-
});
|
|
51
|
+
_useEventListener('scroll', function () {
|
|
52
|
+
var _ref$current;
|
|
64
53
|
|
|
65
|
-
|
|
66
|
-
var _event$currentTarget;
|
|
54
|
+
var ele = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelector('.cloudapp-dynamic-grid-list');
|
|
67
55
|
|
|
68
|
-
if ((
|
|
56
|
+
if ((ele === null || ele === void 0 ? void 0 : ele.scrollTop) === 0) {
|
|
69
57
|
updateState({
|
|
70
58
|
open: true
|
|
71
59
|
});
|
|
60
|
+
} else {
|
|
61
|
+
state.open && updateState({
|
|
62
|
+
open: false
|
|
63
|
+
});
|
|
72
64
|
}
|
|
73
65
|
}, {
|
|
74
|
-
target: (_ref$
|
|
66
|
+
target: (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.querySelector('.cloudapp-dynamic-grid-list')
|
|
75
67
|
});
|
|
76
68
|
|
|
77
69
|
useImperativeHandle(forwardRef, function () {
|
|
@@ -87,21 +79,22 @@ var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAni
|
|
|
87
79
|
});
|
|
88
80
|
},
|
|
89
81
|
backTop: function backTop() {
|
|
90
|
-
var _ref$
|
|
82
|
+
var _ref$current3, _ref$current3$querySe;
|
|
91
83
|
|
|
92
|
-
return (_ref$
|
|
84
|
+
return (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : (_ref$current3$querySe = _ref$current3.querySelector('.cloudapp-dynamic-grid-list')) === null || _ref$current3$querySe === void 0 ? void 0 : _ref$current3$querySe.scrollTo({
|
|
93
85
|
top: 0
|
|
94
86
|
});
|
|
95
87
|
}
|
|
96
88
|
};
|
|
97
|
-
},
|
|
89
|
+
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
90
|
+
[]);
|
|
98
91
|
return /*#__PURE__*/_jsxs("div", {
|
|
99
92
|
className: "list-with-size-animate-layout",
|
|
100
93
|
ref: ref,
|
|
101
94
|
children: [/*#__PURE__*/_jsx("div", {
|
|
102
95
|
className: "list-animate-header",
|
|
103
96
|
style: {
|
|
104
|
-
|
|
97
|
+
maxHeight: headerHeight,
|
|
105
98
|
overflow: !state.open ? 'hidden' : undefined
|
|
106
99
|
},
|
|
107
100
|
children: /*#__PURE__*/_jsx("div", {
|
|
@@ -110,9 +103,6 @@ var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAni
|
|
|
110
103
|
})
|
|
111
104
|
}), /*#__PURE__*/_jsxs("div", {
|
|
112
105
|
className: "list-animate-content",
|
|
113
|
-
style: {
|
|
114
|
-
height: contentHeight
|
|
115
|
-
},
|
|
116
106
|
children: [/*#__PURE__*/_jsx("div", {
|
|
117
107
|
className: "list-animate-content-ext",
|
|
118
108
|
children: children
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
.list-with-size-animate-layout {
|
|
2
|
-
|
|
2
|
+
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
|
+
height: 100%;
|
|
4
5
|
overflow: hidden;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
|
|
5
8
|
.list-animate-header {
|
|
6
|
-
|
|
7
|
-
transition: height 0.3s;
|
|
9
|
+
transition: max-height .2s;
|
|
8
10
|
}
|
|
11
|
+
|
|
9
12
|
.list-animate-content {
|
|
10
|
-
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
transition: height 0.3s;
|
|
13
|
+
flex: 1;
|
|
13
14
|
display: flex;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
transition: height .2s;
|
|
14
17
|
flex-direction: column;
|
|
18
|
+
|
|
15
19
|
.cloudapp-dynamic-grid-list {
|
|
16
20
|
flex: 1;
|
|
17
21
|
}
|
|
@@ -10,7 +10,7 @@ declare class LeafletInstance implements IMapInstance {
|
|
|
10
10
|
mapReset(): void;
|
|
11
11
|
setZoom(zoom: number): void;
|
|
12
12
|
setCenter(center: [number, number] | LatLng): void;
|
|
13
|
-
getZoom():
|
|
13
|
+
getZoom(): any;
|
|
14
14
|
on(type: string, fn: (event: any) => void): void;
|
|
15
15
|
off(type: string, fn: (event: any) => void): void;
|
|
16
16
|
setCursor(cursor: string): void;
|
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
.c-map-container {
|
|
2
|
+
position: relative;
|
|
2
3
|
width: 100%;
|
|
3
4
|
height: 100%;
|
|
4
|
-
|
|
5
|
+
|
|
5
6
|
.amap-container {
|
|
6
7
|
width: 100%;
|
|
7
8
|
height: 100%;
|
|
9
|
+
|
|
8
10
|
.amap-logo {
|
|
9
11
|
display: none !important;
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
.amap-copyright {
|
|
12
15
|
display: none !important;
|
|
13
16
|
}
|
|
14
17
|
}
|
|
18
|
+
|
|
15
19
|
.leaflet-container {
|
|
20
|
+
z-index: 1;
|
|
16
21
|
width: 100%;
|
|
17
22
|
height: 100%;
|
|
18
|
-
z-index: 1;
|
|
19
23
|
}
|
|
24
|
+
|
|
20
25
|
.leaflet-div-icon {
|
|
21
|
-
border: none;
|
|
22
26
|
background-color: transparent;
|
|
27
|
+
border: none;
|
|
23
28
|
}
|
|
24
29
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="../AMap.d.ts" />
|
|
2
|
-
import { MapPoint,
|
|
2
|
+
import { MapPoint, LClusterInterface } from '../interface';
|
|
3
3
|
import './index.less';
|
|
4
4
|
export declare function useMarkerCluster(onPointClick?: (point: MapPoint) => void): (LClusterInterface & AMap.MarkerCluster) | null;
|
|
5
|
-
export declare function useMarkers(points?: MapPoint[]):
|
|
5
|
+
export declare function useMarkers(points?: MapPoint[]): any[];
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
.c-cluster-marker-layout {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
2
4
|
width: 35px;
|
|
3
5
|
height: 35px;
|
|
4
|
-
display: flex;
|
|
5
6
|
justify-content: center;
|
|
6
7
|
align-items: center;
|
|
7
|
-
|
|
8
|
+
|
|
8
9
|
& > div {
|
|
10
|
+
display: flex;
|
|
9
11
|
width: 28px;
|
|
10
12
|
height: 28px;
|
|
13
|
+
line-height: 28px;
|
|
14
|
+
text-align: center;
|
|
11
15
|
border-radius: 50%;
|
|
12
|
-
display: flex;
|
|
13
16
|
justify-content: center;
|
|
14
17
|
align-items: center;
|
|
15
|
-
box-shadow: 0 0 4px 0
|
|
16
|
-
|
|
17
|
-
line-height: 28px;
|
|
18
|
+
box-shadow: 0 0 4px 0 rgb(0 0 0 / 30%);
|
|
19
|
+
|
|
18
20
|
.anticon {
|
|
19
21
|
font-size: 17px;
|
|
20
22
|
color: #fff;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LatLng, MapPoint } from '../interface';
|
|
3
|
-
import './index.less';
|
|
4
3
|
export interface ILevelCenter {
|
|
5
4
|
center?: [number, number];
|
|
6
5
|
zoom?: number;
|
|
@@ -12,5 +11,5 @@ export interface ILevelCenter {
|
|
|
12
11
|
}) => void;
|
|
13
12
|
children?: React.ReactNode;
|
|
14
13
|
}
|
|
15
|
-
declare const _default:
|
|
14
|
+
declare const _default: any;
|
|
16
15
|
export default _default;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _useMount from "ahooks/es/useMount";
|
|
2
2
|
import React, { useCallback, useContext, useMemo } from 'react';
|
|
3
3
|
import ClusterLayer from "../ClusterLayer";
|
|
4
|
-
import ResetTools from "../ResetTools";
|
|
5
|
-
import DragMarker from "./DragMarker";
|
|
6
|
-
import withMap from "../withMap";
|
|
7
4
|
import { mapContext } from "../Context";
|
|
8
5
|
import useMapEvent from "../hook/useMapEvent";
|
|
9
|
-
import "
|
|
6
|
+
import ResetTools from "../ResetTools";
|
|
7
|
+
import withMap from "../withMap";
|
|
8
|
+
import DragMarker from "./DragMarker";
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
10
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawType, MapPoint } from '../interface';
|
|
3
|
-
import './index.less';
|
|
4
3
|
export interface IMapDrawSelectProps {
|
|
5
4
|
center?: [number, number];
|
|
6
5
|
zoom?: number;
|
|
@@ -12,5 +11,5 @@ export interface IMapDrawSelectProps {
|
|
|
12
11
|
drawEnd?: (points: MapPoint[]) => void;
|
|
13
12
|
onPointClick?: (point: MapPoint) => void;
|
|
14
13
|
}
|
|
15
|
-
declare const _default:
|
|
14
|
+
declare const _default: any;
|
|
16
15
|
export default _default;
|
|
@@ -2,11 +2,10 @@ import _useUpdateEffect from "ahooks/es/useUpdateEffect";
|
|
|
2
2
|
import _useMount from "ahooks/es/useMount";
|
|
3
3
|
import React, { useCallback, useContext, useEffect, useMemo } from 'react';
|
|
4
4
|
import ClusterLayer from "../ClusterLayer";
|
|
5
|
-
import ResetTools from "../ResetTools";
|
|
6
|
-
import withMap from "../withMap";
|
|
7
5
|
import { mapContext } from "../Context";
|
|
8
6
|
import MouseTool from "../MouseTool";
|
|
9
|
-
import "
|
|
7
|
+
import ResetTools from "../ResetTools";
|
|
8
|
+
import withMap from "../withMap";
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
10
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -4,23 +4,27 @@
|
|
|
4
4
|
bottom: 10px;
|
|
5
5
|
z-index: 3;
|
|
6
6
|
padding: 5px 0;
|
|
7
|
-
background: #
|
|
7
|
+
background: #fff;
|
|
8
|
+
|
|
8
9
|
.map-reset,
|
|
9
10
|
.map-zoom {
|
|
10
|
-
background: #
|
|
11
|
+
background: #fff;
|
|
11
12
|
}
|
|
13
|
+
|
|
12
14
|
.map-zoom {
|
|
13
15
|
margin-bottom: 0;
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
.map-tool-icon {
|
|
19
|
+
display: flex;
|
|
16
20
|
width: 30px;
|
|
17
21
|
height: 25px;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
22
|
font-size: 18px;
|
|
22
|
-
color:
|
|
23
|
+
color: var(--icon);
|
|
23
24
|
cursor: pointer;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
|
|
24
28
|
&:hover {
|
|
25
29
|
color: var(--primary);
|
|
26
30
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.single-point-map-container {
|
|
2
2
|
.marker-center-layout {
|
|
3
|
-
text-align: center;
|
|
4
3
|
width: 32px;
|
|
5
4
|
height: 42px;
|
|
6
5
|
margin-top: -10px;
|
|
6
|
+
text-align: center;
|
|
7
7
|
|
|
8
8
|
> div {
|
|
9
9
|
width: 100%;
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.anticon {
|
|
35
|
-
font-size: 18px;
|
|
36
|
-
color: white;
|
|
37
35
|
position: relative;
|
|
38
36
|
top: 1px;
|
|
37
|
+
font-size: 18px;
|
|
38
|
+
color: white;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
package/es/Map/icon.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const LevelCenterCenterSvg = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"28px\" height=\"40px\" viewBox=\"0 0 28 40\" version=\"1.1\"><defs><linearGradient x1=\"6.38826004%\" y1=\"96.2639042%\" x2=\"66.7998206%\" y2=\"14.972142%\" id=\"linearGradient-1\"><stop stop-color=\"#000000\" stop-opacity=\"0.2\" offset=\"0%\"/><stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"100%\"/></linearGradient></defs><g id=\"Img/Add\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><path d=\"M22,28 L28,28 L15.2872963,39.7348034 C15.102574,39.9053163 14.8604062,40 14.6090162,40 L14,40 C13.7238576,40 13.5,39.7761424 13.5,39.5 C13.5,39.3918149 13.5350889,39.2865481 13.6,39.2 L22,28 Z\" id=\"Rectangle\" fill=\"url(#linearGradient-1)\"/><path d=\"M11,23 L17,23 L15.103901,39.1168412 C15.0446525,39.6204542 14.6178366,40 14.1107504,40 L13.8892496,40 C13.3821634,40 12.9553475,39.6204542 12.896099,39.1168412 L11,23 Z\" id=\"Rectangle\" fill=\"#FF8800\"/><circle id=\"Oval\" stroke=\"#FF8800\" fill=\"#FFAA00\" cx=\"14\" cy=\"12\" r=\"11.5\"/><circle id=\"Oval\" fill=\"#FF8800\" cx=\"15\" cy=\"13\" r=\"4\"/><circle id=\"Oval\" fill=\"#FFFFFF\" cx=\"14\" cy=\"12\" r=\"4\"/></g></svg>";
|
|
2
|
-
export declare function createMapCenterIcon():
|
|
2
|
+
export declare function createMapCenterIcon(): any;
|
package/es/Map/index.d.ts
CHANGED
|
@@ -1,24 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import ClusterLayer from './ClusterLayer';
|
|
3
|
-
import Config from './Config';
|
|
4
|
-
import Context from './Context';
|
|
5
|
-
import FindPio from './FindPio';
|
|
6
|
-
import LoaderMap from './LoaderMap';
|
|
7
|
-
import BasicMap from './BasicMap';
|
|
8
|
-
import ResetTools from './ResetTools';
|
|
9
|
-
import useMarker from './useMarker';
|
|
10
|
-
import withMap from './withMap';
|
|
11
1
|
declare const Map: {
|
|
12
|
-
ClusterLayer:
|
|
13
|
-
Config:
|
|
14
|
-
Context:
|
|
15
|
-
FindPio:
|
|
16
|
-
LevelCenter:
|
|
17
|
-
LoaderMap:
|
|
18
|
-
BasicMap:
|
|
19
|
-
ResetTools:
|
|
20
|
-
SinglePoint:
|
|
21
|
-
useMarker:
|
|
22
|
-
withMap:
|
|
2
|
+
ClusterLayer: any;
|
|
3
|
+
Config: any;
|
|
4
|
+
Context: any;
|
|
5
|
+
FindPio: any;
|
|
6
|
+
LevelCenter: any;
|
|
7
|
+
LoaderMap: any;
|
|
8
|
+
BasicMap: any;
|
|
9
|
+
ResetTools: any;
|
|
10
|
+
SinglePoint: any;
|
|
11
|
+
useMarker: any;
|
|
12
|
+
withMap: any;
|
|
23
13
|
};
|
|
24
14
|
export default Map;
|
|
@@ -16,10 +16,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
16
16
|
|
|
17
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
18
|
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
19
20
|
/// <reference path="../AMap.d.ts" />
|
|
20
21
|
import { useEffect, useRef, useState } from 'react';
|
|
21
22
|
import useMapType from "../hook/useMapType";
|
|
22
|
-
import "./index.less";
|
|
23
23
|
|
|
24
24
|
function useMarker(_ref) {
|
|
25
25
|
var map = _ref.map,
|
package/es/Modal/demo.d.ts
CHANGED