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.d.ts
CHANGED
@@ -938,6 +938,8 @@ declare module BABYLON.GUI {
|
|
938
938
|
* @internal
|
939
939
|
*/
|
940
940
|
protected _additionalProcessing(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): void;
|
941
|
+
protected _getAdaptDimTo(dim: "width" | "height"): boolean;
|
942
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
941
943
|
/**
|
942
944
|
* Serializes the current control
|
943
945
|
* @param serializationObject defined the JSON serialized object
|
@@ -1727,6 +1729,19 @@ declare module BABYLON.GUI {
|
|
1727
1729
|
_processObservables(type: number, x: number, y: number, pi: BABYLON.Nullable<BABYLON.PointerInfoBase>, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
1728
1730
|
private _getStyleProperty;
|
1729
1731
|
private _prepareFont;
|
1732
|
+
/**
|
1733
|
+
* A control has a dimension fully defined if that dimension doesn't depend on the parent's dimension.
|
1734
|
+
* As an example, a control that has dimensions in pixels is fully defined, while in percentage is not fully defined.
|
1735
|
+
* @param dim the dimension to check (width or height)
|
1736
|
+
* @returns if the dimension is fully defined
|
1737
|
+
*/
|
1738
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
1739
|
+
/**
|
1740
|
+
* Gets the dimension of the control along a specified axis
|
1741
|
+
* @param dim the dimension to retrieve (width or height)
|
1742
|
+
* @returns the dimension value along the specified axis
|
1743
|
+
*/
|
1744
|
+
getDimension(dim: "width" | "height"): ValueAndUnit;
|
1730
1745
|
/**
|
1731
1746
|
* Clones a control and its descendants
|
1732
1747
|
* @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
|
@@ -3833,6 +3848,8 @@ declare module BABYLON.GUI {
|
|
3833
3848
|
protected _preMeasure(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): void;
|
3834
3849
|
protected _additionalProcessing(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): void;
|
3835
3850
|
protected _postMeasure(): void;
|
3851
|
+
private _getManualDim;
|
3852
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
3836
3853
|
/**
|
3837
3854
|
* Serializes the current control
|
3838
3855
|
* @param serializationObject defined the JSON serialized object
|
@@ -4040,6 +4057,7 @@ declare module BABYLON.GUI {
|
|
4040
4057
|
protected _parseLineWordWrapEllipsis(line: string | undefined, width: number, height: number, context: BABYLON.ICanvasRenderingContext): object[];
|
4041
4058
|
protected _renderLines(context: BABYLON.ICanvasRenderingContext): void;
|
4042
4059
|
private _computeHeightForLinesOf;
|
4060
|
+
isDimensionFullyDefined(dim: "width" | "height"): boolean;
|
4043
4061
|
/**
|
4044
4062
|
* Given a width constraint applied on the text block, find the expected height
|
4045
4063
|
* @returns expected height
|