laymur 0.8.0 → 0.9.0

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.
@@ -1,4 +1,5 @@
1
- import { Vector2, Vector3, type Camera, type WebGLRenderer } from "three";
1
+ import type { Vector2 } from "three";
2
+ import { Vector3, type Camera, type WebGLRenderer } from "three";
2
3
  import { UIMode } from "../miscellaneous/UIMode";
3
4
  import type { UIResizePolicy } from "../miscellaneous/UIResizePolicy";
4
5
  import { UILayer } from "./UILayer";
@@ -43,13 +44,13 @@ export declare class UIFullscreenLayer extends UILayer {
43
44
  * @param camera - Camera for projection
44
45
  * @returns 2D position in layer space
45
46
  */
46
- projectWorldPosition(position: Vector3, camera: Camera): Vector2;
47
+ projectWorldPosition(position: Vector3, camera: Camera): Vector3;
47
48
  /**
48
49
  * Projects 2D layer position to 3D world coordinates.
49
50
  *
50
51
  * @param position - 2D position in layer space
51
52
  * @param camera - Camera for unprojection
52
- * @param z - Z depth in camera space (defaults to 1)
53
+ * @param z - z in NDC space (defaults to -1)
53
54
  * @returns 3D position in world space
54
55
  */
55
56
  projectLayerPosition(position: Vector2, camera: Camera, z?: number): Vector3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "laymur",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Constraint-based UI library for Three.js mobile advertisements",
5
5
  "scripts": {
6
6
  "clean": "rm -rf dist",