babylonjs-gui 5.15.1 → 5.17.1
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 +40 -8
- package/babylon.gui.js +112 -47
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.min.js.map +1 -1
- package/babylon.gui.module.d.ts +80 -16
- package/package.json +2 -2
package/babylon.gui.module.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export class AdvancedDynamicTexture extends DynamicTexture {
|
|
|
84
84
|
private _renderObserver;
|
|
85
85
|
private _resizeObserver;
|
|
86
86
|
private _preKeyboardObserver;
|
|
87
|
-
private
|
|
87
|
+
private _prePointerObserver;
|
|
88
88
|
private _sceneRenderObserver;
|
|
89
89
|
private _pointerObserver;
|
|
90
90
|
private _canvasPointerOutObserver;
|
|
@@ -432,21 +432,45 @@ export class AdvancedDynamicTexture extends DynamicTexture {
|
|
|
432
432
|
* @param serializedObject define the JSON serialized object to restore from
|
|
433
433
|
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
434
434
|
*/
|
|
435
|
-
|
|
435
|
+
parseSerializedObject(serializedObject: any, scaleToSize?: boolean): void;
|
|
436
|
+
/**
|
|
437
|
+
* Recreate the content of the ADT from a JSON object
|
|
438
|
+
* @param serializedObject define the JSON serialized object to restore from
|
|
439
|
+
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
440
|
+
* @deprecated Please use parseSerializedObject instead
|
|
441
|
+
*/
|
|
442
|
+
parseContent: (serializedObject: any, scaleToSize?: boolean | undefined) => void;
|
|
443
|
+
/**
|
|
444
|
+
* Recreate the content of the ADT from a snippet saved by the GUI editor
|
|
445
|
+
* @param snippetId defines the snippet to load
|
|
446
|
+
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
447
|
+
* @param appendToAdt if provided the snippet will be appended to the adt. Otherwise a fullscreen ADT will be created.
|
|
448
|
+
* @returns a promise that will resolve on success
|
|
449
|
+
*/
|
|
450
|
+
static ParseFromSnippetAsync(snippetId: string, scaleToSize?: boolean, appendToAdt?: AdvancedDynamicTexture): Promise<AdvancedDynamicTexture>;
|
|
436
451
|
/**
|
|
437
452
|
* Recreate the content of the ADT from a snippet saved by the GUI editor
|
|
438
453
|
* @param snippetId defines the snippet to load
|
|
439
454
|
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
440
455
|
* @returns a promise that will resolve on success
|
|
441
456
|
*/
|
|
442
|
-
parseFromSnippetAsync(snippetId: string, scaleToSize?: boolean): Promise<
|
|
457
|
+
parseFromSnippetAsync(snippetId: string, scaleToSize?: boolean): Promise<AdvancedDynamicTexture>;
|
|
458
|
+
/**
|
|
459
|
+
* Recreate the content of the ADT from a url json
|
|
460
|
+
* @param url defines the url to load
|
|
461
|
+
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
462
|
+
* @param appendToAdt if provided the snippet will be appended to the adt. Otherwise a fullscreen ADT will be created.
|
|
463
|
+
* @returns a promise that will resolve on success
|
|
464
|
+
*/
|
|
465
|
+
static ParseFromFileAsync(url: string, scaleToSize?: boolean, appendToAdt?: AdvancedDynamicTexture): Promise<AdvancedDynamicTexture>;
|
|
443
466
|
/**
|
|
444
467
|
* Recreate the content of the ADT from a url json
|
|
445
468
|
* @param url defines the url to load
|
|
446
469
|
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
447
470
|
* @returns a promise that will resolve on success
|
|
448
471
|
*/
|
|
449
|
-
parseFromURLAsync(url: string, scaleToSize?: boolean): Promise<
|
|
472
|
+
parseFromURLAsync(url: string, scaleToSize?: boolean): Promise<AdvancedDynamicTexture>;
|
|
473
|
+
private static _LoadURLContentAsync;
|
|
450
474
|
/**
|
|
451
475
|
* Compares two rectangle based controls for pixel overlap
|
|
452
476
|
* @param control1 The first control to compare
|
|
@@ -1128,7 +1152,13 @@ export class Control {
|
|
|
1128
1152
|
metadata: any;
|
|
1129
1153
|
/** Gets or sets a boolean indicating if the control can be hit with pointer events */
|
|
1130
1154
|
isHitTestVisible: boolean;
|
|
1131
|
-
/** Gets or sets a boolean indicating if the control can block pointer events
|
|
1155
|
+
/** Gets or sets a boolean indicating if the control can block pointer events. False by default except on the following controls:
|
|
1156
|
+
* * Button controls (Button, RadioButton, ToggleButton)
|
|
1157
|
+
* * Checkbox
|
|
1158
|
+
* * ColorPicker
|
|
1159
|
+
* * InputText
|
|
1160
|
+
* * Slider
|
|
1161
|
+
*/
|
|
1132
1162
|
isPointerBlocker: boolean;
|
|
1133
1163
|
/** Gets or sets a boolean indicating if the control can be focusable */
|
|
1134
1164
|
isFocusInvisible: boolean;
|
|
@@ -5058,13 +5088,13 @@ import { Container3D } from "babylonjs-gui/3D/controls/container3D";
|
|
|
5058
5088
|
export class Control3D implements IDisposable, IBehaviorAware<Control3D> {
|
|
5059
5089
|
/** Defines the control name */
|
|
5060
5090
|
name?: string | undefined;
|
|
5061
|
-
/** @hidden */
|
|
5062
|
-
_host: GUI3DManager;
|
|
5063
5091
|
private _node;
|
|
5064
5092
|
private _downCount;
|
|
5065
5093
|
private _enterCount;
|
|
5066
5094
|
private _downPointerIds;
|
|
5067
|
-
|
|
5095
|
+
protected _isVisible: boolean;
|
|
5096
|
+
/** @hidden */
|
|
5097
|
+
_host: GUI3DManager;
|
|
5068
5098
|
/** @hidden */
|
|
5069
5099
|
_isScaledByManager: boolean;
|
|
5070
5100
|
/** Gets or sets the control position in world space */
|
|
@@ -5769,6 +5799,8 @@ export class Slider3D extends Control3D {
|
|
|
5769
5799
|
* Gets the slider backplate material used by this control
|
|
5770
5800
|
*/
|
|
5771
5801
|
get sliderBackplateMaterial(): MRDLBackplateMaterial;
|
|
5802
|
+
/** Sets a boolean indicating if the control is visible */
|
|
5803
|
+
set isVisible(value: boolean);
|
|
5772
5804
|
protected _createNode(scene: Scene): TransformNode;
|
|
5773
5805
|
protected _affectMaterial(mesh: AbstractMesh): void;
|
|
5774
5806
|
private _createBehavior;
|
|
@@ -8038,7 +8070,7 @@ declare module BABYLON.GUI {
|
|
|
8038
8070
|
private _renderObserver;
|
|
8039
8071
|
private _resizeObserver;
|
|
8040
8072
|
private _preKeyboardObserver;
|
|
8041
|
-
private
|
|
8073
|
+
private _prePointerObserver;
|
|
8042
8074
|
private _sceneRenderObserver;
|
|
8043
8075
|
private _pointerObserver;
|
|
8044
8076
|
private _canvasPointerOutObserver;
|
|
@@ -8386,21 +8418,45 @@ declare module BABYLON.GUI {
|
|
|
8386
8418
|
* @param serializedObject define the JSON serialized object to restore from
|
|
8387
8419
|
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
8388
8420
|
*/
|
|
8389
|
-
|
|
8421
|
+
parseSerializedObject(serializedObject: any, scaleToSize?: boolean): void;
|
|
8422
|
+
/**
|
|
8423
|
+
* Recreate the content of the ADT from a JSON object
|
|
8424
|
+
* @param serializedObject define the JSON serialized object to restore from
|
|
8425
|
+
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
8426
|
+
* @deprecated Please use parseSerializedObject instead
|
|
8427
|
+
*/
|
|
8428
|
+
parseContent: (serializedObject: any, scaleToSize?: boolean | undefined) => void;
|
|
8429
|
+
/**
|
|
8430
|
+
* Recreate the content of the ADT from a snippet saved by the GUI editor
|
|
8431
|
+
* @param snippetId defines the snippet to load
|
|
8432
|
+
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
8433
|
+
* @param appendToAdt if provided the snippet will be appended to the adt. Otherwise a fullscreen ADT will be created.
|
|
8434
|
+
* @returns a promise that will resolve on success
|
|
8435
|
+
*/
|
|
8436
|
+
static ParseFromSnippetAsync(snippetId: string, scaleToSize?: boolean, appendToAdt?: AdvancedDynamicTexture): Promise<AdvancedDynamicTexture>;
|
|
8390
8437
|
/**
|
|
8391
8438
|
* Recreate the content of the ADT from a snippet saved by the GUI editor
|
|
8392
8439
|
* @param snippetId defines the snippet to load
|
|
8393
8440
|
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
8394
8441
|
* @returns a promise that will resolve on success
|
|
8395
8442
|
*/
|
|
8396
|
-
parseFromSnippetAsync(snippetId: string, scaleToSize?: boolean): Promise<
|
|
8443
|
+
parseFromSnippetAsync(snippetId: string, scaleToSize?: boolean): Promise<AdvancedDynamicTexture>;
|
|
8444
|
+
/**
|
|
8445
|
+
* Recreate the content of the ADT from a url json
|
|
8446
|
+
* @param url defines the url to load
|
|
8447
|
+
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
8448
|
+
* @param appendToAdt if provided the snippet will be appended to the adt. Otherwise a fullscreen ADT will be created.
|
|
8449
|
+
* @returns a promise that will resolve on success
|
|
8450
|
+
*/
|
|
8451
|
+
static ParseFromFileAsync(url: string, scaleToSize?: boolean, appendToAdt?: AdvancedDynamicTexture): Promise<AdvancedDynamicTexture>;
|
|
8397
8452
|
/**
|
|
8398
8453
|
* Recreate the content of the ADT from a url json
|
|
8399
8454
|
* @param url defines the url to load
|
|
8400
8455
|
* @param scaleToSize defines whether to scale to texture to the saved size
|
|
8401
8456
|
* @returns a promise that will resolve on success
|
|
8402
8457
|
*/
|
|
8403
|
-
parseFromURLAsync(url: string, scaleToSize?: boolean): Promise<
|
|
8458
|
+
parseFromURLAsync(url: string, scaleToSize?: boolean): Promise<AdvancedDynamicTexture>;
|
|
8459
|
+
private static _LoadURLContentAsync;
|
|
8404
8460
|
/**
|
|
8405
8461
|
* Compares two rectangle based controls for pixel overlap
|
|
8406
8462
|
* @param control1 The first control to compare
|
|
@@ -9035,7 +9091,13 @@ declare module BABYLON.GUI {
|
|
|
9035
9091
|
metadata: any;
|
|
9036
9092
|
/** Gets or sets a boolean indicating if the control can be hit with pointer events */
|
|
9037
9093
|
isHitTestVisible: boolean;
|
|
9038
|
-
/** Gets or sets a boolean indicating if the control can block pointer events
|
|
9094
|
+
/** Gets or sets a boolean indicating if the control can block pointer events. False by default except on the following controls:
|
|
9095
|
+
* * Button controls (Button, RadioButton, ToggleButton)
|
|
9096
|
+
* * Checkbox
|
|
9097
|
+
* * ColorPicker
|
|
9098
|
+
* * InputText
|
|
9099
|
+
* * Slider
|
|
9100
|
+
*/
|
|
9039
9101
|
isPointerBlocker: boolean;
|
|
9040
9102
|
/** Gets or sets a boolean indicating if the control can be focusable */
|
|
9041
9103
|
isFocusInvisible: boolean;
|
|
@@ -12707,13 +12769,13 @@ declare module BABYLON.GUI {
|
|
|
12707
12769
|
export class Control3D implements BABYLON.IDisposable, BABYLON.IBehaviorAware<Control3D> {
|
|
12708
12770
|
/** Defines the control name */
|
|
12709
12771
|
name?: string | undefined;
|
|
12710
|
-
/** @hidden */
|
|
12711
|
-
_host: GUI3DManager;
|
|
12712
12772
|
private _node;
|
|
12713
12773
|
private _downCount;
|
|
12714
12774
|
private _enterCount;
|
|
12715
12775
|
private _downPointerIds;
|
|
12716
|
-
|
|
12776
|
+
protected _isVisible: boolean;
|
|
12777
|
+
/** @hidden */
|
|
12778
|
+
_host: GUI3DManager;
|
|
12717
12779
|
/** @hidden */
|
|
12718
12780
|
_isScaledByManager: boolean;
|
|
12719
12781
|
/** Gets or sets the control position in world space */
|
|
@@ -13327,6 +13389,8 @@ declare module BABYLON.GUI {
|
|
|
13327
13389
|
* Gets the slider backplate material used by this control
|
|
13328
13390
|
*/
|
|
13329
13391
|
get sliderBackplateMaterial(): MRDLBackplateMaterial;
|
|
13392
|
+
/** Sets a boolean indicating if the control is visible */
|
|
13393
|
+
set isVisible(value: boolean);
|
|
13330
13394
|
protected _createNode(scene: BABYLON.Scene): BABYLON.TransformNode;
|
|
13331
13395
|
protected _affectMaterial(mesh: BABYLON.AbstractMesh): void;
|
|
13332
13396
|
private _createBehavior;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.17.1",
|
|
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.
|
|
17
|
+
"babylonjs": "^5.17.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|