@zhnyfe/zhnyfe_xnom 0.0.0-alpha.7 → 0.0.0-alpha.8
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/package.json +6 -5
- package/src/index.d.ts +39 -0
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhnyfe/zhnyfe_xnom",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.8",
|
|
4
4
|
"description": "先农数科前端团队openlayers功能相关的SDK,目标:所有前端Gis地图相关模块的唯一官方指定SDK",
|
|
5
5
|
"main": "dist/sdk.common.js",
|
|
6
6
|
"module": "dist/sdk.esm.js",
|
|
7
|
-
"types": "./
|
|
7
|
+
"types": "./src/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": "./dist/sdk.esm.js",
|
|
11
11
|
"require": "./dist/sdk.common.js",
|
|
12
12
|
"browser": "./dist/sdk.umd.js",
|
|
13
|
-
"types": "./
|
|
13
|
+
"types": "./src/index.d.ts"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist/*",
|
|
22
|
-
"index.d.ts"
|
|
22
|
+
"src/index.d.ts"
|
|
23
23
|
],
|
|
24
24
|
"unpkg": "dist/sdk.js",
|
|
25
25
|
"private": false,
|
|
26
26
|
"scripts": {
|
|
27
27
|
"lint": "eslint --fix ./src",
|
|
28
28
|
"dev": "webpack serve --config build/dev.config.js",
|
|
29
|
-
"build": "
|
|
29
|
+
"build": "webpack --config ./build/prod.config.js && webpack --config ./build/esm.config.js",
|
|
30
30
|
"build:multi": "webpack --config ./build/multi.config.js",
|
|
31
31
|
"build:all": "npm run build && npm run build:multi",
|
|
32
32
|
"analyze": "webpack --config ./build/analyze.config.js",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"@sakitam-gis/kriging": "^0.1.0",
|
|
69
69
|
"babel-loader": "^9.2.1",
|
|
70
70
|
"clean-webpack-plugin": "^4.0.0",
|
|
71
|
+
"copy-webpack-plugin": "^14.0.0",
|
|
71
72
|
"css-loader": "^7.1.3",
|
|
72
73
|
"eslint": "^8.57.0",
|
|
73
74
|
"eslint-config-prettier": "^9.1.0",
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare class Map {}
|
|
2
|
+
export declare class Marker {}
|
|
3
|
+
export declare class Text {}
|
|
4
|
+
export declare class Polygon {}
|
|
5
|
+
export declare class Polyline {}
|
|
6
|
+
export declare class InfoWindow {}
|
|
7
|
+
export declare class Control {}
|
|
8
|
+
export declare class ComplexPolygon {}
|
|
9
|
+
export declare class SmartPolygon {}
|
|
10
|
+
export declare class Isolation {}
|
|
11
|
+
export declare class MassMarker {}
|
|
12
|
+
export declare class ClustersMarker {}
|
|
13
|
+
export declare class RiskArea {}
|
|
14
|
+
export declare class MapService {}
|
|
15
|
+
|
|
16
|
+
export declare const layer: any;
|
|
17
|
+
|
|
18
|
+
export declare class TrackReplay {}
|
|
19
|
+
|
|
20
|
+
declare const XNOM: {
|
|
21
|
+
Map: typeof Map;
|
|
22
|
+
Marker: typeof Marker;
|
|
23
|
+
Text: typeof Text;
|
|
24
|
+
Polygon: typeof Polygon;
|
|
25
|
+
Polyline: typeof Polyline;
|
|
26
|
+
InfoWindow: typeof InfoWindow;
|
|
27
|
+
layer: any;
|
|
28
|
+
Control: typeof Control;
|
|
29
|
+
TrackReplay: typeof TrackReplay;
|
|
30
|
+
ComplexPolygon: typeof ComplexPolygon;
|
|
31
|
+
SmartPolygon: typeof SmartPolygon;
|
|
32
|
+
Isolation: typeof Isolation;
|
|
33
|
+
MassMarker: typeof MassMarker;
|
|
34
|
+
ClustersMarker: typeof ClustersMarker;
|
|
35
|
+
RiskArea: typeof RiskArea;
|
|
36
|
+
MapService: typeof MapService;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default XNOM;
|