laymur 0.3.22 → 0.3.24

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,5 +1,6 @@
1
1
  import { type Camera, type Vector3, type WebGLRenderer } from "three";
2
2
  import type { UIResizePolicy } from "../miscellaneous/resizePolicies";
3
+ import { UIMode } from "../miscellaneous/UIMode";
3
4
  import { UILayer } from "./UILayer";
4
5
  /**
5
6
  * UI layer that covers the full browser window.
@@ -15,7 +16,7 @@ export declare class UIFullscreenLayer extends UILayer {
15
16
  /**
16
17
  * Creates a fullscreen layer and sets up window event listeners.
17
18
  */
18
- constructor(resizePolicy?: UIResizePolicy);
19
+ constructor(resizePolicy?: UIResizePolicy, mode?: UIMode);
19
20
  /**
20
21
  * Gets the current resize policy.
21
22
  */
@@ -163,6 +163,11 @@ export declare class UIColor extends Eventail {
163
163
  * @returns This UIColor instance for method chaining
164
164
  */
165
165
  copy(color: UIColor | Color): this;
166
+ /**
167
+ * Converts the color to a CSS rgba() string.
168
+ * @returns CSS rgba string (e.g., "rgba(255, 0, 0, 1)")
169
+ */
170
+ toCSSColor(): string;
166
171
  /**
167
172
  * Creates a new UIColor instance with identical color values.
168
173
  * @returns A new UIColor instance with the same RGBA values
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "laymur",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
4
4
  "description": "Constraint-based UI library for Three.js mobile advertisements",
5
5
  "scripts": {
6
6
  "clean": "rm -rf dist",