@d5techs/3dgs-lib 1.4.3 → 1.4.5

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/dist/App.d.ts CHANGED
@@ -164,6 +164,7 @@ export declare class App {
164
164
  getHotspots(): HotspotInfo[];
165
165
  setHotspotBillboard(hotspotIndex: number, enabled: boolean): boolean;
166
166
  getHotspotBillboard(hotspotIndex: number): boolean;
167
+ setHotspotPlacedScale(hotspotIndex: number, newPlacedScale: number): boolean;
167
168
  getHotspotCount(): number;
168
169
  findHotspotIndexByMeshStart(overlayMeshStartIndex: number): number;
169
170
  placeHotspotAt(objUrl: string, position: [number, number, number], normal: [number, number, number], visualDiameter?: number, normalOffset?: number, overrideScale?: number): Promise<HotspotInfo | null>;
@@ -91,7 +91,7 @@ export declare class HotspotManager {
91
91
  /**
92
92
  * 设置热点标签
93
93
  */
94
- setHotspotLabel(hotspotIndex: number, text: string, position?: HotspotLabelPosition, fontSize?: number, visible?: boolean): boolean;
94
+ setHotspotLabel(hotspotIndex: number, text: string, position?: HotspotLabelPosition | string, fontSize?: number, visible?: boolean): boolean;
95
95
  /**
96
96
  * 设置热点标签可见性
97
97
  */
@@ -179,6 +179,12 @@ export declare class HotspotManager {
179
179
  setHotspotBillboard(hotspotIndex: number, enabled: boolean): boolean;
180
180
  getHotspotBillboard(hotspotIndex: number): boolean;
181
181
  getHotspotCount(): number;
182
+ /**
183
+ * 更新热点的 placedScale,使 billboard 每帧重建矩阵时使用新值。
184
+ * 解决编辑器侧通过 setHotspotScale 修改尺寸后,billboard 模式
185
+ * 仍用旧 placedScale 覆盖的问题。
186
+ */
187
+ setHotspotPlacedScale(hotspotIndex: number, newPlacedScale: number): boolean;
182
188
  /**
183
189
  * 通过 overlay mesh 起始索引找到对应的热点索引
184
190
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d5techs/3dgs-lib",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "可扩展的 WebGPU 3D 渲染引擎",
5
5
  "type": "module",
6
6
  "main": "./dist/3dgs-lib.cjs",