laymur 0.25.1 → 0.25.2

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.
@@ -14,10 +14,11 @@ export { UIVerticalInterpolationConstraint } from "./constraints/UIVerticalInter
14
14
  export { UIVerticalProportionConstraint } from "./constraints/UIVerticalProportionConstraint/UIVerticalProportionConstraint.js";
15
15
  export { UIWidthConstraint } from "./constraints/UIWidthConstraint/UIWidthConstraint.js";
16
16
  export { UIAnchor } from "./elements/UIAnchor/UIAnchor.js";
17
+ export type { UIAnchorOptions } from "./elements/UIAnchor/UIAnchor.Internal.js";
17
18
  export { UIAnimatedImage } from "./elements/UIAnimatedImage/UIAnimatedImage.js";
18
19
  export { UIAnimatedImageLoopMode } from "./elements/UIAnimatedImage/UIAnimatedImage.Internal.js";
19
20
  export { UIDummy } from "./elements/UIDummy/UIDummy.js";
20
- export type { UIInputEventData } from "./elements/UIDummy/UIDummy.Internal.js";
21
+ export type { UIDummyOptions, UIInputEventData } from "./elements/UIDummy/UIDummy.Internal.js";
21
22
  export { UIGraphics } from "./elements/UIGraphics/UIGraphics.js";
22
23
  export { UIImage } from "./elements/UIImage/UIImage.js";
23
24
  export { UINineSlice } from "./elements/UINineSlice/UINineSlice.js";
@@ -35,10 +36,12 @@ export { UIAreaPolygon } from "./miscellaneous/area/UIAreaPolygon.js";
35
36
  export { UIAreaRectangle } from "./miscellaneous/area/UIAreaRectangle.js";
36
37
  export { UIAreaRoundedRectangle } from "./miscellaneous/area/UIAreaRoundedRectangle.js";
37
38
  export { UIColor } from "./miscellaneous/color/UIColor.js";
39
+ export { computeTransformMatrix } from "./miscellaneous/computeTransform.js";
38
40
  export { UIProgressMaskFunctionCircular } from "./miscellaneous/mask-function/UIProgressMaskFunctionCircular.js";
39
41
  export { UIProgressMaskFunctionDirectional } from "./miscellaneous/mask-function/UIProgressMaskFunctionDirectional.js";
40
42
  export { UIMicro } from "./miscellaneous/micro/UIMicro.js";
41
43
  export { UIMicroAnchorMode } from "./miscellaneous/micro/UIMicro.Internal.js";
44
+ export type { UIMicroConfig } from "./miscellaneous/micro/UIMicro.Internal.js";
42
45
  export { UIResizePolicyCover } from "./miscellaneous/resize-policy/UIResizePolicyCover.js";
43
46
  export { UIResizePolicyCross } from "./miscellaneous/resize-policy/UIResizePolicyCross.js";
44
47
  export { UIResizePolicyCrossInverted } from "./miscellaneous/resize-policy/UIResizePolicyCrossInverted.js";
@@ -47,7 +50,7 @@ export { UIResizePolicyFixedHeight } from "./miscellaneous/resize-policy/UIResiz
47
50
  export { UIResizePolicyFixedWidth } from "./miscellaneous/resize-policy/UIResizePolicyFixedWidth.js";
48
51
  export { UIResizePolicyNone } from "./miscellaneous/resize-policy/UIResizePolicyNone.js";
49
52
  export { UIExpression } from "./miscellaneous/UIExpression.js";
50
- export { UIMode } from "./miscellaneous/UIMode.js";
53
+ export { isUIModeInteractive, isUIModeVisible, UIMode } from "./miscellaneous/UIMode.js";
51
54
  export { UIOrientation } from "./miscellaneous/UIOrientation.js";
52
55
  export { UIPriority } from "./miscellaneous/UIPriority.js";
53
56
  export { UIRelation } from "./miscellaneous/UIRelation.js";
@@ -33,6 +33,7 @@ export { UIAreaPolygon } from "./miscellaneous/area/UIAreaPolygon.js";
33
33
  export { UIAreaRectangle } from "./miscellaneous/area/UIAreaRectangle.js";
34
34
  export { UIAreaRoundedRectangle } from "./miscellaneous/area/UIAreaRoundedRectangle.js";
35
35
  export { UIColor } from "./miscellaneous/color/UIColor.js";
