babylonjs-gui 5.38.0 → 5.40.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 +33 -0
- package/babylon.gui.js +64 -0
- 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 +66 -0
- package/package.json +2 -2
package/babylon.gui.module.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export class AdvancedDynamicTexture extends DynamicTexture {
|
|
|
90
90
|
private _pointerObserver;
|
|
91
91
|
private _canvasPointerOutObserver;
|
|
92
92
|
private _canvasBlurObserver;
|
|
93
|
+
private _controlAddedObserver;
|
|
93
94
|
private _background;
|
|
94
95
|
/** @internal */
|
|
95
96
|
_rootContainer: Container;
|
|
@@ -1744,6 +1745,19 @@ export class Control implements IAnimatable {
|
|
|
1744
1745
|
*/
|
|
1745
1746
|
_processObservables(type: number, x: number, y: number, pi: Nullable<PointerInfoBase>, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
1746
1747
|
private _prepareFont;
|
|
1748
|
+
/**
|
|
1749
|
+
* Clones a control and its descendants
|
|
1750
|
+
* @param host the texture where the control will be instantiated. Can be empty, in which case the control will be created on the same texture
|
|
1751
|
+
* @returns the cloned control
|
|
1752
|
+
*/
|
|
1753
|
+
clone(host?: AdvancedDynamicTexture): Control;
|
|
1754
|
+
/**
|
|
1755
|
+
* Parses a serialized object into this control
|
|
1756
|
+
* @param serializedObject the object with the serialized properties
|
|
1757
|
+
* @param host the texture where the control will be instantiated. Can be empty, in which case the control will be created on the same texture
|
|
1758
|
+
* @returns this control
|
|
1759
|
+
*/
|
|
1760
|
+
parse(serializedObject: any, host?: AdvancedDynamicTexture): Control;
|
|
1747
1761
|
/**
|
|
1748
1762
|
* Serializes the current control
|
|
1749
1763
|
* @param serializationObject defined the JSON serialized object
|
|
@@ -4333,6 +4347,25 @@ export class Matrix2D {
|
|
|
4333
4347
|
*/
|
|
4334
4348
|
static ComposeToRef(tx: number, ty: number, angle: number, scaleX: number, scaleY: number, parentMatrix: Nullable<Matrix2D>, result: Matrix2D): void;
|
|
4335
4349
|
}
|
|
4350
|
+
/**
|
|
4351
|
+
* Useful math functions
|
|
4352
|
+
*/
|
|
4353
|
+
export class MathTools {
|
|
4354
|
+
/**
|
|
4355
|
+
* Default rounding precision for GUI elements. It should be
|
|
4356
|
+
* set to a power of ten, where the exponent means the number
|
|
4357
|
+
* of decimal digits to round to, i.e, 100 means 2 decimal digits,
|
|
4358
|
+
* 1000 means 3 decimal digits, etc. Default is 100 (2 decimal digits).
|
|
4359
|
+
*/
|
|
4360
|
+
static DefaultRoundingPrecision: number;
|
|
4361
|
+
/**
|
|
4362
|
+
* Rounds a number to the nearest multiple of a given precision
|
|
4363
|
+
* @param value the value to be rounded
|
|
4364
|
+
* @param precision the multiple to which the value will be rounded. Default is 100 (2 decimal digits)
|
|
4365
|
+
* @returns
|
|
4366
|
+
*/
|
|
4367
|
+
static Round(value: number, precision?: number): number;
|
|
4368
|
+
}
|
|
4336
4369
|
|
|
4337
4370
|
}
|
|
4338
4371
|
declare module "babylonjs-gui/2D/measure" {
|
|
@@ -8500,6 +8533,7 @@ declare module BABYLON.GUI {
|
|
|
8500
8533
|
private _pointerObserver;
|
|
8501
8534
|
private _canvasPointerOutObserver;
|
|
8502
8535
|
private _canvasBlurObserver;
|
|
8536
|
+
private _controlAddedObserver;
|
|
8503
8537
|
private _background;
|
|
8504
8538
|
/** @internal */
|
|
8505
8539
|
_rootContainer: Container;
|
|
@@ -10103,6 +10137,19 @@ declare module BABYLON.GUI {
|
|
|
10103
10137
|
*/
|
|
10104
10138
|
_processObservables(type: number, x: number, y: number, pi: BABYLON.Nullable<BABYLON.PointerInfoBase>, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
10105
10139
|
private _prepareFont;
|
|
10140
|
+
/**
|
|
10141
|
+
* Clones a control and its descendants
|
|
10142
|
+
* @param host the texture where the control will be instantiated. Can be empty, in which case the control will be created on the same texture
|
|
10143
|
+
* @returns the cloned control
|
|
10144
|
+
*/
|
|
10145
|
+
clone(host?: AdvancedDynamicTexture): Control;
|
|
10146
|
+
/**
|
|
10147
|
+
* Parses a serialized object into this control
|
|
10148
|
+
* @param serializedObject the object with the serialized properties
|
|
10149
|
+
* @param host the texture where the control will be instantiated. Can be empty, in which case the control will be created on the same texture
|
|
10150
|
+
* @returns this control
|
|
10151
|
+
*/
|
|
10152
|
+
parse(serializedObject: any, host?: AdvancedDynamicTexture): Control;
|
|
10106
10153
|
/**
|
|
10107
10154
|
* Serializes the current control
|
|
10108
10155
|
* @param serializationObject defined the JSON serialized object
|
|
@@ -12491,6 +12538,25 @@ declare module BABYLON.GUI {
|
|
|
12491
12538
|
*/
|
|
12492
12539
|
static ComposeToRef(tx: number, ty: number, angle: number, scaleX: number, scaleY: number, parentMatrix: BABYLON.Nullable<Matrix2D>, result: Matrix2D): void;
|
|
12493
12540
|
}
|
|
12541
|
+
/**
|
|
12542
|
+
* Useful math functions
|
|
12543
|
+
*/
|
|
12544
|
+
export class MathTools {
|
|
12545
|
+
/**
|
|
12546
|
+
* Default rounding precision for GUI elements. It should be
|
|
12547
|
+
* set to a power of ten, where the exponent means the number
|
|
12548
|
+
* of decimal digits to round to, i.e, 100 means 2 decimal digits,
|
|
12549
|
+
* 1000 means 3 decimal digits, etc. Default is 100 (2 decimal digits).
|
|
12550
|
+
*/
|
|
12551
|
+
static DefaultRoundingPrecision: number;
|
|
12552
|
+
/**
|
|
12553
|
+
* Rounds a number to the nearest multiple of a given precision
|
|
12554
|
+
* @param value the value to be rounded
|
|
12555
|
+
* @param precision the multiple to which the value will be rounded. Default is 100 (2 decimal digits)
|
|
12556
|
+
* @returns
|
|
12557
|
+
*/
|
|
12558
|
+
static Round(value: number, precision?: number): number;
|
|
12559
|
+
}
|
|
12494
12560
|
|
|
12495
12561
|
|
|
12496
12562
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.40.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.
|
|
17
|
+
"babylonjs": "^5.40.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|