@babylonjs/gui-editor 5.19.0 → 5.22.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.
@@ -293,6 +293,7 @@ interface IGridPropertyGridComponentProps {
|
|
293
293
|
grids: Grid[];
|
294
294
|
lockObject: LockObject;
|
295
295
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
296
|
+
onUpdateRequiredObservable?: Observable<void>;
|
296
297
|
}
|
297
298
|
export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
|
298
299
|
constructor(props: IGridPropertyGridComponentProps);
|
@@ -648,6 +649,7 @@ export class SceneExplorerComponent extends React.Component<ISceneExplorerCompon
|
|
648
649
|
private _onParrentingChangeObserver;
|
649
650
|
private _onNewSceneObserver;
|
650
651
|
private _onPropertyChangedObservable;
|
652
|
+
private _onUpdateRequiredObserver;
|
651
653
|
constructor(props: ISceneExplorerComponentProps);
|
652
654
|
componentDidMount(): void;
|
653
655
|
componentWillUnmount(): void;
|
@@ -996,6 +998,8 @@ export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps
|
|
996
998
|
private _pointerTravelDistance;
|
997
999
|
private _processSelectionOnUp;
|
998
1000
|
private _visibleRegionContainer;
|
1001
|
+
private _currLeft;
|
1002
|
+
private _currTop;
|
999
1003
|
get visibleRegionContainer(): Container;
|
1000
1004
|
private _panAndZoomContainer;
|
1001
1005
|
get panAndZoomContainer(): Container;
|
@@ -1055,7 +1059,7 @@ export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps
|
|
1055
1059
|
processSelection(): void;
|
1056
1060
|
onDown(evt: React.PointerEvent<HTMLElement>): void;
|
1057
1061
|
onUp(evt: React.PointerEvent): void;
|
1058
|
-
createGUICanvas(): void;
|
1062
|
+
createGUICanvas(embed?: boolean): void;
|
1059
1063
|
synchronizeLiveGUI(): void;
|
1060
1064
|
addControls(scene: Scene): void;
|
1061
1065
|
panning(): void;
|
@@ -1114,6 +1118,7 @@ export class GlobalState {
|
|
1114
1118
|
private _backgroundColor;
|
1115
1119
|
private _outlines;
|
1116
1120
|
keys: KeyboardManager;
|
1121
|
+
private _fromPG;
|
1117
1122
|
/** DO NOT USE: in the process of removing */
|
1118
1123
|
blockKeyboardEvents: boolean;
|
1119
1124
|
onOutlineChangedObservable: Observable<void>;
|
@@ -1165,6 +1170,8 @@ export class GlobalState {
|
|
1165
1170
|
/** adds copy, cut and paste listeners to the host window */
|
1166
1171
|
registerEventListeners(): void;
|
1167
1172
|
get backgroundColor(): Color3;
|
1173
|
+
get fromPG(): boolean;
|
1174
|
+
set fromPG(value: boolean);
|
1168
1175
|
set backgroundColor(value: Color3);
|
1169
1176
|
get outlines(): boolean;
|
1170
1177
|
set outlines(value: boolean);
|
@@ -1205,8 +1212,9 @@ export class GUIEditor {
|
|
1205
1212
|
/**
|
1206
1213
|
* Show the gui editor
|
1207
1214
|
* @param options defines the options to use to configure the gui editor
|
1215
|
+
* @param embed defines whether editor is being opened from the Playground
|
1208
1216
|
*/
|
1209
|
-
static Show(options: IGUIEditorOptions): Promise<void>;
|
1217
|
+
static Show(options: IGUIEditorOptions, embed?: boolean): Promise<void>;
|
1210
1218
|
}
|
1211
1219
|
|
1212
1220
|
}
|
@@ -1301,22 +1309,6 @@ export class Portal extends React.Component<IPortalProps> {
|
|
1301
1309
|
}
|
1302
1310
|
export {};
|
1303
1311
|
|
1304
|
-
}
|
1305
|
-
declare module "@babylonjs/gui-editor/sharedComponents/messageDialog" {
|
1306
|
-
import * as React from "react";
|
1307
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
1308
|
-
interface IMessageDialogComponentProps {
|
1309
|
-
globalState: GlobalState;
|
1310
|
-
}
|
1311
|
-
export class MessageDialogComponent extends React.Component<IMessageDialogComponentProps, {
|
1312
|
-
message: string;
|
1313
|
-
isError: boolean;
|
1314
|
-
}> {
|
1315
|
-
constructor(props: IMessageDialogComponentProps);
|
1316
|
-
render(): JSX.Element | null;
|
1317
|
-
}
|
1318
|
-
export {};
|
1319
|
-
|
1320
1312
|
}
|
1321
1313
|
declare module "@babylonjs/gui-editor/tools" {
|
1322
1314
|
import { Control } from "@babylonjs/gui/2D/controls/control";
|
@@ -1343,6 +1335,7 @@ interface IGraphEditorProps {
|
|
1343
1335
|
interface IGraphEditorState {
|
1344
1336
|
showPreviewPopUp: boolean;
|
1345
1337
|
toolbarExpand: boolean;
|
1338
|
+
message: string;
|
1346
1339
|
}
|
1347
1340
|
export class WorkbenchEditor extends React.Component<IGraphEditorProps, IGraphEditorState> {
|
1348
1341
|
private _moveInProgress;
|
@@ -1351,6 +1344,7 @@ export class WorkbenchEditor extends React.Component<IGraphEditorProps, IGraphEd
|
|
1351
1344
|
private _popUpWindow;
|
1352
1345
|
private _draggedItem;
|
1353
1346
|
private _rootRef;
|
1347
|
+
private _onErrorMessageObserver;
|
1354
1348
|
componentDidMount(): void;
|
1355
1349
|
componentWillUnmount(): void;
|
1356
1350
|
addToolControls: (evt: KeyboardEvent) => void;
|
@@ -1504,6 +1498,15 @@ export type LabelProps = {
|
|
1504
1498
|
};
|
1505
1499
|
export const Label: React.FC<LabelProps>;
|
1506
1500
|
|
1501
|
+
}
|
1502
|
+
declare module "@babylonjs/gui-editor/components/MessageDialog" {
|
1503
|
+
import * as React from "react";
|
1504
|
+
export interface MessageDialogProps {
|
1505
|
+
message: string;
|
1506
|
+
isError: boolean;
|
1507
|
+
}
|
1508
|
+
export const MessageDialog: React.FC<MessageDialogProps>;
|
1509
|
+
|
1507
1510
|
}
|
1508
1511
|
declare module "@babylonjs/gui-editor/components/Toggle" {
|
1509
1512
|
/// <reference types="react" />
|
@@ -3038,10 +3041,10 @@ export class StateManager {
|
|
3038
3041
|
getEditorDataMap: () => {
|
3039
3042
|
[key: number]: number;
|
3040
3043
|
};
|
3041
|
-
createDefaultInputData: (rootData: any, portData: IPortData, nodeContainer: INodeContainer) => {
|
3044
|
+
createDefaultInputData: (rootData: any, portData: IPortData, nodeContainer: INodeContainer) => Nullable<{
|
3042
3045
|
data: INodeData;
|
3043
3046
|
name: string;
|
3044
|
-
}
|
3047
|
+
}>;
|
3045
3048
|
}
|
3046
3049
|
|
3047
3050
|
}
|
@@ -3119,6 +3122,18 @@ const _default: {
|
|
3119
3122
|
export default _default;
|
3120
3123
|
export const Default: any;
|
3121
3124
|
|
3125
|
+
}
|
3126
|
+
declare module "@babylonjs/gui-editor/stories/MessageDialog.stories" {
|
3127
|
+
/// <reference types="react" />
|
3128
|
+
import { MessageDialogProps } from "@babylonjs/gui-editor/components/MessageDialog";
|
3129
|
+
const _default: {
|
3130
|
+
title: string;
|
3131
|
+
component: import("react").FC<MessageDialogProps>;
|
3132
|
+
};
|
3133
|
+
export default _default;
|
3134
|
+
export const NoError: any;
|
3135
|
+
export const Error: any;
|
3136
|
+
|
3122
3137
|
}
|
3123
3138
|
declare module "@babylonjs/gui-editor/stories/Toggle.stories" {
|
3124
3139
|
/// <reference types="react" />
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/gui-editor",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.22.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.22.0",
|
28
|
+
"@babylonjs/gui": "^5.22.0",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2",
|
31
31
|
"rimraf": "^3.0.2",
|