laymur 0.2.18 → 0.3.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.
Files changed (43) hide show
  1. package/README.md +17 -18
  2. package/dist/builders/UIConstraint2DBuilder.d.ts +1 -1
  3. package/dist/builders/UICoverConstraintBuilder.d.ts +3 -1
  4. package/dist/builders/UIFitConstraintBuilder.d.ts +3 -1
  5. package/dist/constraints/UIAspectConstraint.d.ts +0 -1
  6. package/dist/constraints/UIConstraint.d.ts +3 -0
  7. package/dist/constraints/UIHorizontalDistanceConstraint.d.ts +0 -1
  8. package/dist/constraints/UIHorizontalProportionConstraint.d.ts +2 -3
  9. package/dist/constraints/UISingleParameterConstraint.d.ts +0 -2
  10. package/dist/constraints/UIVerticalDistanceConstraint.d.ts +0 -1
  11. package/dist/constraints/UIVerticalProportionConstraint.d.ts +2 -3
  12. package/dist/elements/UIDummy.d.ts +7 -1
  13. package/dist/elements/UIElement.d.ts +52 -38
  14. package/dist/elements/UIImage.d.ts +30 -42
  15. package/dist/elements/UINineSline.d.ts +61 -68
  16. package/dist/elements/UIProgress.d.ts +86 -110
  17. package/dist/elements/UIScene.d.ts +21 -30
  18. package/dist/elements/UIText.d.ts +27 -41
  19. package/dist/index.d.ts +4 -1
  20. package/dist/index.js +1236 -941
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.min.js +1 -1
  23. package/dist/index.min.js.map +1 -1
  24. package/dist/layers/UIFullscreenLayer.d.ts +0 -4
  25. package/dist/layers/UILayer.d.ts +50 -3
  26. package/dist/miscellaneous/UIColor.d.ts +171 -0
  27. package/dist/miscellaneous/UIInputEvent.d.ts +7 -0
  28. package/dist/miscellaneous/UIMicro.d.ts +3 -3
  29. package/dist/miscellaneous/{UIAnchorMode.d.ts → UIMicroAnchorMode.d.ts} +1 -1
  30. package/dist/miscellaneous/UINineSliceBorder.d.ts +6 -6
  31. package/dist/miscellaneous/UISceneWrapperClientAPI.d.ts +10 -0
  32. package/dist/miscellaneous/UITextPadding.d.ts +1 -1
  33. package/dist/miscellaneous/UITransparencyMode.d.ts +26 -0
  34. package/dist/miscellaneous/textTools.d.ts +4 -4
  35. package/dist/scalable/UIScalableMesh.d.ts +0 -16
  36. package/dist/scalable/UIScalablePlaneMesh.d.ts +0 -14
  37. package/dist/wrappers/UISceneWrapper.d.ts +17 -15
  38. package/dist/wrappers/UISolverWrapper.d.ts +185 -0
  39. package/package.json +1 -1
  40. package/dist/materials/UIMaterial.d.ts +0 -13
  41. package/dist/materials/UINineSliceMaterial.d.ts +0 -27
  42. package/dist/materials/UIProgressMaterial.d.ts +0 -29
  43. package/dist/miscellaneous/threeInstances.d.ts +0 -2
@@ -86,7 +86,6 @@ export declare class UIFullscreenLayer extends UILayer {
86
86
  * width takes precedence; in vertical orientation, fixed height takes precedence.
87
87
  *
88
88
  * @returns The scaling factor to apply to window dimensions
89
- * @private
90
89
  */
91
90
  private calculateScale;
92
91
  /**
@@ -94,8 +93,6 @@ export declare class UIFullscreenLayer extends UILayer {
94
93
  *
95
94
  * Recalculates the scaling factor and updates the layer dimensions
96
95
  * based on the new window size and fixed dimension constraints.
97
- *
98
- * @private
99
96
  */
100
97
  private readonly onResize;
101
98
  /**
@@ -106,7 +103,6 @@ export declare class UIFullscreenLayer extends UILayer {
106
103
  * The y-coordinate is flipped to match the UI coordinate system.
107
104
  *
108
105
  * @param event - The pointer event from the browser
109
- * @private
110
106
  */
111
107
  private readonly onClick;
112
108
  }
@@ -1,9 +1,22 @@
1
1
  import { Eventail } from "eventail";
