@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.
@@ -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.1",
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
- "moment": "^2.30.1",
33
- "moment-timezone": "^0.5.45",
34
- "tz-lookup": "^6.1.25"
35
- },
36
- "devDependencies": {
37
- "@types/jest": "^25.2.2",
38
- "@types/node": "^18.14.2",
39
- "@types/tz-lookup": "^6.1.2",
40
- "@typescript-eslint/eslint-plugin": "^5.53.0",
41
- "@typescript-eslint/parser": "^5.53.0",
42
- "@vitejs/plugin-vue": "^4.2.3",
43
- "eslint": "^8.35.0",
44
- "eslint-config-prettier": "^8.6.0",
45
- "eslint-define-config": "^1.15.0",
46
- "eslint-plugin-prettier": "^4.2.1",
47
- "jest": "^26.6.3",
48
- "lint-staged": "^13.1.2",
49
- "prettier": "^2.8.4",
50
- "sass": "^1.58.3",
51
- "simple-git-hooks": "^2.8.1",
52
- "stylelint": "^15.2.0",
53
- "supertest": "^4.0.2",
54
- "ts-jest": "^26.5.3",
55
- "ts-node-dev": "^2.0.0-0",
56
- "tsconfig-paths": "^3.12.0",
57
- "typescript": "^4.9.3",
58
- "vite": "^4.1.0",
59
- "vite-plugin-dts": "^2.0.2",
60
- "vite-plugin-static-copy": "^0.17.0"
61
- },
62
- "lint-staged": {
63
- "*.{ts,tsx,js}": "eslint --fix",
64
- "*.{ts,tsx,js,scss}": "prettier --write"
65
- },
66
- "simple-git-hooks": {
67
- "pre-commit": "npx lint-staged"
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
+ }