babylonjs-gui 6.39.0 → 6.40.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 +47 -21
- package/babylon.gui.js +104 -30
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.min.js.map +1 -1
- package/babylon.gui.module.d.ts +94 -42
- package/package.json +2 -2
package/babylon.gui.module.d.ts
CHANGED
@@ -554,7 +554,7 @@ export class AdvancedDynamicTexture extends DynamicTexture {
|
|
554
554
|
scaleTo(width: number, height: number): void;
|
555
555
|
private _checkGuiIsReady;
|
556
556
|
/**
|
557
|
-
*
|
557
|
+
* @returns true if all the GUI components are ready to render
|
558
558
|
*/
|
559
559
|
guiIsReady(): boolean;
|
560
560
|
}
|
@@ -591,10 +591,6 @@ export class Button extends Rectangle {
|
|
591
591
|
* Function called to generate a pointer up animation
|
592
592
|
*/
|
593
593
|
pointerUpAnimation: () => void;
|
594
|
-
/**
|
595
|
-
* Gets or sets a boolean indicating that the button will let internal controls handle picking instead of doing it directly using its bounding info
|
596
|
-
*/
|
597
|
-
delegatePickingToChildren: boolean;
|
598
594
|
private _image;
|
599
595
|
/**
|
600
596
|
* Returns the image part of the button (if any)
|
@@ -635,8 +631,9 @@ export class Button extends Rectangle {
|
|
635
631
|
/**
|
636
632
|
* Serializes the current button
|
637
633
|
* @param serializationObject defines the JSON serialized object
|
634
|
+
* @param force force serialization even if isSerializable === false
|
638
635
|
*/
|
639
|
-
serialize(serializationObject: any): void;
|
636
|
+
serialize(serializationObject: any, force: boolean): void;
|
640
637
|
/**
|
641
638
|
* @internal
|
642
639
|
*/
|
@@ -866,6 +863,10 @@ export class Container extends Control {
|
|
866
863
|
protected _renderToIntermediateTexture: boolean;
|
867
864
|
/** @internal */
|
868
865
|
protected _intermediateTexture: Nullable<DynamicTexture>;
|
866
|
+
/**
|
867
|
+
* Gets or sets a boolean indicating that the container will let internal controls handle picking instead of doing it directly using its bounding info
|
868
|
+
*/
|
869
|
+
delegatePickingToChildren: boolean;
|
869
870
|
/** Gets or sets boolean indicating if children should be rendered to an intermediate texture rather than directly to host, useful for alpha blending */
|
870
871
|
get renderToIntermediateTexture(): boolean;
|
871
872
|
set renderToIntermediateTexture(value: boolean);
|
@@ -998,8 +999,9 @@ export class Container extends Control {
|
|
998
999
|
/**
|
999
1000
|
* Serializes the current control
|
1000
1001
|
* @param serializationObject defined the JSON serialized object
|
1002
|
+
* @param force force serialization even if isSerializable === false
|
1001
1003
|
*/
|
1002
|
-
serialize(serializationObject: any): void;
|
1004
|
+
serialize(serializationObject: any, force?: boolean): void;
|
1003
1005
|
/** Releases associated resources */
|
1004
1006
|
dispose(): void;
|
1005
1007
|
/**
|
@@ -1224,6 +1226,9 @@ export class Control implements IAnimatable {
|
|
1224
1226
|
set accessibilityTag(value: Nullable<IAccessibilityTag>);
|
1225
1227
|
get accessibilityTag(): Nullable<IAccessibilityTag>;
|
1226
1228
|
protected _accessibilityTag: Nullable<IAccessibilityTag>;
|
1229
|
+
/**
|
1230
|
+
* Observable that fires whenever the accessibility event of the control has changed
|
1231
|
+
*/
|
1227
1232
|
onAccessibilityTagChangedObservable: Observable<Nullable<IAccessibilityTag>>;
|
1228
1233
|
/**
|
1229
1234
|
* An event triggered when pointer wheel is scrolled
|
@@ -1301,6 +1306,10 @@ export class Control implements IAnimatable {
|
|
1301
1306
|
*/
|
1302
1307
|
get isHighlighted(): boolean;
|
1303
1308
|
set isHighlighted(value: boolean);
|
1309
|
+
/**
|
1310
|
+
* Indicates if the control should be serialized. Defaults to true.
|
1311
|
+
*/
|
1312
|
+
isSerializable: boolean;
|
1304
1313
|
/**
|
1305
1314
|
* Gets or sets a string defining the color to use for highlighting this control
|
1306
1315
|
*/
|
@@ -1831,8 +1840,9 @@ export class Control implements IAnimatable {
|
|
1831
1840
|
/**
|
1832
1841
|
* Serializes the current control
|
1833
1842
|
* @param serializationObject defined the JSON serialized object
|
1843
|
+
* @param force if the control should be serialized even if the isSerializable flag is set to false (default false)
|
1834
1844
|
*/
|
1835
|
-
serialize(serializationObject: any): void;
|
1845
|
+
serialize(serializationObject: any, force?: boolean): void;
|
1836
1846
|
/**
|
1837
1847
|
* @internal
|
1838
1848
|
*/
|
@@ -2022,7 +2032,7 @@ export class FocusableButton extends Button implements IFocusableControl {
|
|
2022
2032
|
*/
|
2023
2033
|
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
2024
2034
|
/** @internal */
|
2025
|
-
|
2035
|
+
dispose(): void;
|
2026
2036
|
}
|
2027
2037
|
|
2028
2038
|
}
|
@@ -2095,7 +2105,9 @@ export abstract class BaseGradient {
|
|
2095
2105
|
/**
|
2096
2106
|
* If there are any changes or the context changed, regenerate the canvas gradient object. Else,
|
2097
2107
|
* reuse the existing gradient.
|
2098
|
-
|
2108
|
+
* @param context the context to create the gradient from
|
2109
|
+
* @returns the canvas gradient
|
2110
|
+
*/
|
2099
2111
|
getCanvasGradient(context: ICanvasRenderingContext): CanvasGradient;
|
2100
2112
|
/**
|
2101
2113
|
* Adds a new color stop to the gradient.
|
@@ -2112,13 +2124,23 @@ export abstract class BaseGradient {
|
|
2112
2124
|
* Removes all color stops from the gradient
|
2113
2125
|
*/
|
2114
2126
|
clearColorStops(): void;
|
2115
|
-
/**
|
2127
|
+
/**
|
2128
|
+
* Color stops of the gradient
|
2129
|
+
*/
|
2116
2130
|
get colorStops(): GradientColorStop[];
|
2117
|
-
/**
|
2131
|
+
/**
|
2132
|
+
* @returns Type of the gradient
|
2133
|
+
*/
|
2118
2134
|
getClassName(): string;
|
2119
|
-
/**
|
2135
|
+
/**
|
2136
|
+
* Serialize into a json object
|
2137
|
+
* @param serializationObject object to serialize into
|
2138
|
+
*/
|
2120
2139
|
serialize(serializationObject: any): void;
|
2121
|
-
/**
|
2140
|
+
/**
|
2141
|
+
* Parse from json object
|
2142
|
+
* @param serializationObject object to parse from
|
2143
|
+
*/
|
2122
2144
|
parse(serializationObject: any): void;
|
2123
2145
|
}
|
2124
2146
|
|
@@ -2370,8 +2392,9 @@ export class Grid extends Container {
|
|
2370
2392
|
/**
|
2371
2393
|
* Serializes the current control
|
2372
2394
|
* @param serializationObject defined the JSON serialized object
|
2395
|
+
* @param force force serialization even if isSerializable === false
|
2373
2396
|
*/
|
2374
|
-
serialize(serializationObject: any): void;
|
2397
|
+
serialize(serializationObject: any, force: boolean): void;
|
2375
2398
|
/**
|
2376
2399
|
* @internal
|
2377
2400
|
*/
|
@@ -2545,7 +2568,8 @@ export class Image extends Control {
|
|
2545
2568
|
set source(value: Nullable<string>);
|
2546
2569
|
/**
|
2547
2570
|
* Checks for svg document with icon id present
|
2548
|
-
* @param value
|
2571
|
+
* @param value the source svg
|
2572
|
+
* @returns the svg
|
2549
2573
|
*/
|
2550
2574
|
private _svgCheck;
|
2551
2575
|
/**
|
@@ -4112,8 +4136,9 @@ export class StackPanel extends Container {
|
|
4112
4136
|
/**
|
4113
4137
|
* Serializes the current control
|
4114
4138
|
* @param serializationObject defined the JSON serialized object
|
4139
|
+
* @param force force serialization even if isSerializable === false
|
4115
4140
|
*/
|
4116
|
-
serialize(serializationObject: any): void;
|
4141
|
+
serialize(serializationObject: any, force: boolean): void;
|
4117
4142
|
/**
|
4118
4143
|
* @internal
|
4119
4144
|
*/
|
@@ -5168,6 +5193,7 @@ export class Button3D extends AbstractButton3D {
|
|
5168
5193
|
/**
|
5169
5194
|
* Creates a new button
|
5170
5195
|
* @param name defines the control name
|
5196
|
+
* @param options defines the options used to create the button
|
5171
5197
|
*/
|
5172
5198
|
constructor(name?: string, options?: IButton3DCreationOptions);
|
5173
5199
|
/**
|
@@ -5425,7 +5451,7 @@ export class Control3D implements IDisposable, IBehaviorAware<Control3D> {
|
|
5425
5451
|
*/
|
5426
5452
|
linkToTransformNode(node: Nullable<TransformNode>): Control3D;
|
5427
5453
|
/**
|
5428
|
-
* @internal
|
5454
|
+
* @internal
|
5429
5455
|
*/
|
5430
5456
|
_prepareNode(scene: Scene): void;
|
5431
5457
|
protected _injectGUI3DReservedDataStore(node: TransformNode): any;
|
@@ -5787,7 +5813,7 @@ export class HolographicSlate extends ContentDisplay3D {
|
|
5787
5813
|
private _attachContentPlateBehavior;
|
5788
5814
|
protected _affectMaterial(mesh: AbstractMesh): void;
|
5789
5815
|
/**
|
5790
|
-
* @internal
|
5816
|
+
* @internal
|
5791
5817
|
*/
|
5792
5818
|
_prepareNode(scene: Scene): void;
|
5793
5819
|
/**
|
@@ -6531,8 +6557,8 @@ export class TouchHolographicMenu extends VolumeBasedPanel {
|
|
6531
6557
|
/**
|
6532
6558
|
* This method should not be used directly. It is inherited from `Container3D`.
|
6533
6559
|
* Please use `addButton` instead.
|
6534
|
-
* @param _control
|
6535
|
-
* @returns
|
6560
|
+
* @param _control the control to add
|
6561
|
+
* @returns the current container
|
6536
6562
|
*/
|
6537
6563
|
addControl(_control: Control3D): Container3D;
|
6538
6564
|
/**
|
@@ -9355,7 +9381,7 @@ declare module BABYLON.GUI {
|
|
9355
9381
|
scaleTo(width: number, height: number): void;
|
9356
9382
|
private _checkGuiIsReady;
|
9357
9383
|
/**
|
9358
|
-
*
|
9384
|
+
* @returns true if all the GUI components are ready to render
|
9359
9385
|
*/
|
9360
9386
|
guiIsReady(): boolean;
|
9361
9387
|
}
|
@@ -9382,10 +9408,6 @@ declare module BABYLON.GUI {
|
|
9382
9408
|
* Function called to generate a pointer up animation
|
9383
9409
|
*/
|
9384
9410
|
pointerUpAnimation: () => void;
|
9385
|
-
/**
|
9386
|
-
* Gets or sets a boolean indicating that the button will let internal controls handle picking instead of doing it directly using its bounding info
|
9387
|
-
*/
|
9388
|
-
delegatePickingToChildren: boolean;
|
9389
9411
|
private _image;
|
9390
9412
|
/**
|
9391
9413
|
* Returns the image part of the button (if any)
|
@@ -9426,8 +9448,9 @@ declare module BABYLON.GUI {
|
|
9426
9448
|
/**
|
9427
9449
|
* Serializes the current button
|
9428
9450
|
* @param serializationObject defines the JSON serialized object
|
9451
|
+
* @param force force serialization even if isSerializable === false
|
9429
9452
|
*/
|
9430
|
-
serialize(serializationObject: any): void;
|
9453
|
+
serialize(serializationObject: any, force: boolean): void;
|
9431
9454
|
/**
|
9432
9455
|
* @internal
|
9433
9456
|
*/
|
@@ -9631,6 +9654,10 @@ declare module BABYLON.GUI {
|
|
9631
9654
|
protected _renderToIntermediateTexture: boolean;
|
9632
9655
|
/** @internal */
|
9633
9656
|
protected _intermediateTexture: BABYLON.Nullable<BABYLON.DynamicTexture>;
|
9657
|
+
/**
|
9658
|
+
* Gets or sets a boolean indicating that the container will let internal controls handle picking instead of doing it directly using its bounding info
|
9659
|
+
*/
|
9660
|
+
delegatePickingToChildren: boolean;
|
9634
9661
|
/** Gets or sets boolean indicating if children should be rendered to an intermediate texture rather than directly to host, useful for alpha blending */
|
9635
9662
|
get renderToIntermediateTexture(): boolean;
|
9636
9663
|
set renderToIntermediateTexture(value: boolean);
|
@@ -9763,8 +9790,9 @@ declare module BABYLON.GUI {
|
|
9763
9790
|
/**
|
9764
9791
|
* Serializes the current control
|
9765
9792
|
* @param serializationObject defined the JSON serialized object
|
9793
|
+
* @param force force serialization even if isSerializable === false
|
9766
9794
|
*/
|
9767
|
-
serialize(serializationObject: any): void;
|
9795
|
+
serialize(serializationObject: any, force?: boolean): void;
|
9768
9796
|
/** Releases associated resources */
|
9769
9797
|
dispose(): void;
|
9770
9798
|
/**
|
@@ -9971,6 +9999,9 @@ declare module BABYLON.GUI {
|
|
9971
9999
|
set accessibilityTag(value: BABYLON.Nullable<BABYLON.IAccessibilityTag>);
|
9972
10000
|
get accessibilityTag(): BABYLON.Nullable<BABYLON.IAccessibilityTag>;
|
9973
10001
|
protected _accessibilityTag: BABYLON.Nullable<BABYLON.IAccessibilityTag>;
|
10002
|
+
/**
|
10003
|
+
* BABYLON.Observable that fires whenever the accessibility event of the control has changed
|
10004
|
+
*/
|
9974
10005
|
onAccessibilityTagChangedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.IAccessibilityTag>>;
|
9975
10006
|
/**
|
9976
10007
|
* An event triggered when pointer wheel is scrolled
|
@@ -10048,6 +10079,10 @@ declare module BABYLON.GUI {
|
|
10048
10079
|
*/
|
10049
10080
|
get isHighlighted(): boolean;
|
10050
10081
|
set isHighlighted(value: boolean);
|
10082
|
+
/**
|
10083
|
+
* Indicates if the control should be serialized. Defaults to true.
|
10084
|
+
*/
|
10085
|
+
isSerializable: boolean;
|
10051
10086
|
/**
|
10052
10087
|
* Gets or sets a string defining the color to use for highlighting this control
|
10053
10088
|
*/
|
@@ -10578,8 +10613,9 @@ declare module BABYLON.GUI {
|
|
10578
10613
|
/**
|
10579
10614
|
* Serializes the current control
|
10580
10615
|
* @param serializationObject defined the JSON serialized object
|
10616
|
+
* @param force if the control should be serialized even if the isSerializable flag is set to false (default false)
|
10581
10617
|
*/
|
10582
|
-
serialize(serializationObject: any): void;
|
10618
|
+
serialize(serializationObject: any, force?: boolean): void;
|
10583
10619
|
/**
|
10584
10620
|
* @internal
|
10585
10621
|
*/
|
@@ -10753,7 +10789,7 @@ declare module BABYLON.GUI {
|
|
10753
10789
|
*/
|
10754
10790
|
_onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
10755
10791
|
/** @internal */
|
10756
|
-
|
10792
|
+
dispose(): void;
|
10757
10793
|
}
|
10758
10794
|
|
10759
10795
|
|
@@ -10820,7 +10856,9 @@ declare module BABYLON.GUI {
|
|
10820
10856
|
/**
|
10821
10857
|
* If there are any changes or the context changed, regenerate the canvas gradient object. Else,
|
10822
10858
|
* reuse the existing gradient.
|
10823
|
-
|
10859
|
+
* @param context the context to create the gradient from
|
10860
|
+
* @returns the canvas gradient
|
10861
|
+
*/
|
10824
10862
|
getCanvasGradient(context: BABYLON.ICanvasRenderingContext): CanvasGradient;
|
10825
10863
|
/**
|
10826
10864
|
* Adds a new color stop to the gradient.
|
@@ -10837,13 +10875,23 @@ declare module BABYLON.GUI {
|
|
10837
10875
|
* Removes all color stops from the gradient
|
10838
10876
|
*/
|
10839
10877
|
clearColorStops(): void;
|
10840
|
-
/**
|
10878
|
+
/**
|
10879
|
+
* Color stops of the gradient
|
10880
|
+
*/
|
10841
10881
|
get colorStops(): GradientColorStop[];
|
10842
|
-
/**
|
10882
|
+
/**
|
10883
|
+
* @returns Type of the gradient
|
10884
|
+
*/
|
10843
10885
|
getClassName(): string;
|
10844
|
-
/**
|
10886
|
+
/**
|
10887
|
+
* Serialize into a json object
|
10888
|
+
* @param serializationObject object to serialize into
|
10889
|
+
*/
|
10845
10890
|
serialize(serializationObject: any): void;
|
10846
|
-
/**
|
10891
|
+
/**
|
10892
|
+
* Parse from json object
|
10893
|
+
* @param serializationObject object to parse from
|
10894
|
+
*/
|
10847
10895
|
parse(serializationObject: any): void;
|
10848
10896
|
}
|
10849
10897
|
|
@@ -11081,8 +11129,9 @@ declare module BABYLON.GUI {
|
|
11081
11129
|
/**
|
11082
11130
|
* Serializes the current control
|
11083
11131
|
* @param serializationObject defined the JSON serialized object
|
11132
|
+
* @param force force serialization even if isSerializable === false
|
11084
11133
|
*/
|
11085
|
-
serialize(serializationObject: any): void;
|
11134
|
+
serialize(serializationObject: any, force: boolean): void;
|
11086
11135
|
/**
|
11087
11136
|
* @internal
|
11088
11137
|
*/
|
@@ -11250,7 +11299,8 @@ declare module BABYLON.GUI {
|
|
11250
11299
|
set source(value: BABYLON.Nullable<string>);
|
11251
11300
|
/**
|
11252
11301
|
* Checks for svg document with icon id present
|
11253
|
-
* @param value
|
11302
|
+
* @param value the source svg
|
11303
|
+
* @returns the svg
|
11254
11304
|
*/
|
11255
11305
|
private _svgCheck;
|
11256
11306
|
/**
|
@@ -12675,8 +12725,9 @@ declare module BABYLON.GUI {
|
|
12675
12725
|
/**
|
12676
12726
|
* Serializes the current control
|
12677
12727
|
* @param serializationObject defined the JSON serialized object
|
12728
|
+
* @param force force serialization even if isSerializable === false
|
12678
12729
|
*/
|
12679
|
-
serialize(serializationObject: any): void;
|
12730
|
+
serialize(serializationObject: any, force: boolean): void;
|
12680
12731
|
/**
|
12681
12732
|
* @internal
|
12682
12733
|
*/
|
@@ -13657,6 +13708,7 @@ declare module BABYLON.GUI {
|
|
13657
13708
|
/**
|
13658
13709
|
* Creates a new button
|
13659
13710
|
* @param name defines the control name
|
13711
|
+
* @param options defines the options used to create the button
|
13660
13712
|
*/
|
13661
13713
|
constructor(name?: string, options?: IButton3DCreationOptions);
|
13662
13714
|
/**
|
@@ -13894,7 +13946,7 @@ declare module BABYLON.GUI {
|
|
13894
13946
|
*/
|
13895
13947
|
linkToTransformNode(node: BABYLON.Nullable<BABYLON.TransformNode>): Control3D;
|
13896
13948
|
/**
|
13897
|
-
* @internal
|
13949
|
+
* @internal
|
13898
13950
|
*/
|
13899
13951
|
_prepareNode(scene: BABYLON.Scene): void;
|
13900
13952
|
protected _injectGUI3DReservedDataStore(node: BABYLON.TransformNode): any;
|
@@ -14218,7 +14270,7 @@ declare module BABYLON.GUI {
|
|
14218
14270
|
private _attachContentPlateBehavior;
|
14219
14271
|
protected _affectMaterial(mesh: BABYLON.AbstractMesh): void;
|
14220
14272
|
/**
|
14221
|
-
* @internal
|
14273
|
+
* @internal
|
14222
14274
|
*/
|
14223
14275
|
_prepareNode(scene: BABYLON.Scene): void;
|
14224
14276
|
/**
|
@@ -14858,8 +14910,8 @@ declare module BABYLON.GUI {
|
|
14858
14910
|
/**
|
14859
14911
|
* This method should not be used directly. It is inherited from `Container3D`.
|
14860
14912
|
* Please use `addButton` instead.
|
14861
|
-
* @param _control
|
14862
|
-
* @returns
|
14913
|
+
* @param _control the control to add
|
14914
|
+
* @returns the current container
|
14863
14915
|
*/
|
14864
14916
|
addControl(_control: Control3D): Container3D;
|
14865
14917
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "babylonjs-gui",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.40.0",
|
4
4
|
"main": "babylon.gui.js",
|
5
5
|
"types": "babylon.gui.module.d.ts",
|
6
6
|
"files": [
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"test:escheck": "es-check es6 ./babylon.gui.js"
|
16
16
|
},
|
17
17
|
"dependencies": {
|
18
|
-
"babylonjs": "^6.
|
18
|
+
"babylonjs": "^6.40.0"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
21
|
"@dev/build-tools": "1.0.0",
|