iflow-engine-base 3.7.13 → 3.8.1
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/bim-engine-sdk.es.js +2518 -2426
- package/dist/bim-engine-sdk.es.js.map +1 -1
- package/dist/bim-engine-sdk.umd.js +75 -75
- package/dist/bim-engine-sdk.umd.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4421,6 +4421,13 @@ declare class WorldToScreen {
|
|
|
4421
4421
|
* y: 0 表示屏幕上边缘,height 表示屏幕下边缘
|
|
4422
4422
|
*/
|
|
4423
4423
|
worldToScreen(worldPos: THREE.Vector3): THREE.Vector2;
|
|
4424
|
+
/**
|
|
4425
|
+
* 将世界坐标转换为屏幕坐标,仅在点位于当前相机可见裁剪空间内时返回结果。
|
|
4426
|
+
* 透视相机背后的点经过 project 后会翻转到屏幕异常位置,这里提前过滤。
|
|
4427
|
+
* @param worldPos - 世界空间中的 3D 坐标点
|
|
4428
|
+
* @returns 屏幕像素坐标;如果点不可见或投影结果无效,返回 null
|
|
4429
|
+
*/
|
|
4430
|
+
worldToScreenIfVisible(worldPos: THREE.Vector3): THREE.Vector2 | null;
|
|
4424
4431
|
/**
|
|
4425
4432
|
* 将屏幕坐标(像素坐标)转换为归一化坐标
|
|
4426
4433
|
* @param screenX - 屏幕像素 X 坐标
|