@babylonjs/gui-editor 5.0.0-alpha.61 → 5.0.0-alpha.62

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.
@@ -102,7 +102,6 @@ declare module "@babylonjs/gui-editor/diagram/workbench" {
102
102
  resizeGuiTexture(newvalue: Vector2): void;
103
103
  findNodeFromGuiElement(guiControl: Control): Control;
104
104
  appendBlock(guiElement: Control): Control;
105
- isContainer(guiControl: Control): boolean;
106
105
  createNewGuiNode(guiControl: Control): Control;
107
106
  private parent;
108
107
  private _convertToPixels;
@@ -118,7 +117,7 @@ declare module "@babylonjs/gui-editor/diagram/workbench" {
118
117
  onDown(evt: React.PointerEvent<HTMLElement>): void;
119
118
  isUp: boolean;
120
119
  onUp(evt: React.PointerEvent): void;
121
- createGUICanvas(): void;
120
+ createGUICanvas(): Promise<void>;
122
121
  addControls(scene: Scene, camera: ArcRotateCamera): void;
123
122
  getPosition(scene: Scene, camera: ArcRotateCamera, plane: Plane): Vector3;
124
123
  panning(newPos: Vector3, initialPos: Vector3, inertia: number, ref: Vector3): Vector3;
@@ -436,6 +435,8 @@ declare module "@babylonjs/gui-editor/components/commandButtonComponent" {
436
435
  iconLabel?: string;
437
436
  isActive: boolean;
438
437
  onClick: () => void;
438
+ altStyle?: boolean;
439
+ disabled?: boolean;
439
440
  }
440
441
  export class CommandButtonComponent extends React.Component<ICommandButtonComponentProps> {
441
442
  constructor(props: ICommandButtonComponentProps);
@@ -546,7 +547,7 @@ declare module "@babylonjs/gui-editor/sharedUiComponents/colorPicker/colorPicker
546
547
  }
547
548
  declare module "@babylonjs/gui-editor/sharedUiComponents/lines/colorPickerComponent" {
548
549
  import * as React from "react";
549
- import { Color4, Color3 } from '@babylonjs/core/Maths/math.color';
550
+ import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
550
551
  export interface IColorPickerComponentProps {
551
552
  value: Color4 | Color3;
552
553
  linearHint?: boolean;
@@ -575,7 +576,7 @@ declare module "@babylonjs/gui-editor/sharedUiComponents/lines/color3LineCompone
575
576
  import * as React from "react";
576
577
  import { Observable } from "@babylonjs/core/Misc/observable";
577
578
  import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedUiComponents/propertyChangedEvent";
578
- import { Color3, Color4 } from '@babylonjs/core/Maths/math.color';
579
+ import { Color3, Color4 } from "@babylonjs/core/Maths/math.color";
579
580
  import { LockObject } from "@babylonjs/gui-editor/sharedUiComponents/tabs/propertyGrids/lockObject";
580
581
  export interface IColor3LineComponentProps {
581
582
  label: string;
@@ -853,6 +854,8 @@ declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/g
853
854
  private _columnDefinitions;
854
855
  private _editedRow;
855
856
  private _editedColumn;
857
+ private _rowChild;
858
+ private _columnChild;
856
859
  renderRows(): JSX.Element[];
857
860
  setRowValues(): void;
858
861
  setColumnValues(): void;
@@ -861,6 +864,7 @@ declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/g
861
864
  resizeColumn(): void;
862
865
  checkValue(value: string, percent: boolean): string;
863
866
  checkPercentage(value: string): boolean;
867
+ resetValues(): void;
864
868
  render(): JSX.Element;
865
869
  }
866
870
  }
@@ -1092,7 +1096,7 @@ declare module "@babylonjs/gui-editor/components/sceneExplorer/extensionsCompone
1092
1096
  declare module "@babylonjs/gui-editor/components/sceneExplorer/entities/gui/controlTreeItemComponent" {
1093
1097
  import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
1094
1098
  import { Control } from "@babylonjs/gui/2D/controls/control";
1095
- import * as React from 'react';
1099
+ import * as React from "react";
1096
1100
  import { DragOverLocation, GlobalState } from "@babylonjs/gui-editor/globalState";
1097
1101
  interface IControlTreeItemComponentProps {
1098
1102
  control: Control;
@@ -1360,7 +1364,7 @@ declare module "@babylonjs/gui-editor/guiEditor" {
1360
1364
  * Show the gui editor
1361
1365
  * @param options defines the options to use to configure the gui editor
1362
1366
  */
1363
- static Show(options: IGUIEditorOptions): void;
1367
+ static Show(options: IGUIEditorOptions): Promise<void>;
1364
1368
  }
1365
1369
  }
1366
1370
  declare module "@babylonjs/gui-editor/index" {
@@ -1714,7 +1718,7 @@ declare module "@babylonjs/gui-editor/sharedUiComponents/lines/hexLineComponent"
1714
1718
  }
1715
1719
  }
1716
1720
  declare module "@babylonjs/gui-editor/sharedUiComponents/lines/iconButtonLineComponent" {
1717
- import * as React from 'react';
1721
+ import * as React from "react";
1718
1722
  export interface IIconButtonLineComponentProps {
1719
1723
  icon: string;
1720
1724
  onClick: () => void;
package/package.json CHANGED
@@ -4,14 +4,14 @@
4
4
  },
5
5
  "name": "@babylonjs/gui-editor",
6
6
  "description": "The Babylon.js GUI editor.",
7
- "version": "5.0.0-alpha.61",
7
+ "version": "5.0.0-alpha.62",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/BabylonJS/Babylon.js.git"
11
11
  },
12
12
  "license": "Apache-2.0",
13
13
  "dependencies": {
14
- "@babylonjs/core": "5.0.0-alpha.61",
14
+ "@babylonjs/core": "5.0.0-alpha.62",
15
15
  "tslib": "^2.3.1"
16
16
  },
17
17
  "files": [