babylonjs-gui 5.0.0-alpha.62 → 5.0.0-alpha.63
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.js +454 -188
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +2 -2
- package/babylon.gui.module.d.ts +127 -22
- package/package.json +2 -2
package/babylon.gui.module.d.ts
CHANGED
|
@@ -35,26 +35,30 @@ declare module "babylonjs-gui/2D/controls/focusableControl" {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
declare module "babylonjs-gui/2D/valueAndUnit" {
|
|
38
|
+
import { Observable } from "babylonjs/Misc/observable";
|
|
38
39
|
import { AdvancedDynamicTexture } from "babylonjs-gui/2D/advancedDynamicTexture";
|
|
39
40
|
/**
|
|
40
41
|
* Class used to specific a value and its associated unit
|
|
41
42
|
*/
|
|
42
43
|
export class ValueAndUnit {
|
|
43
|
-
/** defines the unit to store */
|
|
44
|
-
unit: number;
|
|
45
44
|
/** defines a boolean indicating if the value can be negative */
|
|
46
45
|
negativeValueAllowed: boolean;
|
|
47
46
|
private _value;
|
|
47
|
+
private _unit;
|
|
48
48
|
private _originalUnit;
|
|
49
49
|
/**
|
|
50
50
|
* Gets or sets a value indicating that this value will not scale accordingly with adaptive scaling property
|
|
51
51
|
* @see https://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
52
52
|
*/
|
|
53
53
|
ignoreAdaptiveScaling: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Observable event triggered each time the value or unit changes
|
|
56
|
+
*/
|
|
57
|
+
onChangedObservable: Observable<void>;
|
|
54
58
|
/**
|
|
55
59
|
* Creates a new ValueAndUnit
|
|
56
60
|
* @param value defines the value to store
|
|
57
|
-
* @param unit defines the unit to store
|
|
61
|
+
* @param unit defines the unit to store - defaults to ValueAndUnit.UNITMODE_PIXEL
|
|
58
62
|
* @param negativeValueAllowed defines a boolean indicating if the value can be negative
|
|
59
63
|
*/
|
|
60
64
|
constructor(value: number,
|
|
@@ -66,8 +70,19 @@ declare module "babylonjs-gui/2D/valueAndUnit" {
|
|
|
66
70
|
get isPercentage(): boolean;
|
|
67
71
|
/** Gets a boolean indicating if the value is store as pixel */
|
|
68
72
|
get isPixel(): boolean;
|
|
69
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* Gets value (without units)
|
|
75
|
+
* @deprecated use value property instead
|
|
76
|
+
*/
|
|
70
77
|
get internalValue(): number;
|
|
78
|
+
/** Gets value (without units) */
|
|
79
|
+
get value(): number;
|
|
80
|
+
/** Sets value (without units) */
|
|
81
|
+
set value(value: number);
|
|
82
|
+
/** Gets units (without value) */
|
|
83
|
+
get unit(): number;
|
|
84
|
+
/** Sets units (without value) */
|
|
85
|
+
set unit(value: number);
|
|
71
86
|
/**
|
|
72
87
|
* Gets value as pixel
|
|
73
88
|
* @param host defines the root host
|
|
@@ -76,7 +91,7 @@ declare module "babylonjs-gui/2D/valueAndUnit" {
|
|
|
76
91
|
*/
|
|
77
92
|
getValueInPixel(host: AdvancedDynamicTexture, refValue: number): number;
|
|
78
93
|
/**
|
|
79
|
-
* Update the current value and unit.
|
|
94
|
+
* Update the current value and unit.
|
|
80
95
|
* @param value defines the value to store
|
|
81
96
|
* @param unit defines the unit to store
|
|
82
97
|
* @returns the current ValueAndUnit
|
|
@@ -98,7 +113,7 @@ declare module "babylonjs-gui/2D/valueAndUnit" {
|
|
|
98
113
|
/**
|
|
99
114
|
* Store a value parsed from a string
|
|
100
115
|
* @param source defines the source string
|
|
101
|
-
* @returns true if the value was successfully parsed
|
|
116
|
+
* @returns true if the value was successfully parsed and updated
|
|
102
117
|
*/
|
|
103
118
|
fromString(source: string | number): boolean;
|
|
104
119
|
private static _Regex;
|
|
@@ -748,9 +763,10 @@ declare module "babylonjs-gui/2D/advancedDynamicTexture" {
|
|
|
748
763
|
* @param foreground defines a boolean indicating if the texture must be rendered in foreground (default is true)
|
|
749
764
|
* @param scene defines the hosting scene
|
|
750
765
|
* @param sampling defines the texture sampling mode (Texture.BILINEAR_SAMPLINGMODE by default)
|
|
766
|
+
* @param adaptiveScaling defines whether to automatically scale root to match hardwarescaling (false by default)
|
|
751
767
|
* @returns a new AdvancedDynamicTexture
|
|
752
768
|
*/
|
|
753
|
-
static CreateFullscreenUI(name: string, foreground?: boolean, scene?: Nullable<Scene>, sampling?: number): AdvancedDynamicTexture;
|
|
769
|
+
static CreateFullscreenUI(name: string, foreground?: boolean, scene?: Nullable<Scene>, sampling?: number, adaptiveScaling?: boolean): AdvancedDynamicTexture;
|
|
754
770
|
}
|
|
755
771
|
}
|
|
756
772
|
declare module "babylonjs-gui/2D/controls/control" {
|
|
@@ -787,6 +803,8 @@ declare module "babylonjs-gui/2D/controls/control" {
|
|
|
787
803
|
parent: Nullable<Container>;
|
|
788
804
|
/** @hidden */
|
|
789
805
|
_currentMeasure: Measure;
|
|
806
|
+
/** @hidden */
|
|
807
|
+
_tempPaddingMeasure: Measure;
|
|
790
808
|
private _fontFamily;
|
|
791
809
|
private _fontStyle;
|
|
792
810
|
private _fontWeight;
|
|
@@ -819,6 +837,7 @@ declare module "babylonjs-gui/2D/controls/control" {
|
|
|
819
837
|
_prevCurrentMeasureTransformedIntoGlobalSpace: Measure;
|
|
820
838
|
/** @hidden */
|
|
821
839
|
protected _cachedParentMeasure: Measure;
|
|
840
|
+
private _descendentsOnlyPadding;
|
|
822
841
|
private _paddingLeft;
|
|
823
842
|
private _paddingRight;
|
|
824
843
|
private _paddingTop;
|
|
@@ -1121,6 +1140,12 @@ declare module "babylonjs-gui/2D/controls/control" {
|
|
|
1121
1140
|
* Gets the current linked mesh (or null if none)
|
|
1122
1141
|
*/
|
|
1123
1142
|
get linkedMesh(): Nullable<TransformNode>;
|
|
1143
|
+
/**
|
|
1144
|
+
* Gets or sets a value indicating the padding should work like in CSS.
|
|
1145
|
+
* Basically, it will add the padding amount on each side of the parent control for its children.
|
|
1146
|
+
*/
|
|
1147
|
+
get descendentsOnlyPadding(): boolean;
|
|
1148
|
+
set descendentsOnlyPadding(value: boolean);
|
|
1124
1149
|
/**
|
|
1125
1150
|
* Gets or sets a value indicating the padding to use on the left of the control
|
|
1126
1151
|
* @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
@@ -1133,6 +1158,8 @@ declare module "babylonjs-gui/2D/controls/control" {
|
|
|
1133
1158
|
*/
|
|
1134
1159
|
get paddingLeftInPixels(): number;
|
|
1135
1160
|
set paddingLeftInPixels(value: number);
|
|
1161
|
+
/** @hidden */
|
|
1162
|
+
get _paddingLeftInPixels(): number;
|
|
1136
1163
|
/**
|
|
1137
1164
|
* Gets or sets a value indicating the padding to use on the right of the control
|
|
1138
1165
|
* @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
@@ -1145,6 +1172,8 @@ declare module "babylonjs-gui/2D/controls/control" {
|
|
|
1145
1172
|
*/
|
|
1146
1173
|
get paddingRightInPixels(): number;
|
|
1147
1174
|
set paddingRightInPixels(value: number);
|
|
1175
|
+
/** @hidden */
|
|
1176
|
+
get _paddingRightInPixels(): number;
|
|
1148
1177
|
/**
|
|
1149
1178
|
* Gets or sets a value indicating the padding to use on the top of the control
|
|
1150
1179
|
* @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
@@ -1157,6 +1186,8 @@ declare module "babylonjs-gui/2D/controls/control" {
|
|
|
1157
1186
|
*/
|
|
1158
1187
|
get paddingTopInPixels(): number;
|
|
1159
1188
|
set paddingTopInPixels(value: number);
|
|
1189
|
+
/** @hidden */
|
|
1190
|
+
get _paddingTopInPixels(): number;
|
|
1160
1191
|
/**
|
|
1161
1192
|
* Gets or sets a value indicating the padding to use on the bottom of the control
|
|
1162
1193
|
* @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
@@ -1169,6 +1200,8 @@ declare module "babylonjs-gui/2D/controls/control" {
|
|
|
1169
1200
|
*/
|
|
1170
1201
|
get paddingBottomInPixels(): number;
|
|
1171
1202
|
set paddingBottomInPixels(value: number);
|
|
1203
|
+
/** @hidden */
|
|
1204
|
+
get _paddingBottomInPixels(): number;
|
|
1172
1205
|
/**
|
|
1173
1206
|
* Gets or sets a value indicating the left coordinate of the control
|
|
1174
1207
|
* @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
@@ -2102,13 +2135,19 @@ declare module "babylonjs-gui/2D/controls/stackPanel" {
|
|
|
2102
2135
|
private _manualWidth;
|
|
2103
2136
|
private _manualHeight;
|
|
2104
2137
|
private _doNotTrackManualChanges;
|
|
2138
|
+
private _spacing;
|
|
2105
2139
|
/**
|
|
2106
|
-
* Gets or sets a boolean indicating that
|
|
2140
|
+
* Gets or sets a boolean indicating that layout warnings should be ignored
|
|
2107
2141
|
*/
|
|
2108
2142
|
ignoreLayoutWarnings: boolean;
|
|
2109
2143
|
/** Gets or sets a boolean indicating if the stack panel is vertical or horizontal*/
|
|
2110
2144
|
get isVertical(): boolean;
|
|
2111
2145
|
set isVertical(value: boolean);
|
|
2146
|
+
/**
|
|
2147
|
+
* Gets or sets the spacing (in pixels) between each child.
|
|
2148
|
+
*/
|
|
2149
|
+
get spacing(): number;
|
|
2150
|
+
set spacing(value: number);
|
|
2112
2151
|
/**
|
|
2113
2152
|
* Gets or sets panel width.
|
|
2114
2153
|
* This value should not be set when in horizontal mode as it will be computed automatically
|
|
@@ -2502,7 +2541,9 @@ declare module "babylonjs-gui/2D/controls/grid" {
|
|
|
2502
2541
|
export class Grid extends Container {
|
|
2503
2542
|
name?: string | undefined;
|
|
2504
2543
|
private _rowDefinitions;
|
|
2544
|
+
private _rowDefinitionObservers;
|
|
2505
2545
|
private _columnDefinitions;
|
|
2546
|
+
private _columnDefinitionObservers;
|
|
2506
2547
|
private _cells;
|
|
2507
2548
|
private _childControls;
|
|
2508
2549
|
/**
|
|
@@ -2615,9 +2656,9 @@ declare module "babylonjs-gui/2D/controls/grid" {
|
|
|
2615
2656
|
/** Releases associated resources */
|
|
2616
2657
|
dispose(): void;
|
|
2617
2658
|
/**
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2659
|
+
* Serializes the current control
|
|
2660
|
+
* @param serializationObject defined the JSON serialized object
|
|
2661
|
+
*/
|
|
2621
2662
|
serialize(serializationObject: any): void;
|
|
2622
2663
|
/** @hidden */
|
|
2623
2664
|
_parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
|
|
@@ -4154,6 +4195,7 @@ declare module "babylonjs-gui/3D/gui3DManager" {
|
|
|
4154
4195
|
private _rootContainer;
|
|
4155
4196
|
private _pointerObserver;
|
|
4156
4197
|
private _pointerOutObserver;
|
|
4198
|
+
private _customControlScaling;
|
|
4157
4199
|
/** @hidden */
|
|
4158
4200
|
_lastPickedControl: Control3D;
|
|
4159
4201
|
/** @hidden */
|
|
@@ -4164,6 +4206,7 @@ declare module "babylonjs-gui/3D/gui3DManager" {
|
|
|
4164
4206
|
_lastControlDown: {
|
|
4165
4207
|
[pointerId: number]: Control3D;
|
|
4166
4208
|
};
|
|
4209
|
+
protected static MRTK_REALISTIC_SCALING: number;
|
|
4167
4210
|
/**
|
|
4168
4211
|
* Observable raised when the point picked by the pointer events changed
|
|
4169
4212
|
*/
|
|
@@ -4184,6 +4227,14 @@ declare module "babylonjs-gui/3D/gui3DManager" {
|
|
|
4184
4227
|
get scene(): Scene;
|
|
4185
4228
|
/** Gets associated utility layer */
|
|
4186
4229
|
get utilityLayer(): Nullable<UtilityLayerRenderer>;
|
|
4230
|
+
/** Gets the scaling for all UI elements owned by this manager */
|
|
4231
|
+
get controlScaling(): number;
|
|
4232
|
+
/** Sets the scaling adjustment for all UI elements owned by this manager */
|
|
4233
|
+
set controlScaling(newScale: number);
|
|
4234
|
+
/** Gets if controls attached to this manager are realistically sized, based on the fact that 1 unit length is 1 meter */
|
|
4235
|
+
get useRealisticScaling(): boolean;
|
|
4236
|
+
/** Sets if controls attached to this manager are realistically sized, based on the fact that 1 unit length is 1 meter */
|
|
4237
|
+
set useRealisticScaling(newValue: boolean);
|
|
4187
4238
|
/**
|
|
4188
4239
|
* Creates a new GUI3DManager
|
|
4189
4240
|
* @param scene
|
|
@@ -4338,6 +4389,8 @@ declare module "babylonjs-gui/3D/controls/control3D" {
|
|
|
4338
4389
|
private _enterCount;
|
|
4339
4390
|
private _downPointerIds;
|
|
4340
4391
|
private _isVisible;
|
|
4392
|
+
/** @hidden */
|
|
4393
|
+
_isScaledByManager: boolean;
|
|
4341
4394
|
/** Gets or sets the control position in world space */
|
|
4342
4395
|
get position(): Vector3;
|
|
4343
4396
|
set position(value: Vector3);
|
|
@@ -7123,21 +7176,24 @@ declare module BABYLON.GUI {
|
|
|
7123
7176
|
* Class used to specific a value and its associated unit
|
|
7124
7177
|
*/
|
|
7125
7178
|
export class ValueAndUnit {
|
|
7126
|
-
/** defines the unit to store */
|
|
7127
|
-
unit: number;
|
|
7128
7179
|
/** defines a boolean indicating if the value can be negative */
|
|
7129
7180
|
negativeValueAllowed: boolean;
|
|
7130
7181
|
private _value;
|
|
7182
|
+
private _unit;
|
|
7131
7183
|
private _originalUnit;
|
|
7132
7184
|
/**
|
|
7133
7185
|
* Gets or sets a value indicating that this value will not scale accordingly with adaptive scaling property
|
|
7134
7186
|
* @see https://doc.babylonjs.com/how_to/gui#adaptive-scaling
|
|
7135
7187
|
*/
|
|
7136
7188
|
ignoreAdaptiveScaling: boolean;
|
|
7189
|
+
/**
|
|
7190
|
+
* BABYLON.Observable event triggered each time the value or unit changes
|
|
7191
|
+
*/
|
|
7192
|
+
onChangedObservable: BABYLON.Observable<void>;
|
|
7137
7193
|
/**
|
|
7138
7194
|
* Creates a new ValueAndUnit
|
|
7139
7195
|
* @param value defines the value to store
|
|
7140
|
-
* @param unit defines the unit to store
|
|
7196
|
+
* @param unit defines the unit to store - defaults to ValueAndUnit.UNITMODE_PIXEL
|
|
7141
7197
|
* @param negativeValueAllowed defines a boolean indicating if the value can be negative
|
|
7142
7198
|
*/
|
|
7143
7199
|
constructor(value: number,
|
|
@@ -7149,8 +7205,19 @@ declare module BABYLON.GUI {
|
|
|
7149
7205
|
get isPercentage(): boolean;
|
|
7150
7206
|
/** Gets a boolean indicating if the value is store as pixel */
|
|
7151
7207
|
get isPixel(): boolean;
|
|
7152
|
-
/**
|
|
7208
|
+
/**
|
|
7209
|
+
* Gets value (without units)
|
|
7210
|
+
* @deprecated use value property instead
|
|
7211
|
+
*/
|
|
7153
7212
|
get internalValue(): number;
|
|
7213
|
+
/** Gets value (without units) */
|
|
7214
|
+
get value(): number;
|
|
7215
|
+
/** Sets value (without units) */
|
|
7216
|
+
set value(value: number);
|
|
7217
|
+
/** Gets units (without value) */
|
|
7218
|
+
get unit(): number;
|
|
7219
|
+
/** Sets units (without value) */
|
|
7220
|
+
set unit(value: number);
|
|
7154
7221
|
/**
|
|
7155
7222
|
* Gets value as pixel
|
|
7156
7223
|
* @param host defines the root host
|
|
@@ -7159,7 +7226,7 @@ declare module BABYLON.GUI {
|
|
|
7159
7226
|
*/
|
|
7160
7227
|
getValueInPixel(host: AdvancedDynamicTexture, refValue: number): number;
|
|
7161
7228
|
/**
|
|
7162
|
-
* Update the current value and unit.
|
|
7229
|
+
* Update the current value and unit.
|
|
7163
7230
|
* @param value defines the value to store
|
|
7164
7231
|
* @param unit defines the unit to store
|
|
7165
7232
|
* @returns the current ValueAndUnit
|
|
@@ -7181,7 +7248,7 @@ declare module BABYLON.GUI {
|
|
|
7181
7248
|
/**
|
|
7182
7249
|
* Store a value parsed from a string
|
|
7183
7250
|
* @param source defines the source string
|
|
7184
|
-
* @returns true if the value was successfully parsed
|
|
7251
|
+
* @returns true if the value was successfully parsed and updated
|
|
7185
7252
|
*/
|
|
7186
7253
|
fromString(source: string | number): boolean;
|
|
7187
7254
|
private static _Regex;
|
|
@@ -7811,9 +7878,10 @@ declare module BABYLON.GUI {
|
|
|
7811
7878
|
* @param foreground defines a boolean indicating if the texture must be rendered in foreground (default is true)
|
|
7812
7879
|
* @param scene defines the hosting scene
|
|
7813
7880
|
* @param sampling defines the texture sampling mode (Texture.BILINEAR_SAMPLINGMODE by default)
|
|
7881
|
+
* @param adaptiveScaling defines whether to automatically scale root to match hardwarescaling (false by default)
|
|
7814
7882
|
* @returns a new AdvancedDynamicTexture
|
|
7815
7883
|
*/
|
|
7816
|
-
static CreateFullscreenUI(name: string, foreground?: boolean, scene?: BABYLON.Nullable<BABYLON.Scene>, sampling?: number): AdvancedDynamicTexture;
|
|
7884
|
+
static CreateFullscreenUI(name: string, foreground?: boolean, scene?: BABYLON.Nullable<BABYLON.Scene>, sampling?: number, adaptiveScaling?: boolean): AdvancedDynamicTexture;
|
|
7817
7885
|
}
|
|
7818
7886
|
}
|
|
7819
7887
|
declare module BABYLON.GUI {
|
|
@@ -7837,6 +7905,8 @@ declare module BABYLON.GUI {
|
|
|
7837
7905
|
parent: BABYLON.Nullable<Container>;
|
|
7838
7906
|
/** @hidden */
|
|
7839
7907
|
_currentMeasure: Measure;
|
|
7908
|
+
/** @hidden */
|
|
7909
|
+
_tempPaddingMeasure: Measure;
|
|
7840
7910
|
private _fontFamily;
|
|
7841
7911
|
private _fontStyle;
|
|
7842
7912
|
private _fontWeight;
|
|
@@ -7869,6 +7939,7 @@ declare module BABYLON.GUI {
|
|
|
7869
7939
|
_prevCurrentMeasureTransformedIntoGlobalSpace: Measure;
|
|
7870
7940
|
/** @hidden */
|
|
7871
7941
|
protected _cachedParentMeasure: Measure;
|
|
7942
|
+
private _descendentsOnlyPadding;
|
|
7872
7943
|
private _paddingLeft;
|
|
7873
7944
|
private _paddingRight;
|
|
7874
7945
|
private _paddingTop;
|
|
@@ -8171,6 +8242,12 @@ declare module BABYLON.GUI {
|
|
|
8171
8242
|
* Gets the current linked mesh (or null if none)
|
|
8172
8243
|
*/
|
|
8173
8244
|
get linkedMesh(): BABYLON.Nullable<BABYLON.TransformNode>;
|
|
8245
|
+
/**
|
|
8246
|
+
* Gets or sets a value indicating the padding should work like in CSS.
|
|
8247
|
+
* Basically, it will add the padding amount on each side of the parent control for its children.
|
|
8248
|
+
*/
|
|
8249
|
+
get descendentsOnlyPadding(): boolean;
|
|
8250
|
+
set descendentsOnlyPadding(value: boolean);
|
|
8174
8251
|
/**
|
|
8175
8252
|
* Gets or sets a value indicating the padding to use on the left of the control
|
|
8176
8253
|
* @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
@@ -8183,6 +8260,8 @@ declare module BABYLON.GUI {
|
|
|
8183
8260
|
*/
|
|
8184
8261
|
get paddingLeftInPixels(): number;
|
|
8185
8262
|
set paddingLeftInPixels(value: number);
|
|
8263
|
+
/** @hidden */
|
|
8264
|
+
get _paddingLeftInPixels(): number;
|
|
8186
8265
|
/**
|
|
8187
8266
|
* Gets or sets a value indicating the padding to use on the right of the control
|
|
8188
8267
|
* @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
@@ -8195,6 +8274,8 @@ declare module BABYLON.GUI {
|
|
|
8195
8274
|
*/
|
|
8196
8275
|
get paddingRightInPixels(): number;
|
|
8197
8276
|
set paddingRightInPixels(value: number);
|
|
8277
|
+
/** @hidden */
|
|
8278
|
+
get _paddingRightInPixels(): number;
|
|
8198
8279
|
/**
|
|
8199
8280
|
* Gets or sets a value indicating the padding to use on the top of the control
|
|
8200
8281
|
* @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
@@ -8207,6 +8288,8 @@ declare module BABYLON.GUI {
|
|
|
8207
8288
|
*/
|
|
8208
8289
|
get paddingTopInPixels(): number;
|
|
8209
8290
|
set paddingTopInPixels(value: number);
|
|
8291
|
+
/** @hidden */
|
|
8292
|
+
get _paddingTopInPixels(): number;
|
|
8210
8293
|
/**
|
|
8211
8294
|
* Gets or sets a value indicating the padding to use on the bottom of the control
|
|
8212
8295
|
* @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
@@ -8219,6 +8302,8 @@ declare module BABYLON.GUI {
|
|
|
8219
8302
|
*/
|
|
8220
8303
|
get paddingBottomInPixels(): number;
|
|
8221
8304
|
set paddingBottomInPixels(value: number);
|
|
8305
|
+
/** @hidden */
|
|
8306
|
+
get _paddingBottomInPixels(): number;
|
|
8222
8307
|
/**
|
|
8223
8308
|
* Gets or sets a value indicating the left coordinate of the control
|
|
8224
8309
|
* @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
@@ -9121,13 +9206,19 @@ declare module BABYLON.GUI {
|
|
|
9121
9206
|
private _manualWidth;
|
|
9122
9207
|
private _manualHeight;
|
|
9123
9208
|
private _doNotTrackManualChanges;
|
|
9209
|
+
private _spacing;
|
|
9124
9210
|
/**
|
|
9125
|
-
* Gets or sets a boolean indicating that
|
|
9211
|
+
* Gets or sets a boolean indicating that layout warnings should be ignored
|
|
9126
9212
|
*/
|
|
9127
9213
|
ignoreLayoutWarnings: boolean;
|
|
9128
9214
|
/** Gets or sets a boolean indicating if the stack panel is vertical or horizontal*/
|
|
9129
9215
|
get isVertical(): boolean;
|
|
9130
9216
|
set isVertical(value: boolean);
|
|
9217
|
+
/**
|
|
9218
|
+
* Gets or sets the spacing (in pixels) between each child.
|
|
9219
|
+
*/
|
|
9220
|
+
get spacing(): number;
|
|
9221
|
+
set spacing(value: number);
|
|
9131
9222
|
/**
|
|
9132
9223
|
* Gets or sets panel width.
|
|
9133
9224
|
* This value should not be set when in horizontal mode as it will be computed automatically
|
|
@@ -9491,7 +9582,9 @@ declare module BABYLON.GUI {
|
|
|
9491
9582
|
export class Grid extends Container {
|
|
9492
9583
|
name?: string | undefined;
|
|
9493
9584
|
private _rowDefinitions;
|
|
9585
|
+
private _rowDefinitionObservers;
|
|
9494
9586
|
private _columnDefinitions;
|
|
9587
|
+
private _columnDefinitionObservers;
|
|
9495
9588
|
private _cells;
|
|
9496
9589
|
private _childControls;
|
|
9497
9590
|
/**
|
|
@@ -9604,9 +9697,9 @@ declare module BABYLON.GUI {
|
|
|
9604
9697
|
/** Releases associated resources */
|
|
9605
9698
|
dispose(): void;
|
|
9606
9699
|
/**
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9700
|
+
* Serializes the current control
|
|
9701
|
+
* @param serializationObject defined the JSON serialized object
|
|
9702
|
+
*/
|
|
9610
9703
|
serialize(serializationObject: any): void;
|
|
9611
9704
|
/** @hidden */
|
|
9612
9705
|
_parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
|
|
@@ -10990,6 +11083,7 @@ declare module BABYLON.GUI {
|
|
|
10990
11083
|
private _rootContainer;
|
|
10991
11084
|
private _pointerObserver;
|
|
10992
11085
|
private _pointerOutObserver;
|
|
11086
|
+
private _customControlScaling;
|
|
10993
11087
|
/** @hidden */
|
|
10994
11088
|
_lastPickedControl: Control3D;
|
|
10995
11089
|
/** @hidden */
|
|
@@ -11000,6 +11094,7 @@ declare module BABYLON.GUI {
|
|
|
11000
11094
|
_lastControlDown: {
|
|
11001
11095
|
[pointerId: number]: Control3D;
|
|
11002
11096
|
};
|
|
11097
|
+
protected static MRTK_REALISTIC_SCALING: number;
|
|
11003
11098
|
/**
|
|
11004
11099
|
* BABYLON.Observable raised when the point picked by the pointer events changed
|
|
11005
11100
|
*/
|
|
@@ -11020,6 +11115,14 @@ declare module BABYLON.GUI {
|
|
|
11020
11115
|
get scene(): BABYLON.Scene;
|
|
11021
11116
|
/** Gets associated utility layer */
|
|
11022
11117
|
get utilityLayer(): BABYLON.Nullable<BABYLON.UtilityLayerRenderer>;
|
|
11118
|
+
/** Gets the scaling for all UI elements owned by this manager */
|
|
11119
|
+
get controlScaling(): number;
|
|
11120
|
+
/** Sets the scaling adjustment for all UI elements owned by this manager */
|
|
11121
|
+
set controlScaling(newScale: number);
|
|
11122
|
+
/** Gets if controls attached to this manager are realistically sized, based on the fact that 1 unit length is 1 meter */
|
|
11123
|
+
get useRealisticScaling(): boolean;
|
|
11124
|
+
/** Sets if controls attached to this manager are realistically sized, based on the fact that 1 unit length is 1 meter */
|
|
11125
|
+
set useRealisticScaling(newValue: boolean);
|
|
11023
11126
|
/**
|
|
11024
11127
|
* Creates a new GUI3DManager
|
|
11025
11128
|
* @param scene
|
|
@@ -11152,6 +11255,8 @@ declare module BABYLON.GUI {
|
|
|
11152
11255
|
private _enterCount;
|
|
11153
11256
|
private _downPointerIds;
|
|
11154
11257
|
private _isVisible;
|
|
11258
|
+
/** @hidden */
|
|
11259
|
+
_isScaledByManager: boolean;
|
|
11155
11260
|
/** Gets or sets the control position in world space */
|
|
11156
11261
|
get position(): BABYLON.Vector3;
|
|
11157
11262
|
set position(value: BABYLON.Vector3);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
},
|
|
5
5
|
"name": "babylonjs-gui",
|
|
6
6
|
"description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.",
|
|
7
|
-
"version": "5.0.0-alpha.
|
|
7
|
+
"version": "5.0.0-alpha.63",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/BabylonJS/Babylon.js.git"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"babylonjs": "5.0.0-alpha.
|
|
31
|
+
"babylonjs": "5.0.0-alpha.63"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": "*"
|