laymur 0.17.6 → 0.17.8

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.
@@ -27,6 +27,7 @@ export { UISceneUpdateMode } from "./elements/UIScene/UIScene.Internal";
27
27
  export { UIText } from "./elements/UIText/UIText";
28
28
  export { UITextResizeMode } from "./elements/UIText/UIText.Internal";
29
29
  export { UIFullscreenLayer } from "./layers/UIFullscreenLayer/UIFullscreenLayer";
30
+ export type { UIFullscreenLayerInputEventData } from "./layers/UIFullscreenLayer/UIFullscreenLayer.Internal";
30
31
  export { UILayer } from "./layers/UILayer/UILayer";
31
32
  export { UIAreaCircle } from "./miscellaneous/area/UIAreaCircle";
32
33
  export { UIAreaPolygon } from "./miscellaneous/area/UIAreaPolygon";
@@ -52,6 +52,10 @@ export declare class UIMicro {
52
52
  set rotation(value: number);
53
53
  /** Which transforms apply relative to anchor */
54
54
  set anchorMode(value: UIMicroAnchorMode);
55
+ /** Sets the same scale for X and Y */
56
+ setUnifiedScale(scale: number): void;
57
+ /** Sets the same anchor for X and Y */
58
+ setUnifiedAnchor(anchor: number): void;
55
59
  /** Resets all transforms to defaults */
56
60
  reset(): void;
57
61
  /** Copies transforms from another instance */
@@ -132,6 +132,24 @@ class UIMicro {
132
132
  this._private_dirtyInternal = true;
133
133
  }
134
134
  }
135
+ /** Sets the same scale for X and Y */
136
+ setUnifiedScale(scale) {
137
+ assertValidNumber(scale, "UIMicro.setUnifiedScale.scale");
138
+ if (scale !== this._private_scaleXInternal || scale !== this._private_scaleYInternal) {
139
+ this._private_scaleXInternal = scale;
140
+ this._private_scaleYInternal = scale;
141
+ this._private_dirtyInternal = true;
142
+ }
143
+ }
144
+ /** Sets the same anchor for X and Y */
145
+ setUnifiedAnchor(anchor) {
146
+ assertValidNumber(anchor, "UIMicro.setUnifiedAnchor.anchor");
147
+ if (anchor !== this._private_anchorXInternal || anchor !== this._private_anchorYInternal) {
148
+ this._private_anchorXInternal = anchor;
149
+ this._private_anchorYInternal = anchor;
150
+ this._private_dirtyInternal = true;
151
+ }
152
+ }
135
153
  /** @internal */
136
154
  setDirtyFalse() {
137
155
  this._private_dirtyInternal = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "laymur",
3
- "version": "0.17.6",
3
+ "version": "0.17.8",
4
4
  "description": "Constraint-based UI library for Three.js mobile advertisements",
5
5
  "keywords": [
6
6
  "ui",