@aibee/crc-bmap 0.13.25 → 0.14.1

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
@@ -1747,37 +1747,6 @@
1747
1747
  ],
1748
1748
  "format": "esm"
1749
1749
  },
1750
- "../lib/src/elements/heatmap.js": {
1751
- "bytes": 5689,
1752
- "imports": [
1753
- {
1754
- "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
1755
- "kind": "import-statement",
1756
- "original": "@swc/helpers/_/_extends"
1757
- },
1758
- {
1759
- "path": "three",
1760
- "kind": "import-statement",
1761
- "external": true
1762
- },
1763
- {
1764
- "path": "@mars3d/heatmap.js",
1765
- "kind": "import-statement",
1766
- "external": true
1767
- },
1768
- {
1769
- "path": "@turf/turf",
1770
- "kind": "import-statement",
1771
- "external": true
1772
- },
1773
- {
1774
- "path": "../lib/src/utils/index.js",
1775
- "kind": "import-statement",
1776
- "original": "../utils"
1777
- }
1778
- ],
1779
- "format": "esm"
1780
- },
1781
1750
  "../lib/src/elements/model.js": {
1782
1751
  "bytes": 686,
1783
1752
  "imports": [
@@ -3054,7 +3023,7 @@
3054
3023
  "format": "esm"
3055
3024
  },
3056
3025
  "../lib/src/elements/floor.js": {
3057
- "bytes": 8063,
3026
+ "bytes": 7381,
3058
3027
  "imports": [
3059
3028
  {
3060
3029
  "path": "core-js/modules/web.dom-collections.iterator.js",
@@ -3111,11 +3080,6 @@
3111
3080
  "kind": "import-statement",
3112
3081
  "original": "./shadow"
3113
3082
  },
3114
- {
3115
- "path": "../lib/src/elements/heatmap.js",
3116
- "kind": "import-statement",
3117
- "original": "./heatmap"
3118
- },
3119
3083
  {
3120
3084
  "path": "../lib/src/elements/model.js",
3121
3085
  "kind": "import-statement",
@@ -3134,6 +3098,37 @@
3134
3098
  ],
3135
3099
  "format": "esm"
3136
3100
  },
3101
+ "../lib/src/elements/heatmap.js": {
3102
+ "bytes": 5689,
3103
+ "imports": [
3104
+ {
3105
+ "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
3106
+ "kind": "import-statement",
3107
+ "original": "@swc/helpers/_/_extends"
3108
+ },
3109
+ {
3110
+ "path": "three",
3111
+ "kind": "import-statement",
3112
+ "external": true
3113
+ },
3114
+ {
3115
+ "path": "@mars3d/heatmap.js",
3116
+ "kind": "import-statement",
3117
+ "external": true
3118
+ },
3119
+ {
3120
+ "path": "@turf/turf",
3121
+ "kind": "import-statement",
3122
+ "external": true
3123
+ },
3124
+ {
3125
+ "path": "../lib/src/utils/index.js",
3126
+ "kind": "import-statement",
3127
+ "original": "../utils"
3128
+ }
3129
+ ],
3130
+ "format": "esm"
3131
+ },
3137
3132
  "../lib/src/elements/base-svg.js": {
3138
3133
  "bytes": 1807,
3139
3134
  "imports": [
@@ -4869,7 +4864,7 @@
4869
4864
  "format": "esm"
4870
4865
  },
4871
4866
  "../lib/src/bmap.js": {
4872
- "bytes": 22241,
4867
+ "bytes": 21840,
4873
4868
  "imports": [
4874
4869
  {
4875
4870
  "path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
@@ -6414,8 +6409,40 @@
6414
6409
  ],
6415
6410
  "format": "esm"
6416
6411
  },
6412
+ "../lib/src/plugins/heatmap/heatmap.js": {
6413
+ "bytes": 958,
6414
+ "imports": [
6415
+ {
6416
+ "path": "three",
6417
+ "kind": "import-statement",
6418
+ "external": true
6419
+ },
6420
+ {
6421
+ "path": "../lib/src/elements/index.js",
6422
+ "kind": "import-statement",
6423
+ "original": "../../elements"
6424
+ },
6425
+ {
6426
+ "path": "../lib/src/plugins/base.js",
6427
+ "kind": "import-statement",
6428
+ "original": "../base"
6429
+ }
6430
+ ],
6431
+ "format": "esm"
6432
+ },
6433
+ "../lib/src/plugins/heatmap/index.js": {
6434
+ "bytes": 27,
6435
+ "imports": [
6436
+ {
6437
+ "path": "../lib/src/plugins/heatmap/heatmap.js",
6438
+ "kind": "import-statement",
6439
+ "original": "./heatmap"
6440
+ }
6441
+ ],
6442
+ "format": "esm"
6443
+ },
6417
6444
  "../lib/src/plugins/index.js": {
6418
- "bytes": 532,
6445
+ "bytes": 559,
6419
6446
  "imports": [
6420
6447
  {
6421
6448
  "path": "../lib/src/plugins/equipment/index.js",
@@ -6496,6 +6523,11 @@
6496
6523
  "path": "../lib/src/plugins/satellite_tile/index.js",
6497
6524
  "kind": "import-statement",
6498
6525
  "original": "./satellite_tile"
6526
+ },
6527
+ {
6528
+ "path": "../lib/src/plugins/heatmap/index.js",
6529
+ "kind": "import-statement",
6530
+ "original": "./heatmap"
6499
6531
  }
6500
6532
  ],
6501
6533
  "format": "esm"
@@ -7600,21 +7632,6 @@
7600
7632
  "kind": "import-statement",
7601
7633
  "external": true
7602
7634
  },
7603
- {
7604
- "path": "@mars3d/heatmap.js",
7605
- "kind": "import-statement",
7606
- "external": true
7607
- },
7608
- {
7609
- "path": "@turf/turf",
7610
- "kind": "import-statement",
7611
- "external": true
7612
- },
7613
- {
7614
- "path": "three",
7615
- "kind": "import-statement",
7616
- "external": true
7617
- },
7618
7635
  {
7619
7636
  "path": "core-js/modules/web.dom-collections.iterator.js",
7620
7637
  "kind": "import-statement",
@@ -7780,6 +7797,21 @@
7780
7797
  "kind": "import-statement",
7781
7798
  "external": true
7782
7799
  },
7800
+ {
7801
+ "path": "three",
7802
+ "kind": "import-statement",
7803
+ "external": true
7804
+ },
7805
+ {
7806
+ "path": "@mars3d/heatmap.js",
7807
+ "kind": "import-statement",
7808
+ "external": true
7809
+ },
7810
+ {
7811
+ "path": "@turf/turf",
7812
+ "kind": "import-statement",
7813
+ "external": true
7814
+ },
7783
7815
  {
7784
7816
  "path": "core-js/modules/es.array.push.js",
7785
7817
  "kind": "import-statement",
@@ -9059,6 +9091,11 @@
9059
9091
  "path": "core-js/modules/es.array.sort.js",
9060
9092
  "kind": "import-statement",
9061
9093
  "external": true
9094
+ },
9095
+ {
9096
+ "path": "three",
9097
+ "kind": "import-statement",
9098
+ "external": true
9062
9099
  }
9063
9100
  ],
9064
9101
  "exports": [
@@ -9082,6 +9119,7 @@
9082
9119
  "Graphic",
9083
9120
  "GraphicLayer",
9084
9121
  "GroundTexture",
9122
+ "Heatmap",
9085
9123
  "HeatmapElement",
9086
9124
  "HighlightPoi",
9087
9125
  "HooksName",
@@ -9249,7 +9287,7 @@
9249
9287
  "bytesInOutput": 208
9250
9288
  },
9251
9289
  "../lib/src/bmap.js": {
9252
- "bytesInOutput": 10982
9290
+ "bytesInOutput": 10820
9253
9291
  },
9254
9292
  "../lib/src/context/context.js": {
9255
9293
  "bytesInOutput": 8715
@@ -9423,10 +9461,7 @@
9423
9461
  "bytesInOutput": 4399
9424
9462
  },
9425
9463
  "../lib/src/elements/floor.js": {
9426
- "bytesInOutput": 4865
9427
- },
9428
- "../lib/src/elements/heatmap.js": {
9429
- "bytesInOutput": 2123
9464
+ "bytesInOutput": 4503
9430
9465
  },
9431
9466
  "../lib/src/elements/model.js": {
9432
9467
  "bytesInOutput": 410
@@ -9479,6 +9514,9 @@
9479
9514
  "../lib/src/elements/poi2.js": {
9480
9515
  "bytesInOutput": 8782
9481
9516
  },
9517
+ "../lib/src/elements/heatmap.js": {
9518
+ "bytesInOutput": 2123
9519
+ },
9482
9520
  "../lib/src/elements/svg-line.js": {
9483
9521
  "bytesInOutput": 2240
9484
9522
  },
@@ -9706,9 +9744,12 @@
9706
9744
  },
9707
9745
  "../lib/src/plugins/satellite_tile/satellite_tile.js": {
9708
9746
  "bytesInOutput": 433
9747
+ },
9748
+ "../lib/src/plugins/heatmap/heatmap.js": {
9749
+ "bytesInOutput": 575
9709
9750
  }
9710
9751
  },
9711
- "bytes": 403600
9752
+ "bytes": 403665
9712
9753
  }
9713
9754
  }
