babylonjs-gui 5.0.0-rc.9 → 5.0.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 +7171 -0
- package/babylon.gui.js +90 -82
- 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 +284 -275
- package/license.md +71 -0
- package/package.json +19 -3
package/babylon.gui.module.d.ts
CHANGED
|
@@ -57,7 +57,8 @@ export class AdvancedDynamicTextureInstrumentation implements IDisposable {
|
|
|
57
57
|
declare module "babylonjs-gui/2D/advancedDynamicTexture" {
|
|
58
58
|
import { Nullable } from "babylonjs/types";
|
|
59
59
|
import { Observable } from "babylonjs/Misc/observable";
|
|
60
|
-
import {
|
|
60
|
+
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
61
|
+
import { Vector2, Vector3 } from "babylonjs/Maths/math.vector";
|
|
61
62
|
import { ClipboardInfo } from "babylonjs/Events/clipboardEvents";
|
|
62
63
|
import { DynamicTexture } from "babylonjs/Materials/Textures/dynamicTexture";
|
|
63
64
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
@@ -2425,6 +2426,7 @@ import { TextWrapper } from "babylonjs-gui/2D/controls/textWrapper";
|
|
|
2425
2426
|
* Class used to create a password control
|
|
2426
2427
|
*/
|
|
2427
2428
|
export class InputPassword extends InputText {
|
|
2429
|
+
protected _getTypeName(): string;
|
|
2428
2430
|
protected _beforeRenderText(textWrapper: TextWrapper): TextWrapper;
|
|
2429
2431
|
}
|
|
2430
2432
|
|
|
@@ -6257,7 +6259,8 @@ export * from "babylonjs-gui/3D/vector3WithInfo";
|
|
|
6257
6259
|
}
|
|
6258
6260
|
declare module "babylonjs-gui/3D/materials/fluent/fluentMaterial" {
|
|
6259
6261
|
import { Nullable } from "babylonjs/types";
|
|
6260
|
-
import {
|
|
6262
|
+
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
6263
|
+
import { Vector3 } from "babylonjs/Maths/math.vector";
|
|
6261
6264
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
6262
6265
|
import { MaterialDefines } from "babylonjs/Materials/materialDefines";
|
|
6263
6266
|
import { PushMaterial } from "babylonjs/Materials/pushMaterial";
|
|
@@ -6370,7 +6373,8 @@ export const fluentVertexShader: {
|
|
|
6370
6373
|
}
|
|
6371
6374
|
declare module "babylonjs-gui/3D/materials/fluentBackplate/fluentBackplateMaterial" {
|
|
6372
6375
|
import { Nullable } from "babylonjs/types";
|
|
6373
|
-
import { Matrix
|
|
6376
|
+
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
6377
|
+
import { Vector3, Vector4 } from "babylonjs/Maths/math.vector";
|
|
6374
6378
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
6375
6379
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
6376
6380
|
import { PushMaterial } from "babylonjs/Materials/pushMaterial";
|
|
@@ -6547,7 +6551,8 @@ export const fluentBackplateVertexShader: {
|
|
|
6547
6551
|
}
|
|
6548
6552
|
declare module "babylonjs-gui/3D/materials/fluentButton/fluentButtonMaterial" {
|
|
6549
6553
|
import { Nullable } from "babylonjs/types";
|
|
6550
|
-
import { Matrix
|
|
6554
|
+
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
6555
|
+
import { Vector3 } from "babylonjs/Maths/math.vector";
|
|
6551
6556
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
6552
6557
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
6553
6558
|
import { PushMaterial } from "babylonjs/Materials/pushMaterial";
|
|
@@ -6871,7 +6876,8 @@ export * from "babylonjs-gui/3D/materials/mrdl/mrdlBackplateMaterial";
|
|
|
6871
6876
|
}
|
|
6872
6877
|
declare module "babylonjs-gui/3D/materials/mrdl/mrdlBackplateMaterial" {
|
|
6873
6878
|
import { Nullable } from "babylonjs/types";
|
|
6874
|
-
import { Matrix
|
|
6879
|
+
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
6880
|
+
import { Vector4 } from "babylonjs/Maths/math.vector";
|
|
6875
6881
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
6876
6882
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
6877
6883
|
import { PushMaterial } from "babylonjs/Materials/pushMaterial";
|
|
@@ -7021,7 +7027,8 @@ export class MRDLBackplateMaterial extends PushMaterial {
|
|
|
7021
7027
|
}
|
|
7022
7028
|
declare module "babylonjs-gui/3D/materials/mrdl/mrdlSliderBarMaterial" {
|
|
7023
7029
|
import { Nullable } from "babylonjs/types";
|
|
7024
|
-
import { Matrix
|
|
7030
|
+
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
7031
|
+
import { Vector2, Vector3, Vector4 } from "babylonjs/Maths/math.vector";
|
|
7025
7032
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
7026
7033
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
7027
7034
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
@@ -7357,7 +7364,8 @@ export class MRDLSliderBarMaterial extends PushMaterial {
|
|
|
7357
7364
|
}
|
|
7358
7365
|
declare module "babylonjs-gui/3D/materials/mrdl/mrdlSliderThumbMaterial" {
|
|
7359
7366
|
import { Nullable } from "babylonjs/types";
|
|
7360
|
-
import { Matrix
|
|
7367
|
+
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
7368
|
+
import { Vector2, Vector3, Vector4 } from "babylonjs/Maths/math.vector";
|
|
7361
7369
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
7362
7370
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
7363
7371
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
@@ -7774,10 +7782,10 @@ declare module "babylonjs-gui" {
|
|
|
7774
7782
|
|
|
7775
7783
|
|
|
7776
7784
|
declare module BABYLON.GUI {
|
|
7777
|
-
|
|
7785
|
+
/**
|
|
7778
7786
|
* This class can be used to get instrumentation data from a AdvancedDynamicTexture object
|
|
7779
7787
|
*/
|
|
7780
|
-
export class AdvancedDynamicTextureInstrumentation implements
|
|
7788
|
+
export class AdvancedDynamicTextureInstrumentation implements IDisposable {
|
|
7781
7789
|
/**
|
|
7782
7790
|
* Define the instrumented AdvancedDynamicTexture.
|
|
7783
7791
|
*/
|
|
@@ -7865,7 +7873,7 @@ declare module BABYLON.GUI {
|
|
|
7865
7873
|
/** @hidden */
|
|
7866
7874
|
_shouldBlockPointer: boolean;
|
|
7867
7875
|
/** @hidden */
|
|
7868
|
-
_layerToDispose:
|
|
7876
|
+
_layerToDispose: Nullable<BABYLON.Layer>;
|
|
7869
7877
|
/** @hidden */
|
|
7870
7878
|
_linkedControls: Control[];
|
|
7871
7879
|
private _isFullscreen;
|
|
@@ -7968,7 +7976,7 @@ declare module BABYLON.GUI {
|
|
|
7968
7976
|
/**
|
|
7969
7977
|
* Gets the underlying layer used to render the texture when in fullscreen mode
|
|
7970
7978
|
*/
|
|
7971
|
-
get layer():
|
|
7979
|
+
get layer(): Nullable<BABYLON.Layer>;
|
|
7972
7980
|
/**
|
|
7973
7981
|
* Gets the root container control
|
|
7974
7982
|
*/
|
|
@@ -7997,13 +8005,13 @@ declare module BABYLON.GUI {
|
|
|
7997
8005
|
* @param name defines the name to search for
|
|
7998
8006
|
* @return the first control found or null
|
|
7999
8007
|
*/
|
|
8000
|
-
getControlByName(name: string):
|
|
8008
|
+
getControlByName(name: string): Nullable<Control>;
|
|
8001
8009
|
private _getControlByKey;
|
|
8002
8010
|
/**
|
|
8003
8011
|
* Gets or sets the current focused control
|
|
8004
8012
|
*/
|
|
8005
|
-
get focusedControl():
|
|
8006
|
-
set focusedControl(control:
|
|
8013
|
+
get focusedControl(): Nullable<IFocusableControl>;
|
|
8014
|
+
set focusedControl(control: Nullable<IFocusableControl>);
|
|
8007
8015
|
/**
|
|
8008
8016
|
* Gets or sets a boolean indicating if the texture must be rendered in background or foreground when in fullscreen mode
|
|
8009
8017
|
*/
|
|
@@ -8031,7 +8039,7 @@ declare module BABYLON.GUI {
|
|
|
8031
8039
|
* @param samplingMode defines the texture sampling mode (Texture.NEAREST_SAMPLINGMODE by default)
|
|
8032
8040
|
* @param invertY defines if the texture needs to be inverted on the y axis during loading (true by default)
|
|
8033
8041
|
*/
|
|
8034
|
-
constructor(name: string, width?: number, height?: number, scene?:
|
|
8042
|
+
constructor(name: string, width?: number, height?: number, scene?: Nullable<Scene>, generateMipMaps?: boolean, samplingMode?: number, invertY?: boolean);
|
|
8035
8043
|
/**
|
|
8036
8044
|
* Get the current class name of the texture useful for serialization or dynamic coding.
|
|
8037
8045
|
* @returns "AdvancedDynamicTexture"
|
|
@@ -8101,14 +8109,14 @@ declare module BABYLON.GUI {
|
|
|
8101
8109
|
* @param worldMatrix defines the world matrix to use
|
|
8102
8110
|
* @returns the projected position
|
|
8103
8111
|
*/
|
|
8104
|
-
getProjectedPosition(position: BABYLON.Vector3, worldMatrix:
|
|
8112
|
+
getProjectedPosition(position: BABYLON.Vector3, worldMatrix: Matrix): BABYLON.Vector2;
|
|
8105
8113
|
/**
|
|
8106
8114
|
* Get screen coordinates for a vector3
|
|
8107
8115
|
* @param position defines the position to project
|
|
8108
8116
|
* @param worldMatrix defines the world matrix to use
|
|
8109
8117
|
* @returns the projected position with Z
|
|
8110
8118
|
*/
|
|
8111
|
-
getProjectedPositionWithZ(position: BABYLON.Vector3, worldMatrix:
|
|
8119
|
+
getProjectedPositionWithZ(position: BABYLON.Vector3, worldMatrix: Matrix): BABYLON.Vector3;
|
|
8112
8120
|
private _checkUpdate;
|
|
8113
8121
|
private _clearMeasure;
|
|
8114
8122
|
private _render;
|
|
@@ -8168,7 +8176,7 @@ declare module BABYLON.GUI {
|
|
|
8168
8176
|
* @param mesh defines the mesh to attach to
|
|
8169
8177
|
* @param supportPointerMove defines a boolean indicating if pointer move events must be catched as well
|
|
8170
8178
|
*/
|
|
8171
|
-
attachToMesh(mesh:
|
|
8179
|
+
attachToMesh(mesh: AbstractMesh, supportPointerMove?: boolean): void;
|
|
8172
8180
|
/**
|
|
8173
8181
|
* Move the focus to a specific control
|
|
8174
8182
|
* @param control defines the control which will receive the focus
|
|
@@ -8221,7 +8229,7 @@ declare module BABYLON.GUI {
|
|
|
8221
8229
|
* @param materialSetupCallback defines a custom way of creating and setting up the material on the mesh
|
|
8222
8230
|
* @returns a new AdvancedDynamicTexture
|
|
8223
8231
|
*/
|
|
8224
|
-
static CreateForMesh(mesh:
|
|
8232
|
+
static CreateForMesh(mesh: AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, onlyAlphaTesting?: boolean, invertY?: boolean, materialSetupCallback?: (mesh: AbstractMesh, uniqueId: string, texture: AdvancedDynamicTexture, onlyAlphaTesting: boolean) => void): AdvancedDynamicTexture;
|
|
8225
8233
|
private static _CreateMaterial;
|
|
8226
8234
|
/**
|
|
8227
8235
|
* Creates a new AdvancedDynamicTexture in projected mode (ie. attached to a mesh) BUT do not create a new material for the mesh. You will be responsible for connecting the texture
|
|
@@ -8232,7 +8240,7 @@ declare module BABYLON.GUI {
|
|
|
8232
8240
|
* @param invertY defines if the texture needs to be inverted on the y axis during loading (true by default)
|
|
8233
8241
|
* @returns a new AdvancedDynamicTexture
|
|
8234
8242
|
*/
|
|
8235
|
-
static CreateForMeshTexture(mesh:
|
|
8243
|
+
static CreateForMeshTexture(mesh: AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, invertY?: boolean): AdvancedDynamicTexture;
|
|
8236
8244
|
/**
|
|
8237
8245
|
* Creates a new AdvancedDynamicTexture in fullscreen mode.
|
|
8238
8246
|
* In this mode the texture will rely on a layer for its rendering.
|
|
@@ -8246,7 +8254,7 @@ declare module BABYLON.GUI {
|
|
|
8246
8254
|
* @param adaptiveScaling defines whether to automatically scale root to match hardwarescaling (false by default)
|
|
8247
8255
|
* @returns a new AdvancedDynamicTexture
|
|
8248
8256
|
*/
|
|
8249
|
-
static CreateFullscreenUI(name: string, foreground?: boolean, scene?:
|
|
8257
|
+
static CreateFullscreenUI(name: string, foreground?: boolean, scene?: Nullable<Scene>, sampling?: number, adaptiveScaling?: boolean): AdvancedDynamicTexture;
|
|
8250
8258
|
/**
|
|
8251
8259
|
* Scales the texture
|
|
8252
8260
|
* @param ratio the scale factor to apply to both width and height
|
|
@@ -8290,12 +8298,12 @@ declare module BABYLON.GUI {
|
|
|
8290
8298
|
/**
|
|
8291
8299
|
* Returns the image part of the button (if any)
|
|
8292
8300
|
*/
|
|
8293
|
-
get image():
|
|
8301
|
+
get image(): Nullable<Image>;
|
|
8294
8302
|
private _textBlock;
|
|
8295
8303
|
/**
|
|
8296
8304
|
* Returns the image part of the button (if any)
|
|
8297
8305
|
*/
|
|
8298
|
-
get textBlock():
|
|
8306
|
+
get textBlock(): Nullable<TextBlock>;
|
|
8299
8307
|
/**
|
|
8300
8308
|
* Creates a new Button
|
|
8301
8309
|
* @param name defines the name of the button
|
|
@@ -8313,20 +8321,20 @@ declare module BABYLON.GUI {
|
|
|
8313
8321
|
* @param deltaY
|
|
8314
8322
|
* @hidden
|
|
8315
8323
|
*/
|
|
8316
|
-
_processPicking(x: number, y: number, pi:
|
|
8324
|
+
_processPicking(x: number, y: number, pi: PointerInfoBase, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
8317
8325
|
/**
|
|
8318
8326
|
* @param target
|
|
8319
8327
|
* @param pi
|
|
8320
8328
|
* @hidden
|
|
8321
8329
|
*/
|
|
8322
|
-
_onPointerEnter(target: Control, pi:
|
|
8330
|
+
_onPointerEnter(target: Control, pi: PointerInfoBase): boolean;
|
|
8323
8331
|
/**
|
|
8324
8332
|
* @param target
|
|
8325
8333
|
* @param pi
|
|
8326
8334
|
* @param force
|
|
8327
8335
|
* @hidden
|
|
8328
8336
|
*/
|
|
8329
|
-
_onPointerOut(target: Control, pi:
|
|
8337
|
+
_onPointerOut(target: Control, pi: PointerInfoBase, force?: boolean): void;
|
|
8330
8338
|
/**
|
|
8331
8339
|
* @param target
|
|
8332
8340
|
* @param coordinates
|
|
@@ -8335,7 +8343,7 @@ declare module BABYLON.GUI {
|
|
|
8335
8343
|
* @param pi
|
|
8336
8344
|
* @hidden
|
|
8337
8345
|
*/
|
|
8338
|
-
_onPointerDown(target: Control, coordinates:
|
|
8346
|
+
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
8339
8347
|
/**
|
|
8340
8348
|
* @param target
|
|
8341
8349
|
* @param coordinates
|
|
@@ -8345,7 +8353,7 @@ declare module BABYLON.GUI {
|
|
|
8345
8353
|
* @param pi
|
|
8346
8354
|
* @hidden
|
|
8347
8355
|
*/
|
|
8348
|
-
_onPointerUp(target: Control, coordinates:
|
|
8356
|
+
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi: PointerInfoBase): void;
|
|
8349
8357
|
/**
|
|
8350
8358
|
* Serializes the current button
|
|
8351
8359
|
* @param serializationObject defines the JSON serialized object
|
|
@@ -8425,7 +8433,7 @@ declare module BABYLON.GUI {
|
|
|
8425
8433
|
* @param context
|
|
8426
8434
|
* @hidden
|
|
8427
8435
|
*/
|
|
8428
|
-
_draw(context:
|
|
8436
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
8429
8437
|
/**
|
|
8430
8438
|
* @param target
|
|
8431
8439
|
* @param coordinates
|
|
@@ -8434,7 +8442,7 @@ declare module BABYLON.GUI {
|
|
|
8434
8442
|
* @param pi
|
|
8435
8443
|
* @hidden
|
|
8436
8444
|
*/
|
|
8437
|
-
_onPointerDown(target: Control, coordinates:
|
|
8445
|
+
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
8438
8446
|
/**
|
|
8439
8447
|
* Utility function to easily create a checkbox with a header
|
|
8440
8448
|
* @param title defines the label to use for the header
|
|
@@ -8503,14 +8511,14 @@ declare module BABYLON.GUI {
|
|
|
8503
8511
|
* @param context
|
|
8504
8512
|
* @hidden
|
|
8505
8513
|
*/
|
|
8506
|
-
_draw(context:
|
|
8514
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
8507
8515
|
private _pointerIsDown;
|
|
8508
8516
|
private _updateValueFromPointer;
|
|
8509
8517
|
private _isPointOnSquare;
|
|
8510
8518
|
private _isPointOnWheel;
|
|
8511
|
-
_onPointerDown(target: Control, coordinates:
|
|
8512
|
-
_onPointerMove(target: Control, coordinates:
|
|
8513
|
-
_onPointerUp(target: Control, coordinates:
|
|
8519
|
+
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
8520
|
+
_onPointerMove(target: Control, coordinates: Vector2, pointerId: number, pi: PointerInfoBase): void;
|
|
8521
|
+
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi: PointerInfoBase): void;
|
|
8514
8522
|
_onCanvasBlur(): void;
|
|
8515
8523
|
/**
|
|
8516
8524
|
* This function expands the color picker by creating a color picker dialog with manual
|
|
@@ -8561,7 +8569,7 @@ declare module BABYLON.GUI {
|
|
|
8561
8569
|
/** @hidden */
|
|
8562
8570
|
protected _renderToIntermediateTexture: boolean;
|
|
8563
8571
|
/** @hidden */
|
|
8564
|
-
protected _intermediateTexture:
|
|
8572
|
+
protected _intermediateTexture: Nullable<BABYLON.DynamicTexture>;
|
|
8565
8573
|
/** Gets or sets boolean indicating if children should be rendered to an intermediate texture rather than directly to host, useful for alpha blending */
|
|
8566
8574
|
get renderToIntermediateTexture(): boolean;
|
|
8567
8575
|
set renderToIntermediateTexture(value: boolean);
|
|
@@ -8598,14 +8606,14 @@ declare module BABYLON.GUI {
|
|
|
8598
8606
|
* @param name defines the child name to look for
|
|
8599
8607
|
* @returns the child control if found
|
|
8600
8608
|
*/
|
|
8601
|
-
getChildByName(name: string):
|
|
8609
|
+
getChildByName(name: string): Nullable<Control>;
|
|
8602
8610
|
/**
|
|
8603
8611
|
* Gets a child using its type and its name
|
|
8604
8612
|
* @param name defines the child name to look for
|
|
8605
8613
|
* @param type defines the child type to look for
|
|
8606
8614
|
* @returns the child control if found
|
|
8607
8615
|
*/
|
|
8608
|
-
getChildByType(name: string, type: string):
|
|
8616
|
+
getChildByType(name: string, type: string): Nullable<Control>;
|
|
8609
8617
|
/**
|
|
8610
8618
|
* Search for a specific control in children
|
|
8611
8619
|
* @param control defines the control to look for
|
|
@@ -8617,7 +8625,7 @@ declare module BABYLON.GUI {
|
|
|
8617
8625
|
* @param control defines the control to add
|
|
8618
8626
|
* @returns the current container
|
|
8619
8627
|
*/
|
|
8620
|
-
addControl(control:
|
|
8628
|
+
addControl(control: Nullable<Control>): Container;
|
|
8621
8629
|
/**
|
|
8622
8630
|
* Removes all controls from the current container
|
|
8623
8631
|
* @returns the current container
|
|
@@ -8650,7 +8658,7 @@ declare module BABYLON.GUI {
|
|
|
8650
8658
|
* @param context
|
|
8651
8659
|
* @hidden
|
|
8652
8660
|
*/
|
|
8653
|
-
protected _localDraw(context:
|
|
8661
|
+
protected _localDraw(context: ICanvasRenderingContext): void;
|
|
8654
8662
|
/**
|
|
8655
8663
|
* @param host
|
|
8656
8664
|
* @hidden
|
|
@@ -8663,20 +8671,20 @@ declare module BABYLON.GUI {
|
|
|
8663
8671
|
* @param context
|
|
8664
8672
|
* @hidden
|
|
8665
8673
|
*/
|
|
8666
|
-
protected _processMeasures(parentMeasure: Measure, context:
|
|
8674
|
+
protected _processMeasures(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
8667
8675
|
/**
|
|
8668
8676
|
* @param parentMeasure
|
|
8669
8677
|
* @param context
|
|
8670
8678
|
* @hidden
|
|
8671
8679
|
*/
|
|
8672
|
-
_layout(parentMeasure: Measure, context:
|
|
8680
|
+
_layout(parentMeasure: Measure, context: ICanvasRenderingContext): boolean;
|
|
8673
8681
|
protected _postMeasure(): void;
|
|
8674
8682
|
/**
|
|
8675
8683
|
* @param context
|
|
8676
8684
|
* @param invalidatedRectangle
|
|
8677
8685
|
* @hidden
|
|
8678
8686
|
*/
|
|
8679
|
-
_draw(context:
|
|
8687
|
+
_draw(context: ICanvasRenderingContext, invalidatedRectangle?: Measure): void;
|
|
8680
8688
|
getDescendantsToRef(results: Control[], directDescendantsOnly?: boolean, predicate?: (control: Control) => boolean): void;
|
|
8681
8689
|
/**
|
|
8682
8690
|
* @param x
|
|
@@ -8689,13 +8697,13 @@ declare module BABYLON.GUI {
|
|
|
8689
8697
|
* @param deltaY
|
|
8690
8698
|
* @hidden
|
|
8691
8699
|
*/
|
|
8692
|
-
_processPicking(x: number, y: number, pi:
|
|
8700
|
+
_processPicking(x: number, y: number, pi: Nullable<PointerInfoBase>, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
8693
8701
|
/**
|
|
8694
8702
|
* @param parentMeasure
|
|
8695
8703
|
* @param context
|
|
8696
8704
|
* @hidden
|
|
8697
8705
|
*/
|
|
8698
|
-
protected _additionalProcessing(parentMeasure: Measure, context:
|
|
8706
|
+
protected _additionalProcessing(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
8699
8707
|
/**
|
|
8700
8708
|
* Serializes the current control
|
|
8701
8709
|
* @param serializationObject defined the JSON serialized object
|
|
@@ -8729,7 +8737,7 @@ declare module BABYLON.GUI {
|
|
|
8729
8737
|
/** @hidden */
|
|
8730
8738
|
_host: AdvancedDynamicTexture;
|
|
8731
8739
|
/** Gets or sets the control parent */
|
|
8732
|
-
parent:
|
|
8740
|
+
parent: Nullable<Container>;
|
|
8733
8741
|
/** @hidden */
|
|
8734
8742
|
_currentMeasure: Measure;
|
|
8735
8743
|
/** @hidden */
|
|
@@ -8794,7 +8802,7 @@ declare module BABYLON.GUI {
|
|
|
8794
8802
|
private _highlightColor;
|
|
8795
8803
|
protected _highlightLineWidth: number;
|
|
8796
8804
|
/** @hidden */
|
|
8797
|
-
_linkedMesh:
|
|
8805
|
+
_linkedMesh: Nullable<TransformNode>;
|
|
8798
8806
|
private _fontSet;
|
|
8799
8807
|
private _dummyVector2;
|
|
8800
8808
|
private _downCount;
|
|
@@ -9045,8 +9053,8 @@ declare module BABYLON.GUI {
|
|
|
9045
9053
|
* Gets or sets style
|
|
9046
9054
|
* @see https://doc.babylonjs.com/how_to/gui#styles
|
|
9047
9055
|
*/
|
|
9048
|
-
get style():
|
|
9049
|
-
set style(value:
|
|
9056
|
+
get style(): Nullable<Style>;
|
|
9057
|
+
set style(value: Nullable<Style>);
|
|
9050
9058
|
/** @hidden */
|
|
9051
9059
|
get _isFontSizeInPercentage(): boolean;
|
|
9052
9060
|
/** Gets or sets font size in pixels */
|
|
@@ -9072,7 +9080,7 @@ declare module BABYLON.GUI {
|
|
|
9072
9080
|
/**
|
|
9073
9081
|
* Gets the current linked mesh (or null if none)
|
|
9074
9082
|
*/
|
|
9075
|
-
get linkedMesh():
|
|
9083
|
+
get linkedMesh(): Nullable<TransformNode>;
|
|
9076
9084
|
/**
|
|
9077
9085
|
* Gets or sets a value indicating the padding should work like in CSS.
|
|
9078
9086
|
* Basically, it will add the padding amount on each side of the parent control for its children.
|
|
@@ -9221,7 +9229,7 @@ declare module BABYLON.GUI {
|
|
|
9221
9229
|
* @param className defines the required type
|
|
9222
9230
|
* @returns the ascendant or null if not found
|
|
9223
9231
|
*/
|
|
9224
|
-
getAscendantOfClass(className: string):
|
|
9232
|
+
getAscendantOfClass(className: string): Nullable<Control>;
|
|
9225
9233
|
/**
|
|
9226
9234
|
* Mark control element as dirty
|
|
9227
9235
|
* @param force force non visible elements to be marked too
|
|
@@ -9263,7 +9271,7 @@ declare module BABYLON.GUI {
|
|
|
9263
9271
|
* @param position defines the target position
|
|
9264
9272
|
* @param scene defines the hosting scene
|
|
9265
9273
|
*/
|
|
9266
|
-
moveToVector3(position: BABYLON.Vector3, scene:
|
|
9274
|
+
moveToVector3(position: BABYLON.Vector3, scene: Scene): void;
|
|
9267
9275
|
/**
|
|
9268
9276
|
* Will store all controls that have this control as ascendant in a given array
|
|
9269
9277
|
* @param results defines the array where to store the descendants
|
|
@@ -9283,7 +9291,7 @@ declare module BABYLON.GUI {
|
|
|
9283
9291
|
* @param mesh defines the mesh to link with
|
|
9284
9292
|
* @see https://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
9285
9293
|
*/
|
|
9286
|
-
linkWithMesh(mesh:
|
|
9294
|
+
linkWithMesh(mesh: Nullable<TransformNode>): void;
|
|
9287
9295
|
/**
|
|
9288
9296
|
* Shorthand function to set the top, right, bottom, and left padding values on the control.
|
|
9289
9297
|
* @param { string | number} paddingTop - The value of the top padding.
|
|
@@ -9326,7 +9334,7 @@ declare module BABYLON.GUI {
|
|
|
9326
9334
|
* @param context
|
|
9327
9335
|
* @hidden
|
|
9328
9336
|
*/
|
|
9329
|
-
_intersectsRect(rect: Measure, context?:
|
|
9337
|
+
_intersectsRect(rect: Measure, context?: ICanvasRenderingContext): boolean;
|
|
9330
9338
|
/** @hidden */
|
|
9331
9339
|
protected _computeAdditionnalOffsetX(): number;
|
|
9332
9340
|
/** @hidden */
|
|
@@ -9349,34 +9357,34 @@ declare module BABYLON.GUI {
|
|
|
9349
9357
|
* @param context
|
|
9350
9358
|
* @hidden
|
|
9351
9359
|
*/
|
|
9352
|
-
protected _transform(context?:
|
|
9360
|
+
protected _transform(context?: ICanvasRenderingContext): void;
|
|
9353
9361
|
/**
|
|
9354
9362
|
* @param context
|
|
9355
9363
|
* @hidden
|
|
9356
9364
|
*/
|
|
9357
|
-
_renderHighlight(context:
|
|
9365
|
+
_renderHighlight(context: ICanvasRenderingContext): void;
|
|
9358
9366
|
/**
|
|
9359
9367
|
* @param context
|
|
9360
9368
|
* @hidden
|
|
9361
9369
|
*/
|
|
9362
|
-
_renderHighlightSpecific(context:
|
|
9370
|
+
_renderHighlightSpecific(context: ICanvasRenderingContext): void;
|
|
9363
9371
|
/**
|
|
9364
9372
|
* @param context
|
|
9365
9373
|
* @hidden
|
|
9366
9374
|
*/
|
|
9367
|
-
protected _applyStates(context:
|
|
9375
|
+
protected _applyStates(context: ICanvasRenderingContext): void;
|
|
9368
9376
|
/**
|
|
9369
9377
|
* @param parentMeasure
|
|
9370
9378
|
* @param context
|
|
9371
9379
|
* @hidden
|
|
9372
9380
|
*/
|
|
9373
|
-
_layout(parentMeasure: Measure, context:
|
|
9381
|
+
_layout(parentMeasure: Measure, context: ICanvasRenderingContext): boolean;
|
|
9374
9382
|
/**
|
|
9375
9383
|
* @param parentMeasure
|
|
9376
9384
|
* @param context
|
|
9377
9385
|
* @hidden
|
|
9378
9386
|
*/
|
|
9379
|
-
protected _processMeasures(parentMeasure: Measure, context:
|
|
9387
|
+
protected _processMeasures(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
9380
9388
|
protected _evaluateClippingState(parentMeasure: Measure): void;
|
|
9381
9389
|
/** @hidden */
|
|
9382
9390
|
_measure(): void;
|
|
@@ -9385,24 +9393,24 @@ declare module BABYLON.GUI {
|
|
|
9385
9393
|
* @param context
|
|
9386
9394
|
* @hidden
|
|
9387
9395
|
*/
|
|
9388
|
-
protected _computeAlignment(parentMeasure: Measure, context:
|
|
9396
|
+
protected _computeAlignment(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
9389
9397
|
/**
|
|
9390
9398
|
* @param parentMeasure
|
|
9391
9399
|
* @param context
|
|
9392
9400
|
* @hidden
|
|
9393
9401
|
*/
|
|
9394
|
-
protected _preMeasure(parentMeasure: Measure, context:
|
|
9402
|
+
protected _preMeasure(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
9395
9403
|
/**
|
|
9396
9404
|
* @param parentMeasure
|
|
9397
9405
|
* @param context
|
|
9398
9406
|
* @hidden
|
|
9399
9407
|
*/
|
|
9400
|
-
protected _additionalProcessing(parentMeasure: Measure, context:
|
|
9408
|
+
protected _additionalProcessing(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
9401
9409
|
/**
|
|
9402
9410
|
* @param context
|
|
9403
9411
|
* @hidden
|
|
9404
9412
|
*/
|
|
9405
|
-
protected _clipForChildren(context:
|
|
9413
|
+
protected _clipForChildren(context: ICanvasRenderingContext): void;
|
|
9406
9414
|
private static _ClipMeasure;
|
|
9407
9415
|
private _tmpMeasureA;
|
|
9408
9416
|
private _clip;
|
|
@@ -9411,13 +9419,13 @@ declare module BABYLON.GUI {
|
|
|
9411
9419
|
* @param invalidatedRectangle
|
|
9412
9420
|
* @hidden
|
|
9413
9421
|
*/
|
|
9414
|
-
_render(context:
|
|
9422
|
+
_render(context: ICanvasRenderingContext, invalidatedRectangle?: Nullable<Measure>): boolean;
|
|
9415
9423
|
/**
|
|
9416
9424
|
* @param context
|
|
9417
9425
|
* @param invalidatedRectangle
|
|
9418
9426
|
* @hidden
|
|
9419
9427
|
*/
|
|
9420
|
-
_draw(context:
|
|
9428
|
+
_draw(context: ICanvasRenderingContext, invalidatedRectangle?: Nullable<Measure>): void;
|
|
9421
9429
|
/**
|
|
9422
9430
|
* Tests if a given coordinates belong to the current control
|
|
9423
9431
|
* @param x defines x coordinate to test
|
|
@@ -9436,7 +9444,7 @@ declare module BABYLON.GUI {
|
|
|
9436
9444
|
* @param deltaY
|
|
9437
9445
|
* @hidden
|
|
9438
9446
|
*/
|
|
9439
|
-
_processPicking(x: number, y: number, pi:
|
|
9447
|
+
_processPicking(x: number, y: number, pi: Nullable<PointerInfoBase>, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
9440
9448
|
/**
|
|
9441
9449
|
* @param target
|
|
9442
9450
|
* @param coordinates
|
|
@@ -9444,20 +9452,20 @@ declare module BABYLON.GUI {
|
|
|
9444
9452
|
* @param pi
|
|
9445
9453
|
* @hidden
|
|
9446
9454
|
*/
|
|
9447
|
-
_onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number, pi:
|
|
9455
|
+
_onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number, pi: Nullable<PointerInfoBase>): void;
|
|
9448
9456
|
/**
|
|
9449
9457
|
* @param target
|
|
9450
9458
|
* @param pi
|
|
9451
9459
|
* @hidden
|
|
9452
9460
|
*/
|
|
9453
|
-
_onPointerEnter(target: Control, pi:
|
|
9461
|
+
_onPointerEnter(target: Control, pi: Nullable<PointerInfoBase>): boolean;
|
|
9454
9462
|
/**
|
|
9455
9463
|
* @param target
|
|
9456
9464
|
* @param pi
|
|
9457
9465
|
* @param force
|
|
9458
9466
|
* @hidden
|
|
9459
9467
|
*/
|
|
9460
|
-
_onPointerOut(target: Control, pi:
|
|
9468
|
+
_onPointerOut(target: Control, pi: Nullable<PointerInfoBase>, force?: boolean): void;
|
|
9461
9469
|
/**
|
|
9462
9470
|
* @param target
|
|
9463
9471
|
* @param coordinates
|
|
@@ -9466,7 +9474,7 @@ declare module BABYLON.GUI {
|
|
|
9466
9474
|
* @param pi
|
|
9467
9475
|
* @hidden
|
|
9468
9476
|
*/
|
|
9469
|
-
_onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi:
|
|
9477
|
+
_onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: Nullable<PointerInfoBase>): boolean;
|
|
9470
9478
|
/**
|
|
9471
9479
|
* @param target
|
|
9472
9480
|
* @param coordinates
|
|
@@ -9476,12 +9484,12 @@ declare module BABYLON.GUI {
|
|
|
9476
9484
|
* @param pi
|
|
9477
9485
|
* @hidden
|
|
9478
9486
|
*/
|
|
9479
|
-
_onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi?:
|
|
9487
|
+
_onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi?: Nullable<PointerInfoBase>): void;
|
|
9480
9488
|
/**
|
|
9481
9489
|
* @param pointerId
|
|
9482
9490
|
* @hidden
|
|
9483
9491
|
*/
|
|
9484
|
-
_forcePointerUp(pointerId?:
|
|
9492
|
+
_forcePointerUp(pointerId?: Nullable<number>): void;
|
|
9485
9493
|
/**
|
|
9486
9494
|
* @param deltaX
|
|
9487
9495
|
* @param deltaY
|
|
@@ -9501,7 +9509,7 @@ declare module BABYLON.GUI {
|
|
|
9501
9509
|
* @param deltaY
|
|
9502
9510
|
* @hidden
|
|
9503
9511
|
*/
|
|
9504
|
-
_processObservables(type: number, x: number, y: number, pi:
|
|
9512
|
+
_processObservables(type: number, x: number, y: number, pi: Nullable<PointerInfoBase>, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
9505
9513
|
private _prepareFont;
|
|
9506
9514
|
/**
|
|
9507
9515
|
* Serializes the current control
|
|
@@ -9563,7 +9571,7 @@ declare module BABYLON.GUI {
|
|
|
9563
9571
|
* @param context
|
|
9564
9572
|
* @hidden
|
|
9565
9573
|
*/
|
|
9566
|
-
protected static drawEllipse(x: number, y: number, width: number, height: number, context:
|
|
9574
|
+
protected static drawEllipse(x: number, y: number, width: number, height: number, context: ICanvasRenderingContext): void;
|
|
9567
9575
|
}
|
|
9568
9576
|
|
|
9569
9577
|
|
|
@@ -9615,7 +9623,7 @@ declare module BABYLON.GUI {
|
|
|
9615
9623
|
* @param name defines the control name
|
|
9616
9624
|
*/
|
|
9617
9625
|
constructor(name?: string | undefined);
|
|
9618
|
-
_draw(context:
|
|
9626
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
9619
9627
|
protected _getTypeName(): string;
|
|
9620
9628
|
}
|
|
9621
9629
|
|
|
@@ -9633,10 +9641,10 @@ declare module BABYLON.GUI {
|
|
|
9633
9641
|
*/
|
|
9634
9642
|
constructor(name?: string | undefined);
|
|
9635
9643
|
protected _getTypeName(): string;
|
|
9636
|
-
protected _localDraw(context:
|
|
9637
|
-
protected _additionalProcessing(parentMeasure: Measure, context:
|
|
9638
|
-
protected _clipForChildren(context:
|
|
9639
|
-
_renderHighlightSpecific(context:
|
|
9644
|
+
protected _localDraw(context: ICanvasRenderingContext): void;
|
|
9645
|
+
protected _additionalProcessing(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
9646
|
+
protected _clipForChildren(context: ICanvasRenderingContext): void;
|
|
9647
|
+
_renderHighlightSpecific(context: ICanvasRenderingContext): void;
|
|
9640
9648
|
}
|
|
9641
9649
|
|
|
9642
9650
|
|
|
@@ -9647,7 +9655,7 @@ declare module BABYLON.GUI {
|
|
|
9647
9655
|
export class FocusableButton extends Button implements IFocusableControl {
|
|
9648
9656
|
name?: string | undefined;
|
|
9649
9657
|
/** Highlight color when button is focused */
|
|
9650
|
-
focusedColor:
|
|
9658
|
+
focusedColor: Nullable<string>;
|
|
9651
9659
|
private _isFocused;
|
|
9652
9660
|
private _unfocusedColor;
|
|
9653
9661
|
/** BABYLON.Observable raised when the control gets the focus */
|
|
@@ -9655,7 +9663,7 @@ declare module BABYLON.GUI {
|
|
|
9655
9663
|
/** BABYLON.Observable raised when the control loses the focus */
|
|
9656
9664
|
onBlurObservable: BABYLON.Observable<Button>;
|
|
9657
9665
|
/** BABYLON.Observable raised when a key event was processed */
|
|
9658
|
-
onKeyboardEventProcessedObservable: BABYLON.Observable<
|
|
9666
|
+
onKeyboardEventProcessedObservable: BABYLON.Observable<IKeyboardEvent>;
|
|
9659
9667
|
constructor(name?: string | undefined);
|
|
9660
9668
|
/** @hidden */
|
|
9661
9669
|
onBlur(): void;
|
|
@@ -9665,7 +9673,7 @@ declare module BABYLON.GUI {
|
|
|
9665
9673
|
* Function called to get the list of controls that should not steal the focus from this control
|
|
9666
9674
|
* @returns an array of controls
|
|
9667
9675
|
*/
|
|
9668
|
-
keepsFocusWith():
|
|
9676
|
+
keepsFocusWith(): Nullable<Control[]>;
|
|
9669
9677
|
/**
|
|
9670
9678
|
* Function to focus a button programmatically
|
|
9671
9679
|
*/
|
|
@@ -9678,7 +9686,7 @@ declare module BABYLON.GUI {
|
|
|
9678
9686
|
* Handles the keyboard event
|
|
9679
9687
|
* @param evt Defines the KeyboardEvent
|
|
9680
9688
|
*/
|
|
9681
|
-
processKeyboard(evt:
|
|
9689
|
+
processKeyboard(evt: IKeyboardEvent): void;
|
|
9682
9690
|
/**
|
|
9683
9691
|
* @param target
|
|
9684
9692
|
* @param coordinates
|
|
@@ -9687,7 +9695,7 @@ declare module BABYLON.GUI {
|
|
|
9687
9695
|
* @param pi
|
|
9688
9696
|
* @hidden
|
|
9689
9697
|
*/
|
|
9690
|
-
_onPointerDown(target: Control, coordinates:
|
|
9698
|
+
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
9691
9699
|
/** @hidden */
|
|
9692
9700
|
displose(): void;
|
|
9693
9701
|
}
|
|
@@ -9709,12 +9717,12 @@ declare module BABYLON.GUI {
|
|
|
9709
9717
|
* Function called to let the control handle keyboard events
|
|
9710
9718
|
* @param evt defines the current keyboard event
|
|
9711
9719
|
*/
|
|
9712
|
-
processKeyboard(evt:
|
|
9720
|
+
processKeyboard(evt: IKeyboardEvent): void;
|
|
9713
9721
|
/**
|
|
9714
9722
|
* Function called to get the list of controls that should not steal the focus from this control
|
|
9715
9723
|
* @returns an array of controls
|
|
9716
9724
|
*/
|
|
9717
|
-
keepsFocusWith():
|
|
9725
|
+
keepsFocusWith(): Nullable<Control[]>;
|
|
9718
9726
|
/**
|
|
9719
9727
|
* Function to focus the control programmatically
|
|
9720
9728
|
*/
|
|
@@ -9756,13 +9764,13 @@ declare module BABYLON.GUI {
|
|
|
9756
9764
|
* @param index defines the index of the row
|
|
9757
9765
|
* @returns the row definition
|
|
9758
9766
|
*/
|
|
9759
|
-
getRowDefinition(index: number):
|
|
9767
|
+
getRowDefinition(index: number): Nullable<ValueAndUnit>;
|
|
9760
9768
|
/**
|
|
9761
9769
|
* Gets the definition of a specific column
|
|
9762
9770
|
* @param index defines the index of the column
|
|
9763
9771
|
* @returns the column definition
|
|
9764
9772
|
*/
|
|
9765
|
-
getColumnDefinition(index: number):
|
|
9773
|
+
getColumnDefinition(index: number): Nullable<ValueAndUnit>;
|
|
9766
9774
|
/**
|
|
9767
9775
|
* Adds a new row to the grid
|
|
9768
9776
|
* @param height defines the height of the row (either in pixel or a value between 0 and 1)
|
|
@@ -9799,7 +9807,7 @@ declare module BABYLON.GUI {
|
|
|
9799
9807
|
* @param column defines the column to check
|
|
9800
9808
|
* @returns the list of controls
|
|
9801
9809
|
*/
|
|
9802
|
-
getChildrenAt(row: number, column: number):
|
|
9810
|
+
getChildrenAt(row: number, column: number): Nullable<Array<Control>>;
|
|
9803
9811
|
/**
|
|
9804
9812
|
* Gets a string representing the child cell info (row x column)
|
|
9805
9813
|
* @param child defines the control to get info from
|
|
@@ -9841,9 +9849,9 @@ declare module BABYLON.GUI {
|
|
|
9841
9849
|
constructor(name?: string | undefined);
|
|
9842
9850
|
protected _getTypeName(): string;
|
|
9843
9851
|
protected _getGridDefinitions(definitionCallback: (lefts: number[], tops: number[], widths: number[], heights: number[]) => void): void;
|
|
9844
|
-
protected _additionalProcessing(parentMeasure: Measure, context:
|
|
9852
|
+
protected _additionalProcessing(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
9845
9853
|
_flagDescendantsAsMatrixDirty(): void;
|
|
9846
|
-
_renderHighlightSpecific(context:
|
|
9854
|
+
_renderHighlightSpecific(context: ICanvasRenderingContext): void;
|
|
9847
9855
|
/** Releases associated resources */
|
|
9848
9856
|
dispose(): void;
|
|
9849
9857
|
/**
|
|
@@ -9985,17 +9993,17 @@ declare module BABYLON.GUI {
|
|
|
9985
9993
|
/**
|
|
9986
9994
|
* Gets or sets the internal DOM image used to render the control
|
|
9987
9995
|
*/
|
|
9988
|
-
set domImage(value:
|
|
9989
|
-
get domImage():
|
|
9996
|
+
set domImage(value: IImage);
|
|
9997
|
+
get domImage(): IImage;
|
|
9990
9998
|
private _onImageLoaded;
|
|
9991
9999
|
/**
|
|
9992
10000
|
* Gets the image source url
|
|
9993
10001
|
*/
|
|
9994
|
-
get source():
|
|
10002
|
+
get source(): Nullable<string>;
|
|
9995
10003
|
/**
|
|
9996
10004
|
* Gets or sets image source url
|
|
9997
10005
|
*/
|
|
9998
|
-
set source(value:
|
|
10006
|
+
set source(value: Nullable<string>);
|
|
9999
10007
|
/**
|
|
10000
10008
|
* Checks for svg document with icon id present
|
|
10001
10009
|
* @param value
|
|
@@ -10031,7 +10039,7 @@ declare module BABYLON.GUI {
|
|
|
10031
10039
|
* @param name defines the control name
|
|
10032
10040
|
* @param url defines the image url
|
|
10033
10041
|
*/
|
|
10034
|
-
constructor(name?: string | undefined, url?:
|
|
10042
|
+
constructor(name?: string | undefined, url?: Nullable<string>);
|
|
10035
10043
|
/**
|
|
10036
10044
|
* Tests if a given coordinates belong to the current control
|
|
10037
10045
|
* @param x defines x coordinate to test
|
|
@@ -10042,10 +10050,10 @@ declare module BABYLON.GUI {
|
|
|
10042
10050
|
protected _getTypeName(): string;
|
|
10043
10051
|
/** Force the control to synchronize with its content */
|
|
10044
10052
|
synchronizeSizeWithContent(): void;
|
|
10045
|
-
protected _processMeasures(parentMeasure: Measure, context:
|
|
10053
|
+
protected _processMeasures(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
10046
10054
|
private _prepareWorkingCanvasForOpaqueDetection;
|
|
10047
10055
|
private _drawImage;
|
|
10048
|
-
_draw(context:
|
|
10056
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
10049
10057
|
private _renderNinePatch;
|
|
10050
10058
|
dispose(): void;
|
|
10051
10059
|
/** STRETCH_NONE */
|
|
@@ -10067,6 +10075,7 @@ declare module BABYLON.GUI {
|
|
|
10067
10075
|
* Class used to create a password control
|
|
10068
10076
|
*/
|
|
10069
10077
|
export class InputPassword extends InputText {
|
|
10078
|
+
protected _getTypeName(): string;
|
|
10070
10079
|
protected _beforeRenderText(textWrapper: TextWrapper): TextWrapper;
|
|
10071
10080
|
}
|
|
10072
10081
|
|
|
@@ -10110,7 +10119,7 @@ declare module BABYLON.GUI {
|
|
|
10110
10119
|
private _onClipboardObserver;
|
|
10111
10120
|
private _onPointerDblTapObserver;
|
|
10112
10121
|
/** @hidden */
|
|
10113
|
-
_connectedVirtualKeyboard:
|
|
10122
|
+
_connectedVirtualKeyboard: Nullable<VirtualKeyboard>;
|
|
10114
10123
|
/** Gets or sets a string representing the message displayed on mobile when the control gets the focus */
|
|
10115
10124
|
promptMessage: string;
|
|
10116
10125
|
/** Force disable prompt on mobile device */
|
|
@@ -10132,7 +10141,7 @@ declare module BABYLON.GUI {
|
|
|
10132
10141
|
/** BABYLON.Observable raised when paste event is triggered */
|
|
10133
10142
|
onTextPasteObservable: BABYLON.Observable<InputText>;
|
|
10134
10143
|
/** BABYLON.Observable raised when a key event was processed */
|
|
10135
|
-
onKeyboardEventProcessedObservable: BABYLON.Observable<
|
|
10144
|
+
onKeyboardEventProcessedObservable: BABYLON.Observable<IKeyboardEvent>;
|
|
10136
10145
|
/** Gets or sets the maximum width allowed by the control */
|
|
10137
10146
|
get maxWidth(): string | number;
|
|
10138
10147
|
/** Gets the maximum width allowed by the control in pixels */
|
|
@@ -10215,14 +10224,14 @@ declare module BABYLON.GUI {
|
|
|
10215
10224
|
* Function called to get the list of controls that should not steal the focus from this control
|
|
10216
10225
|
* @returns an array of controls
|
|
10217
10226
|
*/
|
|
10218
|
-
keepsFocusWith():
|
|
10227
|
+
keepsFocusWith(): Nullable<Control[]>;
|
|
10219
10228
|
/**
|
|
10220
10229
|
* @param keyCode
|
|
10221
10230
|
* @param key
|
|
10222
10231
|
* @param evt
|
|
10223
10232
|
* @hidden
|
|
10224
10233
|
*/
|
|
10225
|
-
processKey(keyCode: number, key?: string, evt?:
|
|
10234
|
+
processKey(keyCode: number, key?: string, evt?: IKeyboardEvent): void;
|
|
10226
10235
|
/**
|
|
10227
10236
|
* @param offset
|
|
10228
10237
|
* @hidden
|
|
@@ -10239,7 +10248,7 @@ declare module BABYLON.GUI {
|
|
|
10239
10248
|
* Handles the keyboard event
|
|
10240
10249
|
* @param evt Defines the KeyboardEvent
|
|
10241
10250
|
*/
|
|
10242
|
-
processKeyboard(evt:
|
|
10251
|
+
processKeyboard(evt: IKeyboardEvent): void;
|
|
10243
10252
|
/**
|
|
10244
10253
|
* @param ev
|
|
10245
10254
|
* @hidden
|
|
@@ -10255,10 +10264,10 @@ declare module BABYLON.GUI {
|
|
|
10255
10264
|
* @hidden
|
|
10256
10265
|
*/
|
|
10257
10266
|
private _onPasteText;
|
|
10258
|
-
_draw(context:
|
|
10259
|
-
_onPointerDown(target: Control, coordinates:
|
|
10260
|
-
_onPointerMove(target: Control, coordinates:
|
|
10261
|
-
_onPointerUp(target: Control, coordinates:
|
|
10267
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
10268
|
+
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
10269
|
+
_onPointerMove(target: Control, coordinates: Vector2, pointerId: number, pi: PointerInfoBase): void;
|
|
10270
|
+
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean): void;
|
|
10262
10271
|
protected _beforeRenderText(textWrapper: TextWrapper): TextWrapper;
|
|
10263
10272
|
dispose(): void;
|
|
10264
10273
|
}
|
|
@@ -10308,16 +10317,16 @@ declare module BABYLON.GUI {
|
|
|
10308
10317
|
*/
|
|
10309
10318
|
constructor(name?: string | undefined);
|
|
10310
10319
|
protected _getTypeName(): string;
|
|
10311
|
-
_draw(context:
|
|
10320
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
10312
10321
|
_measure(): void;
|
|
10313
10322
|
protected _computeAlignment(parentMeasure: Measure): void;
|
|
10314
10323
|
/**
|
|
10315
10324
|
* Move one end of the line given 3D cartesian coordinates.
|
|
10316
10325
|
* @param position Targeted world position
|
|
10317
|
-
* @param scene
|
|
10326
|
+
* @param scene Scene
|
|
10318
10327
|
* @param end (opt) Set to true to assign x2 and y2 coordinates of the line. Default assign to x1 and y1.
|
|
10319
10328
|
*/
|
|
10320
|
-
moveToVector3(position: BABYLON.Vector3, scene:
|
|
10329
|
+
moveToVector3(position: BABYLON.Vector3, scene: Scene, end?: boolean): void;
|
|
10321
10330
|
/**
|
|
10322
10331
|
* Move one end of the line to a position in screen absolute space.
|
|
10323
10332
|
* @param projectedPosition Position in screen absolute space (X, Y)
|
|
@@ -10392,7 +10401,7 @@ declare module BABYLON.GUI {
|
|
|
10392
10401
|
set horizontalAlignment(value: number);
|
|
10393
10402
|
set verticalAlignment(value: number);
|
|
10394
10403
|
protected _getTypeName(): string;
|
|
10395
|
-
_draw(context:
|
|
10404
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
10396
10405
|
protected _additionalProcessing(): void;
|
|
10397
10406
|
_measure(): void;
|
|
10398
10407
|
protected _computeAlignment(): void;
|
|
@@ -10431,8 +10440,8 @@ declare module BABYLON.GUI {
|
|
|
10431
10440
|
*/
|
|
10432
10441
|
constructor(name?: string | undefined);
|
|
10433
10442
|
protected _getTypeName(): string;
|
|
10434
|
-
_draw(context:
|
|
10435
|
-
_onPointerDown(target: Control, coordinates:
|
|
10443
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
10444
|
+
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
10436
10445
|
/**
|
|
10437
10446
|
* Utility function to easily create a radio button with a header
|
|
10438
10447
|
* @param title defines the label to use for the header
|
|
@@ -10466,10 +10475,10 @@ declare module BABYLON.GUI {
|
|
|
10466
10475
|
protected _computeAdditionnalOffsetX(): 1 | 0;
|
|
10467
10476
|
/** @hidden */
|
|
10468
10477
|
protected _computeAdditionnalOffsetY(): 1 | 0;
|
|
10469
|
-
protected _localDraw(context:
|
|
10470
|
-
protected _additionalProcessing(parentMeasure: Measure, context:
|
|
10478
|
+
protected _localDraw(context: ICanvasRenderingContext): void;
|
|
10479
|
+
protected _additionalProcessing(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
10471
10480
|
private _drawRoundedRect;
|
|
10472
|
-
protected _clipForChildren(context:
|
|
10481
|
+
protected _clipForChildren(context: ICanvasRenderingContext): void;
|
|
10473
10482
|
}
|
|
10474
10483
|
|
|
10475
10484
|
|
|
@@ -10519,7 +10528,7 @@ declare module BABYLON.GUI {
|
|
|
10519
10528
|
* @param control defines the control to add
|
|
10520
10529
|
* @returns the current container
|
|
10521
10530
|
*/
|
|
10522
|
-
addControl(control:
|
|
10531
|
+
addControl(control: Nullable<Control>): Container;
|
|
10523
10532
|
/**
|
|
10524
10533
|
* Removes a control from the current container
|
|
10525
10534
|
* @param control defines the control to remove
|
|
@@ -10574,7 +10583,7 @@ declare module BABYLON.GUI {
|
|
|
10574
10583
|
resetWindow(): void;
|
|
10575
10584
|
protected _getTypeName(): string;
|
|
10576
10585
|
private _buildClientSizes;
|
|
10577
|
-
protected _additionalProcessing(parentMeasure: Measure, context:
|
|
10586
|
+
protected _additionalProcessing(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
10578
10587
|
protected _postMeasure(): void;
|
|
10579
10588
|
/**
|
|
10580
10589
|
* Gets or sets the mouse wheel precision
|
|
@@ -10641,7 +10650,7 @@ declare module BABYLON.GUI {
|
|
|
10641
10650
|
private _addBar;
|
|
10642
10651
|
/** @hidden */
|
|
10643
10652
|
private _attachWheel;
|
|
10644
|
-
_renderHighlightSpecific(context:
|
|
10653
|
+
_renderHighlightSpecific(context: ICanvasRenderingContext): void;
|
|
10645
10654
|
/** Releases associated resources */
|
|
10646
10655
|
dispose(): void;
|
|
10647
10656
|
}
|
|
@@ -10684,13 +10693,13 @@ declare module BABYLON.GUI {
|
|
|
10684
10693
|
* @param context
|
|
10685
10694
|
* @hidden
|
|
10686
10695
|
*/
|
|
10687
|
-
protected _additionalProcessing(parentMeasure: Measure, context:
|
|
10696
|
+
protected _additionalProcessing(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
10688
10697
|
/**
|
|
10689
10698
|
* @param parentMeasure
|
|
10690
10699
|
* @param context
|
|
10691
10700
|
* @hidden
|
|
10692
10701
|
*/
|
|
10693
|
-
_layout(parentMeasure: Measure, context:
|
|
10702
|
+
_layout(parentMeasure: Measure, context: ICanvasRenderingContext): boolean;
|
|
10694
10703
|
private _scrollChildren;
|
|
10695
10704
|
private _scrollChildrenWithBuckets;
|
|
10696
10705
|
/**
|
|
@@ -10698,7 +10707,7 @@ declare module BABYLON.GUI {
|
|
|
10698
10707
|
* @param invalidatedRectangle
|
|
10699
10708
|
* @hidden
|
|
10700
10709
|
*/
|
|
10701
|
-
_draw(context:
|
|
10710
|
+
_draw(context: ICanvasRenderingContext, invalidatedRectangle?: Measure): void;
|
|
10702
10711
|
protected _postMeasure(): void;
|
|
10703
10712
|
}
|
|
10704
10713
|
|
|
@@ -11038,9 +11047,9 @@ declare module BABYLON.GUI {
|
|
|
11038
11047
|
* @hidden
|
|
11039
11048
|
*/
|
|
11040
11049
|
protected _updateValueFromPointer(x: number, y: number): void;
|
|
11041
|
-
_onPointerDown(target: Control, coordinates:
|
|
11042
|
-
_onPointerMove(target: Control, coordinates:
|
|
11043
|
-
_onPointerUp(target: Control, coordinates:
|
|
11050
|
+
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
11051
|
+
_onPointerMove(target: Control, coordinates: Vector2, pointerId: number, pi: PointerInfoBase): void;
|
|
11052
|
+
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean): void;
|
|
11044
11053
|
_onCanvasBlur(): void;
|
|
11045
11054
|
}
|
|
11046
11055
|
|
|
@@ -11077,7 +11086,7 @@ declare module BABYLON.GUI {
|
|
|
11077
11086
|
*/
|
|
11078
11087
|
constructor(name?: string | undefined);
|
|
11079
11088
|
protected _getTypeName(): string;
|
|
11080
|
-
_draw(context:
|
|
11089
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
11081
11090
|
/**
|
|
11082
11091
|
* Serializes the current control
|
|
11083
11092
|
* @param serializationObject defined the JSON serialized object
|
|
@@ -11139,7 +11148,7 @@ declare module BABYLON.GUI {
|
|
|
11139
11148
|
constructor(name?: string | undefined);
|
|
11140
11149
|
protected _getTypeName(): string;
|
|
11141
11150
|
protected _getThumbThickness(): number;
|
|
11142
|
-
_draw(context:
|
|
11151
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
11143
11152
|
private _first;
|
|
11144
11153
|
private _originX;
|
|
11145
11154
|
private _originY;
|
|
@@ -11149,7 +11158,7 @@ declare module BABYLON.GUI {
|
|
|
11149
11158
|
* @hidden
|
|
11150
11159
|
*/
|
|
11151
11160
|
protected _updateValueFromPointer(x: number, y: number): void;
|
|
11152
|
-
_onPointerDown(target: Control, coordinates:
|
|
11161
|
+
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
11153
11162
|
}
|
|
11154
11163
|
|
|
11155
11164
|
|
|
@@ -11174,7 +11183,7 @@ declare module BABYLON.GUI {
|
|
|
11174
11183
|
constructor(name?: string | undefined);
|
|
11175
11184
|
protected _getTypeName(): string;
|
|
11176
11185
|
protected _getThumbThickness(): number;
|
|
11177
|
-
_draw(context:
|
|
11186
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
11178
11187
|
private _first;
|
|
11179
11188
|
private _originX;
|
|
11180
11189
|
private _originY;
|
|
@@ -11184,7 +11193,7 @@ declare module BABYLON.GUI {
|
|
|
11184
11193
|
* @hidden
|
|
11185
11194
|
*/
|
|
11186
11195
|
protected _updateValueFromPointer(x: number, y: number): void;
|
|
11187
|
-
_onPointerDown(target: Control, coordinates:
|
|
11196
|
+
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
11188
11197
|
}
|
|
11189
11198
|
|
|
11190
11199
|
|
|
@@ -11219,7 +11228,7 @@ declare module BABYLON.GUI {
|
|
|
11219
11228
|
*/
|
|
11220
11229
|
constructor(name?: string | undefined);
|
|
11221
11230
|
protected _getTypeName(): string;
|
|
11222
|
-
_draw(context:
|
|
11231
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
11223
11232
|
}
|
|
11224
11233
|
|
|
11225
11234
|
|
|
@@ -11268,8 +11277,8 @@ declare module BABYLON.GUI {
|
|
|
11268
11277
|
* @param context
|
|
11269
11278
|
* @hidden
|
|
11270
11279
|
*/
|
|
11271
|
-
protected _preMeasure(parentMeasure: Measure, context:
|
|
11272
|
-
protected _additionalProcessing(parentMeasure: Measure, context:
|
|
11280
|
+
protected _preMeasure(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
11281
|
+
protected _additionalProcessing(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
11273
11282
|
protected _postMeasure(): void;
|
|
11274
11283
|
/**
|
|
11275
11284
|
* Serializes the current control
|
|
@@ -11343,7 +11352,7 @@ declare module BABYLON.GUI {
|
|
|
11343
11352
|
/**
|
|
11344
11353
|
* Function used to split a string into words. By default, a string is split at each space character found
|
|
11345
11354
|
*/
|
|
11346
|
-
wordSplittingFunction:
|
|
11355
|
+
wordSplittingFunction: Nullable<(line: string) => string[]>;
|
|
11347
11356
|
/**
|
|
11348
11357
|
* Return the line list (you may need to use the onLinesReadyObservable to make sure the list is ready)
|
|
11349
11358
|
*/
|
|
@@ -11439,21 +11448,21 @@ declare module BABYLON.GUI {
|
|
|
11439
11448
|
*/
|
|
11440
11449
|
name?: string | undefined, text?: string);
|
|
11441
11450
|
protected _getTypeName(): string;
|
|
11442
|
-
protected _processMeasures(parentMeasure: Measure, context:
|
|
11451
|
+
protected _processMeasures(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
11443
11452
|
private _drawText;
|
|
11444
11453
|
/**
|
|
11445
11454
|
* @param context
|
|
11446
11455
|
* @hidden
|
|
11447
11456
|
*/
|
|
11448
|
-
_draw(context:
|
|
11449
|
-
protected _applyStates(context:
|
|
11450
|
-
protected _breakLines(refWidth: number, refHeight: number, context:
|
|
11451
|
-
protected _parseLine(line: string | undefined, context:
|
|
11457
|
+
_draw(context: ICanvasRenderingContext): void;
|
|
11458
|
+
protected _applyStates(context: ICanvasRenderingContext): void;
|
|
11459
|
+
protected _breakLines(refWidth: number, refHeight: number, context: ICanvasRenderingContext): object[];
|
|
11460
|
+
protected _parseLine(line: string | undefined, context: ICanvasRenderingContext): object;
|
|
11452
11461
|
private _getCharsToRemove;
|
|
11453
|
-
protected _parseLineEllipsis(line: string | undefined, width: number, context:
|
|
11454
|
-
protected _parseLineWordWrap(line: string | undefined, width: number, context:
|
|
11455
|
-
protected _parseLineWordWrapEllipsis(line: string | undefined, width: number, height: number, context:
|
|
11456
|
-
protected _renderLines(context:
|
|
11462
|
+
protected _parseLineEllipsis(line: string | undefined, width: number, context: ICanvasRenderingContext): object;
|
|
11463
|
+
protected _parseLineWordWrap(line: string | undefined, width: number, context: ICanvasRenderingContext): object[];
|
|
11464
|
+
protected _parseLineWordWrapEllipsis(line: string | undefined, width: number, height: number, context: ICanvasRenderingContext): object[];
|
|
11465
|
+
protected _renderLines(context: ICanvasRenderingContext): void;
|
|
11457
11466
|
private _computeHeightForLinesOf;
|
|
11458
11467
|
/**
|
|
11459
11468
|
* Given a width constraint applied on the text block, find the expected height
|
|
@@ -11557,20 +11566,20 @@ declare module BABYLON.GUI {
|
|
|
11557
11566
|
* @param deltaY
|
|
11558
11567
|
* @hidden
|
|
11559
11568
|
*/
|
|
11560
|
-
_processPicking(x: number, y: number, pi:
|
|
11569
|
+
_processPicking(x: number, y: number, pi: PointerInfoBase, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
11561
11570
|
/**
|
|
11562
11571
|
* @param target
|
|
11563
11572
|
* @param pi
|
|
11564
11573
|
* @hidden
|
|
11565
11574
|
*/
|
|
11566
|
-
_onPointerEnter(target: Control, pi:
|
|
11575
|
+
_onPointerEnter(target: Control, pi: PointerInfoBase): boolean;
|
|
11567
11576
|
/**
|
|
11568
11577
|
* @param target
|
|
11569
11578
|
* @param pi
|
|
11570
11579
|
* @param force
|
|
11571
11580
|
* @hidden
|
|
11572
11581
|
*/
|
|
11573
|
-
_onPointerOut(target: Control, pi:
|
|
11582
|
+
_onPointerOut(target: Control, pi: PointerInfoBase, force?: boolean): void;
|
|
11574
11583
|
/**
|
|
11575
11584
|
* @param target
|
|
11576
11585
|
* @param coordinates
|
|
@@ -11579,7 +11588,7 @@ declare module BABYLON.GUI {
|
|
|
11579
11588
|
* @param pi
|
|
11580
11589
|
* @hidden
|
|
11581
11590
|
*/
|
|
11582
|
-
_onPointerDown(target: Control, coordinates:
|
|
11591
|
+
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
11583
11592
|
/**
|
|
11584
11593
|
* @param target
|
|
11585
11594
|
* @param coordinates
|
|
@@ -11589,7 +11598,7 @@ declare module BABYLON.GUI {
|
|
|
11589
11598
|
* @param pi
|
|
11590
11599
|
* @hidden
|
|
11591
11600
|
*/
|
|
11592
|
-
_onPointerUp(target: Control, coordinates:
|
|
11601
|
+
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi: PointerInfoBase): void;
|
|
11593
11602
|
}
|
|
11594
11603
|
|
|
11595
11604
|
|
|
@@ -11659,7 +11668,7 @@ declare module BABYLON.GUI {
|
|
|
11659
11668
|
private _connectedInputTexts;
|
|
11660
11669
|
private _onKeyPressObserver;
|
|
11661
11670
|
/** Gets the input text control currently attached to the keyboard */
|
|
11662
|
-
get connectedInputText():
|
|
11671
|
+
get connectedInputText(): Nullable<InputText>;
|
|
11663
11672
|
/**
|
|
11664
11673
|
* Connects the keyboard with an input text control
|
|
11665
11674
|
*
|
|
@@ -11802,7 +11811,7 @@ declare module BABYLON.GUI {
|
|
|
11802
11811
|
* @param parentMatrix defines the parent matrix to multiply by (can be null)
|
|
11803
11812
|
* @param result defines the target matrix
|
|
11804
11813
|
*/
|
|
11805
|
-
static ComposeToRef(tx: number, ty: number, angle: number, scaleX: number, scaleY: number, parentMatrix:
|
|
11814
|
+
static ComposeToRef(tx: number, ty: number, angle: number, scaleX: number, scaleY: number, parentMatrix: Nullable<Matrix2D>, result: Matrix2D): void;
|
|
11806
11815
|
}
|
|
11807
11816
|
|
|
11808
11817
|
|
|
@@ -11910,11 +11919,11 @@ declare module BABYLON.GUI {
|
|
|
11910
11919
|
get y(): string | number;
|
|
11911
11920
|
set y(value: string | number);
|
|
11912
11921
|
/** Gets or sets the control associated with this point */
|
|
11913
|
-
get control():
|
|
11914
|
-
set control(value:
|
|
11922
|
+
get control(): Nullable<Control>;
|
|
11923
|
+
set control(value: Nullable<Control>);
|
|
11915
11924
|
/** Gets or sets the mesh associated with this point */
|
|
11916
|
-
get mesh():
|
|
11917
|
-
set mesh(value:
|
|
11925
|
+
get mesh(): Nullable<AbstractMesh>;
|
|
11926
|
+
set mesh(value: Nullable<AbstractMesh>);
|
|
11918
11927
|
/** Resets links */
|
|
11919
11928
|
resetLinks(): void;
|
|
11920
11929
|
/**
|
|
@@ -11932,7 +11941,7 @@ declare module BABYLON.GUI {
|
|
|
11932
11941
|
* Define a style used by control to automatically setup properties based on a template.
|
|
11933
11942
|
* Only support font related properties so far
|
|
11934
11943
|
*/
|
|
11935
|
-
export class Style implements
|
|
11944
|
+
export class Style implements IDisposable {
|
|
11936
11945
|
private _fontFamily;
|
|
11937
11946
|
private _fontStyle;
|
|
11938
11947
|
private _fontWeight;
|
|
@@ -12111,7 +12120,7 @@ declare module BABYLON.GUI {
|
|
|
12111
12120
|
* @param onSuccess defines the callback called on layout load successfully.
|
|
12112
12121
|
* @param onError defines the callback called on layout load failure.
|
|
12113
12122
|
*/
|
|
12114
|
-
loadLayout(xmlFile: any, rootNode: any, onSuccess?:
|
|
12123
|
+
loadLayout(xmlFile: any, rootNode: any, onSuccess?: Nullable<() => void>, onError?: Nullable<(error: string) => void>): void;
|
|
12115
12124
|
/**
|
|
12116
12125
|
* Initiates the xml layout loading asynchronously
|
|
12117
12126
|
* @param xmlFile defines the xml layout to load
|
|
@@ -12127,7 +12136,7 @@ declare module BABYLON.GUI {
|
|
|
12127
12136
|
* Handles a BABYLON.FollowBehavior, SixDofBehavior and BABYLON.SurfaceMagnetismBehavior
|
|
12128
12137
|
* @since 5.0.0
|
|
12129
12138
|
*/
|
|
12130
|
-
export class DefaultBehavior implements
|
|
12139
|
+
export class DefaultBehavior implements Behavior<Mesh> {
|
|
12131
12140
|
private _scene;
|
|
12132
12141
|
private _followBehavior;
|
|
12133
12142
|
private _sixDofDragBehavior;
|
|
@@ -12141,7 +12150,7 @@ declare module BABYLON.GUI {
|
|
|
12141
12150
|
/**
|
|
12142
12151
|
* Attached node of this behavior
|
|
12143
12152
|
*/
|
|
12144
|
-
attachedNode:
|
|
12153
|
+
attachedNode: Nullable<Mesh>;
|
|
12145
12154
|
/**
|
|
12146
12155
|
* The name of the behavior
|
|
12147
12156
|
*/
|
|
@@ -12180,7 +12189,7 @@ declare module BABYLON.GUI {
|
|
|
12180
12189
|
* @param draggablesMeshes Descendant meshes that can be used for dragging the owner mesh
|
|
12181
12190
|
* @param sceneUnderstandingMeshes Meshes from the scene understanding that will be used for surface magnetism
|
|
12182
12191
|
*/
|
|
12183
|
-
attach(ownerMesh:
|
|
12192
|
+
attach(ownerMesh: Mesh, draggablesMeshes?: Mesh[], sceneUnderstandingMeshes?: AbstractMesh[]): void;
|
|
12184
12193
|
/**
|
|
12185
12194
|
* Detaches the behavior from the mesh
|
|
12186
12195
|
*/
|
|
@@ -12200,7 +12209,7 @@ declare module BABYLON.GUI {
|
|
|
12200
12209
|
*/
|
|
12201
12210
|
constructor(name?: string);
|
|
12202
12211
|
protected _getTypeName(): string;
|
|
12203
|
-
protected _createNode(scene:
|
|
12212
|
+
protected _createNode(scene: Scene): BABYLON.TransformNode;
|
|
12204
12213
|
}
|
|
12205
12214
|
|
|
12206
12215
|
|
|
@@ -12209,7 +12218,7 @@ declare module BABYLON.GUI {
|
|
|
12209
12218
|
*/
|
|
12210
12219
|
export class Button3D extends AbstractButton3D {
|
|
12211
12220
|
/** @hidden */
|
|
12212
|
-
protected _currentMaterial:
|
|
12221
|
+
protected _currentMaterial: Material;
|
|
12213
12222
|
/**
|
|
12214
12223
|
* Creates a new button
|
|
12215
12224
|
* @param name defines the control name
|
|
@@ -12221,8 +12230,8 @@ declare module BABYLON.GUI {
|
|
|
12221
12230
|
*/
|
|
12222
12231
|
protected _applyFacade(facadeTexture: AdvancedDynamicTexture): void;
|
|
12223
12232
|
protected _getTypeName(): string;
|
|
12224
|
-
protected _createNode(scene:
|
|
12225
|
-
protected _affectMaterial(mesh:
|
|
12233
|
+
protected _createNode(scene: Scene): TransformNode;
|
|
12234
|
+
protected _affectMaterial(mesh: AbstractMesh): void;
|
|
12226
12235
|
/**
|
|
12227
12236
|
* Releases all associated resources
|
|
12228
12237
|
*/
|
|
@@ -12275,7 +12284,7 @@ declare module BABYLON.GUI {
|
|
|
12275
12284
|
* This function will be called everytime a new control is added
|
|
12276
12285
|
*/
|
|
12277
12286
|
protected _arrangeChildren(): void;
|
|
12278
|
-
protected _createNode(scene:
|
|
12287
|
+
protected _createNode(scene: Scene): Nullable<BABYLON.TransformNode>;
|
|
12279
12288
|
/**
|
|
12280
12289
|
* Removes a control from the children of this control
|
|
12281
12290
|
* @param control defines the control to remove
|
|
@@ -12332,7 +12341,7 @@ declare module BABYLON.GUI {
|
|
|
12332
12341
|
/**
|
|
12333
12342
|
* Class used as base class for controls
|
|
12334
12343
|
*/
|
|
12335
|
-
export class Control3D implements
|
|
12344
|
+
export class Control3D implements IDisposable, IBehaviorAware<Control3D> {
|
|
12336
12345
|
/** Defines the control name */
|
|
12337
12346
|
name?: string | undefined;
|
|
12338
12347
|
/** @hidden */
|
|
@@ -12385,34 +12394,34 @@ declare module BABYLON.GUI {
|
|
|
12385
12394
|
/**
|
|
12386
12395
|
* Gets or sets the parent container
|
|
12387
12396
|
*/
|
|
12388
|
-
parent:
|
|
12397
|
+
parent: Nullable<Container3D>;
|
|
12389
12398
|
private _behaviors;
|
|
12390
12399
|
/**
|
|
12391
12400
|
* Gets the list of attached behaviors
|
|
12392
12401
|
* @see https://doc.babylonjs.com/features/behaviour
|
|
12393
12402
|
*/
|
|
12394
|
-
get behaviors():
|
|
12403
|
+
get behaviors(): Behavior<Control3D>[];
|
|
12395
12404
|
/**
|
|
12396
12405
|
* Attach a behavior to the control
|
|
12397
12406
|
* @see https://doc.babylonjs.com/features/behaviour
|
|
12398
12407
|
* @param behavior defines the behavior to attach
|
|
12399
12408
|
* @returns the current control
|
|
12400
12409
|
*/
|
|
12401
|
-
addBehavior(behavior:
|
|
12410
|
+
addBehavior(behavior: Behavior<Control3D>): Control3D;
|
|
12402
12411
|
/**
|
|
12403
12412
|
* Remove an attached behavior
|
|
12404
12413
|
* @see https://doc.babylonjs.com/features/behaviour
|
|
12405
12414
|
* @param behavior defines the behavior to attach
|
|
12406
12415
|
* @returns the current control
|
|
12407
12416
|
*/
|
|
12408
|
-
removeBehavior(behavior:
|
|
12417
|
+
removeBehavior(behavior: Behavior<Control3D>): Control3D;
|
|
12409
12418
|
/**
|
|
12410
12419
|
* Gets an attached behavior by name
|
|
12411
12420
|
* @param name defines the name of the behavior to look for
|
|
12412
12421
|
* @see https://doc.babylonjs.com/features/behaviour
|
|
12413
12422
|
* @returns null if behavior was not found else the requested behavior
|
|
12414
12423
|
*/
|
|
12415
|
-
getBehaviorByName(name: string):
|
|
12424
|
+
getBehaviorByName(name: string): Nullable<Behavior<Control3D>>;
|
|
12416
12425
|
/** Gets or sets a boolean indicating if the control is visible */
|
|
12417
12426
|
get isVisible(): boolean;
|
|
12418
12427
|
set isVisible(value: boolean);
|
|
@@ -12436,30 +12445,30 @@ declare module BABYLON.GUI {
|
|
|
12436
12445
|
/**
|
|
12437
12446
|
* Gets the transform node used by this control
|
|
12438
12447
|
*/
|
|
12439
|
-
get node():
|
|
12448
|
+
get node(): Nullable<TransformNode>;
|
|
12440
12449
|
/**
|
|
12441
12450
|
* Gets the mesh used to render this control
|
|
12442
12451
|
*/
|
|
12443
|
-
get mesh():
|
|
12452
|
+
get mesh(): Nullable<BABYLON.AbstractMesh>;
|
|
12444
12453
|
/**
|
|
12445
12454
|
* Link the control as child of the given node
|
|
12446
12455
|
* @param node defines the node to link to. Use null to unlink the control
|
|
12447
12456
|
* @returns the current control
|
|
12448
12457
|
*/
|
|
12449
|
-
linkToTransformNode(node:
|
|
12458
|
+
linkToTransformNode(node: Nullable<TransformNode>): Control3D;
|
|
12450
12459
|
/**
|
|
12451
12460
|
* @param scene
|
|
12452
12461
|
* @hidden*
|
|
12453
12462
|
*/
|
|
12454
|
-
_prepareNode(scene:
|
|
12455
|
-
protected _injectGUI3DReservedDataStore(node:
|
|
12463
|
+
_prepareNode(scene: Scene): void;
|
|
12464
|
+
protected _injectGUI3DReservedDataStore(node: TransformNode): any;
|
|
12456
12465
|
/**
|
|
12457
12466
|
* Node creation.
|
|
12458
12467
|
* Can be overriden by children
|
|
12459
12468
|
* @param scene defines the scene where the node must be attached
|
|
12460
12469
|
* @returns the attached node or null if none. Must return a Mesh or BABYLON.AbstractMesh if there is an attached visible object
|
|
12461
12470
|
*/
|
|
12462
|
-
protected _createNode(scene:
|
|
12471
|
+
protected _createNode(scene: Scene): Nullable<TransformNode>;
|
|
12463
12472
|
/**
|
|
12464
12473
|
* Affect a material to the given mesh
|
|
12465
12474
|
* @param mesh defines the mesh which will represent the control
|
|
@@ -12503,7 +12512,7 @@ declare module BABYLON.GUI {
|
|
|
12503
12512
|
* @param pointerId
|
|
12504
12513
|
* @hidden
|
|
12505
12514
|
*/
|
|
12506
|
-
forcePointerUp(pointerId?:
|
|
12515
|
+
forcePointerUp(pointerId?: Nullable<number>): void;
|
|
12507
12516
|
/**
|
|
12508
12517
|
* @param type
|
|
12509
12518
|
* @param pickedPoint
|
|
@@ -12512,7 +12521,7 @@ declare module BABYLON.GUI {
|
|
|
12512
12521
|
* @param buttonIndex
|
|
12513
12522
|
* @hidden
|
|
12514
12523
|
*/
|
|
12515
|
-
_processObservables(type: number, pickedPoint: BABYLON.Vector3, originMeshPosition:
|
|
12524
|
+
_processObservables(type: number, pickedPoint: BABYLON.Vector3, originMeshPosition: Nullable<BABYLON.Vector3>, pointerId: number, buttonIndex: number): boolean;
|
|
12516
12525
|
/** @hidden */
|
|
12517
12526
|
_disposeNode(): void;
|
|
12518
12527
|
/**
|
|
@@ -12530,8 +12539,8 @@ declare module BABYLON.GUI {
|
|
|
12530
12539
|
/**
|
|
12531
12540
|
* Gets or sets the radius of the cylinder where to project controls (5 by default)
|
|
12532
12541
|
*/
|
|
12533
|
-
get radius():
|
|
12534
|
-
set radius(value:
|
|
12542
|
+
get radius(): float;
|
|
12543
|
+
set radius(value: float);
|
|
12535
12544
|
protected _mapGridNode(control: Control3D, nodePosition: BABYLON.Vector3): void;
|
|
12536
12545
|
private _cylindricalMapping;
|
|
12537
12546
|
}
|
|
@@ -12547,13 +12556,13 @@ declare module BABYLON.GUI {
|
|
|
12547
12556
|
* The hand constraint behavior setting the transformation of this node
|
|
12548
12557
|
*/
|
|
12549
12558
|
get handConstraintBehavior(): BABYLON.HandConstraintBehavior;
|
|
12550
|
-
protected _createNode(scene:
|
|
12559
|
+
protected _createNode(scene: Scene): Nullable<TransformNode>;
|
|
12551
12560
|
/**
|
|
12552
12561
|
* Creates a hand menu GUI 3D control
|
|
12553
|
-
* @param xr the
|
|
12562
|
+
* @param xr the WebXRExperienceHelper used to link this control to the enabled WebXRHandTracking feature
|
|
12554
12563
|
* @param name name of the hand menu
|
|
12555
12564
|
*/
|
|
12556
|
-
constructor(xr:
|
|
12565
|
+
constructor(xr: WebXRExperienceHelper, name?: string);
|
|
12557
12566
|
/**
|
|
12558
12567
|
* Disposes the hand menu
|
|
12559
12568
|
*/
|
|
@@ -12597,9 +12606,9 @@ declare module BABYLON.GUI {
|
|
|
12597
12606
|
*/
|
|
12598
12607
|
constructor(name?: string, _shareMaterials?: boolean);
|
|
12599
12608
|
protected _getTypeName(): string;
|
|
12600
|
-
protected _createNode(scene:
|
|
12609
|
+
protected _createNode(scene: Scene): TransformNode;
|
|
12601
12610
|
private _createMaterial;
|
|
12602
|
-
protected _affectMaterial(mesh:
|
|
12611
|
+
protected _affectMaterial(mesh: Mesh): void;
|
|
12603
12612
|
/**
|
|
12604
12613
|
* Releases all associated resources
|
|
12605
12614
|
*/
|
|
@@ -12636,8 +12645,8 @@ declare module BABYLON.GUI {
|
|
|
12636
12645
|
/**
|
|
12637
12646
|
* Text to be displayed on the tooltip shown when hovering on the button. When set to null tooltip is disabled. (Default: null)
|
|
12638
12647
|
*/
|
|
12639
|
-
set tooltipText(text:
|
|
12640
|
-
get tooltipText():
|
|
12648
|
+
set tooltipText(text: Nullable<string>);
|
|
12649
|
+
get tooltipText(): Nullable<string>;
|
|
12641
12650
|
/**
|
|
12642
12651
|
* Gets or sets text for the button
|
|
12643
12652
|
*/
|
|
@@ -12672,7 +12681,7 @@ declare module BABYLON.GUI {
|
|
|
12672
12681
|
constructor(name?: string, shareMaterials?: boolean);
|
|
12673
12682
|
protected _getTypeName(): string;
|
|
12674
12683
|
private _rebuildContent;
|
|
12675
|
-
protected _createNode(scene:
|
|
12684
|
+
protected _createNode(scene: Scene): TransformNode;
|
|
12676
12685
|
protected _applyFacade(facadeTexture: AdvancedDynamicTexture): void;
|
|
12677
12686
|
private _createBackMaterial;
|
|
12678
12687
|
private _createFrontMaterial;
|
|
@@ -12788,14 +12797,14 @@ declare module BABYLON.GUI {
|
|
|
12788
12797
|
* @hidden
|
|
12789
12798
|
*/
|
|
12790
12799
|
_updatePivot(): void;
|
|
12791
|
-
protected _createNode(scene:
|
|
12800
|
+
protected _createNode(scene: Scene): TransformNode;
|
|
12792
12801
|
private _attachContentPlateBehavior;
|
|
12793
|
-
protected _affectMaterial(mesh:
|
|
12802
|
+
protected _affectMaterial(mesh: AbstractMesh): void;
|
|
12794
12803
|
/**
|
|
12795
12804
|
* @param scene
|
|
12796
12805
|
* @hidden*
|
|
12797
12806
|
*/
|
|
12798
|
-
_prepareNode(scene:
|
|
12807
|
+
_prepareNode(scene: Scene): void;
|
|
12799
12808
|
/**
|
|
12800
12809
|
* Resets the aspect and pose of the slate so it is right in front of the active camera, facing towards it.
|
|
12801
12810
|
* @param resetAspect Should the slate's dimensions/aspect ratio be reset as well
|
|
@@ -12815,16 +12824,16 @@ declare module BABYLON.GUI {
|
|
|
12815
12824
|
*/
|
|
12816
12825
|
export class MeshButton3D extends Button3D {
|
|
12817
12826
|
/** @hidden */
|
|
12818
|
-
protected _currentMesh:
|
|
12827
|
+
protected _currentMesh: Mesh;
|
|
12819
12828
|
/**
|
|
12820
12829
|
* Creates a new 3D button based on a mesh
|
|
12821
12830
|
* @param mesh mesh to become a 3D button
|
|
12822
12831
|
* @param name defines the control name
|
|
12823
12832
|
*/
|
|
12824
|
-
constructor(mesh:
|
|
12833
|
+
constructor(mesh: Mesh, name?: string);
|
|
12825
12834
|
protected _getTypeName(): string;
|
|
12826
|
-
protected _createNode(scene:
|
|
12827
|
-
protected _affectMaterial(mesh:
|
|
12835
|
+
protected _createNode(scene: Scene): TransformNode;
|
|
12836
|
+
protected _affectMaterial(mesh: AbstractMesh): void;
|
|
12828
12837
|
}
|
|
12829
12838
|
|
|
12830
12839
|
|
|
@@ -12855,7 +12864,7 @@ declare module BABYLON.GUI {
|
|
|
12855
12864
|
get isPinned(): boolean;
|
|
12856
12865
|
set isPinned(value: boolean);
|
|
12857
12866
|
private _createPinButton;
|
|
12858
|
-
protected _createNode(scene:
|
|
12867
|
+
protected _createNode(scene: Scene): Nullable<TransformNode>;
|
|
12859
12868
|
protected _finalProcessing(): void;
|
|
12860
12869
|
/**
|
|
12861
12870
|
* Creates a near menu GUI 3D control
|
|
@@ -12885,8 +12894,8 @@ declare module BABYLON.GUI {
|
|
|
12885
12894
|
/**
|
|
12886
12895
|
* Gets or sets the number of iteration to use to scatter the controls (100 by default)
|
|
12887
12896
|
*/
|
|
12888
|
-
get iteration():
|
|
12889
|
-
set iteration(value:
|
|
12897
|
+
get iteration(): float;
|
|
12898
|
+
set iteration(value: float);
|
|
12890
12899
|
protected _mapGridNode(control: Control3D, nodePosition: BABYLON.Vector3): void;
|
|
12891
12900
|
private _scatterMapping;
|
|
12892
12901
|
protected _finalProcessing(): void;
|
|
@@ -12928,7 +12937,7 @@ declare module BABYLON.GUI {
|
|
|
12928
12937
|
/**
|
|
12929
12938
|
* Gets the mesh used to render this control
|
|
12930
12939
|
*/
|
|
12931
|
-
get mesh():
|
|
12940
|
+
get mesh(): Nullable<AbstractMesh>;
|
|
12932
12941
|
/** Gets or sets minimum value */
|
|
12933
12942
|
get minimum(): number;
|
|
12934
12943
|
set minimum(value: number);
|
|
@@ -12955,8 +12964,8 @@ declare module BABYLON.GUI {
|
|
|
12955
12964
|
* Gets the slider backplate material used by this control
|
|
12956
12965
|
*/
|
|
12957
12966
|
get sliderBackplateMaterial(): MRDLBackplateMaterial;
|
|
12958
|
-
protected _createNode(scene:
|
|
12959
|
-
protected _affectMaterial(mesh:
|
|
12967
|
+
protected _createNode(scene: Scene): TransformNode;
|
|
12968
|
+
protected _affectMaterial(mesh: AbstractMesh): void;
|
|
12960
12969
|
private _createBehavior;
|
|
12961
12970
|
private _convertToPosition;
|
|
12962
12971
|
private _convertToValue;
|
|
@@ -12975,8 +12984,8 @@ declare module BABYLON.GUI {
|
|
|
12975
12984
|
/**
|
|
12976
12985
|
* Gets or sets the radius of the sphere where to project controls (5 by default)
|
|
12977
12986
|
*/
|
|
12978
|
-
get radius():
|
|
12979
|
-
set radius(value:
|
|
12987
|
+
get radius(): float;
|
|
12988
|
+
set radius(value: float);
|
|
12980
12989
|
protected _mapGridNode(control: Control3D, nodePosition: BABYLON.Vector3): void;
|
|
12981
12990
|
private _sphericalMapping;
|
|
12982
12991
|
}
|
|
@@ -13025,7 +13034,7 @@ declare module BABYLON.GUI {
|
|
|
13025
13034
|
* @param name defines the control name
|
|
13026
13035
|
* @param collisionMesh mesh to track collisions with
|
|
13027
13036
|
*/
|
|
13028
|
-
constructor(name?: string, collisionMesh?:
|
|
13037
|
+
constructor(name?: string, collisionMesh?: Mesh);
|
|
13029
13038
|
/**
|
|
13030
13039
|
* Whether the current interaction is caused by near interaction or not
|
|
13031
13040
|
*/
|
|
@@ -13043,7 +13052,7 @@ declare module BABYLON.GUI {
|
|
|
13043
13052
|
* Sets the mesh used for testing input collision
|
|
13044
13053
|
* @param collisionMesh the new collision mesh for the button
|
|
13045
13054
|
*/
|
|
13046
|
-
set collisionMesh(collisionMesh:
|
|
13055
|
+
set collisionMesh(collisionMesh: Mesh);
|
|
13047
13056
|
/**
|
|
13048
13057
|
* Setter for if this TouchButton3D should be treated as a toggle button
|
|
13049
13058
|
* @param value If this TouchHolographicButton should act like a toggle button
|
|
@@ -13073,7 +13082,7 @@ declare module BABYLON.GUI {
|
|
|
13073
13082
|
*/
|
|
13074
13083
|
_generatePointerEventType(providedType: number, nearMeshPosition: BABYLON.Vector3, activeInteractionCount: number): number;
|
|
13075
13084
|
protected _getTypeName(): string;
|
|
13076
|
-
protected _createNode(scene:
|
|
13085
|
+
protected _createNode(scene: Scene): TransformNode;
|
|
13077
13086
|
/**
|
|
13078
13087
|
* Releases all associated resources
|
|
13079
13088
|
*/
|
|
@@ -13125,12 +13134,12 @@ declare module BABYLON.GUI {
|
|
|
13125
13134
|
/**
|
|
13126
13135
|
* Gets the mesh used to render this control
|
|
13127
13136
|
*/
|
|
13128
|
-
get mesh():
|
|
13137
|
+
get mesh(): Nullable<AbstractMesh>;
|
|
13129
13138
|
/**
|
|
13130
13139
|
* Text to be displayed on the tooltip shown when hovering on the button. When set to null tooltip is disabled. (Default: null)
|
|
13131
13140
|
*/
|
|
13132
|
-
set tooltipText(text:
|
|
13133
|
-
get tooltipText():
|
|
13141
|
+
set tooltipText(text: Nullable<string>);
|
|
13142
|
+
get tooltipText(): Nullable<string>;
|
|
13134
13143
|
/**
|
|
13135
13144
|
* Gets or sets text for the button
|
|
13136
13145
|
*/
|
|
@@ -13169,7 +13178,7 @@ declare module BABYLON.GUI {
|
|
|
13169
13178
|
constructor(name?: string, shareMaterials?: boolean);
|
|
13170
13179
|
protected _getTypeName(): string;
|
|
13171
13180
|
private _rebuildContent;
|
|
13172
|
-
protected _createNode(scene:
|
|
13181
|
+
protected _createNode(scene: Scene): BABYLON.TransformNode;
|
|
13173
13182
|
protected _applyFacade(facadeTexture: AdvancedDynamicTexture): void;
|
|
13174
13183
|
private _createBackMaterial;
|
|
13175
13184
|
private _createFrontMaterial;
|
|
@@ -13203,9 +13212,9 @@ declare module BABYLON.GUI {
|
|
|
13203
13212
|
*/
|
|
13204
13213
|
get backPlateMargin(): number;
|
|
13205
13214
|
set backPlateMargin(value: number);
|
|
13206
|
-
protected _createNode(scene:
|
|
13207
|
-
protected _affectMaterial(mesh:
|
|
13208
|
-
protected _mapGridNode(control: Control3D, nodePosition:
|
|
13215
|
+
protected _createNode(scene: Scene): Nullable<TransformNode>;
|
|
13216
|
+
protected _affectMaterial(mesh: AbstractMesh): void;
|
|
13217
|
+
protected _mapGridNode(control: Control3D, nodePosition: Vector3): void;
|
|
13209
13218
|
protected _finalProcessing(): void;
|
|
13210
13219
|
private _updateCurrentMinMax;
|
|
13211
13220
|
private _updateMargins;
|
|
@@ -13242,16 +13251,16 @@ declare module BABYLON.GUI {
|
|
|
13242
13251
|
*/
|
|
13243
13252
|
export class TouchMeshButton3D extends TouchButton3D {
|
|
13244
13253
|
/** @hidden */
|
|
13245
|
-
protected _currentMesh:
|
|
13254
|
+
protected _currentMesh: Mesh;
|
|
13246
13255
|
/**
|
|
13247
13256
|
* Creates a new 3D button based on a mesh
|
|
13248
13257
|
* @param mesh mesh to become a 3D button. By default this is also the mesh for near interaction collision checking
|
|
13249
13258
|
* @param name defines the control name
|
|
13250
13259
|
*/
|
|
13251
|
-
constructor(mesh:
|
|
13260
|
+
constructor(mesh: Mesh, name?: string);
|
|
13252
13261
|
protected _getTypeName(): string;
|
|
13253
|
-
protected _createNode():
|
|
13254
|
-
protected _affectMaterial(mesh:
|
|
13262
|
+
protected _createNode(): TransformNode;
|
|
13263
|
+
protected _affectMaterial(mesh: AbstractMesh): void;
|
|
13255
13264
|
}
|
|
13256
13265
|
|
|
13257
13266
|
|
|
@@ -13285,14 +13294,14 @@ declare module BABYLON.GUI {
|
|
|
13285
13294
|
* Gets or sets the number of columns requested (10 by default).
|
|
13286
13295
|
* The panel will automatically compute the number of rows based on number of child controls.
|
|
13287
13296
|
*/
|
|
13288
|
-
get columns():
|
|
13289
|
-
set columns(value:
|
|
13297
|
+
get columns(): int;
|
|
13298
|
+
set columns(value: int);
|
|
13290
13299
|
/**
|
|
13291
13300
|
* Gets or sets a the number of rows requested.
|
|
13292
13301
|
* The panel will automatically compute the number of columns based on number of child controls.
|
|
13293
13302
|
*/
|
|
13294
|
-
get rows():
|
|
13295
|
-
set rows(value:
|
|
13303
|
+
get rows(): int;
|
|
13304
|
+
set rows(value: int);
|
|
13296
13305
|
/**
|
|
13297
13306
|
* Creates new VolumeBasedPanel
|
|
13298
13307
|
* @param name
|
|
@@ -13327,7 +13336,7 @@ declare module BABYLON.GUI {
|
|
|
13327
13336
|
* Base class for SlateGizmo handles
|
|
13328
13337
|
*/
|
|
13329
13338
|
export abstract class GizmoHandle {
|
|
13330
|
-
protected _scene:
|
|
13339
|
+
protected _scene: Scene;
|
|
13331
13340
|
protected _state: HandleState;
|
|
13332
13341
|
protected _materials: HandleMaterial[];
|
|
13333
13342
|
private _dragStartObserver;
|
|
@@ -13363,7 +13372,7 @@ declare module BABYLON.GUI {
|
|
|
13363
13372
|
* @param gizmo associated SlateGizmo
|
|
13364
13373
|
* @param scene scene
|
|
13365
13374
|
*/
|
|
13366
|
-
constructor(gizmo: SlateGizmo, scene:
|
|
13375
|
+
constructor(gizmo: SlateGizmo, scene: Scene);
|
|
13367
13376
|
protected _createMaterial(positionOffset?: BABYLON.Vector3): HandleMaterial;
|
|
13368
13377
|
private _updateMaterial;
|
|
13369
13378
|
/**
|
|
@@ -13445,16 +13454,16 @@ declare module BABYLON.GUI {
|
|
|
13445
13454
|
/**
|
|
13446
13455
|
* The slate attached to this gizmo
|
|
13447
13456
|
*/
|
|
13448
|
-
set attachedSlate(control:
|
|
13449
|
-
get attachedSlate():
|
|
13450
|
-
constructor(utilityLayer?:
|
|
13457
|
+
set attachedSlate(control: Nullable<HolographicSlate>);
|
|
13458
|
+
get attachedSlate(): Nullable<HolographicSlate>;
|
|
13459
|
+
constructor(utilityLayer?: UtilityLayerRenderer);
|
|
13451
13460
|
private _createNode;
|
|
13452
13461
|
private _keepAspectRatio;
|
|
13453
13462
|
private _clampDimensions;
|
|
13454
13463
|
private _moveHandle;
|
|
13455
13464
|
private _assignDragBehaviorCorners;
|
|
13456
13465
|
private _assignDragBehaviorSides;
|
|
13457
|
-
protected _attachedNodeChanged(value:
|
|
13466
|
+
protected _attachedNodeChanged(value: Nullable<AbstractMesh>): void;
|
|
13458
13467
|
/**
|
|
13459
13468
|
* Updates the bounding box information for the gizmo
|
|
13460
13469
|
*/
|
|
@@ -13470,7 +13479,7 @@ declare module BABYLON.GUI {
|
|
|
13470
13479
|
* Class used to manage 3D user interface
|
|
13471
13480
|
* @see https://doc.babylonjs.com/how_to/gui3d
|
|
13472
13481
|
*/
|
|
13473
|
-
export class GUI3DManager implements
|
|
13482
|
+
export class GUI3DManager implements IDisposable {
|
|
13474
13483
|
private _scene;
|
|
13475
13484
|
private _sceneDisposeObserver;
|
|
13476
13485
|
private _utilityLayer;
|
|
@@ -13492,23 +13501,23 @@ declare module BABYLON.GUI {
|
|
|
13492
13501
|
/**
|
|
13493
13502
|
* BABYLON.Observable raised when the point picked by the pointer events changed
|
|
13494
13503
|
*/
|
|
13495
|
-
onPickedPointChangedObservable: BABYLON.Observable<
|
|
13504
|
+
onPickedPointChangedObservable: BABYLON.Observable<Nullable<BABYLON.Vector3>>;
|
|
13496
13505
|
/**
|
|
13497
13506
|
* BABYLON.Observable raised when a picking happens
|
|
13498
13507
|
*/
|
|
13499
|
-
onPickingObservable: BABYLON.Observable<
|
|
13508
|
+
onPickingObservable: BABYLON.Observable<Nullable<AbstractMesh>>;
|
|
13500
13509
|
/** @hidden */
|
|
13501
13510
|
_sharedMaterials: {
|
|
13502
|
-
[key: string]:
|
|
13511
|
+
[key: string]: Material;
|
|
13503
13512
|
};
|
|
13504
13513
|
/** @hidden */
|
|
13505
13514
|
_touchSharedMaterials: {
|
|
13506
|
-
[key: string]:
|
|
13515
|
+
[key: string]: Material;
|
|
13507
13516
|
};
|
|
13508
13517
|
/** Gets the hosting scene */
|
|
13509
|
-
get scene():
|
|
13518
|
+
get scene(): Scene;
|
|
13510
13519
|
/** Gets associated utility layer */
|
|
13511
|
-
get utilityLayer():
|
|
13520
|
+
get utilityLayer(): Nullable<BABYLON.UtilityLayerRenderer>;
|
|
13512
13521
|
/** Gets the scaling for all UI elements owned by this manager */
|
|
13513
13522
|
get controlScaling(): number;
|
|
13514
13523
|
/** Sets the scaling adjustment for all UI elements owned by this manager */
|
|
@@ -13521,7 +13530,7 @@ declare module BABYLON.GUI {
|
|
|
13521
13530
|
* Creates a new GUI3DManager
|
|
13522
13531
|
* @param scene
|
|
13523
13532
|
*/
|
|
13524
|
-
constructor(scene?:
|
|
13533
|
+
constructor(scene?: Scene);
|
|
13525
13534
|
private _handlePointerOut;
|
|
13526
13535
|
private _doPicking;
|
|
13527
13536
|
/**
|
|
@@ -13613,25 +13622,25 @@ declare module BABYLON.GUI {
|
|
|
13613
13622
|
hoverPosition: BABYLON.Vector3;
|
|
13614
13623
|
private _albedoTexture;
|
|
13615
13624
|
/** Gets or sets the texture to use for albedo color */
|
|
13616
|
-
albedoTexture:
|
|
13625
|
+
albedoTexture: Nullable<BaseTexture>;
|
|
13617
13626
|
/**
|
|
13618
13627
|
* Creates a new Fluent material
|
|
13619
13628
|
* @param name defines the name of the material
|
|
13620
13629
|
* @param scene defines the hosting scene
|
|
13621
13630
|
*/
|
|
13622
|
-
constructor(name: string, scene?:
|
|
13631
|
+
constructor(name: string, scene?: Scene);
|
|
13623
13632
|
needAlphaBlending(): boolean;
|
|
13624
13633
|
needAlphaTesting(): boolean;
|
|
13625
|
-
getAlphaTestTexture():
|
|
13626
|
-
isReadyForSubMesh(mesh:
|
|
13627
|
-
bindForSubMesh(world:
|
|
13628
|
-
getActiveTextures():
|
|
13629
|
-
hasTexture(texture:
|
|
13634
|
+
getAlphaTestTexture(): Nullable<BaseTexture>;
|
|
13635
|
+
isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh): boolean;
|
|
13636
|
+
bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
|
|
13637
|
+
getActiveTextures(): BaseTexture[];
|
|
13638
|
+
hasTexture(texture: BaseTexture): boolean;
|
|
13630
13639
|
dispose(forceDisposeEffect?: boolean): void;
|
|
13631
13640
|
clone(name: string): FluentMaterial;
|
|
13632
13641
|
serialize(): any;
|
|
13633
13642
|
getClassName(): string;
|
|
13634
|
-
static Parse(source: any, scene:
|
|
13643
|
+
static Parse(source: any, scene: Scene, rootUrl: string): FluentMaterial;
|
|
13635
13644
|
}
|
|
13636
13645
|
|
|
13637
13646
|
|
|
@@ -13776,22 +13785,22 @@ declare module BABYLON.GUI {
|
|
|
13776
13785
|
*/
|
|
13777
13786
|
globalRightIndexTipPosition: BABYLON.Vector3;
|
|
13778
13787
|
private _globalRightIndexTipPosition4;
|
|
13779
|
-
constructor(name: string, scene?:
|
|
13788
|
+
constructor(name: string, scene?: Scene);
|
|
13780
13789
|
needAlphaBlending(): boolean;
|
|
13781
13790
|
needAlphaTesting(): boolean;
|
|
13782
|
-
getAlphaTestTexture():
|
|
13783
|
-
isReadyForSubMesh(mesh:
|
|
13784
|
-
bindForSubMesh(world:
|
|
13791
|
+
getAlphaTestTexture(): Nullable<BaseTexture>;
|
|
13792
|
+
isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh): boolean;
|
|
13793
|
+
bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
|
|
13785
13794
|
/**
|
|
13786
13795
|
* Get the list of animatables in the material.
|
|
13787
13796
|
* @returns the list of animatables object used in the material
|
|
13788
13797
|
*/
|
|
13789
|
-
getAnimatables():
|
|
13798
|
+
getAnimatables(): IAnimatable[];
|
|
13790
13799
|
dispose(forceDisposeEffect?: boolean): void;
|
|
13791
13800
|
clone(name: string): FluentBackplateMaterial;
|
|
13792
13801
|
serialize(): any;
|
|
13793
13802
|
getClassName(): string;
|
|
13794
|
-
static Parse(source: any, scene:
|
|
13803
|
+
static Parse(source: any, scene: Scene, rootUrl: string): FluentBackplateMaterial;
|
|
13795
13804
|
}
|
|
13796
13805
|
|
|
13797
13806
|
|
|
@@ -13971,22 +13980,22 @@ declare module BABYLON.GUI {
|
|
|
13971
13980
|
*/
|
|
13972
13981
|
globalRightIndexTipPosition: BABYLON.Vector3;
|
|
13973
13982
|
private _blobTexture;
|
|
13974
|
-
constructor(name: string, scene?:
|
|
13983
|
+
constructor(name: string, scene?: Scene);
|
|
13975
13984
|
needAlphaBlending(): boolean;
|
|
13976
13985
|
needAlphaTesting(): boolean;
|
|
13977
|
-
getAlphaTestTexture():
|
|
13978
|
-
isReadyForSubMesh(mesh:
|
|
13979
|
-
bindForSubMesh(world:
|
|
13986
|
+
getAlphaTestTexture(): Nullable<BaseTexture>;
|
|
13987
|
+
isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh): boolean;
|
|
13988
|
+
bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
|
|
13980
13989
|
/**
|
|
13981
13990
|
* Get the list of animatables in the material.
|
|
13982
13991
|
* @returns the list of animatables object used in the material
|
|
13983
13992
|
*/
|
|
13984
|
-
getAnimatables():
|
|
13993
|
+
getAnimatables(): IAnimatable[];
|
|
13985
13994
|
dispose(forceDisposeEffect?: boolean): void;
|
|
13986
13995
|
clone(name: string): FluentButtonMaterial;
|
|
13987
13996
|
serialize(): any;
|
|
13988
13997
|
getClassName(): string;
|
|
13989
|
-
static Parse(source: any, scene:
|
|
13998
|
+
static Parse(source: any, scene: Scene, rootUrl: string): FluentButtonMaterial;
|
|
13990
13999
|
}
|
|
13991
14000
|
|
|
13992
14001
|
|
|
@@ -14064,9 +14073,9 @@ declare module BABYLON.GUI {
|
|
|
14064
14073
|
/**
|
|
14065
14074
|
* Creates a handle material
|
|
14066
14075
|
* @param name Name of the material
|
|
14067
|
-
* @param scene
|
|
14076
|
+
* @param scene Scene
|
|
14068
14077
|
*/
|
|
14069
|
-
constructor(name: string, scene:
|
|
14078
|
+
constructor(name: string, scene: Scene);
|
|
14070
14079
|
private _updateInterpolationTarget;
|
|
14071
14080
|
/**
|
|
14072
14081
|
* Disposes the handle material
|
|
@@ -14213,22 +14222,22 @@ declare module BABYLON.GUI {
|
|
|
14213
14222
|
* Gets or sets the edge width of the backplate.
|
|
14214
14223
|
*/
|
|
14215
14224
|
edgeLineGradientBlend: number;
|
|
14216
|
-
constructor(name: string, scene?:
|
|
14225
|
+
constructor(name: string, scene?: Scene);
|
|
14217
14226
|
needAlphaBlending(): boolean;
|
|
14218
14227
|
needAlphaTesting(): boolean;
|
|
14219
|
-
getAlphaTestTexture():
|
|
14220
|
-
isReadyForSubMesh(mesh:
|
|
14221
|
-
bindForSubMesh(world:
|
|
14228
|
+
getAlphaTestTexture(): Nullable<BaseTexture>;
|
|
14229
|
+
isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh): boolean;
|
|
14230
|
+
bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
|
|
14222
14231
|
/**
|
|
14223
14232
|
* Get the list of animatables in the material.
|
|
14224
14233
|
* @returns the list of animatables object used in the material
|
|
14225
14234
|
*/
|
|
14226
|
-
getAnimatables():
|
|
14235
|
+
getAnimatables(): IAnimatable[];
|
|
14227
14236
|
dispose(forceDisposeEffect?: boolean): void;
|
|
14228
14237
|
clone(name: string): MRDLBackplateMaterial;
|
|
14229
14238
|
serialize(): any;
|
|
14230
14239
|
getClassName(): string;
|
|
14231
|
-
static Parse(source: any, scene:
|
|
14240
|
+
static Parse(source: any, scene: Scene, rootUrl: string): MRDLBackplateMaterial;
|
|
14232
14241
|
}
|
|
14233
14242
|
|
|
14234
14243
|
|
|
@@ -14535,22 +14544,22 @@ declare module BABYLON.GUI {
|
|
|
14535
14544
|
* @hidden
|
|
14536
14545
|
*/
|
|
14537
14546
|
globalRightIndexMiddlePosition: BABYLON.Vector4;
|
|
14538
|
-
constructor(name: string, scene?:
|
|
14547
|
+
constructor(name: string, scene?: Scene);
|
|
14539
14548
|
needAlphaBlending(): boolean;
|
|
14540
14549
|
needAlphaTesting(): boolean;
|
|
14541
|
-
getAlphaTestTexture():
|
|
14542
|
-
isReadyForSubMesh(mesh:
|
|
14543
|
-
bindForSubMesh(world:
|
|
14550
|
+
getAlphaTestTexture(): Nullable<BaseTexture>;
|
|
14551
|
+
isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh): boolean;
|
|
14552
|
+
bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
|
|
14544
14553
|
/**
|
|
14545
14554
|
* Get the list of animatables in the material.
|
|
14546
14555
|
* @returns the list of animatables object used in the material
|
|
14547
14556
|
*/
|
|
14548
|
-
getAnimatables():
|
|
14557
|
+
getAnimatables(): IAnimatable[];
|
|
14549
14558
|
dispose(forceDisposeEffect?: boolean): void;
|
|
14550
14559
|
clone(name: string): MRDLSliderBarMaterial;
|
|
14551
14560
|
serialize(): any;
|
|
14552
14561
|
getClassName(): string;
|
|
14553
|
-
static Parse(source: any, scene:
|
|
14562
|
+
static Parse(source: any, scene: Scene, rootUrl: string): MRDLSliderBarMaterial;
|
|
14554
14563
|
}
|
|
14555
14564
|
|
|
14556
14565
|
|
|
@@ -14857,22 +14866,22 @@ declare module BABYLON.GUI {
|
|
|
14857
14866
|
* @hidden
|
|
14858
14867
|
*/
|
|
14859
14868
|
globalRightIndexMiddlePosition: BABYLON.Vector4;
|
|
14860
|
-
constructor(name: string, scene?:
|
|
14869
|
+
constructor(name: string, scene?: Scene);
|
|
14861
14870
|
needAlphaBlending(): boolean;
|
|
14862
14871
|
needAlphaTesting(): boolean;
|
|
14863
|
-
getAlphaTestTexture():
|
|
14864
|
-
isReadyForSubMesh(mesh:
|
|
14865
|
-
bindForSubMesh(world:
|
|
14872
|
+
getAlphaTestTexture(): Nullable<BaseTexture>;
|
|
14873
|
+
isReadyForSubMesh(mesh: AbstractMesh, subMesh: SubMesh): boolean;
|
|
14874
|
+
bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
|
|
14866
14875
|
/**
|
|
14867
14876
|
* Get the list of animatables in the material.
|
|
14868
14877
|
* @returns the list of animatables object used in the material
|
|
14869
14878
|
*/
|
|
14870
|
-
getAnimatables():
|
|
14879
|
+
getAnimatables(): IAnimatable[];
|
|
14871
14880
|
dispose(forceDisposeEffect?: boolean): void;
|
|
14872
14881
|
clone(name: string): MRDLSliderThumbMaterial;
|
|
14873
14882
|
serialize(): any;
|
|
14874
14883
|
getClassName(): string;
|
|
14875
|
-
static Parse(source: any, scene:
|
|
14884
|
+
static Parse(source: any, scene: Scene, rootUrl: string): MRDLSliderThumbMaterial;
|
|
14876
14885
|
}
|
|
14877
14886
|
|
|
14878
14887
|
|