@aibee/crc-bmap 0.14.19 → 0.14.20

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/lib/meta.json CHANGED
@@ -6084,7 +6084,7 @@
6084
6084
  "format": "esm"
6085
6085
  },
6086
6086
  "../lib/src/plugins/car-inertial-position/utils.js": {
6087
- "bytes": 6835,
6087
+ "bytes": 7596,
6088
6088
  "imports": [
6089
6089
  {
6090
6090
  "path": "core-js/modules/web.dom-collections.iterator.js",
@@ -6115,7 +6115,7 @@
6115
6115
  "format": "esm"
6116
6116
  },
6117
6117
  "../lib/src/plugins/car-inertial-position/car-inertial-position.js": {
6118
- "bytes": 13937,
6118
+ "bytes": 16529,
6119
6119
  "imports": [
6120
6120
  {
6121
6121
  "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
@@ -6123,17 +6123,17 @@
6123
6123
  "original": "@swc/helpers/_/_extends"
6124
6124
  },
6125
6125
  {
6126
- "path": "core-js/modules/es.array.find-last-index.js",
6126
+ "path": "core-js/modules/es.array.push.js",
6127
6127
  "kind": "import-statement",
6128
6128
  "external": true
6129
6129
  },
6130
6130
  {
6131
- "path": "core-js/modules/es.array.find-last.js",
6131
+ "path": "core-js/modules/es.array.find-last-index.js",
6132
6132
  "kind": "import-statement",
6133
6133
  "external": true
6134
6134
  },
6135
6135
  {
6136
- "path": "core-js/modules/es.array.push.js",
6136
+ "path": "core-js/modules/es.array.find-last.js",
6137
6137
  "kind": "import-statement",
6138
6138
  "external": true
6139
6139
  },
@@ -9045,17 +9045,17 @@
9045
9045
  "external": true
9046
9046
  },
9047
9047
  {
9048
- "path": "core-js/modules/es.array.find-last-index.js",
9048
+ "path": "core-js/modules/es.array.push.js",
9049
9049
  "kind": "import-statement",
9050
9050
  "external": true
9051
9051
  },
9052
9052
  {
9053
- "path": "core-js/modules/es.array.find-last.js",
9053
+ "path": "core-js/modules/es.array.find-last-index.js",
9054
9054
  "kind": "import-statement",
9055
9055
  "external": true
9056
9056
  },
9057
9057
  {
9058
- "path": "core-js/modules/es.array.push.js",
9058
+ "path": "core-js/modules/es.array.find-last.js",
9059
9059
  "kind": "import-statement",
9060
9060
  "external": true
9061
9061
  },
@@ -9303,6 +9303,7 @@
9303
9303
  "isMac",
9304
9304
  "isPointInPolygon",
9305
9305
  "isRectangle",
9306
+ "linearFitForSpeed",
9306
9307
  "loadBuildingGround",
9307
9308
  "loadExternalStreet",
9308
9309
  "loadGraphics",
@@ -9789,10 +9790,10 @@
9789
9790
  "bytesInOutput": 1040
9790
9791
  },
9791
9792
  "../lib/src/plugins/car-inertial-position/car-inertial-position.js": {
9792
- "bytesInOutput": 5753
9793
+ "bytesInOutput": 6324
9793
9794
  },
9794
9795
  "../lib/src/plugins/car-inertial-position/utils.js": {
9795
- "bytesInOutput": 1631
9796
+ "bytesInOutput": 1820
9796
9797
  },
9797
9798
  "../lib/src/plugins/recommend-parking-space/recommand-parking-space.js": {
9798
9799
  "bytesInOutput": 732
@@ -9825,7 +9826,7 @@
9825
9826
  "bytesInOutput": 575
9826
9827
  }
9827
9828
  },
9828
- "bytes": 408016
9829
+ "bytes": 408800
9829
9830
  }
9830
9831
  }
9831
9832
  }
@@ -38,7 +38,7 @@ export declare class CarInertialPosition extends EventDispatcher<CarInertialPosi
38
38
  lastExternalPositionTime: number;
39
39
  constructor();
40
40
  setPathAngle(angle: number): void;
41
- changeSpeed(): void;
41
+ changeSpeed(): number | undefined;
42
42
  changeAngle(histories?: CarPosition[]): void;
43
43
  setAngle(angle: number, dispatch?: boolean): void;
44
44
  /**
@@ -1,4 +1,8 @@
1
1
  import { CarPosition } from "./car-inertial-position";
2
+ export declare function linearFitForSpeed(points: [number, number][]): {
3
+ m: number;
4
+ b: number;
5
+ };
2
6
  /**
3
7
  * 计算一组点位的斜率和方向 拟合成一条直线 然后选择一个起点终点
4
8
  * @param points
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.14.19",
3
+ "version": "0.14.20",
4
4
  "description": "",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.esm.min.js",