babylonjs-gui 6.38.1 → 6.40.0
Sign up to get free protection for your applications and to get access to all the features.
- package/babylon.gui.d.ts +47 -21
- package/babylon.gui.js +106 -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.d.ts
CHANGED
@@ -535,7 +535,7 @@ declare module BABYLON.GUI {
|
|
535
535
|
scaleTo(width: number, height: number): void;
|
536
536
|
private _checkGuiIsReady;
|
537
537
|
/**
|
538
|
-
*
|
538
|
+
* @returns true if all the GUI components are ready to render
|
539
539
|
*/
|
540
540
|
guiIsReady(): boolean;
|
541
541
|
}
|
@@ -562,10 +562,6 @@ declare module BABYLON.GUI {
|
|
562
562
|
* Function called to generate a pointer up animation
|
563
563
|
*/
|
564
564
|
pointerUpAnimation: () => void;
|
565
|
-
/**
|
566
|
-
* Gets or sets a boolean indicating that the button will let internal controls handle picking instead of doing it directly using its bounding info
|
567
|
-
*/
|
568
|
-
delegatePickingToChildren: boolean;
|
569
565
|
private _image;
|
570
566
|
/**
|
571
567
|
* Returns the image part of the button (if any)
|
@@ -606,8 +602,9 @@ declare module BABYLON.GUI {
|
|
606
602
|
/**
|
607
603
|
* Serializes the current button
|
608
604
|
* @param serializationObject defines the JSON serialized object
|
605
|
+
* @param force force serialization even if isSerializable === false
|
609
606
|
*/
|
610
|
-
serialize(serializationObject: any): void;
|
607
|
+
serialize(serializationObject: any, force: boolean): void;
|
611
608
|
/**
|
612
609
|
* @internal
|
613
610
|
*/
|
@@ -811,6 +808,10 @@ declare module BABYLON.GUI {
|
|
811
808
|
protected _renderToIntermediateTexture: boolean;
|
812
809
|
/** @internal */
|
813
810
|
protected _intermediateTexture: BABYLON.Nullable<BABYLON.DynamicTexture>;
|
811
|
+
/**
|
812
|
+
* Gets or sets a boolean indicating that the container will let internal controls handle picking instead of doing it directly using its bounding info
|
813
|
+
*/
|
814
|
+
delegatePickingToChildren: boolean;
|
814
815
|
/** Gets or sets boolean indicating if children should be rendered to an intermediate texture rather than directly to host, useful for alpha blending */
|
815
816
|
get renderToIntermediateTexture(): boolean;
|
816
817
|
set renderToIntermediateTexture(value: boolean);
|
@@ -943,8 +944,9 @@ declare module BABYLON.GUI {
|
|
943
944
|
/**
|
944
945
|
* Serializes the current control
|
945
946
|
* @param serializationObject defined the JSON serialized object
|
947
|
+
* @param force force serialization even if isSerializable === false
|
946
948
|
*/
|
947
|
-
serialize(serializationObject: any): void;
|
949
|
+
serialize(serializationObject: any, force?: boolean): void;
|
948
950
|
/** Releases associated resources */
|
949
951
|
dispose(): void;
|
950
952
|
/**
|
@@ -1151,6 +1153,9 @@ declare module BABYLON.GUI {
|
|
1151
1153
|
set accessibilityTag(value: BABYLON.Nullable<BABYLON.IAccessibilityTag>);
|
1152
1154
|
get accessibilityTag(): BABYLON.Nullable<BABYLON.IAccessibilityTag>;
|
1153
1155
|
protected _accessibilityTag: BABYLON.Nullable<BABYLON.IAccessibilityTag>;
|
1156
|
+
/**
|
1157
|
+
* BABYLON.Observable that fires whenever the accessibility event of the control has changed
|
1158
|
+
*/
|
1154
1159
|
onAccessibilityTagChangedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.IAccessibilityTag>>;
|
1155
1160
|
/**
|
1156
1161
|
* An event triggered when pointer wheel is scrolled
|
@@ -1228,6 +1233,10 @@ declare module BABYLON.GUI {
|
|
1228
1233
|
*/
|
1229
1234
|
get isHighlighted(): boolean;
|
1230
1235
|
set isHighlighted(value: boolean);
|
1236
|
+
/**
|
1237
|
+
* Indicates if the control should be serialized. Defaults to true.
|
1238
|
+
*/
|
1239
|
+
isSerializable: boolean;
|
1231
1240
|
/**
|
1232
1241
|
* Gets or sets a string defining the color to use for highlighting this control
|
1233
1242
|
*/
|
@@ -1758,8 +1767,9 @@ declare module BABYLON.GUI {
|
|
1758
1767
|
/**
|
1759
1768
|
* Serializes the current control
|
1760
1769
|
* @param serializationObject defined the JSON serialized object
|
1770
|
+
* @param force if the control should be serialized even if the isSerializable flag is set to false (default false)
|
1761
1771
|
*/
|
1762
|
-
serialize(serializationObject: any): void;
|
1772
|
+
serialize(serializationObject: any, force?: boolean): void;
|
1763
1773
|
/**
|
1764
1774
|
* @internal
|
1765
1775
|
*/
|
@@ -1933,7 +1943,7 @@ declare module BABYLON.GUI {
|
|
1933
1943
|
*/
|
1934
1944
|
_onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
1935
1945
|
/** @internal */
|
1936
|
-
|
1946
|
+
dispose(): void;
|
1937
1947
|
}
|
1938
1948
|
|
1939
1949
|
|
@@ -2000,7 +2010,9 @@ declare module BABYLON.GUI {
|
|
2000
2010
|
/**
|
2001
2011
|
* If there are any changes or the context changed, regenerate the canvas gradient object. Else,
|
2002
2012
|
* reuse the existing gradient.
|
2003
|
-
|
2013
|
+
* @param context the context to create the gradient from
|
2014
|
+
* @returns the canvas gradient
|
2015
|
+
*/
|
2004
2016
|
getCanvasGradient(context: BABYLON.ICanvasRenderingContext): CanvasGradient;
|
2005
2017
|
/**
|
2006
2018
|
* Adds a new color stop to the gradient.
|
@@ -2017,13 +2029,23 @@ declare module BABYLON.GUI {
|
|
2017
2029
|
* Removes all color stops from the gradient
|
2018
2030
|
*/
|
2019
2031
|
clearColorStops(): void;
|
2020
|
-
/**
|
2032
|
+
/**
|
2033
|
+
* Color stops of the gradient
|
2034
|
+
*/
|
2021
2035
|
get colorStops(): GradientColorStop[];
|
2022
|
-
/**
|
2036
|
+
/**
|
2037
|
+
* @returns Type of the gradient
|
2038
|
+
*/
|
2023
2039
|
getClassName(): string;
|
2024
|
-
/**
|
2040
|
+
/**
|
2041
|
+
* Serialize into a json object
|
2042
|
+
* @param serializationObject object to serialize into
|
2043
|
+
*/
|
2025
2044
|
serialize(serializationObject: any): void;
|
2026
|
-
/**
|
2045
|
+
/**
|
2046
|
+
* Parse from json object
|
2047
|
+
* @param serializationObject object to parse from
|
2048
|
+
*/
|
2027
2049
|
parse(serializationObject: any): void;
|
2028
2050
|
}
|
2029
2051
|
|
@@ -2261,8 +2283,9 @@ declare module BABYLON.GUI {
|
|
2261
2283
|
/**
|
2262
2284
|
* Serializes the current control
|
2263
2285
|
* @param serializationObject defined the JSON serialized object
|
2286
|
+
* @param force force serialization even if isSerializable === false
|
2264
2287
|
*/
|
2265
|
-
serialize(serializationObject: any): void;
|
2288
|
+
serialize(serializationObject: any, force: boolean): void;
|
2266
2289
|
/**
|
2267
2290
|
* @internal
|
2268
2291
|
*/
|
@@ -2430,7 +2453,8 @@ declare module BABYLON.GUI {
|
|
2430
2453
|
set source(value: BABYLON.Nullable<string>);
|
2431
2454
|
/**
|
2432
2455
|
* Checks for svg document with icon id present
|
2433
|
-
* @param value
|
2456
|
+
* @param value the source svg
|
2457
|
+
* @returns the svg
|
2434
2458
|
*/
|
2435
2459
|
private _svgCheck;
|
2436
2460
|
/**
|
@@ -3855,8 +3879,9 @@ declare module BABYLON.GUI {
|
|
3855
3879
|
/**
|
3856
3880
|
* Serializes the current control
|
3857
3881
|
* @param serializationObject defined the JSON serialized object
|
3882
|
+
* @param force force serialization even if isSerializable === false
|
3858
3883
|
*/
|
3859
|
-
serialize(serializationObject: any): void;
|
3884
|
+
serialize(serializationObject: any, force: boolean): void;
|
3860
3885
|
/**
|
3861
3886
|
* @internal
|
3862
3887
|
*/
|
@@ -4837,6 +4862,7 @@ declare module BABYLON.GUI {
|
|
4837
4862
|
/**
|
4838
4863
|
* Creates a new button
|
4839
4864
|
* @param name defines the control name
|
4865
|
+
* @param options defines the options used to create the button
|
4840
4866
|
*/
|
4841
4867
|
constructor(name?: string, options?: IButton3DCreationOptions);
|
4842
4868
|
/**
|
@@ -5074,7 +5100,7 @@ declare module BABYLON.GUI {
|
|
5074
5100
|
*/
|
5075
5101
|
linkToTransformNode(node: BABYLON.Nullable<BABYLON.TransformNode>): Control3D;
|
5076
5102
|
/**
|
5077
|
-
* @internal
|
5103
|
+
* @internal
|
5078
5104
|
*/
|
5079
5105
|
_prepareNode(scene: BABYLON.Scene): void;
|
5080
5106
|
protected _injectGUI3DReservedDataStore(node: BABYLON.TransformNode): any;
|
@@ -5398,7 +5424,7 @@ declare module BABYLON.GUI {
|
|
5398
5424
|
private _attachContentPlateBehavior;
|
5399
5425
|
protected _affectMaterial(mesh: BABYLON.AbstractMesh): void;
|
5400
5426
|
/**
|
5401
|
-
* @internal
|
5427
|
+
* @internal
|
5402
5428
|
*/
|
5403
5429
|
_prepareNode(scene: BABYLON.Scene): void;
|
5404
5430
|
/**
|
@@ -6038,8 +6064,8 @@ declare module BABYLON.GUI {
|
|
6038
6064
|
/**
|
6039
6065
|
* This method should not be used directly. It is inherited from `Container3D`.
|
6040
6066
|
* Please use `addButton` instead.
|
6041
|
-
* @param _control
|
6042
|
-
* @returns
|
6067
|
+
* @param _control the control to add
|
6068
|
+
* @returns the current container
|
6043
6069
|
*/
|
6044
6070
|
addControl(_control: Control3D): Container3D;
|
6045
6071
|
/**
|