@idm-plugin/geo 1.5.1 → 1.5.3
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/README.md +1 -1
- package/dist/index.js +340 -329
- package/dist/index.umd.cjs +2 -2
- package/dist/lane/src/index.d.ts +11 -0
- package/package.json +70 -69
package/dist/lane/src/index.d.ts
CHANGED
|
@@ -315,4 +315,15 @@ export declare class LaneHelper {
|
|
|
315
315
|
* @param waypoints 带时间的轨迹, 单位秒
|
|
316
316
|
*/
|
|
317
317
|
static nearestTSPointInWaypoints(ts: number, step: number, waypoints: Coordinate[]): Coordinate | undefined;
|
|
318
|
+
/**
|
|
319
|
+
* 计算AIRoute
|
|
320
|
+
* @param from
|
|
321
|
+
* @param to
|
|
322
|
+
* @param options
|
|
323
|
+
*/
|
|
324
|
+
static calculateAIRoute(from: Coordinate, to: Coordinate, options?: {
|
|
325
|
+
requestId?: string;
|
|
326
|
+
open?: string;
|
|
327
|
+
close?: string;
|
|
328
|
+
}): Promise<any>;
|
|
318
329
|
}
|
package/package.json
CHANGED
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@idm-plugin/geo",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "1.5.
|
|
5
|
-
"description": "idm plugin for geo",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"keywords": [
|
|
8
|
-
"idm",
|
|
9
|
-
"geo"
|
|
10
|
-
],
|
|
11
|
-
"author": "chenheng@idmwx.com",
|
|
12
|
-
"contributors": [
|
|
13
|
-
"ChenHeng"
|
|
14
|
-
],
|
|
15
|
-
"license": "GPL-3.0",
|
|
16
|
-
"files": [
|
|
17
|
-
"dist"
|
|
18
|
-
],
|
|
19
|
-
"main": "./dist/index.umd.cjs",
|
|
20
|
-
"module": "./dist/index.js",
|
|
21
|
-
"types": "index.d.ts",
|
|
22
|
-
"scripts": {
|
|
23
|
-
"dev": "vite --config ./build/base.config.ts",
|
|
24
|
-
"build": "vite build --config ./build/lib.config.ts",
|
|
25
|
-
"lint:fix": "eslint --fix --ext .js,.ts,.",
|
|
26
|
-
"prettier": "yarn lint:fix && prettier --write '**/*.{js,ts}'",
|
|
27
|
-
"release": "yarn build && yarn publish --access public"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"@log4js-node/log4js-api": "^1.0.2",
|
|
31
|
-
"@turf/turf": "^6.5.0",
|
|
32
|
-
"
|
|
33
|
-
"moment
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"@types/
|
|
39
|
-
"@types/
|
|
40
|
-
"@
|
|
41
|
-
"@typescript-eslint/
|
|
42
|
-
"@
|
|
43
|
-
"
|
|
44
|
-
"eslint
|
|
45
|
-
"eslint-
|
|
46
|
-
"eslint-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"ts-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"vite
|
|
60
|
-
"vite-plugin-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"*.{ts,tsx,js
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@idm-plugin/geo",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.5.3",
|
|
5
|
+
"description": "idm plugin for geo",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"idm",
|
|
9
|
+
"geo"
|
|
10
|
+
],
|
|
11
|
+
"author": "chenheng@idmwx.com",
|
|
12
|
+
"contributors": [
|
|
13
|
+
"ChenHeng"
|
|
14
|
+
],
|
|
15
|
+
"license": "GPL-3.0",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"main": "./dist/index.umd.cjs",
|
|
20
|
+
"module": "./dist/index.js",
|
|
21
|
+
"types": "index.d.ts",
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite --config ./build/base.config.ts",
|
|
24
|
+
"build": "vite build --config ./build/lib.config.ts",
|
|
25
|
+
"lint:fix": "eslint --fix --ext .js,.ts,.",
|
|
26
|
+
"prettier": "yarn lint:fix && prettier --write '**/*.{js,ts}'",
|
|
27
|
+
"release": "yarn build && yarn publish --access public"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@log4js-node/log4js-api": "^1.0.2",
|
|
31
|
+
"@turf/turf": "^6.5.0",
|
|
32
|
+
"got": "11",
|
|
33
|
+
"moment": "^2.30.1",
|
|
34
|
+
"moment-timezone": "^0.5.45",
|
|
35
|
+
"tz-lookup": "^6.1.25"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/jest": "^25.2.2",
|
|
39
|
+
"@types/node": "^18.14.2",
|
|
40
|
+
"@types/tz-lookup": "^6.1.2",
|
|
41
|
+
"@typescript-eslint/eslint-plugin": "^5.53.0",
|
|
42
|
+
"@typescript-eslint/parser": "^5.53.0",
|
|
43
|
+
"@vitejs/plugin-vue": "^4.2.3",
|
|
44
|
+
"eslint": "^8.35.0",
|
|
45
|
+
"eslint-config-prettier": "^8.6.0",
|
|
46
|
+
"eslint-define-config": "^1.15.0",
|
|
47
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
48
|
+
"jest": "^26.6.3",
|
|
49
|
+
"lint-staged": "^13.1.2",
|
|
50
|
+
"prettier": "^2.8.4",
|
|
51
|
+
"sass": "^1.58.3",
|
|
52
|
+
"simple-git-hooks": "^2.8.1",
|
|
53
|
+
"stylelint": "^15.2.0",
|
|
54
|
+
"supertest": "^4.0.2",
|
|
55
|
+
"ts-jest": "^26.5.3",
|
|
56
|
+
"ts-node-dev": "^2.0.0-0",
|
|
57
|
+
"tsconfig-paths": "^3.12.0",
|
|
58
|
+
"typescript": "^4.9.3",
|
|
59
|
+
"vite": "^4.1.0",
|
|
60
|
+
"vite-plugin-dts": "^2.0.2",
|
|
61
|
+
"vite-plugin-static-copy": "^0.17.0"
|
|
62
|
+
},
|
|
63
|
+
"lint-staged": {
|
|
64
|
+
"*.{ts,tsx,js}": "eslint --fix",
|
|
65
|
+
"*.{ts,tsx,js,scss}": "prettier --write"
|
|
66
|
+
},
|
|
67
|
+
"simple-git-hooks": {
|
|
68
|
+
"pre-commit": "npx lint-staged"
|
|
69
|
+
}
|
|
70
|
+
}
|