36
+ export { computeTransformMatrix } from "./miscellaneous/computeTransform.js";
36
37
  export { UIProgressMaskFunctionCircular } from "./miscellaneous/mask-function/UIProgressMaskFunctionCircular.js";
37
38
  export { UIProgressMaskFunctionDirectional } from "./miscellaneous/mask-function/UIProgressMaskFunctionDirectional.js";
38
39
  export { UIMicro } from "./miscellaneous/micro/UIMicro.js";
@@ -45,7 +46,7 @@ export { UIResizePolicyFixedHeight } from "./miscellaneous/resize-policy/UIResiz
45
46
  export { UIResizePolicyFixedWidth } from "./miscellaneous/resize-policy/UIResizePolicyFixedWidth.js";
46
47
  export { UIResizePolicyNone } from "./miscellaneous/resize-policy/UIResizePolicyNone.js";
47
48
  export { UIExpression } from "./miscellaneous/UIExpression.js";
48
- export { UIMode } from "./miscellaneous/UIMode.js";
49
+ export { isUIModeInteractive, isUIModeVisible, UIMode } from "./miscellaneous/UIMode.js";
49
50
  export { UIOrientation } from "./miscellaneous/UIOrientation.js";
50
51
  export { UIPriority } from "./miscellaneous/UIPriority.js";
51
52
  export { UIRelation } from "./miscellaneous/UIRelation.js";
@@ -4,6 +4,7 @@ import type { UIPlaneElement } from "../../miscellaneous/shared.js";
4
4
  import type { UIConstraint } from "../../constraints/UIConstraint.js";
5
5
  import type { UIAnchor } from "../../elements/UIAnchor/UIAnchor.js";
6
6
  import { UIInputWrapper } from "../../wrappers/UIInputWrapper/UIInputWrapper.js";
7
+ import type { UISceneWrapperView } from "../../wrappers/UISceneWrapper/UISceneWrapper.Internal.js";
7
8
  import type { UILayerMode, UILayerOptions, UILayerOrientation } from "./UILayer.Internal.js";
8
9
  /** Base layer for UI rendering and layout management */
9
10
  export declare abstract class UILayer implements UIPlaneElement {
@@ -32,6 +33,11 @@ export declare abstract class UILayer implements UIPlaneElement {
32
33
  private readonly elementRegistryInternal;
33
34
  private destroyedInternal;
34
35
  constructor(options: Partial<UILayerOptions>);
36
+ /**
37
+ * Scene of the layer. Elements living outside laymur, such as Spine skeletons, use it to add
38
+ * their own objects ordered among the planes.
39
+ */
40
+ get sceneWrapper(): UISceneWrapperView;
35
41
  /** X coordinate in world units (always 0 for layers) */
36
42
  get x(): number;
37
43
  /** Y coordinate in world units (always 0 for layers) */
@@ -40,7 +40,10 @@ export class UILayer {
40
40
  this.wVariable = this.solverWrapperInternal.createVariable(width, UIPriority.P0);
41
41
  this.hVariable = this.solverWrapperInternal.createVariable(height, UIPriority.P0);
42
42
  }
43
- /** @internal */
43
+ /**
44
+ * Scene of the layer. Elements living outside laymur, such as Spine skeletons, use it to add
45
+ * their own objects ordered among the planes.
46
+ */
44
47
  get sceneWrapper() {
45
48
  return this.sceneWrapperInternal;
46
49
  }
@@ -1,5 +1,4 @@
1
1
  export interface UIInputWrapperView {
2
- get dirty(): boolean;
3
2
  createInputCatcher(catchPointerDown: (x: number, y: number, identifier: number) => boolean, catchPointerMove: (x: number, y: number, identifier: number) => boolean, catchPointerUp: (x: number, y: number, identifier: number) => boolean, zIndex: number): number;
4
3
  destroyInputCatcher(handler: number): void;
5
4
  getZIndex(handler: number): number;
@@ -3,7 +3,6 @@ import type { UIExpression } from "../../miscellaneous/UIExpression.js";
3
3
  import type { UIPriority } from "../../miscellaneous/UIPriority.js";
4
4
  import type { UIRelation } from "../../miscellaneous/UIRelation.js";
5
5
  export interface UISolverWrapperView {
6
- get dirty(): boolean;
7
6
  createVariable(value: number, priority: UIPriority): number;
8
7
  removeVariable(index: number): void;
9
8
  hasVariable(index: number): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "laymur",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
4
4
  "description": "Constraint-based UI library for Three.js mobile advertisements",
5
5
  "keywords": [
6
6
  "ui",