@aibee/crc-bmap 0.13.13 → 0.13.15
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 +9 -9
- package/lib/index.esm.min.js +15 -15
- package/lib/meta.json +6 -6
- package/lib/src/elements/poi2.d.ts +11 -6
- package/package.json +1 -1
package/lib/meta.json
CHANGED
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
"format": "esm"
|
|
1042
1042
|
},
|
|
1043
1043
|
"../lib/src/factory/text-texture.js": {
|
|
1044
|
-
"bytes":
|
|
1044
|
+
"bytes": 29902,
|
|
1045
1045
|
"imports": [
|
|
1046
1046
|
{
|
|
1047
1047
|
"path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
|
|
@@ -2585,7 +2585,7 @@
|
|
|
2585
2585
|
"format": "esm"
|
|
2586
2586
|
},
|
|
2587
2587
|
"../src/factory/text-texture.ts": {
|
|
2588
|
-
"bytes":
|
|
2588
|
+
"bytes": 26323,
|
|
2589
2589
|
"imports": [
|
|
2590
2590
|
{
|
|
2591
2591
|
"path": "three",
|
|
@@ -2998,7 +2998,7 @@
|
|
|
2998
2998
|
"format": "esm"
|
|
2999
2999
|
},
|
|
3000
3000
|
"../lib/src/elements/poi2.js": {
|
|
3001
|
-
"bytes":
|
|
3001
|
+
"bytes": 15638,
|
|
3002
3002
|
"imports": [
|
|
3003
3003
|
{
|
|
3004
3004
|
"path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
|
|
@@ -9346,7 +9346,7 @@
|
|
|
9346
9346
|
"bytesInOutput": 14209
|
|
9347
9347
|
},
|
|
9348
9348
|
"../lib/src/factory/text-texture.js": {
|
|
9349
|
-
"bytesInOutput":
|
|
9349
|
+
"bytesInOutput": 10493
|
|
9350
9350
|
},
|
|
9351
9351
|
"../lib/src/factory/worker/text-texture.worker.js": {
|
|
9352
9352
|
"bytesInOutput": 101
|
|
@@ -9466,7 +9466,7 @@
|
|
|
9466
9466
|
"bytesInOutput": 1595
|
|
9467
9467
|
},
|
|
9468
9468
|
"../lib/src/elements/poi2.js": {
|
|
9469
|
-
"bytesInOutput":
|
|
9469
|
+
"bytesInOutput": 8159
|
|
9470
9470
|
},
|
|
9471
9471
|
"../lib/src/elements/svg-line.js": {
|
|
9472
9472
|
"bytesInOutput": 2240
|
|
@@ -9697,7 +9697,7 @@
|
|
|
9697
9697
|
"bytesInOutput": 433
|
|
9698
9698
|
}
|
|
9699
9699
|
},
|
|
9700
|
-
"bytes":
|
|
9700
|
+
"bytes": 401989
|
|
9701
9701
|
}
|
|
9702
9702
|
}
|
|
9703
9703
|
}
|
|
@@ -42,16 +42,20 @@ export type PoiOptionsParam2 = Partial<PoiOptions2>;
|
|
|
42
42
|
export declare class Poi2 extends Object3D<PoiEventMap2> {
|
|
43
43
|
context: Context;
|
|
44
44
|
options: PoiOptions2;
|
|
45
|
-
textAspect: number;
|
|
46
45
|
spriteText?: Sprite;
|
|
47
46
|
spriteIcon?: Sprite;
|
|
48
47
|
box: Box2;
|
|
49
48
|
boxHelper?: HTMLDivElement;
|
|
50
|
-
private _initIconPromise;
|
|
51
|
-
textureLines: number;
|
|
52
49
|
private _shouldShow;
|
|
53
|
-
|
|
50
|
+
textTextureMap: Record<string, {
|
|
51
|
+
texture: DataTexture;
|
|
52
|
+
lines: number;
|
|
53
|
+
textAspect: number;
|
|
54
|
+
}>;
|
|
54
55
|
constructor(context: Context, options: PoiOptionsParam2);
|
|
56
|
+
get textTexture(): DataTexture | null;
|
|
57
|
+
get textureLines(): number;
|
|
58
|
+
get textAspect(): number;
|
|
55
59
|
get hasText(): string | false;
|
|
56
60
|
get durIconAndText(): 2 | 0;
|
|
57
61
|
get offset(): 0 | 0.5;
|
|
@@ -60,7 +64,7 @@ export declare class Poi2 extends Object3D<PoiEventMap2> {
|
|
|
60
64
|
get textWidth(): number;
|
|
61
65
|
get textHeight(): number;
|
|
62
66
|
get hasOriginTexture(): boolean;
|
|
63
|
-
get inited(): true | "" | DataTexture |
|
|
67
|
+
get inited(): true | "" | DataTexture | null;
|
|
64
68
|
get deltaZ(): number;
|
|
65
69
|
get canSelect(): boolean;
|
|
66
70
|
show(): Promise<void>;
|
|
@@ -68,7 +72,8 @@ export declare class Poi2 extends Object3D<PoiEventMap2> {
|
|
|
68
72
|
registryEvent(): void;
|
|
69
73
|
unRegistryEvent(): void;
|
|
70
74
|
getPosition(): Vector3;
|
|
71
|
-
initIcon(): Promise<
|
|
75
|
+
initIcon(): Promise<Sprite<Object3DEventMap> | undefined>;
|
|
76
|
+
_initTextTexture: () => Promise<void>;
|
|
72
77
|
initTextTexture: () => Promise<void>;
|
|
73
78
|
initText(): Promise<void>;
|
|
74
79
|
initSize(): void;
|