babylonjs-gui 5.43.2 → 5.45.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.
@@ -81,6 +81,8 @@ export class AdvancedDynamicTexture extends DynamicTexture {
81
81
  static AllowGPUOptimizations: boolean;
82
82
  /** Snippet ID if the content was created from the snippet server */
83
83
  snippetId: string;
84
+ /** Observable that fires when the GUI is ready */
85
+ onGuiReadyObservable: Observable<AdvancedDynamicTexture>;
84
86
  private _isDirty;
85
87
  private _renderObserver;
86
88
  private _resizeObserver;
@@ -543,6 +545,11 @@ export class AdvancedDynamicTexture extends DynamicTexture {
543
545
  * @param height the new height
544
546
  */
545
547
  scaleTo(width: number, height: number): void;
548
+ private _checkGuiIsReady;
549
+ /**
550
+ * Returns true if all the GUI components are ready to render
551
+ */
552
+ guiIsReady(): boolean;
546
553
  }
547
554
 
548
555
  }
@@ -988,6 +995,7 @@ export class Container extends Control {
988
995
  * @internal
989
996
  */
990
997
  _parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
998
+ isReady(): boolean;
991
999
  }
992
1000
 
993
1001
  }
@@ -1828,6 +1836,11 @@ export class Control implements IAnimatable {
1828
1836
  * @internal
1829
1837
  */
1830
1838
  protected static drawEllipse(x: number, y: number, width: number, height: number, context: ICanvasRenderingContext): void;
1839
+ /**
1840
+ * Returns true if the control is ready to be used
1841
+ * @returns
1842
+ */
1843
+ isReady(): boolean;
1831
1844
  }
1832
1845
 
1833
1846
  }
@@ -2374,6 +2387,7 @@ export class Image extends Control {
2374
2387
  * Gets a boolean indicating that the content is loaded
2375
2388
  */
2376
2389
  get isLoaded(): boolean;
2390
+ isReady(): boolean;
2377
2391
  /**
2378
2392
  * Gets or sets a boolean indicating if pointers should only be validated on pixels with alpha > 0.
2379
2393
  * Beware using this as this will consume more memory as the image has to be stored twice
@@ -8762,6 +8776,8 @@ declare module BABYLON.GUI {
8762
8776
  static AllowGPUOptimizations: boolean;
8763
8777
  /** Snippet ID if the content was created from the snippet server */
8764
8778
  snippetId: string;
8779
+ /** BABYLON.Observable that fires when the GUI is ready */
8780
+ onGuiReadyObservable: BABYLON.Observable<AdvancedDynamicTexture>;
8765
8781
  private _isDirty;
8766
8782
  private _renderObserver;
8767
8783
  private _resizeObserver;
@@ -9224,6 +9240,11 @@ declare module BABYLON.GUI {
9224
9240
  * @param height the new height
9225
9241
  */
9226
9242
  scaleTo(width: number, height: number): void;
9243
+ private _checkGuiIsReady;
9244
+ /**
9245
+ * Returns true if all the GUI components are ready to render
9246
+ */
9247
+ guiIsReady(): boolean;
9227
9248
  }
9228
9249
 
9229
9250
 
@@ -9633,6 +9654,7 @@ declare module BABYLON.GUI {
9633
9654
  * @internal
9634
9655
  */
9635
9656
  _parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
9657
+ isReady(): boolean;
9636
9658
  }
9637
9659
 
9638
9660
 
@@ -10455,6 +10477,11 @@ declare module BABYLON.GUI {
10455
10477
  * @internal
10456
10478
  */
10457
10479
  protected static drawEllipse(x: number, y: number, width: number, height: number, context: BABYLON.ICanvasRenderingContext): void;
10480
+ /**
10481
+ * Returns true if the control is ready to be used
10482
+ * @returns
10483
+ */
10484
+ isReady(): boolean;
10458
10485
  }
10459
10486
 
10460
10487
 
@@ -10959,6 +10986,7 @@ declare module BABYLON.GUI {
10959
10986
  * Gets a boolean indicating that the content is loaded
10960
10987
  */
10961
10988
  get isLoaded(): boolean;
10989
+ isReady(): boolean;
10962
10990
  /**
10963
10991
  * Gets or sets a boolean indicating if pointers should only be validated on pixels with alpha > 0.
10964
10992
  * Beware using this as this will consume more memory as the image has to be stored twice
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui",
3
- "version": "5.43.2",
3
+ "version": "5.45.0",
4
4
  "main": "babylon.gui.js",
5
5
  "types": "babylon.gui.module.d.ts",
6
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^5.43.2"
17
+ "babylonjs": "^5.45.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",