babylonjs-gui 6.31.0 → 6.32.1
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 +18 -0
- package/babylon.gui.js +102 -37
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.min.js.map +1 -1
- package/babylon.gui.module.d.ts +36 -0
- package/package.json +2 -2
package/babylon.gui.module.d.ts
CHANGED
@@ -993,6 +993,8 @@ export class Container extends Control {
|
|
993
993
|
* @internal
|
994
994
|
*/
|
995
995
|
protected _additionalProcessing(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
996
|
+
protected _getAdaptDimTo(dim: "width" | "height"): boolean;
|
997
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
996
998
|
/**
|
997
999
|
* Serializes the current control
|
998
1000
|
* @param serializationObject defined the JSON serialized object
|
@@ -1800,6 +1802,19 @@ export class Control implements IAnimatable {
|
|
1800
1802
|
_processObservables(type: number, x: number, y: number, pi: Nullable<PointerInfoBase>, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
1801
1803
|
private _getStyleProperty;
|
1802
1804
|
private _prepareFont;
|
1805
|
+
/**
|
1806
|
+
* A control has a dimension fully defined if that dimension doesn't depend on the parent's dimension.
|
1807
|
+
* As an example, a control that has dimensions in pixels is fully defined, while in percentage is not fully defined.
|
1808
|
+
* @param dim the dimension to check (width or height)
|
1809
|
+
* @returns if the dimension is fully defined
|
1810
|
+
*/
|
1811
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
1812
|
+
/**
|
1813
|
+
* Gets the dimension of the control along a specified axis
|
1814
|
+
* @param dim the dimension to retrieve (width or height)
|
1815
|
+
* @returns the dimension value along the specified axis
|
1816
|
+
*/
|
1817
|
+
getDimension(dim: "width" | "height"): ValueAndUnit;
|
1803
1818
|
/**
|
1804
1819
|
* Clones a control and its descendants
|
1805
1820
|
* @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
|
@@ -4090,6 +4105,8 @@ export class StackPanel extends Container {
|
|
4090
4105
|
protected _preMeasure(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
4091
4106
|
protected _additionalProcessing(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
4092
4107
|
protected _postMeasure(): void;
|
4108
|
+
private _getManualDim;
|
4109
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
4093
4110
|
/**
|
4094
4111
|
* Serializes the current control
|
4095
4112
|
* @param serializationObject defined the JSON serialized object
|
@@ -4307,6 +4324,7 @@ export class TextBlock extends Control {
|
|
4307
4324
|
protected _parseLineWordWrapEllipsis(line: string | undefined, width: number, height: number, context: ICanvasRenderingContext): object[];
|
4308
4325
|
protected _renderLines(context: ICanvasRenderingContext): void;
|
4309
4326
|
private _computeHeightForLinesOf;
|
4327
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
4310
4328
|
/**
|
4311
4329
|
* Given a width constraint applied on the text block, find the expected height
|
4312
4330
|
* @returns expected height
|
@@ -9738,6 +9756,8 @@ declare module BABYLON.GUI {
|
|
9738
9756
|
* @internal
|
9739
9757
|
*/
|
9740
9758
|
protected _additionalProcessing(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): void;
|
9759
|
+
protected _getAdaptDimTo(dim: "width" | "height"): boolean;
|
9760
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
9741
9761
|
/**
|
9742
9762
|
* Serializes the current control
|
9743
9763
|
* @param serializationObject defined the JSON serialized object
|
@@ -10527,6 +10547,19 @@ declare module BABYLON.GUI {
|
|
10527
10547
|
_processObservables(type: number, x: number, y: number, pi: BABYLON.Nullable<BABYLON.PointerInfoBase>, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
10528
10548
|
private _getStyleProperty;
|
10529
10549
|
private _prepareFont;
|
10550
|
+
/**
|
10551
|
+
* A control has a dimension fully defined if that dimension doesn't depend on the parent's dimension.
|
10552
|
+
* As an example, a control that has dimensions in pixels is fully defined, while in percentage is not fully defined.
|
10553
|
+
* @param dim the dimension to check (width or height)
|
10554
|
+
* @returns if the dimension is fully defined
|
10555
|
+
*/
|
10556
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
10557
|
+
/**
|
10558
|
+
* Gets the dimension of the control along a specified axis
|
10559
|
+
* @param dim the dimension to retrieve (width or height)
|
10560
|
+
* @returns the dimension value along the specified axis
|
10561
|
+
*/
|
10562
|
+
getDimension(dim: "width" | "height"): ValueAndUnit;
|
10530
10563
|
/**
|
10531
10564
|
* Clones a control and its descendants
|
10532
10565
|
* @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
|
@@ -12633,6 +12666,8 @@ declare module BABYLON.GUI {
|
|
12633
12666
|
protected _preMeasure(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): void;
|
12634
12667
|
protected _additionalProcessing(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): void;
|
12635
12668
|
protected _postMeasure(): void;
|
12669
|
+
private _getManualDim;
|
12670
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
12636
12671
|
/**
|
12637
12672
|
* Serializes the current control
|
12638
12673
|
* @param serializationObject defined the JSON serialized object
|
@@ -12840,6 +12875,7 @@ declare module BABYLON.GUI {
|
|
12840
12875
|
protected _parseLineWordWrapEllipsis(line: string | undefined, width: number, height: number, context: BABYLON.ICanvasRenderingContext): object[];
|
12841
12876
|
protected _renderLines(context: BABYLON.ICanvasRenderingContext): void;
|
12842
12877
|
private _computeHeightForLinesOf;
|
12878
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
12843
12879
|
/**
|
12844
12880
|
* Given a width constraint applied on the text block, find the expected height
|
12845
12881
|
* @returns expected height
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "babylonjs-gui",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.32.1",
|
4
4
|
"main": "babylon.gui.js",
|
5
5
|
"types": "babylon.gui.module.d.ts",
|
6
6
|
"files": [
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"test:escheck": "es-check es6 ./babylon.gui.js"
|
16
16
|
},
|
17
17
|
"dependencies": {
|
18
|
-
"babylonjs": "^6.
|
18
|
+
"babylonjs": "^6.32.1"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
21
|
"@dev/build-tools": "1.0.0",
|