@babylonjs/gui 5.32.0 → 5.32.2
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/2D/advancedDynamicTexture.d.ts +7 -7
- package/2D/advancedDynamicTexture.js +7 -7
- package/2D/advancedDynamicTexture.js.map +1 -1
- package/2D/controls/colorpicker.d.ts +2 -2
- package/2D/controls/colorpicker.js +2 -2
- package/2D/controls/colorpicker.js.map +1 -1
- package/2D/controls/container.d.ts +1 -1
- package/2D/controls/container.js +1 -1
- package/2D/controls/container.js.map +1 -1
- package/2D/controls/control.d.ts +33 -33
- package/2D/controls/control.js +32 -32
- package/2D/controls/control.js.map +1 -1
- package/2D/controls/image.d.ts +4 -4
- package/2D/controls/image.js +4 -4
- package/2D/controls/image.js.map +1 -1
- package/2D/controls/selector.d.ts +1 -1
- package/2D/controls/selector.js +1 -1
- package/2D/controls/selector.js.map +1 -1
- package/2D/controls/textBlock.d.ts +1 -0
- package/2D/controls/textBlock.js +7 -6
- package/2D/controls/textBlock.js.map +1 -1
- package/2D/valueAndUnit.d.ts +1 -1
- package/2D/valueAndUnit.js +1 -1
- package/2D/valueAndUnit.js.map +1 -1
- package/3D/controls/control3D.d.ts +4 -4
- package/3D/controls/control3D.js +4 -4
- package/3D/controls/control3D.js.map +1 -1
- package/3D/gui3DManager.d.ts +1 -1
- package/3D/gui3DManager.js +1 -1
- package/3D/gui3DManager.js.map +1 -1
- package/3D/materials/mrdl/mrdlSliderBarMaterial.d.ts +3 -0
- package/3D/materials/mrdl/mrdlSliderBarMaterial.js +10 -3
- package/3D/materials/mrdl/mrdlSliderBarMaterial.js.map +1 -1
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.d.ts +3 -0
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.js +7 -3
- package/3D/materials/mrdl/mrdlSliderThumbMaterial.js.map +1 -1
- package/package.json +2 -2
- package/readme.md +1 -1
package/2D/controls/control.js
CHANGED
@@ -12,7 +12,7 @@ import { SerializationHelper, serialize } from "@babylonjs/core/Misc/decorators.
|
|
12
12
|
import { EngineStore } from "@babylonjs/core/Engines/engineStore.js";
|
13
13
|
/**
|
14
14
|
* Root class used for all 2D controls
|
15
|
-
* @see https://doc.babylonjs.com/
|
15
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#controls
|
16
16
|
*/
|
17
17
|
export class Control {
|
18
18
|
// Functions
|
@@ -354,7 +354,7 @@ export class Control {
|
|
354
354
|
this._markAsDirty();
|
355
355
|
}
|
356
356
|
/** Gets or sets a value indicating the scale factor on X axis (1 by default)
|
357
|
-
* @see https://doc.babylonjs.com/
|
357
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
358
358
|
*/
|
359
359
|
get scaleX() {
|
360
360
|
return this._scaleX;
|
@@ -368,7 +368,7 @@ export class Control {
|
|
368
368
|
this._markMatrixAsDirty();
|
369
369
|
}
|
370
370
|
/** Gets or sets a value indicating the scale factor on Y axis (1 by default)
|
371
|
-
* @see https://doc.babylonjs.com/
|
371
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
372
372
|
*/
|
373
373
|
get scaleY() {
|
374
374
|
return this._scaleY;
|
@@ -382,7 +382,7 @@ export class Control {
|
|
382
382
|
this._markMatrixAsDirty();
|
383
383
|
}
|
384
384
|
/** Gets or sets the rotation angle (0 by default)
|
385
|
-
* @see https://doc.babylonjs.com/
|
385
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
386
386
|
*/
|
387
387
|
get rotation() {
|
388
388
|
return this._rotation;
|
@@ -396,7 +396,7 @@ export class Control {
|
|
396
396
|
this._markMatrixAsDirty();
|
397
397
|
}
|
398
398
|
/** Gets or sets the transformation center on Y axis (0 by default)
|
399
|
-
* @see https://doc.babylonjs.com/
|
399
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
400
400
|
*/
|
401
401
|
get transformCenterY() {
|
402
402
|
return this._transformCenterY;
|
@@ -410,7 +410,7 @@ export class Control {
|
|
410
410
|
this._markMatrixAsDirty();
|
411
411
|
}
|
412
412
|
/** Gets or sets the transformation center on X axis (0 by default)
|
413
|
-
* @see https://doc.babylonjs.com/
|
413
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#rotation-and-scaling
|
414
414
|
*/
|
415
415
|
get transformCenterX() {
|
416
416
|
return this._transformCenterX;
|
@@ -425,7 +425,7 @@ export class Control {
|
|
425
425
|
}
|
426
426
|
/**
|
427
427
|
* Gets or sets the horizontal alignment
|
428
|
-
* @see https://doc.babylonjs.com/
|
428
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#alignments
|
429
429
|
*/
|
430
430
|
get horizontalAlignment() {
|
431
431
|
return this._horizontalAlignment;
|
@@ -439,7 +439,7 @@ export class Control {
|
|
439
439
|
}
|
440
440
|
/**
|
441
441
|
* Gets or sets the vertical alignment
|
442
|
-
* @see https://doc.babylonjs.com/
|
442
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#alignments
|
443
443
|
*/
|
444
444
|
get verticalAlignment() {
|
445
445
|
return this._verticalAlignment;
|
@@ -453,7 +453,7 @@ export class Control {
|
|
453
453
|
}
|
454
454
|
/**
|
455
455
|
* Gets or sets control width
|
456
|
-
* @see https://doc.babylonjs.com/
|
456
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
457
457
|
*/
|
458
458
|
get width() {
|
459
459
|
return this._width.toString(this._host);
|
@@ -469,7 +469,7 @@ export class Control {
|
|
469
469
|
}
|
470
470
|
/**
|
471
471
|
* Gets or sets the control width in pixel
|
472
|
-
* @see https://doc.babylonjs.com/
|
472
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
473
473
|
*/
|
474
474
|
get widthInPixels() {
|
475
475
|
return this._width.getValueInPixel(this._host, this._cachedParentMeasure.width);
|
@@ -483,7 +483,7 @@ export class Control {
|
|
483
483
|
}
|
484
484
|
/**
|
485
485
|
* Gets or sets control height
|
486
|
-
* @see https://doc.babylonjs.com/
|
486
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
487
487
|
*/
|
488
488
|
get height() {
|
489
489
|
return this._height.toString(this._host);
|
@@ -499,7 +499,7 @@ export class Control {
|
|
499
499
|
}
|
500
500
|
/**
|
501
501
|
* Gets or sets control height in pixel
|
502
|
-
* @see https://doc.babylonjs.com/
|
502
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
503
503
|
*/
|
504
504
|
get heightInPixels() {
|
505
505
|
return this._height.getValueInPixel(this._host, this._cachedParentMeasure.height);
|
@@ -546,7 +546,7 @@ export class Control {
|
|
546
546
|
}
|
547
547
|
/**
|
548
548
|
* Gets or sets style
|
549
|
-
* @see https://doc.babylonjs.com/
|
549
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#styles
|
550
550
|
*/
|
551
551
|
get style() {
|
552
552
|
return this._style;
|
@@ -670,7 +670,7 @@ export class Control {
|
|
670
670
|
}
|
671
671
|
/**
|
672
672
|
* Gets or sets a value indicating the padding to use on the left of the control
|
673
|
-
* @see https://doc.babylonjs.com/
|
673
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
674
674
|
*/
|
675
675
|
get paddingLeft() {
|
676
676
|
return this._paddingLeft.toString(this._host);
|
@@ -682,7 +682,7 @@ export class Control {
|
|
682
682
|
}
|
683
683
|
/**
|
684
684
|
* Gets or sets a value indicating the padding in pixels to use on the left of the control
|
685
|
-
* @see https://doc.babylonjs.com/
|
685
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
686
686
|
*/
|
687
687
|
get paddingLeftInPixels() {
|
688
688
|
return this._paddingLeft.getValueInPixel(this._host, this._cachedParentMeasure.width);
|
@@ -702,7 +702,7 @@ export class Control {
|
|
702
702
|
}
|
703
703
|
/**
|
704
704
|
* Gets or sets a value indicating the padding to use on the right of the control
|
705
|
-
* @see https://doc.babylonjs.com/
|
705
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
706
706
|
*/
|
707
707
|
get paddingRight() {
|
708
708
|
return this._paddingRight.toString(this._host);
|
@@ -714,7 +714,7 @@ export class Control {
|
|
714
714
|
}
|
715
715
|
/**
|
716
716
|
* Gets or sets a value indicating the padding in pixels to use on the right of the control
|
717
|
-
* @see https://doc.babylonjs.com/
|
717
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
718
718
|
*/
|
719
719
|
get paddingRightInPixels() {
|
720
720
|
return this._paddingRight.getValueInPixel(this._host, this._cachedParentMeasure.width);
|
@@ -734,7 +734,7 @@ export class Control {
|
|
734
734
|
}
|
735
735
|
/**
|
736
736
|
* Gets or sets a value indicating the padding to use on the top of the control
|
737
|
-
* @see https://doc.babylonjs.com/
|
737
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
738
738
|
*/
|
739
739
|
get paddingTop() {
|
740
740
|
return this._paddingTop.toString(this._host);
|
@@ -746,7 +746,7 @@ export class Control {
|
|
746
746
|
}
|
747
747
|
/**
|
748
748
|
* Gets or sets a value indicating the padding in pixels to use on the top of the control
|
749
|
-
* @see https://doc.babylonjs.com/
|
749
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
750
750
|
*/
|
751
751
|
get paddingTopInPixels() {
|
752
752
|
return this._paddingTop.getValueInPixel(this._host, this._cachedParentMeasure.height);
|
@@ -766,7 +766,7 @@ export class Control {
|
|
766
766
|
}
|
767
767
|
/**
|
768
768
|
* Gets or sets a value indicating the padding to use on the bottom of the control
|
769
|
-
* @see https://doc.babylonjs.com/
|
769
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
770
770
|
*/
|
771
771
|
get paddingBottom() {
|
772
772
|
return this._paddingBottom.toString(this._host);
|
@@ -778,7 +778,7 @@ export class Control {
|
|
778
778
|
}
|
779
779
|
/**
|
780
780
|
* Gets or sets a value indicating the padding in pixels to use on the bottom of the control
|
781
|
-
* @see https://doc.babylonjs.com/
|
781
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
782
782
|
*/
|
783
783
|
get paddingBottomInPixels() {
|
784
784
|
return this._paddingBottom.getValueInPixel(this._host, this._cachedParentMeasure.height);
|
@@ -798,7 +798,7 @@ export class Control {
|
|
798
798
|
}
|
799
799
|
/**
|
800
800
|
* Gets or sets a value indicating the left coordinate of the control
|
801
|
-
* @see https://doc.babylonjs.com/
|
801
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
802
802
|
*/
|
803
803
|
get left() {
|
804
804
|
return this._left.toString(this._host);
|
@@ -810,7 +810,7 @@ export class Control {
|
|
810
810
|
}
|
811
811
|
/**
|
812
812
|
* Gets or sets a value indicating the left coordinate in pixels of the control
|
813
|
-
* @see https://doc.babylonjs.com/
|
813
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
814
814
|
*/
|
815
815
|
get leftInPixels() {
|
816
816
|
return this._left.getValueInPixel(this._host, this._cachedParentMeasure.width);
|
@@ -823,7 +823,7 @@ export class Control {
|
|
823
823
|
}
|
824
824
|
/**
|
825
825
|
* Gets or sets a value indicating the top coordinate of the control
|
826
|
-
* @see https://doc.babylonjs.com/
|
826
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
827
827
|
*/
|
828
828
|
get top() {
|
829
829
|
return this._top.toString(this._host);
|
@@ -835,7 +835,7 @@ export class Control {
|
|
835
835
|
}
|
836
836
|
/**
|
837
837
|
* Gets or sets a value indicating the top coordinate in pixels of the control
|
838
|
-
* @see https://doc.babylonjs.com/
|
838
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
839
839
|
*/
|
840
840
|
get topInPixels() {
|
841
841
|
return this._top.getValueInPixel(this._host, this._cachedParentMeasure.height);
|
@@ -848,7 +848,7 @@ export class Control {
|
|
848
848
|
}
|
849
849
|
/**
|
850
850
|
* Gets or sets a value indicating the offset on X axis to the linked mesh
|
851
|
-
* @see https://doc.babylonjs.com/
|
851
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
852
852
|
*/
|
853
853
|
get linkOffsetX() {
|
854
854
|
return this._linkOffsetX.toString(this._host);
|
@@ -860,7 +860,7 @@ export class Control {
|
|
860
860
|
}
|
861
861
|
/**
|
862
862
|
* Gets or sets a value indicating the offset in pixels on X axis to the linked mesh
|
863
|
-
* @see https://doc.babylonjs.com/
|
863
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
864
864
|
*/
|
865
865
|
get linkOffsetXInPixels() {
|
866
866
|
return this._linkOffsetX.getValueInPixel(this._host, this._cachedParentMeasure.width);
|
@@ -873,7 +873,7 @@ export class Control {
|
|
873
873
|
}
|
874
874
|
/**
|
875
875
|
* Gets or sets a value indicating the offset on Y axis to the linked mesh
|
876
|
-
* @see https://doc.babylonjs.com/
|
876
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
877
877
|
*/
|
878
878
|
get linkOffsetY() {
|
879
879
|
return this._linkOffsetY.toString(this._host);
|
@@ -885,7 +885,7 @@ export class Control {
|
|
885
885
|
}
|
886
886
|
/**
|
887
887
|
* Gets or sets a value indicating the offset in pixels on Y axis to the linked mesh
|
888
|
-
* @see https://doc.babylonjs.com/
|
888
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
889
889
|
*/
|
890
890
|
get linkOffsetYInPixels() {
|
891
891
|
return this._linkOffsetY.getValueInPixel(this._host, this._cachedParentMeasure.height);
|
@@ -1079,7 +1079,7 @@ export class Control {
|
|
1079
1079
|
/**
|
1080
1080
|
* Link current control with a target mesh
|
1081
1081
|
* @param mesh defines the mesh to link with
|
1082
|
-
* @see https://doc.babylonjs.com/
|
1082
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#tracking-positions
|
1083
1083
|
*/
|
1084
1084
|
linkWithMesh(mesh) {
|
1085
1085
|
if (!this._host || (this.parent && this.parent !== this._host._rootContainer)) {
|
@@ -1110,7 +1110,7 @@ export class Control {
|
|
1110
1110
|
* @param { string | number} paddingRight - The value of the right padding. If omitted, top is used.
|
1111
1111
|
* @param { string | number} paddingBottom - The value of the bottom padding. If omitted, top is used.
|
1112
1112
|
* @param { string | number} paddingLeft - The value of the left padding. If omitted, right is used.
|
1113
|
-
* @see https://doc.babylonjs.com/
|
1113
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
1114
1114
|
*/
|
1115
1115
|
setPadding(paddingTop, paddingRight, paddingBottom, paddingLeft) {
|
1116
1116
|
const top = paddingTop;
|
@@ -1128,7 +1128,7 @@ export class Control {
|
|
1128
1128
|
* @param { number} paddingRight - The value in pixels of the right padding. If omitted, top is used.
|
1129
1129
|
* @param { number} paddingBottom - The value in pixels of the bottom padding. If omitted, top is used.
|
1130
1130
|
* @param { number} paddingLeft - The value in pixels of the left padding. If omitted, right is used.
|
1131
|
-
* @see https://doc.babylonjs.com/
|
1131
|
+
* @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
|
1132
1132
|
*/
|
1133
1133
|
setPaddingInPixels(paddingTop, paddingRight, paddingBottom, paddingLeft) {
|
1134
1134
|
const top = paddingTop;
|