@d5techs/3dgs-lib 1.4.2 → 1.4.4
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/3dgs-lib.cjs +117 -2
- package/dist/3dgs-lib.cjs.map +1 -1
- package/dist/3dgs-lib.js +117 -2
- package/dist/3dgs-lib.js.map +1 -1
- package/dist/App.d.ts +1 -0
- package/dist/gs/PLYLoaderMobile.d.ts +5 -0
- package/dist/interaction/HotspotManager.d.ts +6 -0
- package/package.json +1 -1
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>;
|
|
@@ -50,6 +50,11 @@ export interface CompactSplatData {
|
|
|
50
50
|
/** SH 系数(可选)Float32Array,每个 splat 45 个系数 */
|
|
51
51
|
shCoeffs?: Float32Array;
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Y↔Z 轴交换时对 SH 系数的基函数变换(interleaved 格式)。
|
|
55
|
+
* 对 L1/L2/L3 三个波段分别施加正交变换矩阵,使 SH 视角相关颜色在坐标变换后保持正确。
|
|
56
|
+
*/
|
|
57
|
+
export declare function transformSHCoeffsYZSwap(sh: Float32Array, base: number, perChannel: number): void;
|
|
53
58
|
/**
|
|
54
59
|
* 移动端优化的 PLY 加载器
|
|
55
60
|
* 直接输出紧凑格式,避免创建大量中间对象
|
|
@@ -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
|
*/
|