9714
9755
  }
package/lib/src/bmap.d.ts CHANGED
@@ -2,7 +2,7 @@ import { EventDispatcher, Object3D, Vector3 } from "three";
2
2
  import { Context } from "./context/context";
3
3
  import { Timer, HooksName } from "./utils";
4
4
  import { Config, ParamsConfig } from "./config";
5
- import { Floor, Graphic, HeatmapDataParam, ModelOptions, Poi, Poi2, PoiOptionsParam, PoiOptionsParam2 } from "./elements";
5
+ import { Floor, Graphic, ModelOptions, Poi, Poi2, PoiOptionsParam, PoiOptionsParam2 } from "./elements";
6
6
  import { SvgLine, SvgPolygon } from "./elements";
7
7
  import { GraphicInfo, GraphicOptions } from "./types";
8
8
  import { Plugin } from "./plugins/base";
@@ -72,7 +72,6 @@ export declare class BMap extends EventDispatcher<BmapEventMap> {
72
72
  initialFloorCamera(): void;
73
73
  onControlChange: () => void;
74
74
  addModel(graphic: Graphic, options: ModelOptions): void;
75
- addHeatmap(data: HeatmapDataParam): import("./elements").HeatmapElement | undefined;
76
75
  getLegacyToGraphicMap(): Map<string, Graphic>;
77
76
  /**
78
77
  * 获取当前楼层全部的graphic
@@ -85,7 +84,6 @@ export declare class BMap extends EventDispatcher<BmapEventMap> {
85
84
  y: number;
86
85
  z: number;
87
86
  }, options: PoiOptionsParam2): Poi2 | null;
88
- removeHeatMap(): void;
89
87
  /**
90
88
  * 移动相机位置让选中的元素居中显示
91
89
  * @param ele { Graphic | Poi }
@@ -3,7 +3,6 @@ import { Box3, Object3D, Vector3 } from "three";
3
3
  import { Graphic, GraphicOptionsParam } from "./graphic";
4
4
  import { Shadow } from "./shadow";
5
5
  import { PoiOptionsParam } from "./poi";
6
- import { HeatmapDataParam, HeatmapElement } from './heatmap';
7
6
  import { Model, ModelOptions } from "./model";
8
7
  import { Layer, GraphicLayer, PoiLayer, PoiLayer2, ParkingLayer, MergedGraphicLayer, MergedModelLayer, AddSceneType } from "../layer";
9
8
  import { GraphicOptions, ParkingOption } from "../types";
@@ -24,7 +23,6 @@ export declare class Floor extends Object3D {
24
23
  grounds: Set<Graphic | MergeAttributeGraphic>;
25
24
  groundLayer: Layer;
26
25
  shadow: Shadow;
27
- heatmap?: HeatmapElement;
28
26
  groundUpper: Object3D<import("three").Object3DEventMap>;
29
27
  models: Object3D<import("three").Object3DEventMap>;
30
28
  modelMap: Map<any, any>;
@@ -48,11 +46,6 @@ export declare class Floor extends Object3D {
48
46
  addPoi2(poiOptions: PoiOptionsParam2): Poi2;
49
47
  removePoi2(poi: Poi2): void;
50
48
  removePoi2ById(id: string): void;
51
- addHeatmap(data: HeatmapDataParam & {
52
- maxValue?: number;
53
- minValue?: number;
54
- }): HeatmapElement;
55
- removeHeatMap(): void;
56
49
  setShadowOpacity(opacity: number): void;
57
50
  setShadowVisible(visible: boolean): void;
58
51
  setGraphicOptions(graphicId: string, options: (GraphicOptionsParam | ((options: GraphicOptions) => GraphicOptions))): void;
@@ -0,0 +1,15 @@
1
+ import { Group } from "three";
2
+ import { Floor, HeatmapDataParam, HeatmapElement } from "../../elements";
3
+ import { Plugin } from "../base";
4
+ import { BMap } from "../../bmap";
5
+ export declare class Heatmap extends Plugin {
6
+ heatmap: HeatmapElement | null;
7
+ group: Group<import("three").Object3DEventMap>;
8
+ constructor(bmap: BMap);
9
+ addHeatmap(data: HeatmapDataParam & {
10
+ maxValue?: number;
11
+ minValue?: number;
12
+ }, floor: Floor): HeatmapElement;
13
+ removeHeatMap(): void;
14
+ dispose(): void;
15
+ }
@@ -0,0 +1 @@
1
+ export * from './heatmap';
@@ -14,3 +14,4 @@ export * from './use-my-position';
14
14
  export * from './highlight-poi';
15
15
  export * from './sort-by-distance';
16
16
  export * from './satellite_tile';
17
+ export * from './heatmap';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aibee/crc-bmap",
3
- "version": "0.13.25",
3
+ "version": "0.14.1",
4
4
  "description": "",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.esm.min.js",