babylonjs-gui 5.27.1 → 5.28.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.
@@ -984,11 +984,13 @@ import { Measure } from "babylonjs-gui/2D/measure";
984
984
  import { Style } from "babylonjs-gui/2D/style";
985
985
  import { Matrix2D, Vector2WithInfo } from "babylonjs-gui/2D/math2D";
986
986
  import { ICanvasRenderingContext } from "babylonjs/Engines/ICanvas";
987
+ import { IAnimatable } from "babylonjs/Animations/animatable.interface";
988
+ import { Animation } from "babylonjs/Animations/animation";
987
989
  /**
988
990
  * Root class used for all 2D controls
989
991
  * @see https://doc.babylonjs.com/how_to/gui#controls
990
992
  */
991
- export class Control {
993
+ export class Control implements IAnimatable {
992
994
  /** defines the name of the control */
993
995
  name?: string | undefined;
994
996
  /**
@@ -1485,6 +1487,10 @@ export class Control {
1485
1487
  * Gets/sets the deoverlap movement multiplier
1486
1488
  */
1487
1489
  overlapDeltaMultiplier?: number;
1490
+ /**
1491
+ * Array of animations
1492
+ */
1493
+ animations: Nullable<Animation[]>;
1488
1494
  /**
1489
1495
  * Creates a new control
1490
1496
  * @param name defines the name of the control
@@ -9312,7 +9318,7 @@ declare module BABYLON.GUI {
9312
9318
  * Root class used for all 2D controls
9313
9319
  * @see https://doc.babylonjs.com/how_to/gui#controls
9314
9320
  */
9315
- export class Control {
9321
+ export class Control implements BABYLON.IAnimatable {
9316
9322
  /** defines the name of the control */
9317
9323
  name?: string | undefined;
9318
9324
  /**
@@ -9809,6 +9815,10 @@ declare module BABYLON.GUI {
9809
9815
  * Gets/sets the deoverlap movement multiplier
9810
9816
  */
9811
9817
  overlapDeltaMultiplier?: number;
9818
+ /**
9819
+ * Array of animations
9820
+ */
9821
+ animations: BABYLON.Nullable<BABYLON.Animation[]>;
9812
9822
  /**
9813
9823
  * Creates a new control
9814
9824
  * @param name defines the name of the control
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui",
3
- "version": "5.27.1",
3
+ "version": "5.28.0",
4
4
  "main": "babylon.gui.js",
5
5
  "types": "babylon.gui.module.d.ts",
6
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^5.27.1"
17
+ "babylonjs": "^5.28.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",