@aibee/crc-bmap 0.14.22 → 0.14.23
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/index.cjs +20 -20
- package/lib/index.esm.min.js +12 -12
- package/lib/meta.json +28 -28
- package/lib/src/config.d.ts +5 -0
- package/lib/src/elements/poi2.d.ts +7 -0
- package/lib/src/factory/text-texture.d.ts +5 -0
- package/lib/src/utils/obj-utils.d.ts +1 -1
- package/package.json +1 -1
package/lib/meta.json
CHANGED
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"format": "esm"
|
|
242
242
|
},
|
|
243
243
|
"../lib/src/utils/obj-utils.js": {
|
|
244
|
-
"bytes":
|
|
244
|
+
"bytes": 414,
|
|
245
245
|
"imports": [
|
|
246
246
|
{
|
|
247
247
|
"path": "core-js/modules/es.array.sort.js",
|
|
@@ -1062,7 +1062,7 @@
|
|
|
1062
1062
|
"format": "esm"
|
|
1063
1063
|
},
|
|
1064
1064
|
"../lib/src/factory/text-texture.js": {
|
|
1065
|
-
"bytes":
|
|
1065
|
+
"bytes": 30955,
|
|
1066
1066
|
"imports": [
|
|
1067
1067
|
{
|
|
1068
1068
|
"path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
|
|
@@ -2124,7 +2124,7 @@
|
|
|
2124
2124
|
"format": "esm"
|
|
2125
2125
|
},
|
|
2126
2126
|
"../src/utils/obj-utils.ts": {
|
|
2127
|
-
"bytes":
|
|
2127
|
+
"bytes": 363,
|
|
2128
2128
|
"imports": [],
|
|
2129
2129
|
"format": "esm"
|
|
2130
2130
|
},
|
|
@@ -2596,7 +2596,7 @@
|
|
|
2596
2596
|
"format": "esm"
|
|
2597
2597
|
},
|
|
2598
2598
|
"../src/factory/text-texture.ts": {
|
|
2599
|
-
"bytes":
|
|
2599
|
+
"bytes": 27598,
|
|
2600
2600
|
"imports": [
|
|
2601
2601
|
{
|
|
2602
2602
|
"path": "three",
|
|
@@ -3009,7 +3009,7 @@
|
|
|
3009
3009
|
"format": "esm"
|
|
3010
3010
|
},
|
|
3011
3011
|
"../lib/src/elements/poi2.js": {
|
|
3012
|
-
"bytes":
|
|
3012
|
+
"bytes": 17850,
|
|
3013
3013
|
"imports": [
|
|
3014
3014
|
{
|
|
3015
3015
|
"path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
|
|
@@ -4693,7 +4693,7 @@
|
|
|
4693
4693
|
"format": "esm"
|
|
4694
4694
|
},
|
|
4695
4695
|
"../lib/src/config.js": {
|
|
4696
|
-
"bytes":
|
|
4696
|
+
"bytes": 2292,
|
|
4697
4697
|
"imports": [
|
|
4698
4698
|
{
|
|
4699
4699
|
"path": "lodash",
|
|
@@ -9566,7 +9566,7 @@
|
|
|
9566
9566
|
"bytesInOutput": 11141
|
|
9567
9567
|
},
|
|
9568
9568
|
"../lib/src/context/context.js": {
|
|
9569
|
-
"bytesInOutput":
|
|
9569
|
+
"bytesInOutput": 9411
|
|
9570
9570
|
},
|
|
9571
9571
|
"../lib/src/utils/timer.js": {
|
|
9572
9572
|
"bytesInOutput": 1783
|
|
@@ -9611,7 +9611,7 @@
|
|
|
9611
9611
|
"bytesInOutput": 163
|
|
9612
9612
|
},
|
|
9613
9613
|
"../lib/src/utils/obj-utils.js": {
|
|
9614
|
-
"bytesInOutput":
|
|
9614
|
+
"bytesInOutput": 196
|
|
9615
9615
|
},
|
|
9616
9616
|
"../lib/src/utils/ajax.js": {
|
|
9617
9617
|
"bytesInOutput": 431
|
|
@@ -9653,7 +9653,7 @@
|
|
|
9653
9653
|
"bytesInOutput": 829
|
|
9654
9654
|
},
|
|
9655
9655
|
"../lib/src/utils/event-dispatcher.js": {
|
|
9656
|
-
"bytesInOutput":
|
|
9656
|
+
"bytesInOutput": 96
|
|
9657
9657
|
},
|
|
9658
9658
|
"../lib/src/utils/kalman-filter.js": {
|
|
9659
9659
|
"bytesInOutput": 405
|
|
@@ -9674,7 +9674,7 @@
|
|
|
9674
9674
|
"bytesInOutput": 14209
|
|
9675
9675
|
},
|
|
9676
9676
|
"../lib/src/factory/text-texture.js": {
|
|
9677
|
-
"bytesInOutput":
|
|
9677
|
+
"bytesInOutput": 11609
|
|
9678
9678
|
},
|
|
9679
9679
|
"../lib/src/factory/worker/text-texture.worker.js": {
|
|
9680
9680
|
"bytesInOutput": 101
|
|
@@ -9737,7 +9737,7 @@
|
|
|
9737
9737
|
"bytesInOutput": 5457
|
|
9738
9738
|
},
|
|
9739
9739
|
"../lib/src/elements/overlay.js": {
|
|
9740
|
-
"bytesInOutput":
|
|
9740
|
+
"bytesInOutput": 4421
|
|
9741
9741
|
},
|
|
9742
9742
|
"../lib/src/elements/floor.js": {
|
|
9743
9743
|
"bytesInOutput": 4503
|
|
@@ -9767,22 +9767,22 @@
|
|
|
9767
9767
|
"bytesInOutput": 4578
|
|
9768
9768
|
},
|
|
9769
9769
|
"../src/factory/material.ts": {
|
|
9770
|
-
"bytesInOutput":
|
|
9770
|
+
"bytesInOutput": 14220
|
|
9771
9771
|
},
|
|
9772
9772
|
"../src/factory/unique-key.ts": {
|
|
9773
|
-
"bytesInOutput":
|
|
9773
|
+
"bytesInOutput": 369
|
|
9774
9774
|
},
|
|
9775
9775
|
"../src/utils/webworker.ts": {
|
|
9776
9776
|
"bytesInOutput": 277
|
|
9777
9777
|
},
|
|
9778
9778
|
"../src/utils/worker-pool.ts": {
|
|
9779
|
-
"bytesInOutput":
|
|
9779
|
+
"bytesInOutput": 829
|
|
9780
9780
|
},
|
|
9781
9781
|
"../src/factory/worker/merge-geometry.worker.ts": {
|
|
9782
9782
|
"bytesInOutput": 103
|
|
9783
9783
|
},
|
|
9784
9784
|
"../src/factory/merge-geometry.ts": {
|
|
9785
|
-
"bytesInOutput":
|
|
9785
|
+
"bytesInOutput": 1696
|
|
9786
9786
|
},
|
|
9787
9787
|
"../lib/src/layer/tile-layer.js": {
|
|
9788
9788
|
"bytesInOutput": 3860
|
|
@@ -9791,7 +9791,7 @@
|
|
|
9791
9791
|
"bytesInOutput": 1595
|
|
9792
9792
|
},
|
|
9793
9793
|
"../lib/src/elements/poi2.js": {
|
|
9794
|
-
"bytesInOutput":
|
|
9794
|
+
"bytesInOutput": 9381
|
|
9795
9795
|
},
|
|
9796
9796
|
"../lib/src/elements/heatmap.js": {
|
|
9797
9797
|
"bytesInOutput": 2123
|
|
@@ -9869,7 +9869,7 @@
|
|
|
9869
9869
|
"bytesInOutput": 3691
|
|
9870
9870
|
},
|
|
9871
9871
|
"../lib/src/context/OrbitControls.js": {
|
|
9872
|
-
"bytesInOutput":
|
|
9872
|
+
"bytesInOutput": 13552
|
|
9873
9873
|
},
|
|
9874
9874
|
"../lib/src/context/renderer.js": {
|
|
9875
9875
|
"bytesInOutput": 1126
|
|
@@ -9887,10 +9887,10 @@
|
|
|
9887
9887
|
"bytesInOutput": 2618
|
|
9888
9888
|
},
|
|
9889
9889
|
"../lib/src/config.js": {
|
|
9890
|
-
"bytesInOutput":
|
|
9890
|
+
"bytesInOutput": 1276
|
|
9891
9891
|
},
|
|
9892
9892
|
"../lib/src/loader/AibeeLoader/index.js": {
|
|
9893
|
-
"bytesInOutput":
|
|
9893
|
+
"bytesInOutput": 8842
|
|
9894
9894
|
},
|
|
9895
9895
|
"../lib/src/loader/AibeeLoader/layer.js": {
|
|
9896
9896
|
"bytesInOutput": 4410
|
|
@@ -9917,7 +9917,7 @@
|
|
|
9917
9917
|
"bytesInOutput": 1524
|
|
9918
9918
|
},
|
|
9919
9919
|
"../lib/src/plugins/base.js": {
|
|
9920
|
-
"bytesInOutput":
|
|
9920
|
+
"bytesInOutput": 206
|
|
9921
9921
|
},
|
|
9922
9922
|
"../lib/src/plugins/navigation/navigation.js": {
|
|
9923
9923
|
"bytesInOutput": 15448
|
|
@@ -9929,7 +9929,7 @@
|
|
|
9929
9929
|
"bytesInOutput": 13835
|
|
9930
9930
|
},
|
|
9931
9931
|
"../lib/src/plugins/navigation/position-navigation.js": {
|
|
9932
|
-
"bytesInOutput":
|
|
9932
|
+
"bytesInOutput": 6648
|
|
9933
9933
|
},
|
|
9934
9934
|
"../lib/src/plugins/navigation/start-rotate-helper-poi.js": {
|
|
9935
9935
|
"bytesInOutput": 3438
|
|
@@ -9956,13 +9956,13 @@
|
|
|
9956
9956
|
"bytesInOutput": 2645
|
|
9957
9957
|
},
|
|
9958
9958
|
"../lib/src/plugins/pdr-position/sensor.js": {
|
|
9959
|
-
"bytesInOutput":
|
|
9959
|
+
"bytesInOutput": 2926
|
|
9960
9960
|
},
|
|
9961
9961
|
"../lib/src/plugins/pdr-position/enum.js": {
|
|
9962
9962
|
"bytesInOutput": 125
|
|
9963
9963
|
},
|
|
9964
9964
|
"../lib/src/plugins/pdr-position/position.js": {
|
|
9965
|
-
"bytesInOutput":
|
|
9965
|
+
"bytesInOutput": 931
|
|
9966
9966
|
},
|
|
9967
9967
|
"../lib/src/plugins/pdr-position/pdr.js": {
|
|
9968
9968
|
"bytesInOutput": 3682
|
|
@@ -9992,7 +9992,7 @@
|
|
|
9992
9992
|
"bytesInOutput": 1040
|
|
9993
9993
|
},
|
|
9994
9994
|
"../lib/src/plugins/car-inertial-position/car-inertial-position.js": {
|
|
9995
|
-
"bytesInOutput":
|
|
9995
|
+
"bytesInOutput": 6612
|
|
9996
9996
|
},
|
|
9997
9997
|
"../lib/src/plugins/car-inertial-position/utils.js": {
|
|
9998
9998
|
"bytesInOutput": 1820
|
|
@@ -10007,10 +10007,10 @@
|
|
|
10007
10007
|
"bytesInOutput": 4004
|
|
10008
10008
|
},
|
|
10009
10009
|
"../lib/src/plugins/position/position.js": {
|
|
10010
|
-
"bytesInOutput":
|
|
10010
|
+
"bytesInOutput": 11415
|
|
10011
10011
|
},
|
|
10012
10012
|
"../lib/src/plugins/position/socket.js": {
|
|
10013
|
-
"bytesInOutput":
|
|
10013
|
+
"bytesInOutput": 2593
|
|
10014
10014
|
},
|
|
10015
10015
|
"../lib/src/plugins/position/utils.js": {
|
|
10016
10016
|
"bytesInOutput": 140
|
|
@@ -10031,7 +10031,7 @@
|
|
|
10031
10031
|
"bytesInOutput": 575
|
|
10032
10032
|
},
|
|
10033
10033
|
"../lib/src/plugins/graphic-draw/graphic-draw.js": {
|
|
10034
|
-
"bytesInOutput":
|
|
10034
|
+
"bytesInOutput": 13625
|
|
10035
10035
|
},
|
|
10036
10036
|
"../lib/src/plugins/graphic-draw/svg-drawer.js": {
|
|
10037
10037
|
"bytesInOutput": 4523
|
|
@@ -10046,7 +10046,7 @@
|
|
|
10046
10046
|
"bytesInOutput": 0
|
|
10047
10047
|
}
|
|
10048
10048
|
},
|
|
10049
|
-
"bytes":
|
|
10049
|
+
"bytes": 439664
|
|
10050
10050
|
}
|
|
10051
10051
|
}
|
|
10052
10052
|
}
|
package/lib/src/config.d.ts
CHANGED
|
@@ -70,6 +70,11 @@ export interface Config {
|
|
|
70
70
|
loaderPlaceConfig: {
|
|
71
71
|
textFontSize: number;
|
|
72
72
|
};
|
|
73
|
+
poiTextBackground: {
|
|
74
|
+
enable: boolean;
|
|
75
|
+
color: string;
|
|
76
|
+
opacity: number;
|
|
77
|
+
};
|
|
73
78
|
renderAnimation: 'setTimeout' | 'requestAnimationFrame';
|
|
74
79
|
}
|
|
75
80
|
export declare const defaultConfig: Config;
|
|
@@ -32,6 +32,11 @@ export interface PoiOptions2 {
|
|
|
32
32
|
icon_opacity: number;
|
|
33
33
|
icon_alpha_test: number;
|
|
34
34
|
text_alpha_test: number;
|
|
35
|
+
text_background?: {
|
|
36
|
+
enable: boolean;
|
|
37
|
+
color: string;
|
|
38
|
+
opacity: number;
|
|
39
|
+
};
|
|
35
40
|
}
|
|
36
41
|
type PoiEventMap2 = {
|
|
37
42
|
[K in keyof PoiOptions2 as `change-${K}`]: {
|
|
@@ -91,6 +96,7 @@ export declare class Poi2 extends Object3D<PoiEventMap2> {
|
|
|
91
96
|
unRegistryEvent(): void;
|
|
92
97
|
getPosition(): Vector3;
|
|
93
98
|
initIcon(): Promise<Sprite<Object3DEventMap> | undefined>;
|
|
99
|
+
get textTextureKey(): string;
|
|
94
100
|
_initTextTexture: () => Promise<void>;
|
|
95
101
|
initTextTexture: () => Promise<void>;
|
|
96
102
|
_initTextTextureRect: () => Promise<void>;
|
|
@@ -106,6 +112,7 @@ export declare class Poi2 extends Object3D<PoiEventMap2> {
|
|
|
106
112
|
renderBoxHelper(x?: number, y?: number): void;
|
|
107
113
|
setVisible(visible: boolean): void;
|
|
108
114
|
parentSetVisible(visible: boolean): void;
|
|
115
|
+
clearTextTextureCache(): void;
|
|
109
116
|
dispose(): void;
|
|
110
117
|
}
|
|
111
118
|
export {};
|
|
@@ -46,6 +46,11 @@ export declare class TextTextureFactory {
|
|
|
46
46
|
static splitText(text: string, ctx: CanvasRenderingContext2D, maxWidth: number): string[];
|
|
47
47
|
static getTextureByText(text: string, options?: Partial<typeof this.options> & {
|
|
48
48
|
maxWidth?: number;
|
|
49
|
+
background?: {
|
|
50
|
+
enable: boolean;
|
|
51
|
+
color: string;
|
|
52
|
+
opacity: number;
|
|
53
|
+
};
|
|
49
54
|
}): Promise<{
|
|
50
55
|
texture: DataTexture;
|
|
51
56
|
lines: number;
|