babylonjs-gui 5.50.1 → 5.52.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 +25 -1
- package/babylon.gui.js +121 -105
- 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 +50 -2
- package/package.json +2 -2
package/babylon.gui.d.ts
CHANGED
@@ -916,6 +916,8 @@ declare module BABYLON.GUI {
|
|
916
916
|
*/
|
917
917
|
_layout(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): boolean;
|
918
918
|
protected _postMeasure(): void;
|
919
|
+
private _inverseTransformMatrix;
|
920
|
+
private _inverseMeasure;
|
919
921
|
/**
|
920
922
|
* @internal
|
921
923
|
*/
|
@@ -4726,17 +4728,37 @@ declare module BABYLON.GUI {
|
|
4726
4728
|
}
|
4727
4729
|
|
4728
4730
|
|
4731
|
+
/**
|
4732
|
+
* Options used to create a button in 3D
|
4733
|
+
*/
|
4734
|
+
export interface IButton3DCreationOptions {
|
4735
|
+
/**
|
4736
|
+
* Width of the button. Default: 1
|
4737
|
+
*/
|
4738
|
+
width?: number;
|
4739
|
+
/**
|
4740
|
+
* Height of the button. Default: 1
|
4741
|
+
*/
|
4742
|
+
height?: number;
|
4743
|
+
/**
|
4744
|
+
* Depth of the button. Default: 0.08
|
4745
|
+
*/
|
4746
|
+
depth?: number;
|
4747
|
+
}
|
4729
4748
|
/**
|
4730
4749
|
* Class used to create a button in 3D
|
4731
4750
|
*/
|
4732
4751
|
export class Button3D extends AbstractButton3D {
|
4733
4752
|
/** @internal */
|
4734
4753
|
protected _currentMaterial: BABYLON.Material;
|
4754
|
+
protected _options: IButton3DCreationOptions;
|
4755
|
+
protected _height: number;
|
4756
|
+
protected _depth: number;
|
4735
4757
|
/**
|
4736
4758
|
* Creates a new button
|
4737
4759
|
* @param name defines the control name
|
4738
4760
|
*/
|
4739
|
-
constructor(name?: string);
|
4761
|
+
constructor(name?: string, options?: IButton3DCreationOptions);
|
4740
4762
|
/**
|
4741
4763
|
* Apply the facade texture (created from the content property).
|
4742
4764
|
* @param facadeTexture defines the AdvancedDynamicTexture to use
|
@@ -4830,11 +4852,13 @@ declare module BABYLON.GUI {
|
|
4830
4852
|
private _facadeTexture;
|
4831
4853
|
protected _contentResolution: number;
|
4832
4854
|
protected _contentScaleRatio: number;
|
4855
|
+
protected _contentScaleRatioY?: number;
|
4833
4856
|
/**
|
4834
4857
|
* Gets or sets the GUI 2D content used to display the button's facade
|
4835
4858
|
*/
|
4836
4859
|
get content(): Control;
|
4837
4860
|
set content(value: Control);
|
4861
|
+
protected _setFacadeTextureScaling(): void;
|
4838
4862
|
/**
|
4839
4863
|
* Gets or sets the texture resolution used to render content (512 by default)
|
4840
4864
|
*/
|