@babylonjs/gui-editor 6.15.0 → 6.16.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.
@@ -2843,7 +2843,7 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
|
|
2843
2843
|
private _store;
|
2844
2844
|
constructor(props: IFloatLineComponentProps);
|
2845
2845
|
componentWillUnmount(): void;
|
2846
|
-
getValueString(value: any): string;
|
2846
|
+
getValueString(value: any, props: IFloatLineComponentProps): string;
|
2847
2847
|
shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
|
2848
2848
|
value: string;
|
2849
2849
|
dragging: boolean;
|
@@ -3795,6 +3795,7 @@ export class GraphNode {
|
|
3795
3795
|
private _outputsContainer;
|
3796
3796
|
private _content;
|
3797
3797
|
private _comments;
|
3798
|
+
private _executionTime;
|
3798
3799
|
private _selectionBorder;
|
3799
3800
|
private _inputPorts;
|
3800
3801
|
private _outputPorts;
|
@@ -3810,6 +3811,7 @@ export class GraphNode {
|
|
3810
3811
|
private _onSelectionBoxMovedObserver;
|
3811
3812
|
private _onFrameCreatedObserver;
|
3812
3813
|
private _onUpdateRequiredObserver;
|
3814
|
+
private _onHighlightNodeObserver;
|
3813
3815
|
private _ownerCanvas;
|
3814
3816
|
private _isSelected;
|
3815
3817
|
private _displayManager;
|
@@ -3858,6 +3860,8 @@ export class GraphNode {
|
|
3858
3860
|
|
3859
3861
|
}
|
3860
3862
|
declare module "@babylonjs/gui-editor/nodeGraphSystem/interfaces/displayManager" {
|
3863
|
+
import { Nullable } from "@babylonjs/core/types";
|
3864
|
+
import { StateManager } from "@babylonjs/gui-editor/nodeGraphSystem/stateManager";
|
3861
3865
|
import { INodeData } from "@babylonjs/gui-editor/nodeGraphSystem/interfaces/nodeData";
|
3862
3866
|
import { IPortData } from "@babylonjs/gui-editor/nodeGraphSystem/interfaces/portData";
|
3863
3867
|
export interface VisualContentDescription {
|
@@ -3870,6 +3874,8 @@ export interface IDisplayManager {
|
|
3870
3874
|
updateFullVisualContent?(data: INodeData, visualContent: VisualContentDescription): void;
|
3871
3875
|
getBackgroundColor(data: INodeData): string;
|
3872
3876
|
getHeaderText(data: INodeData): string;
|
3877
|
+
onSelectionChanged?(data: INodeData, selectedData: Nullable<INodeData>, manager: StateManager): void;
|
3878
|
+
onDispose?(nodeData: INodeData, manager: StateManager): void;
|
3873
3879
|
}
|
3874
3880
|
|
3875
3881
|
}
|
@@ -3891,12 +3897,16 @@ export interface INodeData {
|
|
3891
3897
|
uniqueId: number;
|
3892
3898
|
isInput: boolean;
|
3893
3899
|
comments: string;
|
3900
|
+
executionTime?: number;
|
3901
|
+
refreshCallback?: () => void;
|
3894
3902
|
prepareHeaderIcon: (iconDiv: HTMLDivElement, img: HTMLImageElement) => void;
|
3895
3903
|
getClassName: () => string;
|
3896
3904
|
dispose: () => void;
|
3897
3905
|
getPortByName: (name: string) => Nullable<IPortData>;
|
3898
3906
|
inputs: IPortData[];
|
3899
3907
|
outputs: IPortData[];
|
3908
|
+
invisibleEndpoints?: Nullable<any[]>;
|
3909
|
+
isConnectedToOutput?: () => boolean;
|
3900
3910
|
}
|
3901
3911
|
|
3902
3912
|
}
|
@@ -4126,11 +4136,11 @@ export class StateManager {
|
|
4126
4136
|
onFrameCreatedObservable: Observable<GraphFrame>;
|
4127
4137
|
onUpdateRequiredObservable: Observable<any>;
|
4128
4138
|
onGraphNodeRemovalObservable: Observable<GraphNode>;
|
4129
|
-
onSelectionBoxMoved: Observable<
|
4139
|
+
onSelectionBoxMoved: Observable<DOMRect | ClientRect>;
|
4130
4140
|
onCandidateLinkMoved: Observable<Nullable<Vector2>>;
|
4131
4141
|
onCandidatePortSelectedObservable: Observable<Nullable<FrameNodePort | NodePort>>;
|
4132
4142
|
onNewNodeCreatedObservable: Observable<GraphNode>;
|
4133
|
-
onRebuildRequiredObservable: Observable<
|
4143
|
+
onRebuildRequiredObservable: Observable<void>;
|
4134
4144
|
onErrorMessageDialogRequiredObservable: Observable<string>;
|
4135
4145
|
onExposePortOnFrameObservable: Observable<GraphNode>;
|
4136
4146
|
onGridSizeChanged: Observable<void>;
|
@@ -4141,6 +4151,10 @@ export class StateManager {
|
|
4141
4151
|
needRepositioning?: boolean | undefined;
|
4142
4152
|
smartAdd?: boolean | undefined;
|
4143
4153
|
}>;
|
4154
|
+
onHighlightNodeObservable: Observable<{
|
4155
|
+
data: any;
|
4156
|
+
active: boolean;
|
4157
|
+
}>;
|
4144
4158
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
4145
4159
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
4146
4160
|
applyNodePortDesign: (data: IPortData, element: HTMLElement, img: HTMLImageElement) => void;
|
@@ -4156,11 +4170,12 @@ export class StateManager {
|
|
4156
4170
|
|
4157
4171
|
}
|
4158
4172
|
declare module "@babylonjs/gui-editor/nodeGraphSystem/tools" {
|
4173
|
+
import { GraphCanvasComponent } from "@babylonjs/gui-editor/nodeGraphSystem/graphCanvas";
|
4159
4174
|
import { GraphNode } from "@babylonjs/gui-editor/nodeGraphSystem/graphNode";
|
4160
4175
|
import { NodeLink } from "@babylonjs/gui-editor/nodeGraphSystem/nodeLink";
|
4161
4176
|
import { FramePortData } from "@babylonjs/gui-editor/nodeGraphSystem/types/framePortData";
|
4162
4177
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is FramePortData;
|
4163
|
-
export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink
|
4178
|
+
export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink>, canvas?: GraphCanvasComponent) => void;
|
4164
4179
|
|
4165
4180
|
}
|
4166
4181
|
declare module "@babylonjs/gui-editor/nodeGraphSystem/typeLedger" {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/gui-editor",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.16.1",
|
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": "^6.
|
28
|
-
"@babylonjs/gui": "^6.
|
27
|
+
"@babylonjs/core": "^6.16.1",
|
28
|
+
"@babylonjs/gui": "^6.16.1",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2"
|
31
31
|
},
|