@babylonjs/gui-editor 5.19.0 → 5.20.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.
@@ -996,6 +996,8 @@ export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps
996
996
  private _pointerTravelDistance;
997
997
  private _processSelectionOnUp;
998
998
  private _visibleRegionContainer;
999
+ private _currLeft;
1000
+ private _currTop;
999
1001
  get visibleRegionContainer(): Container;
1000
1002
  private _panAndZoomContainer;
1001
1003
  get panAndZoomContainer(): Container;
@@ -1055,7 +1057,7 @@ export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps
1055
1057
  processSelection(): void;
1056
1058
  onDown(evt: React.PointerEvent<HTMLElement>): void;
1057
1059
  onUp(evt: React.PointerEvent): void;
1058
- createGUICanvas(): void;
1060
+ createGUICanvas(embed?: boolean): void;
1059
1061
  synchronizeLiveGUI(): void;
1060
1062
  addControls(scene: Scene): void;
1061
1063
  panning(): void;
@@ -1114,6 +1116,7 @@ export class GlobalState {
1114
1116
  private _backgroundColor;
1115
1117
  private _outlines;
1116
1118
  keys: KeyboardManager;
1119
+ private _fromPG;
1117
1120
  /** DO NOT USE: in the process of removing */
1118
1121
  blockKeyboardEvents: boolean;
1119
1122
  onOutlineChangedObservable: Observable<void>;
@@ -1165,6 +1168,8 @@ export class GlobalState {
1165
1168
  /** adds copy, cut and paste listeners to the host window */
1166
1169
  registerEventListeners(): void;
1167
1170
  get backgroundColor(): Color3;
1171
+ get fromPG(): boolean;
1172
+ set fromPG(value: boolean);
1168
1173
  set backgroundColor(value: Color3);
1169
1174
  get outlines(): boolean;
1170
1175
  set outlines(value: boolean);
@@ -1205,8 +1210,9 @@ export class GUIEditor {
1205
1210
  /**
1206
1211
  * Show the gui editor
1207
1212
  * @param options defines the options to use to configure the gui editor
1213
+ * @param embed defines whether editor is being opened from the Playground
1208
1214
  */
1209
- static Show(options: IGUIEditorOptions): Promise<void>;
1215
+ static Show(options: IGUIEditorOptions, embed?: boolean): Promise<void>;
1210
1216
  }
1211
1217
 
1212
1218
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/gui-editor",
3
- "version": "5.19.0",
3
+ "version": "5.20.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.19.0",
28
- "@babylonjs/gui": "^5.19.0",
27
+ "@babylonjs/core": "^5.20.0",
28
+ "@babylonjs/gui": "^5.20.0",
29
29
  "react": "^17.0.2",
30
30
  "react-dom": "^17.0.2",
31
31
  "rimraf": "^3.0.2",