@vtx/cs-map-layer 1.0.23 → 1.0.24
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/LICENSE +21 -21
- package/README.md +40 -40
- package/lib/DeviceLayer/index.js +3 -0
- package/lib/Layer/index.js +2 -2
- package/lib/Layer/layerConfig.js +6 -6
- package/lib/WaterSupplyPointLayer/index.js +2 -2
- package/lib/_components/Template/CloseBtn.js +1 -1
- package/lib/_components/Template/DeviceCustomContent.d.ts +1 -1
- package/lib/_components/Template/FacilityCustomContent.d.ts +1 -1
- package/lib/_components/Template/index.less +15 -15
- package/lib/_util/http.js +18 -18
- package/lib/_util/interface.js +2 -2
- package/lib/typings.d.ts +4 -4
- package/package.json +106 -106
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
# @vtx/cs-map-layer
|
|
2
|
-
|
|
3
|
-
[](https://npmjs.org/package/@vtx/cs-map-layer)
|
|
4
|
-
[](https://npmjs.org/package/@vtx/cs-map-layer)
|
|
5
|
-
|
|
6
|
-
React components for Vortex
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
TODO
|
|
11
|
-
|
|
12
|
-
## Options
|
|
13
|
-
|
|
14
|
-
TODO
|
|
15
|
-
|
|
16
|
-
## Development
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# install dependencies
|
|
20
|
-
$ yarn install
|
|
21
|
-
|
|
22
|
-
# develop library by docs demo
|
|
23
|
-
$ yarn start
|
|
24
|
-
|
|
25
|
-
# build library source code
|
|
26
|
-
$ yarn run build
|
|
27
|
-
|
|
28
|
-
# build library source code in watch mode
|
|
29
|
-
$ yarn run build:watch
|
|
30
|
-
|
|
31
|
-
# build docs
|
|
32
|
-
$ yarn run docs:build
|
|
33
|
-
|
|
34
|
-
# check your project for potential problems
|
|
35
|
-
$ yarn run doctor
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## LICENSE
|
|
39
|
-
|
|
40
|
-
MIT
|
|
1
|
+
# @vtx/cs-map-layer
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.org/package/@vtx/cs-map-layer)
|
|
4
|
+
[](https://npmjs.org/package/@vtx/cs-map-layer)
|
|
5
|
+
|
|
6
|
+
React components for Vortex
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
TODO
|
|
11
|
+
|
|
12
|
+
## Options
|
|
13
|
+
|
|
14
|
+
TODO
|
|
15
|
+
|
|
16
|
+
## Development
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# install dependencies
|
|
20
|
+
$ yarn install
|
|
21
|
+
|
|
22
|
+
# develop library by docs demo
|
|
23
|
+
$ yarn start
|
|
24
|
+
|
|
25
|
+
# build library source code
|
|
26
|
+
$ yarn run build
|
|
27
|
+
|
|
28
|
+
# build library source code in watch mode
|
|
29
|
+
$ yarn run build:watch
|
|
30
|
+
|
|
31
|
+
# build docs
|
|
32
|
+
$ yarn run docs:build
|
|
33
|
+
|
|
34
|
+
# check your project for potential problems
|
|
35
|
+
$ yarn run doctor
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## LICENSE
|
|
39
|
+
|
|
40
|
+
MIT
|
package/lib/DeviceLayer/index.js
CHANGED
|
@@ -102,6 +102,9 @@ var DeviceLayer = function DeviceLayer(props) {
|
|
|
102
102
|
var _icon = icon || styleOption.icon;
|
|
103
103
|
var getProps = function getProps(status) {
|
|
104
104
|
var color = deviceColorMap[status];
|
|
105
|
+
if (status == 1) {
|
|
106
|
+
color = styleOption.color || deviceColorMap[status];
|
|
107
|
+
}
|
|
105
108
|
var _legend = {
|
|
106
109
|
color: color,
|
|
107
110
|
icon: _icon
|
package/lib/Layer/index.js
CHANGED
|
@@ -3,8 +3,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
6
|
-
/*
|
|
7
|
-
* @description: 排水-雨水管线图层
|
|
6
|
+
/*
|
|
7
|
+
* @description: 排水-雨水管线图层
|
|
8
8
|
*/
|
|
9
9
|
import { FeatureLayer, GroupLayer, ImageLayer } from '@vtx/cs-map';
|
|
10
10
|
import React from 'react';
|
package/lib/Layer/layerConfig.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* type:类型 FacilityLayer-设施 DeviceLayer-设备 排水管点-WaterDrainPointLayer 排水管线-WaterDrainLineLayer 排水窨井-WaterSupplyPointLayer
|
|
2
|
-
视频-VideoLayer 行政区划-DivisionLayer 排水-雨水-管点-RainPointLayer 排水-雨水-管线-RainLineLayer 排水-雨水-窨井-RainManholeLayer
|
|
3
|
-
排水-污水-管点-SewagePointLayer 排水-污水-管线-SewageLineLayer 排水-污水-窨井-SewageManholeLayer 排水-合流-管点-ConfluencePointLayer
|
|
4
|
-
排水-合流-管线-ConfluenceLineLayer 排水-合流-窨井-ConfluenceManholeLayer 供水-管点-WaterSupplyPointLayer 供水-管线-WaterSupplyLineLayer
|
|
5
|
-
原水-管点-RawWaterPointLayer 原水-管线-RawWaterLineLayer
|
|
6
|
-
自定义图层-CustomLayer
|
|
1
|
+
/* type:类型 FacilityLayer-设施 DeviceLayer-设备 排水管点-WaterDrainPointLayer 排水管线-WaterDrainLineLayer 排水窨井-WaterSupplyPointLayer
|
|
2
|
+
视频-VideoLayer 行政区划-DivisionLayer 排水-雨水-管点-RainPointLayer 排水-雨水-管线-RainLineLayer 排水-雨水-窨井-RainManholeLayer
|
|
3
|
+
排水-污水-管点-SewagePointLayer 排水-污水-管线-SewageLineLayer 排水-污水-窨井-SewageManholeLayer 排水-合流-管点-ConfluencePointLayer
|
|
4
|
+
排水-合流-管线-ConfluenceLineLayer 排水-合流-窨井-ConfluenceManholeLayer 供水-管点-WaterSupplyPointLayer 供水-管线-WaterSupplyLineLayer
|
|
5
|
+
原水-管点-RawWaterPointLayer 原水-管线-RawWaterLineLayer
|
|
6
|
+
自定义图层-CustomLayer
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
var layerConfig = [{
|
|
@@ -8,8 +8,8 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
8
8
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
-
/**
|
|
12
|
-
*供水管点
|
|
11
|
+
/**
|
|
12
|
+
*供水管点
|
|
13
13
|
*/
|
|
14
14
|
import { ImageLayer } from '@vtx/cs-map';
|
|
15
15
|
import { isArray, isEmpty } from 'lodash';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExclamationCircleOutlined } from "@ant-design/icons";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import "./index.less";
|
|
3
4
|
import { useProps } from '@vtx/cs-map';
|
|
4
|
-
import React from 'react';
|
|
5
5
|
var CloseBtn = function CloseBtn(props) {
|
|
6
6
|
var feature = props.feature,
|
|
7
7
|
type = props.type;
|
|
@@ -13,7 +13,7 @@ declare namespace CustomContent {
|
|
|
13
13
|
deviceDetail: PropTypes.Requireable<object>;
|
|
14
14
|
deviceData: PropTypes.Requireable<object>;
|
|
15
15
|
valueField: PropTypes.Requireable<string>;
|
|
16
|
-
customButton: PropTypes.Requireable<NonNullable<((...args: any[]) => any) |
|
|
16
|
+
customButton: PropTypes.Requireable<NonNullable<PropTypes.ReactElementLike | ((...args: any[]) => any) | null | undefined>>;
|
|
17
17
|
popup: PropTypes.Requireable<object>;
|
|
18
18
|
detail: PropTypes.Requireable<object>;
|
|
19
19
|
};
|
|
@@ -12,7 +12,7 @@ declare namespace CustomContent {
|
|
|
12
12
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
13
|
facilityDetail: PropTypes.Requireable<object>;
|
|
14
14
|
valueField: PropTypes.Requireable<string>;
|
|
15
|
-
customButton: PropTypes.Requireable<NonNullable<((...args: any[]) => any) |
|
|
15
|
+
customButton: PropTypes.Requireable<NonNullable<PropTypes.ReactElementLike | ((...args: any[]) => any) | null | undefined>>;
|
|
16
16
|
popup: PropTypes.Requireable<object>;
|
|
17
17
|
detail: PropTypes.Requireable<object>;
|
|
18
18
|
extraKeyParamList: PropTypes.Requireable<any[]>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
.close-btn {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: 12px;
|
|
4
|
-
right: 30px;
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.cesium-popup-v1{
|
|
9
|
-
width: 300px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.facility-layer-custom-button {
|
|
13
|
-
padding: 8px 10px 0;
|
|
14
|
-
text-align: right;
|
|
15
|
-
}
|
|
1
|
+
.close-btn {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 12px;
|
|
4
|
+
right: 30px;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.cesium-popup-v1{
|
|
9
|
+
width: 300px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.facility-layer-custom-button {
|
|
13
|
+
padding: 8px 10px 0;
|
|
14
|
+
text-align: right;
|
|
15
|
+
}
|
package/lib/_util/http.js
CHANGED
|
@@ -19,10 +19,10 @@ import { getVtxToken } from "@vtx/utils";
|
|
|
19
19
|
// 默认30秒超时
|
|
20
20
|
var SECOND = 30;
|
|
21
21
|
var MILL_SECOND = 1000;
|
|
22
|
-
/**
|
|
23
|
-
* 基于 axios 封装的请求封装
|
|
24
|
-
* axios文档 http://www.axios-js.com/zh-cn/docs/
|
|
25
|
-
* 支持 Get 和 Post 请求
|
|
22
|
+
/**
|
|
23
|
+
* 基于 axios 封装的请求封装
|
|
24
|
+
* axios文档 http://www.axios-js.com/zh-cn/docs/
|
|
25
|
+
* 支持 Get 和 Post 请求
|
|
26
26
|
*/
|
|
27
27
|
var Http = /*#__PURE__*/function () {
|
|
28
28
|
function Http(options) {
|
|
@@ -57,10 +57,10 @@ var Http = /*#__PURE__*/function () {
|
|
|
57
57
|
return instance;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
/**
|
|
61
|
-
* get 请求
|
|
62
|
-
* @param {*} url
|
|
63
|
-
* @param {*} options {body}
|
|
60
|
+
/**
|
|
61
|
+
* get 请求
|
|
62
|
+
* @param {*} url
|
|
63
|
+
* @param {*} options {body}
|
|
64
64
|
*/
|
|
65
65
|
}, {
|
|
66
66
|
key: "get",
|
|
@@ -78,10 +78,10 @@ var Http = /*#__PURE__*/function () {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
/**
|
|
82
|
-
* post 请求
|
|
83
|
-
* @param {*} url
|
|
84
|
-
* @param {*} options
|
|
81
|
+
/**
|
|
82
|
+
* post 请求
|
|
83
|
+
* @param {*} url
|
|
84
|
+
* @param {*} options
|
|
85
85
|
*/
|
|
86
86
|
}, {
|
|
87
87
|
key: "post",
|
|
@@ -99,9 +99,9 @@ var Http = /*#__PURE__*/function () {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
/**
|
|
103
|
-
* 响应数据的处理
|
|
104
|
-
* @param {*} response
|
|
102
|
+
/**
|
|
103
|
+
* 响应数据的处理
|
|
104
|
+
* @param {*} response
|
|
105
105
|
*/
|
|
106
106
|
}, {
|
|
107
107
|
key: "_responseHandler",
|
|
@@ -122,9 +122,9 @@ var Http = /*#__PURE__*/function () {
|
|
|
122
122
|
throw error;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
/**
|
|
126
|
-
* 请求错误处理
|
|
127
|
-
* @param {*} error
|
|
125
|
+
/**
|
|
126
|
+
* 请求错误处理
|
|
127
|
+
* @param {*} error
|
|
128
128
|
*/
|
|
129
129
|
}, {
|
|
130
130
|
key: "_errorHandler",
|
package/lib/_util/interface.js
CHANGED
|
@@ -71,8 +71,8 @@ export var DEVICE_CODE = /*#__PURE__*/function (DEVICE_CODE) {
|
|
|
71
71
|
return DEVICE_CODE;
|
|
72
72
|
}({});
|
|
73
73
|
|
|
74
|
-
/**
|
|
75
|
-
* 管点特征枚举
|
|
74
|
+
/**
|
|
75
|
+
* 管点特征枚举
|
|
76
76
|
*/
|
|
77
77
|
export var POINT_CHARACTERISTICS = /*#__PURE__*/function (POINT_CHARACTERISTICS) {
|
|
78
78
|
POINT_CHARACTERISTICS[POINT_CHARACTERISTICS["GD_BZ"] = 1] = "GD_BZ";
|
package/lib/typings.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module '@vtx/cs-map'
|
|
2
|
-
declare module '@vtx/utils'
|
|
3
|
-
declare module '@vtx/map-icon'
|
|
4
|
-
declare module '@ant-design/icons'
|
|
1
|
+
declare module '@vtx/cs-map'
|
|
2
|
+
declare module '@vtx/utils'
|
|
3
|
+
declare module '@vtx/map-icon'
|
|
4
|
+
declare module '@ant-design/icons'
|
package/package.json
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vtx/cs-map-layer",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "React components for Vortex",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"module": "lib/index.js",
|
|
7
|
-
"types": "lib/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"lib"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "father build",
|
|
13
|
-
"build:watch": "father dev",
|
|
14
|
-
"cesium:fix": "node ./scripts/cesium-fix.js",
|
|
15
|
-
"dev": "npm run cesium:fix && dumi dev",
|
|
16
|
-
"docs:build": "npm run cesium:fix && dumi build",
|
|
17
|
-
"doctor": "father doctor",
|
|
18
|
-
"lint": "npm run lint:es && npm run lint:css",
|
|
19
|
-
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
20
|
-
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
21
|
-
"prepublishOnly": "npm run build",
|
|
22
|
-
"start": "npm run dev"
|
|
23
|
-
},
|
|
24
|
-
"husky": {
|
|
25
|
-
"hooks": {
|
|
26
|
-
"pre-commit": "lint-staged",
|
|
27
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"commitlint": {
|
|
31
|
-
"extends": [
|
|
32
|
-
"@commitlint/config-conventional"
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
"lint-staged": {
|
|
36
|
-
"*.{md,json}": [
|
|
37
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
|
38
|
-
],
|
|
39
|
-
"*.{css,less}": [
|
|
40
|
-
"stylelint --fix",
|
|
41
|
-
"prettier --write"
|
|
42
|
-
],
|
|
43
|
-
"*.{js,jsx}": [
|
|
44
|
-
"eslint --fix",
|
|
45
|
-
"prettier --write"
|
|
46
|
-
],
|
|
47
|
-
"*.{ts,tsx}": [
|
|
48
|
-
"eslint --fix",
|
|
49
|
-
"prettier --parser=typescript --write"
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"@ant-design/icons-svg": "^4.4.2",
|
|
54
|
-
"@vtx/utils": "latest",
|
|
55
|
-
"ahooks": "^3.1.5",
|
|
56
|
-
"cesium": "1.90.0",
|
|
57
|
-
"classnames": "^2.5.1",
|
|
58
|
-
"lodash": "^4.17.21",
|
|
59
|
-
"moment": "^2.29.1",
|
|
60
|
-
"prop-types": "^15.8.1",
|
|
61
|
-
"qs": "^6.0.0"
|
|
62
|
-
},
|
|
63
|
-
"devDependencies": {
|
|
64
|
-
"@ant-design/icons": "4.7.0",
|
|
65
|
-
"@babel/runtime": "^7.6.3",
|
|
66
|
-
"@commitlint/cli": "^17.1.2",
|
|
67
|
-
"@commitlint/config-conventional": "^17.1.0",
|
|
68
|
-
"@turf/turf": "^6.5.0",
|
|
69
|
-
"@types/lodash": "^4.14.202",
|
|
70
|
-
"@types/prop-types": "^15.7.15",
|
|
71
|
-
"@types/qs": "^6.9.11",
|
|
72
|
-
"@types/react": "^18.0.0",
|
|
73
|
-
"@types/react-dom": "^18.0.0",
|
|
74
|
-
"@umijs/lint": "^4.0.0",
|
|
75
|
-
"@vtx/cs-map": "latest",
|
|
76
|
-
"@vtx/map-icon": "^2.0.16",
|
|
77
|
-
"antd": "4.20.5",
|
|
78
|
-
"axios": "^0.21.1",
|
|
79
|
-
"babel-plugin-import": "^1.13.8",
|
|
80
|
-
"dumi": "^2.2.13",
|
|
81
|
-
"eslint": "^8.23.0",
|
|
82
|
-
"father": "^4.1.0",
|
|
83
|
-
"husky": "^8.0.1",
|
|
84
|
-
"lint-staged": "^13.0.3",
|
|
85
|
-
"prettier": "^2.7.1",
|
|
86
|
-
"prettier-plugin-organize-imports": "^3.0.0",
|
|
87
|
-
"prettier-plugin-packagejson": "^2.2.18",
|
|
88
|
-
"react": "^18.0.0",
|
|
89
|
-
"react-dom": "^18.0.0",
|
|
90
|
-
"stylelint": "^14.9.1"
|
|
91
|
-
},
|
|
92
|
-
"peerDependencies": {
|
|
93
|
-
"@ant-design/icons": ">=4.0.0",
|
|
94
|
-
"@vtx/cs-map": ">=1.0.40",
|
|
95
|
-
"@vtx/map-icon": ">=2.0.0",
|
|
96
|
-
"antd": ">4.0.0",
|
|
97
|
-
"axios": ">=0.21.1",
|
|
98
|
-
"react": ">=16.9.0",
|
|
99
|
-
"react-dom": ">=16.9.0"
|
|
100
|
-
},
|
|
101
|
-
"publishConfig": {
|
|
102
|
-
"access": "public"
|
|
103
|
-
},
|
|
104
|
-
"authors": [],
|
|
105
|
-
"slideEffects": false
|
|
106
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@vtx/cs-map-layer",
|
|
3
|
+
"version": "1.0.24",
|
|
4
|
+
"description": "React components for Vortex",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "father build",
|
|
13
|
+
"build:watch": "father dev",
|
|
14
|
+
"cesium:fix": "node ./scripts/cesium-fix.js",
|
|
15
|
+
"dev": "npm run cesium:fix && dumi dev",
|
|
16
|
+
"docs:build": "npm run cesium:fix && dumi build",
|
|
17
|
+
"doctor": "father doctor",
|
|
18
|
+
"lint": "npm run lint:es && npm run lint:css",
|
|
19
|
+
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
20
|
+
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
21
|
+
"prepublishOnly": "npm run build",
|
|
22
|
+
"start": "npm run dev"
|
|
23
|
+
},
|
|
24
|
+
"husky": {
|
|
25
|
+
"hooks": {
|
|
26
|
+
"pre-commit": "lint-staged",
|
|
27
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"commitlint": {
|
|
31
|
+
"extends": [
|
|
32
|
+
"@commitlint/config-conventional"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"lint-staged": {
|
|
36
|
+
"*.{md,json}": [
|
|
37
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
|
38
|
+
],
|
|
39
|
+
"*.{css,less}": [
|
|
40
|
+
"stylelint --fix",
|
|
41
|
+
"prettier --write"
|
|
42
|
+
],
|
|
43
|
+
"*.{js,jsx}": [
|
|
44
|
+
"eslint --fix",
|
|
45
|
+
"prettier --write"
|
|
46
|
+
],
|
|
47
|
+
"*.{ts,tsx}": [
|
|
48
|
+
"eslint --fix",
|
|
49
|
+
"prettier --parser=typescript --write"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@ant-design/icons-svg": "^4.4.2",
|
|
54
|
+
"@vtx/utils": "latest",
|
|
55
|
+
"ahooks": "^3.1.5",
|
|
56
|
+
"cesium": "1.90.0",
|
|
57
|
+
"classnames": "^2.5.1",
|
|
58
|
+
"lodash": "^4.17.21",
|
|
59
|
+
"moment": "^2.29.1",
|
|
60
|
+
"prop-types": "^15.8.1",
|
|
61
|
+
"qs": "^6.0.0"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@ant-design/icons": "4.7.0",
|
|
65
|
+
"@babel/runtime": "^7.6.3",
|
|
66
|
+
"@commitlint/cli": "^17.1.2",
|
|
67
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
68
|
+
"@turf/turf": "^6.5.0",
|
|
69
|
+
"@types/lodash": "^4.14.202",
|
|
70
|
+
"@types/prop-types": "^15.7.15",
|
|
71
|
+
"@types/qs": "^6.9.11",
|
|
72
|
+
"@types/react": "^18.0.0",
|
|
73
|
+
"@types/react-dom": "^18.0.0",
|
|
74
|
+
"@umijs/lint": "^4.0.0",
|
|
75
|
+
"@vtx/cs-map": "latest",
|
|
76
|
+
"@vtx/map-icon": "^2.0.16",
|
|
77
|
+
"antd": "4.20.5",
|
|
78
|
+
"axios": "^0.21.1",
|
|
79
|
+
"babel-plugin-import": "^1.13.8",
|
|
80
|
+
"dumi": "^2.2.13",
|
|
81
|
+
"eslint": "^8.23.0",
|
|
82
|
+
"father": "^4.1.0",
|
|
83
|
+
"husky": "^8.0.1",
|
|
84
|
+
"lint-staged": "^13.0.3",
|
|
85
|
+
"prettier": "^2.7.1",
|
|
86
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
|
87
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
|
88
|
+
"react": "^18.0.0",
|
|
89
|
+
"react-dom": "^18.0.0",
|
|
90
|
+
"stylelint": "^14.9.1"
|
|
91
|
+
},
|
|
92
|
+
"peerDependencies": {
|
|
93
|
+
"@ant-design/icons": ">=4.0.0",
|
|
94
|
+
"@vtx/cs-map": ">=1.0.40",
|
|
95
|
+
"@vtx/map-icon": ">=2.0.0",
|
|
96
|
+
"antd": ">4.0.0",
|
|
97
|
+
"axios": ">=0.21.1",
|
|
98
|
+
"react": ">=16.9.0",
|
|
99
|
+
"react-dom": ">=16.9.0"
|
|
100
|
+
},
|
|
101
|
+
"publishConfig": {
|
|
102
|
+
"access": "public"
|
|
103
|
+
},
|
|
104
|
+
"authors": [],
|
|
105
|
+
"slideEffects": false
|
|
106
|
+
}
|