laymur 0.2.9 → 0.2.11
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/builders/UICoverConstraintBuilder.d.ts +54 -0
- package/dist/builders/UIFitConstraintBuilder.d.ts +54 -0
- package/dist/constraints/UIAspectConstraint.d.ts +3 -3
- package/dist/constraints/UIHeightConstraint.d.ts +3 -3
- package/dist/constraints/UIWidthConstraint.d.ts +3 -3
- package/dist/elements/UIElement.d.ts +25 -2
- package/dist/elements/UIScene.d.ts +11 -1
- package/dist/elements/UIText.d.ts +12 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +142 -20
- 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/UILayer.d.ts +18 -0
- package/dist/miscellaneous/asserts.d.ts +8 -0
- package/package.json +1 -1
- package/dist/constraints/UICoverConstraint.d.ts +0 -0
- package/dist/constraints/UIFitConstraint.d.ts +0 -0
package/dist/layers/UILayer.d.ts
CHANGED
|
@@ -141,4 +141,22 @@ export declare abstract class UILayer extends Eventail {
|
|
|
141
141
|
* @protected
|
|
142
142
|
*/
|
|
143
143
|
protected clickInternal(x: number, y: number): void;
|
|
144
|
+
/**
|
|
145
|
+
* Internal method for accessing the constraint solver wrapper.
|
|
146
|
+
*
|
|
147
|
+
* Provides access to the layer's constraint solver for elements and
|
|
148
|
+
* constraints that need to create variables or constraints.
|
|
149
|
+
*
|
|
150
|
+
* @returns The constraint solver wrapper instance
|
|
151
|
+
*/
|
|
152
|
+
protected ["getSolverWrapperInternal"](): UISolverWrapper;
|
|
153
|
+
/**
|
|
154
|
+
* Internal method for accessing the 3D scene wrapper.
|
|
155
|
+
*
|
|
156
|
+
* Provides access to the layer's scene management system for elements
|
|
157
|
+
* that need to be added to or removed from the 3D scene.
|
|
158
|
+
*
|
|
159
|
+
* @returns The scene wrapper instance
|
|
160
|
+
*/
|
|
161
|
+
protected ["getSceneWrapperInternal"](): UISceneWrapper;
|
|
144
162
|
}
|
|
@@ -22,6 +22,10 @@ export interface UIPointElement {
|
|
|
22
22
|
xVariable: number;
|
|
23
23
|
/** Solver variable descriptor for the y-coordinate. */
|
|
24
24
|
yVariable: number;
|
|
25
|
+
/** The x-coordinate of the element. */
|
|
26
|
+
x: number;
|
|
27
|
+
/** The y-coordinate of the element. */
|
|
28
|
+
y: number;
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
27
31
|
* Interface for UI elements that have both position and dimensions in 2D space.
|
|
@@ -34,6 +38,10 @@ export interface UIPlaneElement extends UIPointElement {
|
|
|
34
38
|
wVariable: number;
|
|
35
39
|
/** Solver variable descriptor for the height dimension. */
|
|
36
40
|
hVariable: number;
|
|
41
|
+
/** The width of the element. */
|
|
42
|
+
width: number;
|
|
43
|
+
/** The height of the element. */
|
|
44
|
+
height: number;
|
|
37
45
|
}
|
|
38
46
|
/**
|
|
39
47
|
* Type guard to check if an object implements the UILayerElement interface.
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|