babylonjs-gui 5.27.0 → 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.
- package/babylon.gui.d.ts +6 -2
- package/babylon.gui.js +22 -1
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.min.js.map +1 -1
- package/babylon.gui.module.d.ts +14 -5
- package/package.json +2 -2
package/babylon.gui.d.ts
CHANGED
|
@@ -922,7 +922,7 @@ declare module BABYLON.GUI {
|
|
|
922
922
|
* Root class used for all 2D controls
|
|
923
923
|
* @see https://doc.babylonjs.com/how_to/gui#controls
|
|
924
924
|
*/
|
|
925
|
-
export class Control {
|
|
925
|
+
export class Control implements BABYLON.IAnimatable {
|
|
926
926
|
/** defines the name of the control */
|
|
927
927
|
name?: string | undefined;
|
|
928
928
|
/**
|
|
@@ -1419,6 +1419,10 @@ declare module BABYLON.GUI {
|
|
|
1419
1419
|
* Gets/sets the deoverlap movement multiplier
|
|
1420
1420
|
*/
|
|
1421
1421
|
overlapDeltaMultiplier?: number;
|
|
1422
|
+
/**
|
|
1423
|
+
* Array of animations
|
|
1424
|
+
*/
|
|
1425
|
+
animations: BABYLON.Nullable<BABYLON.Animation[]>;
|
|
1422
1426
|
/**
|
|
1423
1427
|
* Creates a new control
|
|
1424
1428
|
* @param name defines the name of the control
|
|
@@ -5039,7 +5043,7 @@ declare module BABYLON.GUI {
|
|
|
5039
5043
|
/**
|
|
5040
5044
|
* Class used to create the mrtkv3 button
|
|
5041
5045
|
*/
|
|
5042
|
-
export class
|
|
5046
|
+
export class TouchHolographicButtonV3 extends TouchButton3D {
|
|
5043
5047
|
/**
|
|
5044
5048
|
* Base Url for the frontplate model.
|
|
5045
5049
|
*/
|
package/babylon.gui.js
CHANGED
|
@@ -4597,6 +4597,10 @@ var Control = /** @class */ (function () {
|
|
|
4597
4597
|
*/
|
|
4598
4598
|
this.fixedRatio = 0;
|
|
4599
4599
|
this._fixedRatioMasterIsWidth = true;
|
|
4600
|
+
/**
|
|
4601
|
+
* Array of animations
|
|
4602
|
+
*/
|
|
4603
|
+
this.animations = null;
|
|
4600
4604
|
this._tmpMeasureA = new _measure__WEBPACK_IMPORTED_MODULE_3__.Measure(0, 0, 0, 0);
|
|
4601
4605
|
}
|
|
4602
4606
|
Object.defineProperty(Control.prototype, "isReadOnly", {
|
|
@@ -6491,6 +6495,8 @@ var Control = /** @class */ (function () {
|
|
|
6491
6495
|
serializationObject.fontWeight = this.fontWeight;
|
|
6492
6496
|
serializationObject.fontStyle = this.fontStyle;
|
|
6493
6497
|
}
|
|
6498
|
+
// Animations
|
|
6499
|
+
core_Misc_observable__WEBPACK_IMPORTED_MODULE_1__.SerializationHelper.AppendSerializedAnimations(this, serializationObject);
|
|
6494
6500
|
};
|
|
6495
6501
|
/**
|
|
6496
6502
|
* @internal
|
|
@@ -6508,6 +6514,22 @@ var Control = /** @class */ (function () {
|
|
|
6508
6514
|
if (serializedObject.fontStyle) {
|
|
6509
6515
|
this.fontStyle = serializedObject.fontStyle;
|
|
6510
6516
|
}
|
|
6517
|
+
// Animations
|
|
6518
|
+
if (serializedObject.animations) {
|
|
6519
|
+
this.animations = [];
|
|
6520
|
+
for (var animationIndex = 0; animationIndex < serializedObject.animations.length; animationIndex++) {
|
|
6521
|
+
var parsedAnimation = serializedObject.animations[animationIndex];
|
|
6522
|
+
var internalClass = (0,core_Misc_observable__WEBPACK_IMPORTED_MODULE_1__.GetClass)("BABYLON.Animation");
|
|
6523
|
+
if (internalClass) {
|
|
6524
|
+
this.animations.push(internalClass.Parse(parsedAnimation));
|
|
6525
|
+
}
|
|
6526
|
+
}
|
|
6527
|
+
if (serializedObject.autoAnimate && this._host && this._host.getScene()) {
|
|
6528
|
+
this._host
|
|
6529
|
+
.getScene()
|
|
6530
|
+
.beginAnimation(this, serializedObject.autoAnimateFrom, serializedObject.autoAnimateTo, serializedObject.autoAnimateLoop, serializedObject.autoAnimateSpeed || 1.0);
|
|
6531
|
+
}
|
|
6532
|
+
}
|
|
6511
6533
|
};
|
|
6512
6534
|
/** Releases associated resources */
|
|
6513
6535
|
Control.prototype.dispose = function () {
|
|
@@ -21223,7 +21245,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21223
21245
|
|
|
21224
21246
|
|
|
21225
21247
|
|
|
21226
|
-
|
|
21227
21248
|
/***/ }),
|
|
21228
21249
|
|
|
21229
21250
|
/***/ "../../../lts/gui/dist/3D/controls/meshButton3D.js":
|