@aibee/crc-bmap 0.14.18 → 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
@@ -4901,7 +4901,7 @@
4901
4901
  "format": "esm"
4902
4902
  },
4903
4903
  "../lib/src/bmap.js": {
4904
- "bytes": 22144,
4904
+ "bytes": 22286,
4905
4905
  "imports": [
4906
4906
  {
4907
4907
  "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
@@ -6084,7 +6084,7 @@
6084
6084
  "format": "esm"
6085
6085
  },
6086
6086
  "../lib/src/plugins/car-inertial-position/utils.js": {
6087
- "bytes": 6846,
6087
+ "bytes": 7596,
6088
6088
  "imports": [
6089
6089
  {
6090
6090
  "path": "core-js/modules/web.dom-collections.iterator.js",
@@ -6115,13 +6115,18 @@
6115
6115
  "format": "esm"
6116
6116
  },
6117
6117
  "../lib/src/plugins/car-inertial-position/car-inertial-position.js": {
6118
- "bytes": 13693,
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",
6122
6122
  "kind": "import-statement",
6123
6123
  "original": "@swc/helpers/_/_extends"
6124
6124
  },
6125
+ {
6126
+ "path": "core-js/modules/es.array.push.js",
6127
+ "kind": "import-statement",
6128
+ "external": true
6129
+ },
6125
6130
  {
6126
6131
  "path": "core-js/modules/es.array.find-last-index.js",
6127
6132
  "kind": "import-statement",
@@ -6133,7 +6138,7 @@
6133
6138
  "external": true
6134
6139
  },
6135
6140
  {
6136
- "path": "core-js/modules/es.array.push.js",
6141
+ "path": "core-js/modules/web.dom-collections.iterator.js",
6137
6142
  "kind": "import-statement",
6138
6143
  "external": true
6139
6144
  },
@@ -9039,6 +9044,11 @@
9039
9044
  "kind": "import-statement",
9040
9045
  "external": true
9041
9046
  },
9047
+ {
9048
+ "path": "core-js/modules/es.array.push.js",
9049
+ "kind": "import-statement",
9050
+ "external": true
9051
+ },
9042
9052
  {
9043
9053
  "path": "core-js/modules/es.array.find-last-index.js",
9044
9054
  "kind": "import-statement",
@@ -9050,7 +9060,7 @@
9050
9060
  "external": true
9051
9061
  },
9052
9062
  {
9053
- "path": "core-js/modules/es.array.push.js",
9063
+ "path": "core-js/modules/web.dom-collections.iterator.js",
9054
9064
  "kind": "import-statement",
9055
9065
  "external": true
9056
9066
  },
@@ -9293,6 +9303,7 @@
9293
9303
  "isMac",
9294
9304
  "isPointInPolygon",
9295
9305
  "isRectangle",
9306
+ "linearFitForSpeed",
9296
9307
  "loadBuildingGround",
9297
9308
  "loadExternalStreet",
9298
9309
  "loadGraphics",
@@ -9350,7 +9361,7 @@
9350
9361
  "bytesInOutput": 208
9351
9362
  },
9352
9363
  "../lib/src/bmap.js": {
9353
- "bytesInOutput": 11039
9364
+ "bytesInOutput": 11140
9354
9365
  },
9355
9366
  "../lib/src/context/context.js": {
9356
9367
  "bytesInOutput": 9423
@@ -9779,10 +9790,10 @@
9779
9790
  "bytesInOutput": 1040
9780
9791
  },
9781
9792
  "../lib/src/plugins/car-inertial-position/car-inertial-position.js": {
9782
- "bytesInOutput": 5239
9793
+ "bytesInOutput": 6324
9783
9794
  },
9784
9795
  "../lib/src/plugins/car-inertial-position/utils.js": {
9785
- "bytesInOutput": 1638
9796
+ "bytesInOutput": 1820
9786
9797
  },
9787
9798
  "../lib/src/plugins/recommend-parking-space/recommand-parking-space.js": {
9788
9799
  "bytesInOutput": 732
@@ -9815,7 +9826,7 @@
9815
9826
  "bytesInOutput": 575
9816
9827
  }
9817
9828
  },
9818
- "bytes": 407408
9829
+ "bytes": 408800
9819
9830
  }
9820
9831
  }
9821
9832
  }
package/lib/src/bmap.d.ts CHANGED
@@ -53,13 +53,14 @@ export declare class BMap extends EventDispatcher<BmapEventMap> {
53
53
  type: MapType;
54
54
  currentBuildGround: GraphicOptions | null;
55
55
  observe: ResizeObserver | null;
56
- buildingCenter: [number, number];
57
56
  coordinateTransform: CoordinateTransform;
58
57
  timer: Timer;
59
58
  plugins: Plugin[];
60
59
  debounceResize: any;
61
60
  loader: AibeeLoader | null;
62
61
  constructor(container: HTMLElement, config?: ParamsConfig);
62
+ get buildingCenter(): [number, number];
63
+ set buildingCenter(center: [number, number]);
63
64
  get basicZoom(): number;
64
65
  set basicZoom(zoom: number);
65
66
  changeBuildingCenter(data: GraphicInfo | null, { brand, project }: {
@@ -35,9 +35,10 @@ export declare class CarInertialPosition extends EventDispatcher<CarInertialPosi
35
35
  beaconExcessesCount: number;
36
36
  angleExcessesCount: number;
37
37
  pathAngle: number;
38
+ lastExternalPositionTime: number;
38
39
  constructor();
39
40
  setPathAngle(angle: number): void;
40
- changeSpeed(): void;
41
+ changeSpeed(): number | undefined;
41
42
  changeAngle(histories?: CarPosition[]): void;
42
43
  setAngle(angle: number, dispatch?: boolean): void;
43
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.18",
3
+ "version": "0.14.20",
4
4
  "description": "",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.esm.min.js",