babylonjs-gui 5.51.0 → 5.53.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 +23 -1
- package/babylon.gui.js +116 -106
- 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 +46 -2
- package/package.json +2 -2
    
        package/babylon.gui.d.ts
    CHANGED
    
    | @@ -4728,17 +4728,37 @@ declare module BABYLON.GUI { | |
| 4728 4728 | 
             
                }
         | 
| 4729 4729 |  | 
| 4730 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 | 
            +
                }
         | 
| 4731 4748 | 
             
                /**
         | 
| 4732 4749 | 
             
                 * Class used to create a button in 3D
         | 
| 4733 4750 | 
             
                 */
         | 
| 4734 4751 | 
             
                export class Button3D extends AbstractButton3D {
         | 
| 4735 4752 | 
             
                    /** @internal */
         | 
| 4736 4753 | 
             
                    protected _currentMaterial: BABYLON.Material;
         | 
| 4754 | 
            +
                    protected _options: IButton3DCreationOptions;
         | 
| 4755 | 
            +
                    protected _height: number;
         | 
| 4756 | 
            +
                    protected _depth: number;
         | 
| 4737 4757 | 
             
                    /**
         | 
| 4738 4758 | 
             
                     * Creates a new button
         | 
| 4739 4759 | 
             
                     * @param name defines the control name
         | 
| 4740 4760 | 
             
                     */
         | 
| 4741 | 
            -
                    constructor(name?: string);
         | 
| 4761 | 
            +
                    constructor(name?: string, options?: IButton3DCreationOptions);
         | 
| 4742 4762 | 
             
                    /**
         | 
| 4743 4763 | 
             
                     * Apply the facade texture (created from the content property).
         | 
| 4744 4764 | 
             
                     * @param facadeTexture defines the AdvancedDynamicTexture to use
         | 
| @@ -4832,11 +4852,13 @@ declare module BABYLON.GUI { | |
| 4832 4852 | 
             
                    private _facadeTexture;
         | 
| 4833 4853 | 
             
                    protected _contentResolution: number;
         | 
| 4834 4854 | 
             
                    protected _contentScaleRatio: number;
         | 
| 4855 | 
            +
                    protected _contentScaleRatioY?: number;
         | 
| 4835 4856 | 
             
                    /**
         | 
| 4836 4857 | 
             
                     * Gets or sets the GUI 2D content used to display the button's facade
         | 
| 4837 4858 | 
             
                     */
         | 
| 4838 4859 | 
             
                    get content(): Control;
         | 
| 4839 4860 | 
             
                    set content(value: Control);
         | 
| 4861 | 
            +
                    protected _setFacadeTextureScaling(): void;
         | 
| 4840 4862 | 
             
                    /**
         | 
| 4841 4863 | 
             
                     * Gets or sets the texture resolution used to render content (512 by default)
         | 
| 4842 4864 | 
             
                     */
         |