@babylonjs/gui-editor 5.52.0 → 5.53.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -336,10 +336,12 @@ interface IGridPropertyGridComponentProps {
|
|
336
336
|
globalState?: GlobalState;
|
337
337
|
onUpdateRequiredObservable?: Observable<void>;
|
338
338
|
}
|
339
|
-
|
339
|
+
interface IGridPropertyComponentState {
|
340
|
+
removingColumn: boolean;
|
341
|
+
removingRow: boolean;
|
342
|
+
}
|
343
|
+
export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps, IGridPropertyComponentState> {
|
340
344
|
constructor(props: IGridPropertyGridComponentProps);
|
341
|
-
private _removingColumn;
|
342
|
-
private _removingRow;
|
343
345
|
private _previousGrid;
|
344
346
|
private _rowDefinitions;
|
345
347
|
private _rowEditFlags;
|
@@ -353,6 +355,9 @@ export class GridPropertyGridComponent extends React.Component<IGridPropertyGrid
|
|
353
355
|
setRowValues(): void;
|
354
356
|
setColumnValues(): void;
|
355
357
|
renderColumns(): JSX.Element[];
|
358
|
+
parsePercentage(value: string): number;
|
359
|
+
isCloseTo(value: number, expected: number, epsilon?: number): boolean;
|
360
|
+
adjustPercentages(definitions: string[], editFlags: boolean[]): string[];
|
356
361
|
resizeRow(): void;
|
357
362
|
resizeColumn(): void;
|
358
363
|
checkValue(value: string, percent: boolean): string;
|
@@ -876,6 +881,7 @@ import { Vector2 } from "@babylonjs/core/Maths/math.vector";
|
|
876
881
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
877
882
|
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
878
883
|
import { PropertyChangedEvent } from "@babylonjs/gui-editor/propertyChangedEvent";
|
884
|
+
import { Measure } from "@babylonjs/gui/2D/measure";
|
879
885
|
export type DimensionProperties = "width" | "left" | "height" | "top" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingBottom" | "fontSize" | "linkOffsetX" | "linkOffsetY";
|
880
886
|
export class Rect {
|
881
887
|
top: number;
|
@@ -899,6 +905,7 @@ export class CoordinateHelper {
|
|
899
905
|
*/
|
900
906
|
static GetScale(node: Control, relative?: boolean): Vector2;
|
901
907
|
static GetRotation(node: Control, relative?: boolean): number;
|
908
|
+
static GetParentSizes(guiControl: Control): Measure;
|
902
909
|
/**
|
903
910
|
* This function calculates a local matrix for a node, including it's full transformation and pivot point
|
904
911
|
*
|
@@ -1123,6 +1130,10 @@ export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps
|
|
1123
1130
|
appendBlock(guiElement: Control): Control;
|
1124
1131
|
private parent;
|
1125
1132
|
private _canClone;
|
1133
|
+
private _controlToLinkedMeshMap;
|
1134
|
+
private _observersMap;
|
1135
|
+
private _saveObservables;
|
1136
|
+
private _restoreObservables;
|
1126
1137
|
private _copyEditorGUIToLiveGUI;
|
1127
1138
|
private _reorderGrid;
|
1128
1139
|
private _isNotChildInsert;
|
@@ -3222,6 +3233,7 @@ export interface ITextInputLineComponentProps {
|
|
3222
3233
|
multilines?: boolean;
|
3223
3234
|
throttlePropertyChangedNotification?: boolean;
|
3224
3235
|
throttlePropertyChangedNotificationDelay?: number;
|
3236
|
+
disabled?: boolean;
|
3225
3237
|
}
|
3226
3238
|
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
|
3227
3239
|
value: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/gui-editor",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.53.1",
|
4
4
|
"main": "dist/babylon.guiEditor.max.js",
|
5
5
|
"module": "dist/babylon.guiEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.guiEditor.max.js",
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"@types/react-dom": ">=16.0.9"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
|
-
"@babylonjs/core": "^5.
|
28
|
-
"@babylonjs/gui": "^5.
|
27
|
+
"@babylonjs/core": "^5.53.1",
|
28
|
+
"@babylonjs/gui": "^5.53.1",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2",
|
31
31
|
"rimraf": "^3.0.2",
|