2
- import { type WebGLRenderer } from "three";
2
+ import type { WebGLRenderer } from "three";
3
3
  import { UIMode } from "../miscellaneous/UIMode";
4
4
  import { UIOrientation } from "../miscellaneous/UIOrientation";
5
+ import type { UISceneWrapperClientAPI } from "../miscellaneous/UISceneWrapperClientAPI";
5
6
  import { UISceneWrapper } from "../wrappers/UISceneWrapper";
6
7
  import { UISolverWrapper } from "../wrappers/UISolverWrapper";
8
+ /**
9
+ * Interface for handling input events within UI layers.
10
+ */
11
+ export interface UILayerInputListener {
12
+ /**
13
+ * Handles click events at the specified coordinates.
14
+ * @param x - The x-coordinate of the click
15
+ * @param y - The y-coordinate of the click
16
+ * @returns True if the click was handled, false otherwise
17
+ */
18
+ catchClick(x: number, y: number): boolean;
19
+ }
7
20
  /**
8
21
  * Events that can be emitted by UI layers.
9
22
  */
@@ -68,6 +81,8 @@ export declare abstract class UILayer extends Eventail {
68
81
  protected modeInternal: UIMode;
69
82
  /** Internal storage for the current orientation state. */
70
83
  protected orientationInternal: UIOrientation;
84
+ /** Collection of input listeners for handling user interactions, sorted by z-index. */
85
+ private readonly inputListeners;
71
86
  /**
72
87
  * Creates a new UILayer instance with specified dimensions.
73
88
  *
@@ -142,7 +157,7 @@ export declare abstract class UILayer extends Eventail {
142
157
  * @param y - The y-coordinate of the click
143
158
  * @protected
144
159
  */
145
- protected clickInternal(x: number, y: number): void;
160
+ protected pointerClickInternal(x: number, y: number): void;
146
161
  /**
147
162
  * Internal method for accessing the constraint solver wrapper.
148
163
  *
@@ -160,5 +175,37 @@ export declare abstract class UILayer extends Eventail {
160
175
  *
161
176
  * @returns The scene wrapper instance
162
177
  */
163
- protected ["getSceneWrapperInternal"](): UISceneWrapper;
178
+ protected ["getSceneWrapperClientAPI"](): UISceneWrapperClientAPI;
179
+ /**
180
+ * Internal method for registering an input listener for pointer events.
181
+ *
182
+ * Adds a listener to handle click events with the specified z-index priority.
183
+ * Higher z-index listeners are processed first during event handling.
184
+ *
185
+ * @param listener - The input listener to register
186
+ * @param zIndex - The z-index priority for event handling order
187
+ * @throws Will throw an error if the listener is already registered
188
+ */
189
+ protected ["listenPointerInput"](listener: UILayerInputListener, zIndex: number): void;
190
+ /**
191
+ * Internal method for updating the z-index of an existing input listener.
192
+ *
193
+ * Changes the priority order for event handling of an already registered listener.
194
+ * The listener must already exist in the system.
195
+ *
196
+ * @param listener - The input listener to update
197
+ * @param zIndex - The new z-index priority
198
+ * @throws Will throw an error if the listener is not found
199
+ */
200
+ protected ["setListenerZIndex"](listener: UILayerInputListener, zIndex: number): void;
201
+ /**
202
+ * Internal method for unregistering an input listener.
203
+ *
204
+ * Removes the specified listener from the event handling system.
205
+ * The listener will no longer receive click events.
206
+ *
207
+ * @param listener - The input listener to remove
208
+ * @throws Will throw an error if the listener is not found
209
+ */
210
+ protected ["unlistenPointerInput"](listener: UILayerInputListener): void;
164
211
  }
