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.
@@ -238,10 +238,12 @@ declare module BABYLON {
238
238
  globalState?: GlobalState;
239
239
  onUpdateRequiredObservable?: Observable<void>;
240
240
  }
241
- export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
241
+ interface IGridPropertyComponentState {
242
+ removingColumn: boolean;
243
+ removingRow: boolean;
244
+ }
245
+ export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps, IGridPropertyComponentState> {
242
246
  constructor(props: IGridPropertyGridComponentProps);
243
- private _removingColumn;
244
- private _removingRow;
245
247
  private _previousGrid;
246
248
  private _rowDefinitions;
247
249
  private _rowEditFlags;
@@ -255,6 +257,9 @@ declare module BABYLON {
255
257
  setRowValues(): void;
256
258
  setColumnValues(): void;
257
259
  renderColumns(): JSX.Element[];
260
+ parsePercentage(value: string): number;
261
+ isCloseTo(value: number, expected: number, epsilon?: number): boolean;
262
+ adjustPercentages(definitions: string[], editFlags: boolean[]): string[];
258
263
  resizeRow(): void;
259
264
  resizeColumn(): void;
260
265
  checkValue(value: string, percent: boolean): string;
@@ -659,6 +664,7 @@ declare module BABYLON {
659
664
  */
660
665
  static GetScale(node: BABYLON.GUI.Control, relative?: boolean): Vector2;
661
666
  static GetRotation(node: BABYLON.GUI.Control, relative?: boolean): number;
667
+ static GetParentSizes(guiControl: BABYLON.GUI.Control): BABYLON.GUI.Measure;
662
668
  /**
663
669
  * This function calculates a local matrix for a node, including it's full transformation and pivot point
664
670
  *
@@ -854,6 +860,10 @@ declare module BABYLON {
854
860
  appendBlock(guiElement: BABYLON.GUI.Control): BABYLON.GUI.Control;
855
861
  private parent;
856
862
  private _canClone;
863
+ private _controlToLinkedMeshMap;
864
+ private _observersMap;
865
+ private _saveObservables;
866
+ private _restoreObservables;
857
867
  private _copyEditorGUIToLiveGUI;
858
868
  private _reorderGrid;
859
869
  private _isNotChildInsert;
@@ -3101,6 +3111,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3101
3111
  multilines?: boolean;
3102
3112
  throttlePropertyChangedNotification?: boolean;
3103
3113
  throttlePropertyChangedNotificationDelay?: number;
3114
+ disabled?: boolean;
3104
3115
  }
3105
3116
  export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
3106
3117
  value: string;