babylonjs-gui 5.29.0 → 5.31.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.
@@ -823,6 +823,7 @@ import { AdvancedDynamicTexture } from "babylonjs-gui/2D/advancedDynamicTexture"
823
823
  import { PointerInfoBase } from "babylonjs/Events/pointerEvents";
824
824
  import { ICanvasRenderingContext } from "babylonjs/Engines/ICanvas";
825
825
  import { DynamicTexture } from "babylonjs/Materials/Textures/dynamicTexture";
826
+ import { Observable } from "babylonjs/Misc/observable";
826
827
  /**
827
828
  * Root class for 2D containers
828
829
  * @see https://doc.babylonjs.com/how_to/gui#containers
@@ -910,6 +911,14 @@ export class Container extends Control {
910
911
  * @returns the current container
911
912
  */
912
913
  removeControl(control: Control): Container;
914
+ /**
915
+ * An event triggered when any control is added to this container.
916
+ */
917
+ onControlAddedObservable: Observable<Nullable<Control>>;
918
+ /**
919
+ * An event triggered when any control is removed from this container.
920
+ */
921
+ onControlRemovedObservable: Observable<Nullable<Control>>;
913
922
  /**
914
923
  * @internal
915
924
  */
@@ -984,6 +993,7 @@ import { Measure } from "babylonjs-gui/2D/measure";
984
993
  import { Style } from "babylonjs-gui/2D/style";
985
994
  import { Matrix2D, Vector2WithInfo } from "babylonjs-gui/2D/math2D";
986
995
  import { ICanvasRenderingContext } from "babylonjs/Engines/ICanvas";
996
+ import { IAccessibilityTag } from "babylonjs/IAccessibilityTag";
987
997
  import { IAnimatable } from "babylonjs/Animations/animatable.interface";
988
998
  import { Animation } from "babylonjs/Animations/animation";
989
999
  /**
@@ -1166,6 +1176,14 @@ export class Control implements IAnimatable {
1166
1176
  * @returns current class name
1167
1177
  */
1168
1178
  getClassName(): string;
1179
+ /**
1180
+ * Gets or sets the accessibility tag to describe the control for accessibility purpose.
1181
+ * By default, GUI controls already indicate accessibility info, but one can override the info using this tag.
1182
+ */
1183
+ set accessibilityTag(value: Nullable<IAccessibilityTag>);
1184
+ get accessibilityTag(): Nullable<IAccessibilityTag>;
1185
+ protected _accessibilityTag: Nullable<IAccessibilityTag>;
1186
+ onAccessibilityTagChangedObservable: Observable<Nullable<IAccessibilityTag>>;
1169
1187
  /**
1170
1188
  * An event triggered when pointer wheel is scrolled
1171
1189
  */
@@ -1210,6 +1228,10 @@ export class Control implements IAnimatable {
1210
1228
  * An event triggered when the control has been disposed
1211
1229
  */
1212
1230
  onDisposeObservable: Observable<Control>;
1231
+ /**
1232
+ * An event triggered when the control isVisible is changed
1233
+ */
1234
+ onIsVisibleChangedObservable: Observable<boolean>;
1213
1235
  /**
1214
1236
  * Get the hosting AdvancedDynamicTexture
1215
1237
  */
@@ -2103,6 +2125,10 @@ import { ICanvasRenderingContext, IImage } from "babylonjs/Engines/ICanvas";
2103
2125
  */
2104
2126
  export class Image extends Control {
2105
2127
  name?: string | undefined;
2128
+ /**
2129
+ * Specifies an alternate text for the image, if the image for some reason cannot be displayed.
2130
+ */
2131
+ alt?: string;
2106
2132
  private _workingCanvas;
2107
2133
  private _domImage;
2108
2134
  private _imageWidth;
@@ -9254,6 +9280,14 @@ declare module BABYLON.GUI {
9254
9280
  * @returns the current container
9255
9281
  */
9256
9282
  removeControl(control: Control): Container;
9283
+ /**
9284
+ * An event triggered when any control is added to this container.
9285
+ */
9286
+ onControlAddedObservable: BABYLON.Observable<BABYLON.Nullable<Control>>;
9287
+ /**
9288
+ * An event triggered when any control is removed from this container.
9289
+ */
9290
+ onControlRemovedObservable: BABYLON.Observable<BABYLON.Nullable<Control>>;
9257
9291
  /**
9258
9292
  * @internal
9259
9293
  */
@@ -9494,6 +9528,14 @@ declare module BABYLON.GUI {
9494
9528
  * @returns current class name
9495
9529
  */
9496
9530
  getClassName(): string;
9531
+ /**
9532
+ * Gets or sets the accessibility tag to describe the control for accessibility purpose.
9533
+ * By default, GUI controls already indicate accessibility info, but one can override the info using this tag.
9534
+ */
9535
+ set accessibilityTag(value: BABYLON.Nullable<BABYLON.IAccessibilityTag>);
9536
+ get accessibilityTag(): BABYLON.Nullable<BABYLON.IAccessibilityTag>;
9537
+ protected _accessibilityTag: BABYLON.Nullable<BABYLON.IAccessibilityTag>;
9538
+ onAccessibilityTagChangedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.IAccessibilityTag>>;
9497
9539
  /**
9498
9540
  * An event triggered when pointer wheel is scrolled
9499
9541
  */
@@ -9538,6 +9580,10 @@ declare module BABYLON.GUI {
9538
9580
  * An event triggered when the control has been disposed
9539
9581
  */
9540
9582
  onDisposeObservable: BABYLON.Observable<Control>;
9583
+ /**
9584
+ * An event triggered when the control isVisible is changed
9585
+ */
9586
+ onIsVisibleChangedObservable: BABYLON.Observable<boolean>;
9541
9587
  /**
9542
9588
  * Get the hosting AdvancedDynamicTexture
9543
9589
  */
@@ -10397,6 +10443,10 @@ declare module BABYLON.GUI {
10397
10443
  */
10398
10444
  export class Image extends Control {
10399
10445
  name?: string | undefined;
10446
+ /**
10447
+ * Specifies an alternate text for the image, if the image for some reason cannot be displayed.
10448
+ */
10449
+ alt?: string;
10400
10450
  private _workingCanvas;
10401
10451
  private _domImage;
10402
10452
  private _imageWidth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui",
3
- "version": "5.29.0",
3
+ "version": "5.31.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.29.0"
17
+ "babylonjs": "^5.31.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",