babylonjs-gui 7.23.0 → 7.23.1

Sign up to get free protection for your applications and to get access to all the features.
package/babylon.gui.d.ts CHANGED
@@ -2524,6 +2524,10 @@ declare module BABYLON.GUI {
2524
2524
  private _contentViewport;
2525
2525
  private _contentDragBehavior;
2526
2526
  private _defaultBehavior;
2527
+ /**
2528
+ * If true, the content will be scaled to fit the dimensions of the slate
2529
+ */
2530
+ fitContentToDimensions: boolean;
2527
2531
  /**
2528
2532
  * Regroups all mesh behaviors for the slate
2529
2533
  */
@@ -2786,6 +2790,8 @@ declare module BABYLON.GUI {
2786
2790
  _host: GUI3DManager;
2787
2791
  /** @internal */
2788
2792
  _isScaledByManager: boolean;
2793
+ private _position?;
2794
+ private _scaling?;
2789
2795
  /** Gets or sets the control position in world space */
2790
2796
  get position(): BABYLON.Vector3;
2791
2797
  set position(value: BABYLON.Vector3);
@@ -2949,8 +2955,11 @@ declare module BABYLON.GUI {
2949
2955
  */
2950
2956
  export class ContentDisplay3D extends Control3D {
2951
2957
  private _content;
2952
- private _facadeTexture;
2953
- protected _contentResolution: number;
2958
+ protected _facadeTexture: BABYLON.Nullable<AdvancedDynamicTexture>;
2959
+ protected _contentResolution: number | {
2960
+ width: number;
2961
+ height: number;
2962
+ };
2954
2963
  protected _contentScaleRatio: number;
2955
2964
  protected _contentScaleRatioY?: number;
2956
2965
  /**
@@ -2962,8 +2971,14 @@ declare module BABYLON.GUI {
2962
2971
  /**
2963
2972
  * Gets or sets the texture resolution used to render content (512 by default)
2964
2973
  */
2965
- get contentResolution(): number;
2966
- set contentResolution(value: number);
2974
+ get contentResolution(): number | {
2975
+ width: number;
2976
+ height: number;
2977
+ };
2978
+ set contentResolution(value: number | {
2979
+ width: number;
2980
+ height: number;
2981
+ });
2967
2982
  protected _disposeFacadeTexture(): void;
2968
2983
  protected _resetContent(): void;
2969
2984
  /**