laymur 0.8.1 → 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,7 +44,7 @@ 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
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "laymur",
3
- "version": "0.8.1",
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",