babylonjs-gui 5.32.1 → 5.33.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 +61 -54
- package/babylon.gui.js +84 -71
- 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 +122 -108
- package/package.json +2 -2
- package/readme.md +1 -1
package/babylon.gui.module.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ import { Style } from "babylonjs-gui/2D/style";
|
|
|
72
72
|
import { Viewport } from "babylonjs/Maths/math.viewport";
|
|
73
73
|
/**
|
|
74
74
|
* Class used to create texture to support 2D GUI elements
|
|
75
|
-
* @see https://doc.babylonjs.com/
|
|
75
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui
|
|
76
76
|
*/
|
|
77
77
|
export class AdvancedDynamicTexture extends DynamicTexture {
|
|
78
78
|
/** Define the Uurl to load snippets */
|
|
@@ -184,32 +184,32 @@ export class AdvancedDynamicTexture extends DynamicTexture {
|
|
|
184
184
|
/**
|
|
185
185
|
* Gets or sets the ideal width used to design controls.
|
|
186
186
|
* The GUI will then rescale everything accordingly
|
|
187
|
-
* @see https://doc.babylonjs.com/
|
|
187
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
188
188
|
*/
|
|
189
189
|
get idealWidth(): number;
|
|
190
190
|
set idealWidth(value: number);
|
|
191
191
|
/**
|
|
192
192
|
* Gets or sets the ideal height used to design controls.
|
|
193
193
|
* The GUI will then rescale everything accordingly
|
|
194
|
-
* @see https://doc.babylonjs.com/
|
|
194
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
195
195
|
*/
|
|
196
196
|
get idealHeight(): number;
|
|
197
197
|
set idealHeight(value: number);
|
|
198
198
|
/**
|
|
199
199
|
* Gets or sets a boolean indicating if the smallest ideal value must be used if idealWidth and idealHeight are both set
|
|
200
|
-
* @see https://doc.babylonjs.com/
|
|
200
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
201
201
|
*/
|
|
202
202
|
get useSmallestIdeal(): boolean;
|
|
203
203
|
set useSmallestIdeal(value: boolean);
|
|
204
204
|
/**
|
|
205
205
|
* Gets or sets a boolean indicating if adaptive scaling must be used
|
|
206
|
-
* @see https://doc.babylonjs.com/
|
|
206
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
207
207
|
*/
|
|
208
208
|
get renderAtIdealSize(): boolean;
|
|
209
209
|
set renderAtIdealSize(value: boolean);
|
|
210
210
|
/**
|
|
211
211
|
* Gets the ratio used when in "ideal mode"
|
|
212
|
-
* @see https://doc.babylonjs.com/
|
|
212
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
213
213
|
* */
|
|
214
214
|
get idealRatio(): number;
|
|
215
215
|
/**
|
|
@@ -312,7 +312,7 @@ export class AdvancedDynamicTexture extends DynamicTexture {
|
|
|
312
312
|
/**
|
|
313
313
|
* Helper function used to create a new style
|
|
314
314
|
* @returns a new style
|
|
315
|
-
* @see https://doc.babylonjs.com/
|
|
315
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#styles
|
|
316
316
|
*/
|
|
317
317
|
createStyle(): Style;
|
|
318
318
|
/**
|
|
@@ -745,13 +745,13 @@ export class ColorPicker extends Control {
|
|
|
745
745
|
set value(value: Color3);
|
|
746
746
|
/**
|
|
747
747
|
* Gets or sets control width
|
|
748
|
-
* @see https://doc.babylonjs.com/
|
|
748
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
749
749
|
*/
|
|
750
750
|
get width(): string | number;
|
|
751
751
|
set width(value: string | number);
|
|
752
752
|
/**
|
|
753
753
|
* Gets or sets control height
|
|
754
|
-
* @see https://doc.babylonjs.com/
|
|
754
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
755
755
|
*/
|
|
756
756
|
get height(): string | number;
|
|
757
757
|
/** Gets or sets control height */
|
|
@@ -826,7 +826,7 @@ import { DynamicTexture } from "babylonjs/Materials/Textures/dynamicTexture";
|
|
|
826
826
|
import { Observable } from "babylonjs/Misc/observable";
|
|
827
827
|
/**
|
|
828
828
|
* Root class for 2D containers
|
|
829
|
-
* @see https://doc.babylonjs.com/
|
|
829
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#containers
|
|
830
830
|
*/
|
|
831
831
|
export class Container extends Control {
|
|
832
832
|
name?: string | undefined;
|
|
@@ -998,7 +998,7 @@ import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
|
998
998
|
import { Animation } from "babylonjs/Animations/animation";
|
|
999
999
|
/**
|
|
1000
1000
|
* Root class used for all 2D controls
|
|
1001
|
-
* @see https://doc.babylonjs.com/
|
|
1001
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#controls
|
|
1002
1002
|
*/
|
|
1003
1003
|
export class Control implements IAnimatable {
|
|
1004
1004
|
/** defines the name of the control */
|
|
@@ -1266,39 +1266,39 @@ export class Control implements IAnimatable {
|
|
|
1266
1266
|
get highlightColor(): string;
|
|
1267
1267
|
set highlightColor(value: string);
|
|
1268
1268
|
/** Gets or sets a value indicating the scale factor on X axis (1 by default)
|
|
1269
|
-
* @see https://doc.babylonjs.com/
|
|
1269
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
|
1270
1270
|
*/
|
|
1271
1271
|
get scaleX(): number;
|
|
1272
1272
|
set scaleX(value: number);
|
|
1273
1273
|
/** Gets or sets a value indicating the scale factor on Y axis (1 by default)
|
|
1274
|
-
* @see https://doc.babylonjs.com/
|
|
1274
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
|
1275
1275
|
*/
|
|
1276
1276
|
get scaleY(): number;
|
|
1277
1277
|
set scaleY(value: number);
|
|
1278
1278
|
/** Gets or sets the rotation angle (0 by default)
|
|
1279
|
-
* @see https://doc.babylonjs.com/
|
|
1279
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
|
1280
1280
|
*/
|
|
1281
1281
|
get rotation(): number;
|
|
1282
1282
|
set rotation(value: number);
|
|
1283
1283
|
/** Gets or sets the transformation center on Y axis (0 by default)
|
|
1284
|
-
* @see https://doc.babylonjs.com/
|
|
1284
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
|
1285
1285
|
*/
|
|
1286
1286
|
get transformCenterY(): number;
|
|
1287
1287
|
set transformCenterY(value: number);
|
|
1288
1288
|
/** Gets or sets the transformation center on X axis (0 by default)
|
|
1289
|
-
* @see https://doc.babylonjs.com/
|
|
1289
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
|
1290
1290
|
*/
|
|
1291
1291
|
get transformCenterX(): number;
|
|
1292
1292
|
set transformCenterX(value: number);
|
|
1293
1293
|
/**
|
|
1294
1294
|
* Gets or sets the horizontal alignment
|
|
1295
|
-
* @see https://doc.babylonjs.com/
|
|
1295
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#alignments
|
|
1296
1296
|
*/
|
|
1297
1297
|
get horizontalAlignment(): number;
|
|
1298
1298
|
set horizontalAlignment(value: number);
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Gets or sets the vertical alignment
|
|
1301
|
-
* @see https://doc.babylonjs.com/
|
|
1301
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#alignments
|
|
1302
1302
|
*/
|
|
1303
1303
|
get verticalAlignment(): number;
|
|
1304
1304
|
set verticalAlignment(value: number);
|
|
@@ -1312,25 +1312,25 @@ export class Control implements IAnimatable {
|
|
|
1312
1312
|
protected _fixedRatioMasterIsWidth: boolean;
|
|
1313
1313
|
/**
|
|
1314
1314
|
* Gets or sets control width
|
|
1315
|
-
* @see https://doc.babylonjs.com/
|
|
1315
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1316
1316
|
*/
|
|
1317
1317
|
get width(): string | number;
|
|
1318
1318
|
set width(value: string | number);
|
|
1319
1319
|
/**
|
|
1320
1320
|
* Gets or sets the control width in pixel
|
|
1321
|
-
* @see https://doc.babylonjs.com/
|
|
1321
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1322
1322
|
*/
|
|
1323
1323
|
get widthInPixels(): number;
|
|
1324
1324
|
set widthInPixels(value: number);
|
|
1325
1325
|
/**
|
|
1326
1326
|
* Gets or sets control height
|
|
1327
|
-
* @see https://doc.babylonjs.com/
|
|
1327
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1328
1328
|
*/
|
|
1329
1329
|
get height(): string | number;
|
|
1330
1330
|
set height(value: string | number);
|
|
1331
1331
|
/**
|
|
1332
1332
|
* Gets or sets control height in pixel
|
|
1333
|
-
* @see https://doc.babylonjs.com/
|
|
1333
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1334
1334
|
*/
|
|
1335
1335
|
get heightInPixels(): number;
|
|
1336
1336
|
set heightInPixels(value: number);
|
|
@@ -1345,7 +1345,7 @@ export class Control implements IAnimatable {
|
|
|
1345
1345
|
set fontWeight(value: string);
|
|
1346
1346
|
/**
|
|
1347
1347
|
* Gets or sets style
|
|
1348
|
-
* @see https://doc.babylonjs.com/
|
|
1348
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#styles
|
|
1349
1349
|
*/
|
|
1350
1350
|
get style(): Nullable<Style>;
|
|
1351
1351
|
set style(value: Nullable<Style>);
|
|
@@ -1383,13 +1383,13 @@ export class Control implements IAnimatable {
|
|
|
1383
1383
|
set descendantsOnlyPadding(value: boolean);
|
|
1384
1384
|
/**
|
|
1385
1385
|
* Gets or sets a value indicating the padding to use on the left of the control
|
|
1386
|
-
* @see https://doc.babylonjs.com/
|
|
1386
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1387
1387
|
*/
|
|
1388
1388
|
get paddingLeft(): string | number;
|
|
1389
1389
|
set paddingLeft(value: string | number);
|
|
1390
1390
|
/**
|
|
1391
1391
|
* Gets or sets a value indicating the padding in pixels to use on the left of the control
|
|
1392
|
-
* @see https://doc.babylonjs.com/
|
|
1392
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1393
1393
|
*/
|
|
1394
1394
|
get paddingLeftInPixels(): number;
|
|
1395
1395
|
set paddingLeftInPixels(value: number);
|
|
@@ -1397,13 +1397,13 @@ export class Control implements IAnimatable {
|
|
|
1397
1397
|
get _paddingLeftInPixels(): number;
|
|
1398
1398
|
/**
|
|
1399
1399
|
* Gets or sets a value indicating the padding to use on the right of the control
|
|
1400
|
-
* @see https://doc.babylonjs.com/
|
|
1400
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1401
1401
|
*/
|
|
1402
1402
|
get paddingRight(): string | number;
|
|
1403
1403
|
set paddingRight(value: string | number);
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Gets or sets a value indicating the padding in pixels to use on the right of the control
|
|
1406
|
-
* @see https://doc.babylonjs.com/
|
|
1406
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1407
1407
|
*/
|
|
1408
1408
|
get paddingRightInPixels(): number;
|
|
1409
1409
|
set paddingRightInPixels(value: number);
|
|
@@ -1411,13 +1411,13 @@ export class Control implements IAnimatable {
|
|
|
1411
1411
|
get _paddingRightInPixels(): number;
|
|
1412
1412
|
/**
|
|
1413
1413
|
* Gets or sets a value indicating the padding to use on the top of the control
|
|
1414
|
-
* @see https://doc.babylonjs.com/
|
|
1414
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1415
1415
|
*/
|
|
1416
1416
|
get paddingTop(): string | number;
|
|
1417
1417
|
set paddingTop(value: string | number);
|
|
1418
1418
|
/**
|
|
1419
1419
|
* Gets or sets a value indicating the padding in pixels to use on the top of the control
|
|
1420
|
-
* @see https://doc.babylonjs.com/
|
|
1420
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1421
1421
|
*/
|
|
1422
1422
|
get paddingTopInPixels(): number;
|
|
1423
1423
|
set paddingTopInPixels(value: number);
|
|
@@ -1425,13 +1425,13 @@ export class Control implements IAnimatable {
|
|
|
1425
1425
|
get _paddingTopInPixels(): number;
|
|
1426
1426
|
/**
|
|
1427
1427
|
* Gets or sets a value indicating the padding to use on the bottom of the control
|
|
1428
|
-
* @see https://doc.babylonjs.com/
|
|
1428
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1429
1429
|
*/
|
|
1430
1430
|
get paddingBottom(): string | number;
|
|
1431
1431
|
set paddingBottom(value: string | number);
|
|
1432
1432
|
/**
|
|
1433
1433
|
* Gets or sets a value indicating the padding in pixels to use on the bottom of the control
|
|
1434
|
-
* @see https://doc.babylonjs.com/
|
|
1434
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1435
1435
|
*/
|
|
1436
1436
|
get paddingBottomInPixels(): number;
|
|
1437
1437
|
set paddingBottomInPixels(value: number);
|
|
@@ -1439,49 +1439,49 @@ export class Control implements IAnimatable {
|
|
|
1439
1439
|
get _paddingBottomInPixels(): number;
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Gets or sets a value indicating the left coordinate of the control
|
|
1442
|
-
* @see https://doc.babylonjs.com/
|
|
1442
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1443
1443
|
*/
|
|
1444
1444
|
get left(): string | number;
|
|
1445
1445
|
set left(value: string | number);
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Gets or sets a value indicating the left coordinate in pixels of the control
|
|
1448
|
-
* @see https://doc.babylonjs.com/
|
|
1448
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1449
1449
|
*/
|
|
1450
1450
|
get leftInPixels(): number;
|
|
1451
1451
|
set leftInPixels(value: number);
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Gets or sets a value indicating the top coordinate of the control
|
|
1454
|
-
* @see https://doc.babylonjs.com/
|
|
1454
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1455
1455
|
*/
|
|
1456
1456
|
get top(): string | number;
|
|
1457
1457
|
set top(value: string | number);
|
|
1458
1458
|
/**
|
|
1459
1459
|
* Gets or sets a value indicating the top coordinate in pixels of the control
|
|
1460
|
-
* @see https://doc.babylonjs.com/
|
|
1460
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1461
1461
|
*/
|
|
1462
1462
|
get topInPixels(): number;
|
|
1463
1463
|
set topInPixels(value: number);
|
|
1464
1464
|
/**
|
|
1465
1465
|
* Gets or sets a value indicating the offset on X axis to the linked mesh
|
|
1466
|
-
* @see https://doc.babylonjs.com/
|
|
1466
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
|
1467
1467
|
*/
|
|
1468
1468
|
get linkOffsetX(): string | number;
|
|
1469
1469
|
set linkOffsetX(value: string | number);
|
|
1470
1470
|
/**
|
|
1471
1471
|
* Gets or sets a value indicating the offset in pixels on X axis to the linked mesh
|
|
1472
|
-
* @see https://doc.babylonjs.com/
|
|
1472
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
|
1473
1473
|
*/
|
|
1474
1474
|
get linkOffsetXInPixels(): number;
|
|
1475
1475
|
set linkOffsetXInPixels(value: number);
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Gets or sets a value indicating the offset on Y axis to the linked mesh
|
|
1478
|
-
* @see https://doc.babylonjs.com/
|
|
1478
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
|
1479
1479
|
*/
|
|
1480
1480
|
get linkOffsetY(): string | number;
|
|
1481
1481
|
set linkOffsetY(value: string | number);
|
|
1482
1482
|
/**
|
|
1483
1483
|
* Gets or sets a value indicating the offset in pixels on Y axis to the linked mesh
|
|
1484
|
-
* @see https://doc.babylonjs.com/
|
|
1484
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
|
1485
1485
|
*/
|
|
1486
1486
|
get linkOffsetYInPixels(): number;
|
|
1487
1487
|
set linkOffsetYInPixels(value: number);
|
|
@@ -1502,7 +1502,7 @@ export class Control implements IAnimatable {
|
|
|
1502
1502
|
* Gets/sets the overlap group of the control.
|
|
1503
1503
|
* Controls with overlapGroup set to a number can be deoverlapped.
|
|
1504
1504
|
* Controls with overlapGroup set to undefined are not deoverlapped.
|
|
1505
|
-
* @see https://doc.babylonjs.com/
|
|
1505
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#deoverlapping
|
|
1506
1506
|
*/
|
|
1507
1507
|
overlapGroup?: number;
|
|
1508
1508
|
/**
|
|
@@ -1587,7 +1587,7 @@ export class Control implements IAnimatable {
|
|
|
1587
1587
|
/**
|
|
1588
1588
|
* Link current control with a target mesh
|
|
1589
1589
|
* @param mesh defines the mesh to link with
|
|
1590
|
-
* @see https://doc.babylonjs.com/
|
|
1590
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
|
1591
1591
|
*/
|
|
1592
1592
|
linkWithMesh(mesh: Nullable<TransformNode>): void;
|
|
1593
1593
|
/**
|
|
@@ -1596,7 +1596,7 @@ export class Control implements IAnimatable {
|
|
|
1596
1596
|
* @param { string | number} paddingRight - The value of the right padding. If omitted, top is used.
|
|
1597
1597
|
* @param { string | number} paddingBottom - The value of the bottom padding. If omitted, top is used.
|
|
1598
1598
|
* @param { string | number} paddingLeft - The value of the left padding. If omitted, right is used.
|
|
1599
|
-
* @see https://doc.babylonjs.com/
|
|
1599
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1600
1600
|
*/
|
|
1601
1601
|
setPadding(paddingTop: string | number, paddingRight?: string | number, paddingBottom?: string | number, paddingLeft?: string | number): void;
|
|
1602
1602
|
/**
|
|
@@ -1605,7 +1605,7 @@ export class Control implements IAnimatable {
|
|
|
1605
1605
|
* @param { number} paddingRight - The value in pixels of the right padding. If omitted, top is used.
|
|
1606
1606
|
* @param { number} paddingBottom - The value in pixels of the bottom padding. If omitted, top is used.
|
|
1607
1607
|
* @param { number} paddingLeft - The value in pixels of the left padding. If omitted, right is used.
|
|
1608
|
-
* @see https://doc.babylonjs.com/
|
|
1608
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
1609
1609
|
*/
|
|
1610
1610
|
setPaddingInPixels(paddingTop: number, paddingRight?: number, paddingBottom?: number, paddingLeft?: number): void;
|
|
1611
1611
|
/**
|
|
@@ -2235,7 +2235,7 @@ export class Image extends Control {
|
|
|
2235
2235
|
get svgAttributesComputationCompleted(): boolean;
|
|
2236
2236
|
/**
|
|
2237
2237
|
* Gets or sets a boolean indicating if the image can force its container to adapt its size
|
|
2238
|
-
* @see https://doc.babylonjs.com/
|
|
2238
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#image
|
|
2239
2239
|
*/
|
|
2240
2240
|
get autoScale(): boolean;
|
|
2241
2241
|
set autoScale(value: boolean);
|
|
@@ -2277,19 +2277,19 @@ export class Image extends Control {
|
|
|
2277
2277
|
private _getSVGAttribs;
|
|
2278
2278
|
/**
|
|
2279
2279
|
* Gets or sets the cell width to use when animation sheet is enabled
|
|
2280
|
-
* @see https://doc.babylonjs.com/
|
|
2280
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#image
|
|
2281
2281
|
*/
|
|
2282
2282
|
get cellWidth(): number;
|
|
2283
2283
|
set cellWidth(value: number);
|
|
2284
2284
|
/**
|
|
2285
2285
|
* Gets or sets the cell height to use when animation sheet is enabled
|
|
2286
|
-
* @see https://doc.babylonjs.com/
|
|
2286
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#image
|
|
2287
2287
|
*/
|
|
2288
2288
|
get cellHeight(): number;
|
|
2289
2289
|
set cellHeight(value: number);
|
|
2290
2290
|
/**
|
|
2291
2291
|
* Gets or sets the cell id to use (this will turn on the animation sheet mode)
|
|
2292
|
-
* @see https://doc.babylonjs.com/
|
|
2292
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#image
|
|
2293
2293
|
*/
|
|
2294
2294
|
get cellId(): number;
|
|
2295
2295
|
set cellId(value: number);
|
|
@@ -3329,7 +3329,7 @@ export class SliderGroup extends SelectorGroup {
|
|
|
3329
3329
|
_setSelectorButtonBackground(selectorNb: number, color: string): void;
|
|
3330
3330
|
}
|
|
3331
3331
|
/** Class used to hold the controls for the checkboxes, radio buttons and sliders
|
|
3332
|
-
* @see https://doc.babylonjs.com/
|
|
3332
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/selector
|
|
3333
3333
|
*/
|
|
3334
3334
|
export class SelectionPanel extends Rectangle {
|
|
3335
3335
|
/** name of SelectionPanel */
|
|
@@ -3967,6 +3967,7 @@ export class TextBlock extends Control {
|
|
|
3967
3967
|
*/
|
|
3968
3968
|
_draw(context: ICanvasRenderingContext): void;
|
|
3969
3969
|
protected _applyStates(context: ICanvasRenderingContext): void;
|
|
3970
|
+
private _linesTemp;
|
|
3970
3971
|
protected _breakLines(refWidth: number, refHeight: number, context: ICanvasRenderingContext): object[];
|
|
3971
3972
|
protected _parseLine(line: string | undefined, context: ICanvasRenderingContext): object;
|
|
3972
3973
|
private _getCharsToRemove;
|
|
@@ -4527,7 +4528,7 @@ export class ValueAndUnit {
|
|
|
4527
4528
|
private _originalUnit;
|
|
4528
4529
|
/**
|
|
4529
4530
|
* Gets or sets a value indicating that this value will not scale accordingly with adaptive scaling property
|
|
4530
|
-
* @see https://doc.babylonjs.com/
|
|
4531
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
4531
4532
|
*/
|
|
4532
4533
|
ignoreAdaptiveScaling: boolean;
|
|
4533
4534
|
/**
|
|
@@ -4974,19 +4975,19 @@ export class Control3D implements IDisposable, IBehaviorAware<Control3D> {
|
|
|
4974
4975
|
private _behaviors;
|
|
4975
4976
|
/**
|
|
4976
4977
|
* Gets the list of attached behaviors
|
|
4977
|
-
* @see https://doc.babylonjs.com/features/
|
|
4978
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/behaviors
|
|
4978
4979
|
*/
|
|
4979
4980
|
get behaviors(): Behavior<Control3D>[];
|
|
4980
4981
|
/**
|
|
4981
4982
|
* Attach a behavior to the control
|
|
4982
|
-
* @see https://doc.babylonjs.com/features/
|
|
4983
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/behaviors
|
|
4983
4984
|
* @param behavior defines the behavior to attach
|
|
4984
4985
|
* @returns the current control
|
|
4985
4986
|
*/
|
|
4986
4987
|
addBehavior(behavior: Behavior<Control3D>): Control3D;
|
|
4987
4988
|
/**
|
|
4988
4989
|
* Remove an attached behavior
|
|
4989
|
-
* @see https://doc.babylonjs.com/features/
|
|
4990
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/behaviors
|
|
4990
4991
|
* @param behavior defines the behavior to attach
|
|
4991
4992
|
* @returns the current control
|
|
4992
4993
|
*/
|
|
@@ -4994,7 +4995,7 @@ export class Control3D implements IDisposable, IBehaviorAware<Control3D> {
|
|
|
4994
4995
|
/**
|
|
4995
4996
|
* Gets an attached behavior by name
|
|
4996
4997
|
* @param name defines the name of the behavior to look for
|
|
4997
|
-
* @see https://doc.babylonjs.com/features/
|
|
4998
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/behaviors
|
|
4998
4999
|
* @returns null if behavior was not found else the requested behavior
|
|
4999
5000
|
*/
|
|
5000
5001
|
getBehaviorByName(name: string): Nullable<Behavior<Control3D>>;
|
|
@@ -6418,7 +6419,7 @@ import { Container3D } from "babylonjs-gui/3D/controls/container3D";
|
|
|
6418
6419
|
import { Control3D } from "babylonjs-gui/3D/controls/control3D";
|
|
6419
6420
|
/**
|
|
6420
6421
|
* Class used to manage 3D user interface
|
|
6421
|
-
* @see https://doc.babylonjs.com/
|
|
6422
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui3D
|
|
6422
6423
|
*/
|
|
6423
6424
|
export class GUI3DManager implements IDisposable {
|
|
6424
6425
|
private _scene;
|
|
@@ -7641,6 +7642,9 @@ export class MRDLSliderBarMaterial extends PushMaterial {
|
|
|
7641
7642
|
*/
|
|
7642
7643
|
static BLUE_GRADIENT_TEXTURE_URL: string;
|
|
7643
7644
|
private _blueGradientTexture;
|
|
7645
|
+
private _decalTexture;
|
|
7646
|
+
private _reflectionMapTexture;
|
|
7647
|
+
private _indirectEnvTexture;
|
|
7644
7648
|
/**
|
|
7645
7649
|
* Gets or sets the corner Radius on the slider bar.
|
|
7646
7650
|
*/
|
|
@@ -7978,6 +7982,9 @@ export class MRDLSliderThumbMaterial extends PushMaterial {
|
|
|
7978
7982
|
*/
|
|
7979
7983
|
static BLUE_GRADIENT_TEXTURE_URL: string;
|
|
7980
7984
|
private _blueGradientTexture;
|
|
7985
|
+
private _decalTexture;
|
|
7986
|
+
private _reflectionMapTexture;
|
|
7987
|
+
private _indirectEnvTexture;
|
|
7981
7988
|
/**
|
|
7982
7989
|
* Gets or sets the corner Radius on the slider thumb.
|
|
7983
7990
|
*/
|
|
@@ -8475,7 +8482,7 @@ declare module BABYLON.GUI {
|
|
|
8475
8482
|
|
|
8476
8483
|
/**
|
|
8477
8484
|
* Class used to create texture to support 2D GUI elements
|
|
8478
|
-
* @see https://doc.babylonjs.com/
|
|
8485
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui
|
|
8479
8486
|
*/
|
|
8480
8487
|
export class AdvancedDynamicTexture extends BABYLON.DynamicTexture {
|
|
8481
8488
|
/** Define the Uurl to load snippets */
|
|
@@ -8587,32 +8594,32 @@ declare module BABYLON.GUI {
|
|
|
8587
8594
|
/**
|
|
8588
8595
|
* Gets or sets the ideal width used to design controls.
|
|
8589
8596
|
* The GUI will then rescale everything accordingly
|
|
8590
|
-
* @see https://doc.babylonjs.com/
|
|
8597
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
8591
8598
|
*/
|
|
8592
8599
|
get idealWidth(): number;
|
|
8593
8600
|
set idealWidth(value: number);
|
|
8594
8601
|
/**
|
|
8595
8602
|
* Gets or sets the ideal height used to design controls.
|
|
8596
8603
|
* The GUI will then rescale everything accordingly
|
|
8597
|
-
* @see https://doc.babylonjs.com/
|
|
8604
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
8598
8605
|
*/
|
|
8599
8606
|
get idealHeight(): number;
|
|
8600
8607
|
set idealHeight(value: number);
|
|
8601
8608
|
/**
|
|
8602
8609
|
* Gets or sets a boolean indicating if the smallest ideal value must be used if idealWidth and idealHeight are both set
|
|
8603
|
-
* @see https://doc.babylonjs.com/
|
|
8610
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
8604
8611
|
*/
|
|
8605
8612
|
get useSmallestIdeal(): boolean;
|
|
8606
8613
|
set useSmallestIdeal(value: boolean);
|
|
8607
8614
|
/**
|
|
8608
8615
|
* Gets or sets a boolean indicating if adaptive scaling must be used
|
|
8609
|
-
* @see https://doc.babylonjs.com/
|
|
8616
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
8610
8617
|
*/
|
|
8611
8618
|
get renderAtIdealSize(): boolean;
|
|
8612
8619
|
set renderAtIdealSize(value: boolean);
|
|
8613
8620
|
/**
|
|
8614
8621
|
* Gets the ratio used when in "ideal mode"
|
|
8615
|
-
* @see https://doc.babylonjs.com/
|
|
8622
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
8616
8623
|
* */
|
|
8617
8624
|
get idealRatio(): number;
|
|
8618
8625
|
/**
|
|
@@ -8715,7 +8722,7 @@ declare module BABYLON.GUI {
|
|
|
8715
8722
|
/**
|
|
8716
8723
|
* Helper function used to create a new style
|
|
8717
8724
|
* @returns a new style
|
|
8718
|
-
* @see https://doc.babylonjs.com/
|
|
8725
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#styles
|
|
8719
8726
|
*/
|
|
8720
8727
|
createStyle(): Style;
|
|
8721
8728
|
/**
|
|
@@ -9123,13 +9130,13 @@ declare module BABYLON.GUI {
|
|
|
9123
9130
|
set value(value: BABYLON.Color3);
|
|
9124
9131
|
/**
|
|
9125
9132
|
* Gets or sets control width
|
|
9126
|
-
* @see https://doc.babylonjs.com/
|
|
9133
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9127
9134
|
*/
|
|
9128
9135
|
get width(): string | number;
|
|
9129
9136
|
set width(value: string | number);
|
|
9130
9137
|
/**
|
|
9131
9138
|
* Gets or sets control height
|
|
9132
|
-
* @see https://doc.babylonjs.com/
|
|
9139
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9133
9140
|
*/
|
|
9134
9141
|
get height(): string | number;
|
|
9135
9142
|
/** Gets or sets control height */
|
|
@@ -9195,7 +9202,7 @@ declare module BABYLON.GUI {
|
|
|
9195
9202
|
|
|
9196
9203
|
/**
|
|
9197
9204
|
* Root class for 2D containers
|
|
9198
|
-
* @see https://doc.babylonjs.com/
|
|
9205
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#containers
|
|
9199
9206
|
*/
|
|
9200
9207
|
export class Container extends Control {
|
|
9201
9208
|
name?: string | undefined;
|
|
@@ -9350,7 +9357,7 @@ declare module BABYLON.GUI {
|
|
|
9350
9357
|
|
|
9351
9358
|
/**
|
|
9352
9359
|
* Root class used for all 2D controls
|
|
9353
|
-
* @see https://doc.babylonjs.com/
|
|
9360
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#controls
|
|
9354
9361
|
*/
|
|
9355
9362
|
export class Control implements BABYLON.IAnimatable {
|
|
9356
9363
|
/** defines the name of the control */
|
|
@@ -9618,39 +9625,39 @@ declare module BABYLON.GUI {
|
|
|
9618
9625
|
get highlightColor(): string;
|
|
9619
9626
|
set highlightColor(value: string);
|
|
9620
9627
|
/** Gets or sets a value indicating the scale factor on X axis (1 by default)
|
|
9621
|
-
* @see https://doc.babylonjs.com/
|
|
9628
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
|
9622
9629
|
*/
|
|
9623
9630
|
get scaleX(): number;
|
|
9624
9631
|
set scaleX(value: number);
|
|
9625
9632
|
/** Gets or sets a value indicating the scale factor on Y axis (1 by default)
|
|
9626
|
-
* @see https://doc.babylonjs.com/
|
|
9633
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
|
9627
9634
|
*/
|
|
9628
9635
|
get scaleY(): number;
|
|
9629
9636
|
set scaleY(value: number);
|
|
9630
9637
|
/** Gets or sets the rotation angle (0 by default)
|
|
9631
|
-
* @see https://doc.babylonjs.com/
|
|
9638
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
|
9632
9639
|
*/
|
|
9633
9640
|
get rotation(): number;
|
|
9634
9641
|
set rotation(value: number);
|
|
9635
9642
|
/** Gets or sets the transformation center on Y axis (0 by default)
|
|
9636
|
-
* @see https://doc.babylonjs.com/
|
|
9643
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
|
9637
9644
|
*/
|
|
9638
9645
|
get transformCenterY(): number;
|
|
9639
9646
|
set transformCenterY(value: number);
|
|
9640
9647
|
/** Gets or sets the transformation center on X axis (0 by default)
|
|
9641
|
-
* @see https://doc.babylonjs.com/
|
|
9648
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
|
9642
9649
|
*/
|
|
9643
9650
|
get transformCenterX(): number;
|
|
9644
9651
|
set transformCenterX(value: number);
|
|
9645
9652
|
/**
|
|
9646
9653
|
* Gets or sets the horizontal alignment
|
|
9647
|
-
* @see https://doc.babylonjs.com/
|
|
9654
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#alignments
|
|
9648
9655
|
*/
|
|
9649
9656
|
get horizontalAlignment(): number;
|
|
9650
9657
|
set horizontalAlignment(value: number);
|
|
9651
9658
|
/**
|
|
9652
9659
|
* Gets or sets the vertical alignment
|
|
9653
|
-
* @see https://doc.babylonjs.com/
|
|
9660
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#alignments
|
|
9654
9661
|
*/
|
|
9655
9662
|
get verticalAlignment(): number;
|
|
9656
9663
|
set verticalAlignment(value: number);
|
|
@@ -9664,25 +9671,25 @@ declare module BABYLON.GUI {
|
|
|
9664
9671
|
protected _fixedRatioMasterIsWidth: boolean;
|
|
9665
9672
|
/**
|
|
9666
9673
|
* Gets or sets control width
|
|
9667
|
-
* @see https://doc.babylonjs.com/
|
|
9674
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9668
9675
|
*/
|
|
9669
9676
|
get width(): string | number;
|
|
9670
9677
|
set width(value: string | number);
|
|
9671
9678
|
/**
|
|
9672
9679
|
* Gets or sets the control width in pixel
|
|
9673
|
-
* @see https://doc.babylonjs.com/
|
|
9680
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9674
9681
|
*/
|
|
9675
9682
|
get widthInPixels(): number;
|
|
9676
9683
|
set widthInPixels(value: number);
|
|
9677
9684
|
/**
|
|
9678
9685
|
* Gets or sets control height
|
|
9679
|
-
* @see https://doc.babylonjs.com/
|
|
9686
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9680
9687
|
*/
|
|
9681
9688
|
get height(): string | number;
|
|
9682
9689
|
set height(value: string | number);
|
|
9683
9690
|
/**
|
|
9684
9691
|
* Gets or sets control height in pixel
|
|
9685
|
-
* @see https://doc.babylonjs.com/
|
|
9692
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9686
9693
|
*/
|
|
9687
9694
|
get heightInPixels(): number;
|
|
9688
9695
|
set heightInPixels(value: number);
|
|
@@ -9697,7 +9704,7 @@ declare module BABYLON.GUI {
|
|
|
9697
9704
|
set fontWeight(value: string);
|
|
9698
9705
|
/**
|
|
9699
9706
|
* Gets or sets style
|
|
9700
|
-
* @see https://doc.babylonjs.com/
|
|
9707
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#styles
|
|
9701
9708
|
*/
|
|
9702
9709
|
get style(): BABYLON.Nullable<Style>;
|
|
9703
9710
|
set style(value: BABYLON.Nullable<Style>);
|
|
@@ -9735,13 +9742,13 @@ declare module BABYLON.GUI {
|
|
|
9735
9742
|
set descendantsOnlyPadding(value: boolean);
|
|
9736
9743
|
/**
|
|
9737
9744
|
* Gets or sets a value indicating the padding to use on the left of the control
|
|
9738
|
-
* @see https://doc.babylonjs.com/
|
|
9745
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9739
9746
|
*/
|
|
9740
9747
|
get paddingLeft(): string | number;
|
|
9741
9748
|
set paddingLeft(value: string | number);
|
|
9742
9749
|
/**
|
|
9743
9750
|
* Gets or sets a value indicating the padding in pixels to use on the left of the control
|
|
9744
|
-
* @see https://doc.babylonjs.com/
|
|
9751
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9745
9752
|
*/
|
|
9746
9753
|
get paddingLeftInPixels(): number;
|
|
9747
9754
|
set paddingLeftInPixels(value: number);
|
|
@@ -9749,13 +9756,13 @@ declare module BABYLON.GUI {
|
|
|
9749
9756
|
get _paddingLeftInPixels(): number;
|
|
9750
9757
|
/**
|
|
9751
9758
|
* Gets or sets a value indicating the padding to use on the right of the control
|
|
9752
|
-
* @see https://doc.babylonjs.com/
|
|
9759
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9753
9760
|
*/
|
|
9754
9761
|
get paddingRight(): string | number;
|
|
9755
9762
|
set paddingRight(value: string | number);
|
|
9756
9763
|
/**
|
|
9757
9764
|
* Gets or sets a value indicating the padding in pixels to use on the right of the control
|
|
9758
|
-
* @see https://doc.babylonjs.com/
|
|
9765
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9759
9766
|
*/
|
|
9760
9767
|
get paddingRightInPixels(): number;
|
|
9761
9768
|
set paddingRightInPixels(value: number);
|
|
@@ -9763,13 +9770,13 @@ declare module BABYLON.GUI {
|
|
|
9763
9770
|
get _paddingRightInPixels(): number;
|
|
9764
9771
|
/**
|
|
9765
9772
|
* Gets or sets a value indicating the padding to use on the top of the control
|
|
9766
|
-
* @see https://doc.babylonjs.com/
|
|
9773
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9767
9774
|
*/
|
|
9768
9775
|
get paddingTop(): string | number;
|
|
9769
9776
|
set paddingTop(value: string | number);
|
|
9770
9777
|
/**
|
|
9771
9778
|
* Gets or sets a value indicating the padding in pixels to use on the top of the control
|
|
9772
|
-
* @see https://doc.babylonjs.com/
|
|
9779
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9773
9780
|
*/
|
|
9774
9781
|
get paddingTopInPixels(): number;
|
|
9775
9782
|
set paddingTopInPixels(value: number);
|
|
@@ -9777,13 +9784,13 @@ declare module BABYLON.GUI {
|
|
|
9777
9784
|
get _paddingTopInPixels(): number;
|
|
9778
9785
|
/**
|
|
9779
9786
|
* Gets or sets a value indicating the padding to use on the bottom of the control
|
|
9780
|
-
* @see https://doc.babylonjs.com/
|
|
9787
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9781
9788
|
*/
|
|
9782
9789
|
get paddingBottom(): string | number;
|
|
9783
9790
|
set paddingBottom(value: string | number);
|
|
9784
9791
|
/**
|
|
9785
9792
|
* Gets or sets a value indicating the padding in pixels to use on the bottom of the control
|
|
9786
|
-
* @see https://doc.babylonjs.com/
|
|
9793
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9787
9794
|
*/
|
|
9788
9795
|
get paddingBottomInPixels(): number;
|
|
9789
9796
|
set paddingBottomInPixels(value: number);
|
|
@@ -9791,49 +9798,49 @@ declare module BABYLON.GUI {
|
|
|
9791
9798
|
get _paddingBottomInPixels(): number;
|
|
9792
9799
|
/**
|
|
9793
9800
|
* Gets or sets a value indicating the left coordinate of the control
|
|
9794
|
-
* @see https://doc.babylonjs.com/
|
|
9801
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9795
9802
|
*/
|
|
9796
9803
|
get left(): string | number;
|
|
9797
9804
|
set left(value: string | number);
|
|
9798
9805
|
/**
|
|
9799
9806
|
* Gets or sets a value indicating the left coordinate in pixels of the control
|
|
9800
|
-
* @see https://doc.babylonjs.com/
|
|
9807
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9801
9808
|
*/
|
|
9802
9809
|
get leftInPixels(): number;
|
|
9803
9810
|
set leftInPixels(value: number);
|
|
9804
9811
|
/**
|
|
9805
9812
|
* Gets or sets a value indicating the top coordinate of the control
|
|
9806
|
-
* @see https://doc.babylonjs.com/
|
|
9813
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9807
9814
|
*/
|
|
9808
9815
|
get top(): string | number;
|
|
9809
9816
|
set top(value: string | number);
|
|
9810
9817
|
/**
|
|
9811
9818
|
* Gets or sets a value indicating the top coordinate in pixels of the control
|
|
9812
|
-
* @see https://doc.babylonjs.com/
|
|
9819
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9813
9820
|
*/
|
|
9814
9821
|
get topInPixels(): number;
|
|
9815
9822
|
set topInPixels(value: number);
|
|
9816
9823
|
/**
|
|
9817
9824
|
* Gets or sets a value indicating the offset on X axis to the linked mesh
|
|
9818
|
-
* @see https://doc.babylonjs.com/
|
|
9825
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
|
9819
9826
|
*/
|
|
9820
9827
|
get linkOffsetX(): string | number;
|
|
9821
9828
|
set linkOffsetX(value: string | number);
|
|
9822
9829
|
/**
|
|
9823
9830
|
* Gets or sets a value indicating the offset in pixels on X axis to the linked mesh
|
|
9824
|
-
* @see https://doc.babylonjs.com/
|
|
9831
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
|
9825
9832
|
*/
|
|
9826
9833
|
get linkOffsetXInPixels(): number;
|
|
9827
9834
|
set linkOffsetXInPixels(value: number);
|
|
9828
9835
|
/**
|
|
9829
9836
|
* Gets or sets a value indicating the offset on Y axis to the linked mesh
|
|
9830
|
-
* @see https://doc.babylonjs.com/
|
|
9837
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
|
9831
9838
|
*/
|
|
9832
9839
|
get linkOffsetY(): string | number;
|
|
9833
9840
|
set linkOffsetY(value: string | number);
|
|
9834
9841
|
/**
|
|
9835
9842
|
* Gets or sets a value indicating the offset in pixels on Y axis to the linked mesh
|
|
9836
|
-
* @see https://doc.babylonjs.com/
|
|
9843
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
|
9837
9844
|
*/
|
|
9838
9845
|
get linkOffsetYInPixels(): number;
|
|
9839
9846
|
set linkOffsetYInPixels(value: number);
|
|
@@ -9854,7 +9861,7 @@ declare module BABYLON.GUI {
|
|
|
9854
9861
|
* Gets/sets the overlap group of the control.
|
|
9855
9862
|
* Controls with overlapGroup set to a number can be deoverlapped.
|
|
9856
9863
|
* Controls with overlapGroup set to undefined are not deoverlapped.
|
|
9857
|
-
* @see https://doc.babylonjs.com/
|
|
9864
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#deoverlapping
|
|
9858
9865
|
*/
|
|
9859
9866
|
overlapGroup?: number;
|
|
9860
9867
|
/**
|
|
@@ -9939,7 +9946,7 @@ declare module BABYLON.GUI {
|
|
|
9939
9946
|
/**
|
|
9940
9947
|
* Link current control with a target mesh
|
|
9941
9948
|
* @param mesh defines the mesh to link with
|
|
9942
|
-
* @see https://doc.babylonjs.com/
|
|
9949
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
|
9943
9950
|
*/
|
|
9944
9951
|
linkWithMesh(mesh: BABYLON.Nullable<BABYLON.TransformNode>): void;
|
|
9945
9952
|
/**
|
|
@@ -9948,7 +9955,7 @@ declare module BABYLON.GUI {
|
|
|
9948
9955
|
* @param { string | number} paddingRight - The value of the right padding. If omitted, top is used.
|
|
9949
9956
|
* @param { string | number} paddingBottom - The value of the bottom padding. If omitted, top is used.
|
|
9950
9957
|
* @param { string | number} paddingLeft - The value of the left padding. If omitted, right is used.
|
|
9951
|
-
* @see https://doc.babylonjs.com/
|
|
9958
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9952
9959
|
*/
|
|
9953
9960
|
setPadding(paddingTop: string | number, paddingRight?: string | number, paddingBottom?: string | number, paddingLeft?: string | number): void;
|
|
9954
9961
|
/**
|
|
@@ -9957,7 +9964,7 @@ declare module BABYLON.GUI {
|
|
|
9957
9964
|
* @param { number} paddingRight - The value in pixels of the right padding. If omitted, top is used.
|
|
9958
9965
|
* @param { number} paddingBottom - The value in pixels of the bottom padding. If omitted, top is used.
|
|
9959
9966
|
* @param { number} paddingLeft - The value in pixels of the left padding. If omitted, right is used.
|
|
9960
|
-
* @see https://doc.babylonjs.com/
|
|
9967
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
|
9961
9968
|
*/
|
|
9962
9969
|
setPaddingInPixels(paddingTop: number, paddingRight?: number, paddingBottom?: number, paddingLeft?: number): void;
|
|
9963
9970
|
/**
|
|
@@ -10553,7 +10560,7 @@ declare module BABYLON.GUI {
|
|
|
10553
10560
|
get svgAttributesComputationCompleted(): boolean;
|
|
10554
10561
|
/**
|
|
10555
10562
|
* Gets or sets a boolean indicating if the image can force its container to adapt its size
|
|
10556
|
-
* @see https://doc.babylonjs.com/
|
|
10563
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#image
|
|
10557
10564
|
*/
|
|
10558
10565
|
get autoScale(): boolean;
|
|
10559
10566
|
set autoScale(value: boolean);
|
|
@@ -10595,19 +10602,19 @@ declare module BABYLON.GUI {
|
|
|
10595
10602
|
private _getSVGAttribs;
|
|
10596
10603
|
/**
|
|
10597
10604
|
* Gets or sets the cell width to use when animation sheet is enabled
|
|
10598
|
-
* @see https://doc.babylonjs.com/
|
|
10605
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#image
|
|
10599
10606
|
*/
|
|
10600
10607
|
get cellWidth(): number;
|
|
10601
10608
|
set cellWidth(value: number);
|
|
10602
10609
|
/**
|
|
10603
10610
|
* Gets or sets the cell height to use when animation sheet is enabled
|
|
10604
|
-
* @see https://doc.babylonjs.com/
|
|
10611
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#image
|
|
10605
10612
|
*/
|
|
10606
10613
|
get cellHeight(): number;
|
|
10607
10614
|
set cellHeight(value: number);
|
|
10608
10615
|
/**
|
|
10609
10616
|
* Gets or sets the cell id to use (this will turn on the animation sheet mode)
|
|
10610
|
-
* @see https://doc.babylonjs.com/
|
|
10617
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#image
|
|
10611
10618
|
*/
|
|
10612
10619
|
get cellId(): number;
|
|
10613
10620
|
set cellId(value: number);
|
|
@@ -11547,7 +11554,7 @@ declare module BABYLON.GUI {
|
|
|
11547
11554
|
_setSelectorButtonBackground(selectorNb: number, color: string): void;
|
|
11548
11555
|
}
|
|
11549
11556
|
/** Class used to hold the controls for the checkboxes, radio buttons and sliders
|
|
11550
|
-
* @see https://doc.babylonjs.com/
|
|
11557
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/selector
|
|
11551
11558
|
*/
|
|
11552
11559
|
export class SelectionPanel extends Rectangle {
|
|
11553
11560
|
/** name of SelectionPanel */
|
|
@@ -12145,6 +12152,7 @@ declare module BABYLON.GUI {
|
|
|
12145
12152
|
*/
|
|
12146
12153
|
_draw(context: BABYLON.ICanvasRenderingContext): void;
|
|
12147
12154
|
protected _applyStates(context: BABYLON.ICanvasRenderingContext): void;
|
|
12155
|
+
private _linesTemp;
|
|
12148
12156
|
protected _breakLines(refWidth: number, refHeight: number, context: BABYLON.ICanvasRenderingContext): object[];
|
|
12149
12157
|
protected _parseLine(line: string | undefined, context: BABYLON.ICanvasRenderingContext): object;
|
|
12150
12158
|
private _getCharsToRemove;
|
|
@@ -12662,7 +12670,7 @@ declare module BABYLON.GUI {
|
|
|
12662
12670
|
private _originalUnit;
|
|
12663
12671
|
/**
|
|
12664
12672
|
* Gets or sets a value indicating that this value will not scale accordingly with adaptive scaling property
|
|
12665
|
-
* @see https://doc.babylonjs.com/
|
|
12673
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#adaptive-scaling
|
|
12666
12674
|
*/
|
|
12667
12675
|
ignoreAdaptiveScaling: boolean;
|
|
12668
12676
|
/**
|
|
@@ -13068,19 +13076,19 @@ declare module BABYLON.GUI {
|
|
|
13068
13076
|
private _behaviors;
|
|
13069
13077
|
/**
|
|
13070
13078
|
* Gets the list of attached behaviors
|
|
13071
|
-
* @see https://doc.babylonjs.com/features/
|
|
13079
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/behaviors
|
|
13072
13080
|
*/
|
|
13073
13081
|
get behaviors(): BABYLON.Behavior<Control3D>[];
|
|
13074
13082
|
/**
|
|
13075
13083
|
* Attach a behavior to the control
|
|
13076
|
-
* @see https://doc.babylonjs.com/features/
|
|
13084
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/behaviors
|
|
13077
13085
|
* @param behavior defines the behavior to attach
|
|
13078
13086
|
* @returns the current control
|
|
13079
13087
|
*/
|
|
13080
13088
|
addBehavior(behavior: BABYLON.Behavior<Control3D>): Control3D;
|
|
13081
13089
|
/**
|
|
13082
13090
|
* Remove an attached behavior
|
|
13083
|
-
* @see https://doc.babylonjs.com/features/
|
|
13091
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/behaviors
|
|
13084
13092
|
* @param behavior defines the behavior to attach
|
|
13085
13093
|
* @returns the current control
|
|
13086
13094
|
*/
|
|
@@ -13088,7 +13096,7 @@ declare module BABYLON.GUI {
|
|
|
13088
13096
|
/**
|
|
13089
13097
|
* Gets an attached behavior by name
|
|
13090
13098
|
* @param name defines the name of the behavior to look for
|
|
13091
|
-
* @see https://doc.babylonjs.com/features/
|
|
13099
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/behaviors
|
|
13092
13100
|
* @returns null if behavior was not found else the requested behavior
|
|
13093
13101
|
*/
|
|
13094
13102
|
getBehaviorByName(name: string): BABYLON.Nullable<BABYLON.Behavior<Control3D>>;
|
|
@@ -14334,7 +14342,7 @@ declare module BABYLON.GUI {
|
|
|
14334
14342
|
|
|
14335
14343
|
/**
|
|
14336
14344
|
* Class used to manage 3D user interface
|
|
14337
|
-
* @see https://doc.babylonjs.com/
|
|
14345
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui3D
|
|
14338
14346
|
*/
|
|
14339
14347
|
export class GUI3DManager implements BABYLON.IDisposable {
|
|
14340
14348
|
private _scene;
|
|
@@ -15405,6 +15413,9 @@ declare module BABYLON.GUI {
|
|
|
15405
15413
|
*/
|
|
15406
15414
|
static BLUE_GRADIENT_TEXTURE_URL: string;
|
|
15407
15415
|
private _blueGradientTexture;
|
|
15416
|
+
private _decalTexture;
|
|
15417
|
+
private _reflectionMapTexture;
|
|
15418
|
+
private _indirectEnvTexture;
|
|
15408
15419
|
/**
|
|
15409
15420
|
* Gets or sets the corner Radius on the slider bar.
|
|
15410
15421
|
*/
|
|
@@ -15727,6 +15738,9 @@ declare module BABYLON.GUI {
|
|
|
15727
15738
|
*/
|
|
15728
15739
|
static BLUE_GRADIENT_TEXTURE_URL: string;
|
|
15729
15740
|
private _blueGradientTexture;
|
|
15741
|
+
private _decalTexture;
|
|
15742
|
+
private _reflectionMapTexture;
|
|
15743
|
+
private _indirectEnvTexture;
|
|
15730
15744
|
/**
|
|
15731
15745
|
* Gets or sets the corner Radius on the slider thumb.
|
|
15732
15746
|
*/
|