babylonjs-gui 5.0.0-beta.5 → 5.0.0-beta.9

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.
@@ -583,7 +583,7 @@ declare module "babylonjs-gui/2D/advancedDynamicTexture" {
583
583
  * @param samplingMode defines the texture sampling mode (Texture.NEAREST_SAMPLINGMODE by default)
584
584
  * @param invertY defines if the texture needs to be inverted on the y axis during loading (true by default)
585
585
  */
586
- constructor(name: string, width: number | undefined, height: number | undefined, scene: Nullable<Scene>, generateMipMaps?: boolean, samplingMode?: number, invertY?: boolean);
586
+ constructor(name: string, width?: number, height?: number, scene?: Nullable<Scene>, generateMipMaps?: boolean, samplingMode?: number, invertY?: boolean);
587
587
  /**
588
588
  * Get the current class name of the texture useful for serialization or dynamic coding.
589
589
  * @returns "AdvancedDynamicTexture"
@@ -772,6 +772,17 @@ declare module "babylonjs-gui/2D/advancedDynamicTexture" {
772
772
  * @returns a new AdvancedDynamicTexture
773
773
  */
774
774
  static CreateFullscreenUI(name: string, foreground?: boolean, scene?: Nullable<Scene>, sampling?: number, adaptiveScaling?: boolean): AdvancedDynamicTexture;
775
+ /**
776
+ * Scales the texture
777
+ * @param ratio the scale factor to apply to both width and height
778
+ */
779
+ scale(ratio: number): void;
780
+ /**
781
+ * Resizes the texture
782
+ * @param width the new width
783
+ * @param height the new height
784
+ */
785
+ scaleTo(width: number, height: number): void;
775
786
  }
776
787
  }
