laymur 0.3.7 → 0.3.9
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/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/layers/UIFullscreenLayer.d.ts +9 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Camera, type Vector3, type WebGLRenderer } from "three";
|
|
2
2
|
import { UILayer } from "./UILayer";
|
|
3
3
|
/**
|
|
4
4
|
* UI layer that manages fullscreen interfaces with optional fixed dimensions and automatic scaling.
|
|
@@ -78,6 +78,14 @@ export declare class UIFullscreenLayer extends UILayer {
|
|
|
78
78
|
* @see {@link assertValidNumber}
|
|
79
79
|
*/
|
|
80
80
|
render(renderer: WebGLRenderer, deltaTime: number): void;
|
|
81
|
+
/**
|
|
82
|
+
* Projects a 3D world position to 2D screen coordinates within this layer.
|
|
83
|
+
*
|
|
84
|
+
* @param position - The 3D world position to project
|
|
85
|
+
* @param camera - The camera used for projection
|
|
86
|
+
* @returns The projected 2D position in layer coordinates
|
|
87
|
+
*/
|
|
88
|
+
projectWorldPosition(position: Vector3, camera: Camera): Vector3;
|
|
81
89
|
/**
|
|
82
90
|
* Calculates the scaling factor based on orientation and fixed dimensions.
|
|
83
91
|
*
|