@@ -0,0 +1,171 @@
1
+ import { Eventail } from "eventail";
2
+ import type { Color } from "three";
3
+ /**
4
+ * Union type of all supported color names that can be used with UIColor.
5
+ * These names correspond to the predefined colors in the COLOR_NAMES database.
6
+ */
7
+ export type UIColorName = "black" | "white" | "red" | "green" | "blue" | "yellow" | "cyan" | "magenta" | "gray" | "grey" | "silver" | "maroon" | "olive" | "lime" | "aqua" | "teal" | "navy" | "fuchsia" | "purple" | "orange" | "pink" | "brown" | "gold" | "violet" | "indigo" | "coral" | "salmon" | "khaki" | "plum" | "orchid" | "tan" | "beige" | "mint" | "lavender" | "crimson" | "azure" | "ivory" | "snow";
8
+ /**
9
+ * Events that can be emitted by UIColor instances.
10
+ */
11
+ export declare enum UIColorEvent {
12
+ /** Emitted when any color property (r, g, b, a) changes. */
13
+ CHANGE = "change"
14
+ }
15
+ /**
16
+ * Event-based RGBA color class with support for multiple color formats and named colors.
17
+ *
18
+ * UIColor provides a comprehensive color management system with support for RGB, HSL,
19
+ * hexadecimal formats, and named colors. It extends Eventail to emit change events
20
+ * when color properties are modified, enabling reactive color updates throughout
21
+ * the UI system.
22
+ *
23
+ * Color components are stored as normalized values (0-1) for precision and
24
+ * compatibility with graphics APIs.
25
+ *
26
+ * @see {@link UIColorEvent} - Events emitted by color instances
27
+ * @see {@link UIColorName} - Supported named color values
28
+ */
29
+ export declare class UIColor extends Eventail {
30
+ /** Internal storage for the red component (0-1). */
31
+ rInternal: number;
32
+ /** Internal storage for the green component (0-1). */
33
+ gInternal: number;
34
+ /** Internal storage for the blue component (0-1). */
35
+ bInternal: number;
36
+ /** Internal storage for the alpha component (0-1). */
37
+ aInternal: number;
38
+ /**
39
+ * Creates a new UIColor instance with white color (1, 1, 1, 1).
40
+ */
41
+ constructor();
42
+ /**
43
+ * Creates a new UIColor instance from a named color.
44
+ * @param colorName - The name of the color from the predefined color database
45
+ * @param a - Optional alpha value (0-1), defaults to 1
46
+ */
47
+ constructor(colorName: UIColorName, a?: number);
48
+ /**
49
+ * Creates a new UIColor instance from RGB components.
50
+ * @param r - Red component (0-1)
51
+ * @param g - Green component (0-1)
52
+ * @param b - Blue component (0-1)
53
+ * @param a - Optional alpha value (0-1), defaults to 1
54
+ */
55
+ constructor(r: number, g: number, b: number, a?: number);
56
+ /**
57
+ * Creates a new UIColor instance from a hexadecimal RGB value.
58
+ * @param hexRGB - Hexadecimal RGB value (e.g., 0xFF0000 for red)
59
+ * @param a - Optional alpha value (0-1), defaults to 1
60
+ */
61
+ constructor(hexRGB: number, a?: number);
62
+ /**
63
+ * Gets the red component value.
64
+ * @returns The red component (0-1)
65
+ */
66
+ get r(): number;
67
+ /**
68
+ * Gets the green component value.
69
+ * @returns The green component (0-1)
70
+ */
71
+ get g(): number;
72
+ /**
73
+ * Gets the blue component value.
74
+ * @returns The blue component (0-1)
75
+ */
76
+ get b(): number;
77
+ /**
78
+ * Gets the alpha component value.
79
+ * @returns The alpha component (0-1)
80
+ */
81
+ get a(): number;
82
+ /**
83
+ * Sets the red component value and emits change event.
84
+ * @param value - The red component (0-1)
85
+ */
86
+ set r(value: number);
87
+ /**
88
+ * Sets the green component value and emits change event.
89
+ * @param value - The green component (0-1)
90
+ */
91
+ set g(value: number);
92
+ /**
93
+ * Sets the blue component value and emits change event.
94
+ * @param value - The blue component (0-1)
95
+ */
96
+ set b(value: number);
97
+ /**
98
+ * Sets the alpha component value and emits change event.
99
+ * @param value - The alpha component (0-1)
100
+ */
101
+ set a(value: number);
102
+ /**
103
+ * Sets all color components at once and emits change event.
104
+ * @param r - Red component (0-1)
105
+ * @param g - Green component (0-1)
106
+ * @param b - Blue component (0-1)
107
+ * @param a - Alpha component (0-1), defaults to current alpha value
108
+ * @returns This UIColor instance for method chaining
109
+ */
110
+ set(r: number, g: number, b: number, a?: number): this;
111
+ /**
112
+ * Converts the color to a 32-bit hexadecimal RGBA value.
113
+ * @returns Hexadecimal RGBA value with alpha in the most significant byte
114
+ */
115
+ getHexRGBA(): number;
116
+ /**
117
+ * Converts the color to a 24-bit hexadecimal RGB value (ignores alpha).
118
+ * @returns Hexadecimal RGB value (e.g., 0xFF0000 for red)
119
+ */
120
+ getHexRGB(): number;
121
+ /**
122
+ * Converts the color to HSL (Hue, Saturation, Lightness) format.
123
+ * @returns Object containing h (0-360), s (0-1), and l (0-1) values
124
+ */
125
+ getHSL(): {
126
+ h: number;
127
+ s: number;
128
+ l: number;
129
+ };
130
+ /**
131
+ * Sets the color from a 32-bit hexadecimal RGBA value and emits change event.
132
+ * @param hex - Hexadecimal RGBA value with alpha in the most significant byte
133
+ * @returns This UIColor instance for method chaining
134
+ */
135
+ setHexRGBA(hex: number): this;
136
+ /**
137
+ * Sets the color from a 24-bit hexadecimal RGB value and emits change event.
138
+ * @param hex - Hexadecimal RGB value (e.g., 0xFF0000 for red)
139
+ * @param a - Alpha value (0-1), defaults to current alpha
140
+ * @returns This UIColor instance for method chaining
141
+ */
142
+ setHexRGB(hex: number, a?: number): this;
143
+ /**
144
+ * Sets the color from HSL (Hue, Saturation, Lightness) values and emits change event.
145
+ * @param h - Hue value (0-360)
146
+ * @param s - Saturation value (0-1)
147
+ * @param l - Lightness value (0-1)
148
+ * @param a - Alpha value (0-1), defaults to current alpha
149
+ * @returns This UIColor instance for method chaining
150
+ */
151
+ setHSL(h: number, s: number, l: number, a?: number): this;
152
+ /**
153
+ * Sets the color from a predefined color name and emits change event.
154
+ * @param colorName - Name of the color from the predefined color database
155
+ * @param a - Alpha value (0-1), defaults to current alpha
156
+ * @returns This UIColor instance for method chaining
157
+ * @throws Will throw an error if the color name is not recognized
158
+ */
159
+ setName(colorName: UIColorName, a?: number): this;
160
+ /**
161
+ * Copies color values from another UIColor or Three.js Color instance and emits change event.
162
+ * @param color - The color to copy from (UIColor or Three.js Color)
163
+ * @returns This UIColor instance for method chaining
164
+ */
165
+ copy(color: UIColor | Color): this;
166
+ /**
167
+ * Creates a new UIColor instance with identical color values.
168
+ * @returns A new UIColor instance with the same RGBA values
169
+ */
170
+ clone(): UIColor;
171
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Events that can be emitted by UI elements.
3
+ */
4
+ export declare enum UIInputEvent {
5
+ /** Emitted when the element is clicked. */
6
+ CLICK = "click"
7
+ }
@@ -1,4 +1,4 @@
1
- import { UIAnchorMode } from "./UIAnchorMode";
1
+ import { UIMicroAnchorMode } from "./UIMicroAnchorMode";
2
2
  /**
3
3
  * Micro-transformation system for non-constraint based UI element adjustments.
4
4
  *
@@ -76,7 +76,7 @@ export declare class UIMicro {
76
76
  * Gets the current anchor mode determining which transformations are applied around the anchor point.
77
77
  * @returns The anchor mode (ROTATION_SCALE or POSITION_ROTATION_SCALE)
78
78
  */
79
- get anchorMode(): UIAnchorMode;
79
+ get anchorMode(): UIMicroAnchorMode;
80
80
  /**
81
81
  * Gets the rotation angle in radians.
82
82
  * @returns The rotation angle in radians
@@ -131,7 +131,7 @@ export declare class UIMicro {
131
131
  * Sets the anchor mode determining which transformations are applied around the anchor point.
132
132
  * @param value - The anchor mode (ROTATION_SCALE or POSITION_ROTATION_SCALE)
133
133
  */
134
- set anchorMode(value: UIAnchorMode);
134
+ set anchorMode(value: UIMicroAnchorMode);
135
135
  /**
136
136
  * Resets all transformation properties to their default values.
137
137
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Defines the anchor mode for UIMicro, determining which transformations are applied around the anchor point.
3
3
  */
4
- export declare enum UIAnchorMode {
4
+ export declare enum UIMicroAnchorMode {
5
5
  /** Rotation and scaling are applied around the anchor point */
6
6
  ROTATION_SCALE = 0,
7
7
  /** Position, rotation, and scaling transformations are all applied around the anchor point */
@@ -1,4 +1,4 @@
1
- export type UINineSliceBorder = {
1
+ export type UINineSliceBorders = {
2
2
  left: number;
3
3
  right: number;
4
4
  top: number;
@@ -13,9 +13,9 @@ export type UINineSliceBorder = {
13
13
  * @param value - The border value to resolve (can be number, partial object, or full object)
14
14
  * @returns Normalized border object with left, right, top, bottom properties
15
15
  */
16
- export declare function resolveNineSliceBorder(value: unknown): {
17
- left: number;
18
- right: number;
19
- top: number;
20
- bottom: number;
16
+ export declare function resolveNineSliceBorders(value: unknown): {
17
+ l: number;
18
+ r: number;
19
+ t: number;
20
+ b: number;
21
21
  };
@@ -0,0 +1,10 @@
1
+ import type { Matrix4 } from "three";
2
+ import type { UITransparencyMode } from "./UITransparencyMode";
3
+ export interface UISceneWrapperClientAPI {
4
+ createPlane(source: string, uniforms: Record<string, unknown>): number;
5
+ destroyPlane(handler: number): this;
6
+ setTransform(handler: number, value: Matrix4): this;
7
+ setUniform(handler: number, uniform: string, value: unknown): this;
8
+ setTransparency(handler: number, mode: UITransparencyMode): this;
9
+ setVisibility(handler: number, visible: boolean): this;
10
+ }
@@ -4,4 +4,4 @@ export interface UITextPadding {
4
4
  top: number;
5
5
  bottom: number;
6
6
  }
7
- export declare function resolvePadding(value: unknown): UITextPadding;
7
+ export declare function resolveTextPadding(value: unknown): UITextPadding;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Transparency rendering modes for UI elements.
3
+ *
4
+ * Controls how transparent and semi-transparent pixels are handled during rendering.
5
+ * Each mode offers different performance and visual quality trade-offs.
6
+ */
7
+ export declare enum UITransparencyMode {
8
+ /**
9
+ * Clip mode - pixels are either fully opaque or fully transparent.
10
+ * Uses alpha testing to discard pixels below a threshold.
11
+ * Best performance but no smooth transparency gradients.
12
+ */
13
+ CLIP = 0,
14
+ /**
15
+ * Hash mode - dithered transparency using screen-door transparency.
16
+ * Creates transparency illusion through pixel patterns.
17
+ * Good performance with better visual quality than CLIP.
18
+ */
19
+ HASH = 1,
20
+ /**
21
+ * Blend mode - true alpha blending with smooth transparency.
22
+ * Supports full range of transparency values with smooth gradients.
23
+ * Best visual quality but requires depth sorting and impacts performance.
24
+ */
25
+ BLEND = 2
26
+ }
@@ -1,12 +1,12 @@
1
1
  import type { UIChunkMetrics, UITextChunk, UITextContent, UITextLine, UITextSize } from "./textInterfaces";
2
2
  import { type UITextStyle } from "./UITextStyle";
3
3
  export declare function splitText(text: string): string[];
4
- export declare function measureTextChunk(context: CanvasRenderingContext2D, chunk: string, style: UITextStyle): UIChunkMetrics;
4
+ export declare function measureTextChunk(context: OffscreenCanvasRenderingContext2D, chunk: string, style: UITextStyle): UIChunkMetrics;
5
5
  export declare function buildLines(maxWidth: number, chunks: UITextChunk[]): UITextLine[];
6
6
  export declare function calculateTextSize(lines: UITextLine[]): UITextSize;
7
- export declare function renderText(x: number, y: number, text: string, style: UITextStyle, context: CanvasRenderingContext2D): void;
8
- export declare function renderTextLines(paddingTop: number, paddingLeft: number, lines: UITextLine[], context: CanvasRenderingContext2D): void;
9
- export declare function calculateTextContentParameters(context: CanvasRenderingContext2D, content: UITextContent, maxLineWidth: number, commonStyle?: Partial<UITextStyle>): {
7
+ export declare function renderText(x: number, y: number, text: string, style: UITextStyle, context: OffscreenCanvasRenderingContext2D): void;
8
+ export declare function renderTextLines(paddingTop: number, paddingLeft: number, lines: UITextLine[], context: OffscreenCanvasRenderingContext2D): void;
9
+ export declare function calculateTextContentParameters(context: OffscreenCanvasRenderingContext2D, content: UITextContent, maxLineWidth: number, commonStyle?: Partial<UITextStyle>): {
10
10
  lines: UITextLine[];
11
11
  size: UITextSize;
12
12
  };
@@ -1,16 +0,0 @@
1
- import type { InstancedBufferGeometry, Material } from "three";
2
- import { Mesh } from "three";
3
- export declare const SCALABLE_MESH_CAPACITY_STEP = 32;
4
- export declare abstract class UIScalableMesh extends Mesh {
5
- private readonly users;
6
- private lastUserIndex;
7
- private capacity;
8
- constructor(geometry: InstancedBufferGeometry, material: Material);
9
- createInstance(): number;
10
- removeInstance(index: number): void;
11
- protected getGeometryDataIndex(userIndex: number): number;
12
- private resizeInstancedGeometry;
13
- protected abstract buildGeometry(capacity: number): InstancedBufferGeometry;
14
- protected abstract copyGeometryToGeometry(from: InstancedBufferGeometry, to: InstancedBufferGeometry): void;
15
- protected abstract copyIndexToIndex(geometry: InstancedBufferGeometry, from: number, to: number): void;
16
- }
@@ -1,14 +0,0 @@
1
- import type { Color, Material, Matrix3, Matrix4 } from "three";
2
- import { InstancedBufferGeometry } from "three";
3
- import { UIScalableMesh } from "./UIScalableMesh";
4
- export declare class UIScalablePlaneMesh extends UIScalableMesh {
5
- constructor(material: Material);
6
- private static buildPlaneGeometry;
7
- setTransform(userIndex: number, matrix: Matrix4): this;
8
- setUVTransform(userIndex: number, matrix: Matrix3): this;
9
- setColor(userIndex: number, color: Color): this;
10
- setMisc(userIndex: number, alphaTest: number): this;
11
- protected buildGeometry(capacity: number): InstancedBufferGeometry;
12
- protected copyGeometryToGeometry(from: InstancedBufferGeometry, to: InstancedBufferGeometry): void;
13
- protected copyIndexToIndex(geometry: InstancedBufferGeometry, from: number, to: number): void;
14
- }
@@ -1,19 +1,21 @@
1
- import type { Object3D, WebGLRenderer } from "three";
2
- import type { UIElement } from "../elements/UIElement";
3
- export declare class UISceneWrapper {
1
+ import type { WebGLRenderer } from "three";
2
+ import { Matrix4, PlaneGeometry } from "three";
3
+ import type { UISceneWrapperClientAPI } from "../miscellaneous/UISceneWrapperClientAPI";
4
+ import { UITransparencyMode } from "../miscellaneous/UITransparencyMode";
5
+ export declare const geometry: PlaneGeometry;
6
+ export declare class UISceneWrapper implements UISceneWrapperClientAPI {
4
7
  private readonly scene;
5
8
  private readonly camera;
6
- private readonly elements;
9
+ private readonly descriptors;
10
+ private lastPlaneIndex;
7
11
  constructor(w: number, h: number);
8
- insertObject(element: UIElement, object: Object3D): void;
9
- replaceObject(element: UIElement, object: Object3D): void;
10
- removeObject(element: UIElement): void;
11
- resize(w: number, h: number): void;
12
- getVisibility(element: UIElement): boolean;
13
- getZIndex(element: UIElement): number;
14
- setZIndex(element: UIElement, zIndex: number): void;
15
- setVisibility(element: UIElement, visible: boolean): void;
16
- getSortedVisibleElements(): UIElement[];
17
- prepareRender(renderer: WebGLRenderer): void;
18
- render(renderer: WebGLRenderer): void;
12
+ createPlane(source: string, uniforms: Record<string, unknown>): number;
13
+ destroyPlane(handler: number): this;
14
+ setTransform(handler: number, value: Matrix4): this;
15
+ setUniform(handler: number, uniform: string, value: unknown): this;
16
+ setTransparency(handler: number, mode: UITransparencyMode): this;
17
+ setVisibility(handler: number, visible: boolean): this;
18
+ resize(width: number, height: number): this;
19
+ render(renderer: WebGLRenderer): this;
20
+ private resolveDescriptor;
19
21
  }