777
788
  declare module "babylonjs-gui/2D/controls/control" {
@@ -1266,10 +1277,10 @@ declare module "babylonjs-gui/2D/controls/control" {
1266
1277
  /** Gets or sets if control is Enabled */
1267
1278
  get isEnabled(): boolean;
1268
1279
  set isEnabled(value: boolean);
1269
- /** Gets or sets background color of control if it's disabled */
1280
+ /** Gets or sets background color of control if it's disabled. Only applies to Button class. */
1270
1281
  get disabledColor(): string;
1271
1282
  set disabledColor(value: string);
1272
- /** Gets or sets front color of control if it's disabled */
1283
+ /** Gets or sets front color of control if it's disabled. Only applies to Checkbox class. */
1273
1284
  get disabledColorItem(): string;
1274
1285
  set disabledColorItem(value: string);
1275
1286
  /**
@@ -4798,7 +4809,7 @@ declare module "babylonjs-gui/3D/materials/fluent/fluentMaterial" {
4798
4809
  * @param name defines the name of the material
4799
4810
  * @param scene defines the hosting scene
4800
4811
  */
4801
- constructor(name: string, scene: Scene);
4812
+ constructor(name: string, scene?: Scene);
4802
4813
  needAlphaBlending(): boolean;
4803
4814
  needAlphaTesting(): boolean;
4804
4815
  getAlphaTestTexture(): Nullable<BaseTexture>;
@@ -5085,7 +5096,7 @@ declare module "babylonjs-gui/3D/materials/fluentButton/fluentButtonMaterial" {
5085
5096
  */
5086
5097
  globalRightIndexTipPosition: Vector3;
5087
5098
  private _blobTexture;
5088
- constructor(name: string, scene: Scene);
5099
+ constructor(name: string, scene?: Scene);
5089
5100
  needAlphaBlending(): boolean;
5090
5101
  needAlphaTesting(): boolean;
5091
5102
  getAlphaTestTexture(): Nullable<BaseTexture>;
@@ -5691,7 +5702,7 @@ declare module "babylonjs-gui/3D/materials/fluentBackplate/fluentBackplateMateri
5691
5702
  */
5692
5703
  globalRightIndexTipPosition: Vector3;
5693
5704
  private _globalRightIndexTipPosition4;
5694
- constructor(name: string, scene: Scene);
5705
+ constructor(name: string, scene?: Scene);
5695
5706
  needAlphaBlending(): boolean;
5696
5707
  needAlphaTesting(): boolean;
5697
5708
  getAlphaTestTexture(): Nullable<BaseTexture>;
@@ -6353,7 +6364,7 @@ declare module "babylonjs-gui/3D/materials/mrdl/mrdlSliderBarMaterial" {
6353
6364
  * @hidden
6354
6365
  */
6355
6366
  globalRightIndexMiddlePosition: Vector4;
6356
- constructor(name: string, scene: Scene);
6367
+ constructor(name: string, scene?: Scene);
6357
6368
  needAlphaBlending(): boolean;
6358
6369
  needAlphaTesting(): boolean;
6359
6370
  getAlphaTestTexture(): Nullable<BaseTexture>;
@@ -6702,7 +6713,7 @@ declare module "babylonjs-gui/3D/materials/mrdl/mrdlSliderThumbMaterial" {
6702
6713
  * @hidden
6703
6714
  */
6704
6715
  globalRightIndexMiddlePosition: Vector4;
6705
- constructor(name: string, scene: Scene);
6716
+ constructor(name: string, scene?: Scene);
6706
6717
  needAlphaBlending(): boolean;
6707
6718
  needAlphaTesting(): boolean;
6708
6719
  getAlphaTestTexture(): Nullable<BaseTexture>;
@@ -6865,7 +6876,7 @@ declare module "babylonjs-gui/3D/materials/mrdl/mrdlBackplateMaterial" {
6865
6876
  * Gets or sets the edge width of the backplate.
6866
6877
  */
6867
6878
  edgeLineGradientBlend: number;
6868
- constructor(name: string, scene: Scene);
6879
+ constructor(name: string, scene?: Scene);
6869
6880
  needAlphaBlending(): boolean;
6870
6881
  needAlphaTesting(): boolean;
6871
6882
  getAlphaTestTexture(): Nullable<BaseTexture>;
@@ -7716,7 +7727,7 @@ declare module BABYLON.GUI {
7716
7727
  * @param samplingMode defines the texture sampling mode (Texture.NEAREST_SAMPLINGMODE by default)
7717
7728
  * @param invertY defines if the texture needs to be inverted on the y axis during loading (true by default)
7718
7729
  */
7719
- constructor(name: string, width: number | undefined, height: number | undefined, scene: BABYLON.Nullable<BABYLON.Scene>, generateMipMaps?: boolean, samplingMode?: number, invertY?: boolean);
7730
+ constructor(name: string, width?: number, height?: number, scene?: BABYLON.Nullable<BABYLON.Scene>, generateMipMaps?: boolean, samplingMode?: number, invertY?: boolean);
7720
7731
  /**
7721
7732
  * Get the current class name of the texture useful for serialization or dynamic coding.
7722
7733
  * @returns "AdvancedDynamicTexture"
@@ -7905,6 +7916,17 @@ declare module BABYLON.GUI {
7905
7916
  * @returns a new AdvancedDynamicTexture
7906
7917
  */
7907
7918
  static CreateFullscreenUI(name: string, foreground?: boolean, scene?: BABYLON.Nullable<BABYLON.Scene>, sampling?: number, adaptiveScaling?: boolean): AdvancedDynamicTexture;
7919
+ /**
7920
+ * Scales the texture
7921
+ * @param ratio the scale factor to apply to both width and height
7922
+ */
7923
+ scale(ratio: number): void;
7924
+ /**
7925
+ * Resizes the texture
7926
+ * @param width the new width
7927
+ * @param height the new height
7928
+ */
7929
+ scaleTo(width: number, height: number): void;
7908
7930
  }
7909
7931
  }
7910
7932
  declare module BABYLON.GUI {
@@ -8386,10 +8408,10 @@ declare module BABYLON.GUI {
8386
8408
  /** Gets or sets if control is Enabled */
8387
8409
  get isEnabled(): boolean;
8388
8410
  set isEnabled(value: boolean);
8389
- /** Gets or sets background color of control if it's disabled */
8411
+ /** Gets or sets background color of control if it's disabled. Only applies to Button class. */
8390
8412
  get disabledColor(): string;
8391
8413
  set disabledColor(value: string);
8392
- /** Gets or sets front color of control if it's disabled */
8414
+ /** Gets or sets front color of control if it's disabled. Only applies to Checkbox class. */
8393
8415
  get disabledColorItem(): string;
8394
8416
  set disabledColorItem(value: string);
8395
8417
  /**
@@ -11654,7 +11676,7 @@ declare module BABYLON.GUI {
11654
11676
  * @param name defines the name of the material
11655
11677
  * @param scene defines the hosting scene
11656
11678
  */
11657
- constructor(name: string, scene: BABYLON.Scene);
11679
+ constructor(name: string, scene?: BABYLON.Scene);
11658
11680
  needAlphaBlending(): boolean;
11659
11681
  needAlphaTesting(): boolean;
11660
11682
  getAlphaTestTexture(): BABYLON.Nullable<BABYLON.BaseTexture>;
@@ -11921,7 +11943,7 @@ declare module BABYLON.GUI {
11921
11943
  */
11922
11944
  globalRightIndexTipPosition: BABYLON.Vector3;
11923
11945
  private _blobTexture;
11924
- constructor(name: string, scene: BABYLON.Scene);
11946
+ constructor(name: string, scene?: BABYLON.Scene);
11925
11947
  needAlphaBlending(): boolean;
11926
11948
  needAlphaTesting(): boolean;
11927
11949
  getAlphaTestTexture(): BABYLON.Nullable<BABYLON.BaseTexture>;
@@ -12482,7 +12504,7 @@ declare module BABYLON.GUI {
12482
12504
  */
12483
12505
  globalRightIndexTipPosition: BABYLON.Vector3;
12484
12506
  private _globalRightIndexTipPosition4;
12485
- constructor(name: string, scene: BABYLON.Scene);
12507
+ constructor(name: string, scene?: BABYLON.Scene);
12486
12508
  needAlphaBlending(): boolean;
12487
12509
  needAlphaTesting(): boolean;
12488
12510
  getAlphaTestTexture(): BABYLON.Nullable<BABYLON.BaseTexture>;
@@ -13088,7 +13110,7 @@ declare module BABYLON.GUI {
13088
13110
  * @hidden
13089
13111
  */
13090
13112
  globalRightIndexMiddlePosition: BABYLON.Vector4;
13091
- constructor(name: string, scene: BABYLON.Scene);
13113
+ constructor(name: string, scene?: BABYLON.Scene);
13092
13114
  needAlphaBlending(): boolean;
13093
13115
  needAlphaTesting(): boolean;
13094
13116
  getAlphaTestTexture(): BABYLON.Nullable<BABYLON.BaseTexture>;
@@ -13424,7 +13446,7 @@ declare module BABYLON.GUI {
13424
13446
  * @hidden
13425
13447
  */
13426
13448
  globalRightIndexMiddlePosition: BABYLON.Vector4;
13427
- constructor(name: string, scene: BABYLON.Scene);
13449
+ constructor(name: string, scene?: BABYLON.Scene);
13428
13450
  needAlphaBlending(): boolean;
13429
13451
  needAlphaTesting(): boolean;
13430
13452
  getAlphaTestTexture(): BABYLON.Nullable<BABYLON.BaseTexture>;
@@ -13575,7 +13597,7 @@ declare module BABYLON.GUI {
13575
13597
  * Gets or sets the edge width of the backplate.
13576
13598
  */
13577
13599
  edgeLineGradientBlend: number;
13578
- constructor(name: string, scene: BABYLON.Scene);
13600
+ constructor(name: string, scene?: BABYLON.Scene);
13579
13601
  needAlphaBlending(): boolean;
13580
13602
  needAlphaTesting(): boolean;
13581
13603
  getAlphaTestTexture(): BABYLON.Nullable<BABYLON.BaseTexture>;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "name": "babylonjs-gui",
6
6
  "description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.",
7
- "version": "5.0.0-beta.5",
7
+ "version": "5.0.0-beta.9",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "babylonjs": "5.0.0-beta.5"
31
+ "babylonjs": "5.0.0-beta.9"
32
32
  },
33
33
  "engines": {
34
34
  "node": "*"