@babylonjs/gui-editor 5.53.0 → 5.54.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.
@@ -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
|
*
|
@@ -3226,6 +3233,7 @@ export interface ITextInputLineComponentProps {
|
|
3226
3233
|
multilines?: boolean;
|
3227
3234
|
throttlePropertyChangedNotification?: boolean;
|
3228
3235
|
throttlePropertyChangedNotificationDelay?: number;
|
3236
|
+
disabled?: boolean;
|
3229
3237
|
}
|
3230
3238
|
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
|
3231
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.54.0",
|
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.54.0",
|
28
|
+
"@babylonjs/gui": "^5.54.0",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2",
|
31
31
|
"rimraf": "^3.0.2",
|