@babylonjs/gui-editor 5.14.1 → 5.16.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.
@@ -737,6 +737,7 @@ export interface ITreeItemSelectableComponentProps {
|
|
737
737
|
filter: Nullable<string>;
|
738
738
|
}
|
739
739
|
export interface ITreeItemSelectableComponentState {
|
740
|
+
isExpanded: boolean;
|
740
741
|
dragOver: boolean;
|
741
742
|
isSelected: boolean;
|
742
743
|
isHovered: boolean;
|
@@ -885,7 +886,6 @@ export class GizmoGeneric extends React.Component<IGuiGizmoProps, IGuiGizmoState
|
|
885
886
|
componentWillUnmount(): void;
|
886
887
|
/**
|
887
888
|
* Update the gizmo's positions
|
888
|
-
* @param force should the update be forced. otherwise it will be updated only when the pointer is down
|
889
889
|
*/
|
890
890
|
updateGizmo(): void;
|
891
891
|
private _onUp;
|
@@ -1336,6 +1336,7 @@ interface IGraphEditorProps {
|
|
1336
1336
|
}
|
1337
1337
|
interface IGraphEditorState {
|
1338
1338
|
showPreviewPopUp: boolean;
|
1339
|
+
toolbarExpand: boolean;
|
1339
1340
|
}
|
1340
1341
|
export class WorkbenchEditor extends React.Component<IGraphEditorProps, IGraphEditorState> {
|
1341
1342
|
private _moveInProgress;
|
@@ -1356,8 +1357,14 @@ export class WorkbenchEditor extends React.Component<IGraphEditorProps, IGraphEd
|
|
1356
1357
|
handleClosingPopUp: () => void;
|
1357
1358
|
createPopupWindow: (title: string, windowVariableName: string, width?: number, height?: number) => Window | null;
|
1358
1359
|
copyStyles: (sourceDoc: HTMLDocument, targetDoc: HTMLDocument) => void;
|
1360
|
+
switchExpandedState(): void;
|
1359
1361
|
render(): JSX.Element;
|
1360
1362
|
onCreate(value: string): Control;
|
1363
|
+
createBlackLine(): JSX.Element;
|
1364
|
+
createToolbarHelper(ct: {
|
1365
|
+
className: string;
|
1366
|
+
icon: string;
|
1367
|
+
}[]): JSX.Element[];
|
1361
1368
|
createToolbar(): JSX.Element;
|
1362
1369
|
}
|
1363
1370
|
export {};
|
@@ -1748,7 +1755,7 @@ interface IFloatLineComponentProps {
|
|
1748
1755
|
label: string;
|
1749
1756
|
target: any;
|
1750
1757
|
propertyName: string;
|
1751
|
-
lockObject
|
1758
|
+
lockObject: LockObject;
|
1752
1759
|
onChange?: (newValue: number) => void;
|
1753
1760
|
isInteger?: boolean;
|
1754
1761
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
@@ -2122,7 +2129,7 @@ interface ISliderLineComponentProps {
|
|
2122
2129
|
margin?: boolean;
|
2123
2130
|
icon?: string;
|
2124
2131
|
iconLabel?: string;
|
2125
|
-
lockObject
|
2132
|
+
lockObject: LockObject;
|
2126
2133
|
unit?: React.ReactNode;
|
2127
2134
|
}
|
2128
2135
|
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
@@ -2502,6 +2509,8 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
2502
2509
|
get frameContainer(): HTMLDivElement;
|
2503
2510
|
private _selectedFrameAndNodesConflict;
|
2504
2511
|
constructor(props: IGraphCanvasComponentProps);
|
2512
|
+
populateConnectedEntriesBeforeRemoval(item: GraphNode, items: GraphNode[], inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
2513
|
+
automaticRewire(inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
2505
2514
|
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: INodeData) => any, rootElement: HTMLDivElement): void;
|
2506
2515
|
pasteSelection(copiedNodes: GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: INodeData) => any, selectNew?: boolean): GraphNode[];
|
2507
2516
|
reconnectNewNodes(nodeIndex: number, newNodes: GraphNode[], sourceNodes: GraphNode[], done: boolean[]): void;
|
@@ -2704,7 +2713,8 @@ export class GraphNode {
|
|
2704
2713
|
content: INodeData;
|
2705
2714
|
private _visual;
|
2706
2715
|
private _headerContainer;
|
2707
|
-
private
|
2716
|
+
private _headerIcon;
|
2717
|
+
private _headerIconImg;
|
2708
2718
|
private _header;
|
2709
2719
|
private _connections;
|
2710
2720
|
private _inputsContainer;
|
@@ -2800,7 +2810,7 @@ export interface INodeData {
|
|
2800
2810
|
uniqueId: number;
|
2801
2811
|
isInput: boolean;
|
2802
2812
|
comments: string;
|
2803
|
-
|
2813
|
+
prepareHeaderIcon: (iconDiv: HTMLDivElement, img: HTMLImageElement) => void;
|
2804
2814
|
getClassName: () => string;
|
2805
2815
|
dispose: () => void;
|
2806
2816
|
getPortByName: (name: string) => Nullable<IPortData>;
|
@@ -2861,6 +2871,7 @@ export interface IPortData {
|
|
2861
2871
|
hasEndpoints: boolean;
|
2862
2872
|
endpoints: Nullable<IPortData[]>;
|
2863
2873
|
updateDisplayName: (newName: string) => void;
|
2874
|
+
canConnectTo: (port: IPortData) => boolean;
|
2864
2875
|
connectTo: (port: IPortData) => void;
|
2865
2876
|
disconnectFrom: (port: IPortData) => void;
|
2866
2877
|
checkCompatibilityState(port: IPortData): number;
|
@@ -3004,7 +3015,7 @@ export class StateManager {
|
|
3004
3015
|
targetY: number;
|
3005
3016
|
needRepositioning?: boolean | undefined;
|
3006
3017
|
}>;
|
3007
|
-
exportData: (data: any) => string;
|
3018
|
+
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
3008
3019
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
3009
3020
|
applyNodePortDesign: (data: IPortData, element: HTMLElement, img: HTMLImageElement) => void;
|
3010
3021
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/gui-editor",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.16.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.16.0",
|
28
|
+
"@babylonjs/gui": "^5.16.0",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2",
|
31
31
|
"rimraf": "^3.0.2",
|