@aibee/crc-bmap 0.14.32 → 0.14.33
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 +10 -10
- package/lib/index.esm.min.js +22 -22
- package/lib/meta.json +9 -9
- package/lib/src/bmap.d.ts +8 -0
- package/lib/src/context/context.d.ts +2 -0
- package/lib/src/elements/poi2.d.ts +16 -1
- package/package.json +1 -1
package/lib/meta.json
CHANGED
|
@@ -3193,7 +3193,7 @@
|
|
|
3193
3193
|
"format": "esm"
|
|
3194
3194
|
},
|
|
3195
3195
|
"../lib/src/elements/poi2.js": {
|
|
3196
|
-
"bytes":
|
|
3196
|
+
"bytes": 27236,
|
|
3197
3197
|
"imports": [
|
|
3198
3198
|
{
|
|
3199
3199
|
"path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
|
|
@@ -4795,7 +4795,7 @@
|
|
|
4795
4795
|
"format": "esm"
|
|
4796
4796
|
},
|
|
4797
4797
|
"../lib/src/context/collision-system.js": {
|
|
4798
|
-
"bytes":
|
|
4798
|
+
"bytes": 6570,
|
|
4799
4799
|
"imports": [
|
|
4800
4800
|
{
|
|
4801
4801
|
"path": "core-js/modules/es.array.unshift.js",
|
|
@@ -4816,7 +4816,7 @@
|
|
|
4816
4816
|
"format": "esm"
|
|
4817
4817
|
},
|
|
4818
4818
|
"../lib/src/context/context.js": {
|
|
4819
|
-
"bytes":
|
|
4819
|
+
"bytes": 19535,
|
|
4820
4820
|
"imports": [
|
|
4821
4821
|
{
|
|
4822
4822
|
"path": "core-js/modules/web.dom-collections.iterator.js",
|
|
@@ -5100,7 +5100,7 @@
|
|
|
5100
5100
|
"format": "esm"
|
|
5101
5101
|
},
|
|
5102
5102
|
"../lib/src/bmap.js": {
|
|
5103
|
-
"bytes":
|
|
5103
|
+
"bytes": 22666,
|
|
5104
5104
|
"imports": [
|
|
5105
5105
|
{
|
|
5106
5106
|
"path": "../../../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_extends.js",
|
|
@@ -9848,10 +9848,10 @@
|
|
|
9848
9848
|
"bytesInOutput": 208
|
|
9849
9849
|
},
|
|
9850
9850
|
"../lib/src/bmap.js": {
|
|
9851
|
-
"bytesInOutput":
|
|
9851
|
+
"bytesInOutput": 11303
|
|
9852
9852
|
},
|
|
9853
9853
|
"../lib/src/context/context.js": {
|
|
9854
|
-
"bytesInOutput":
|
|
9854
|
+
"bytesInOutput": 9436
|
|
9855
9855
|
},
|
|
9856
9856
|
"../lib/src/utils/timer.js": {
|
|
9857
9857
|
"bytesInOutput": 1783
|
|
@@ -10085,7 +10085,7 @@
|
|
|
10085
10085
|
"bytesInOutput": 1595
|
|
10086
10086
|
},
|
|
10087
10087
|
"../lib/src/elements/poi2.js": {
|
|
10088
|
-
"bytesInOutput":
|
|
10088
|
+
"bytesInOutput": 12704
|
|
10089
10089
|
},
|
|
10090
10090
|
"../lib/src/elements/heatmap.js": {
|
|
10091
10091
|
"bytesInOutput": 2123
|
|
@@ -10178,7 +10178,7 @@
|
|
|
10178
10178
|
"bytesInOutput": 186
|
|
10179
10179
|
},
|
|
10180
10180
|
"../lib/src/context/collision-system.js": {
|
|
10181
|
-
"bytesInOutput":
|
|
10181
|
+
"bytesInOutput": 2629
|
|
10182
10182
|
},
|
|
10183
10183
|
"../lib/src/config.js": {
|
|
10184
10184
|
"bytesInOutput": 1276
|
|
@@ -10340,7 +10340,7 @@
|
|
|
10340
10340
|
"bytesInOutput": 0
|
|
10341
10341
|
}
|
|
10342
10342
|
},
|
|
10343
|
-
"bytes":
|
|
10343
|
+
"bytes": 452963
|
|
10344
10344
|
}
|
|
10345
10345
|
}
|
|
10346
10346
|
}
|
package/lib/src/bmap.d.ts
CHANGED
|
@@ -144,6 +144,14 @@ export declare class BMap extends EventDispatcher<BmapEventMap> {
|
|
|
144
144
|
configurePolarShortcutKeys(keys: string[]): void;
|
|
145
145
|
configureAzimuthalShortcutKeys(keys: string[]): void;
|
|
146
146
|
rotateMap(radius?: number, duration?: number): void | Promise<unknown>;
|
|
147
|
+
/**
|
|
148
|
+
* 绘制 POI 碰撞检测包围盒(调试用,v1 DOM 文字与 v2 SDF 文字均支持)
|
|
149
|
+
*/
|
|
150
|
+
showCollisionBox(): void;
|
|
151
|
+
/**
|
|
152
|
+
* 关闭 POI 碰撞检测包围盒绘制
|
|
153
|
+
*/
|
|
154
|
+
hideCollisionBox(): void;
|
|
147
155
|
/**
|
|
148
156
|
* 测量距离
|
|
149
157
|
* @returns
|
|
@@ -77,6 +77,8 @@ export declare class Context extends EventDispatcher<ContextEventMap> {
|
|
|
77
77
|
};
|
|
78
78
|
renderRf: number;
|
|
79
79
|
basicZoom: number;
|
|
80
|
+
/** 是否绘制 POI 碰撞检测包围盒(调试用) */
|
|
81
|
+
debugCollisionBox: boolean;
|
|
80
82
|
constructor(container: HTMLElement, bmap: BMap);
|
|
81
83
|
get config(): import("..").Config;
|
|
82
84
|
get center(): [number, number];
|
|
@@ -130,8 +130,23 @@ export declare class Poi2 extends Object3D<PoiEventMap2> {
|
|
|
130
130
|
zoom: number;
|
|
131
131
|
}) => void;
|
|
132
132
|
resetZ(): void;
|
|
133
|
+
/**
|
|
134
|
+
* 标签渲染原点的世界坐标,供碰撞检测投影使用。
|
|
135
|
+
* 优先取文字/图标网格的实际世界坐标(包含 deltaZ 抬升与楼层等父级变换);
|
|
136
|
+
* 标签被隐藏(网格未创建)时,按 deltaZ 估算。
|
|
137
|
+
* 这样包围盒的基准点与渲染一致,2D / 3D 视角下都不会错位。
|
|
138
|
+
*/
|
|
139
|
+
getLabelOriginWorldPosition(target?: Vector3): Vector3;
|
|
140
|
+
/**
|
|
141
|
+
* 计算标签的屏幕包围盒(碰撞检测 & 点击拾取用)。
|
|
142
|
+
* v3 是「标签渲染原点」(见 getLabelOriginWorldPosition)的 NDC 坐标,
|
|
143
|
+
* 包围盒按渲染时的 pivot 布局构建:
|
|
144
|
+
* - 纯文字:文字块以原点为中心
|
|
145
|
+
* - 纯图标:图标以原点为中心
|
|
146
|
+
* - 图标+文字:图标底部贴原点,文字在图标上方,水平居中于原点
|
|
147
|
+
*/
|
|
133
148
|
getBox(v3: Vector3): Box2 | null;
|
|
134
|
-
renderBoxHelper(
|
|
149
|
+
renderBoxHelper(): void;
|
|
135
150
|
setVisible(visible: boolean): void;
|
|
136
151
|
parentSetVisible(visible: boolean): void;
|
|
137
152
|
clearTextTextureCache(): void;
|