@babylonjs/node-editor 5.22.1 → 5.23.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.
|
@@ -653,14 +653,15 @@ export class DiscardDisplayManager implements IDisplayManager {
|
|
|
653
653
|
|
|
654
654
|
}
|
|
655
655
|
declare module "@babylonjs/node-editor/graphSystem/display/elbowDisplayManager" {
|
|
656
|
-
import { IDisplayManager } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/displayManager";
|
|
656
|
+
import { IDisplayManager, VisualContentDescription } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/displayManager";
|
|
657
657
|
import { INodeData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/nodeData";
|
|
658
658
|
export class ElbowDisplayManager implements IDisplayManager {
|
|
659
659
|
getHeaderClass(): string;
|
|
660
660
|
shouldDisplayPortLabels(): boolean;
|
|
661
661
|
getHeaderText(nodeData: INodeData): string;
|
|
662
662
|
getBackgroundColor(nodeData: INodeData): string;
|
|
663
|
-
updatePreviewContent(
|
|
663
|
+
updatePreviewContent(_nodeData: INodeData, _contentArea: HTMLDivElement): void;
|
|
664
|
+
updateFullVisualContent(data: INodeData, visualContent: VisualContentDescription): void;
|
|
664
665
|
}
|
|
665
666
|
|
|
666
667
|
}
|
|
@@ -695,7 +696,7 @@ import { NodeMaterialBlockConnectionPointTypes } from "@babylonjs/core/Materials
|
|
|
695
696
|
import { IDisplayManager } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/displayManager";
|
|
696
697
|
import { INodeData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/nodeData";
|
|
697
698
|
export class InputDisplayManager implements IDisplayManager {
|
|
698
|
-
getHeaderClass(nodeData: INodeData):
|
|
699
|
+
getHeaderClass(nodeData: INodeData): string;
|
|
699
700
|
shouldDisplayPortLabels(): boolean;
|
|
700
701
|
getHeaderText(nodeData: INodeData): string;
|
|
701
702
|
static GetBaseType(type: NodeMaterialBlockConnectionPointTypes): string;
|
|
@@ -1409,6 +1410,7 @@ import * as React from "react";
|
|
|
1409
1410
|
export interface MessageDialogProps {
|
|
1410
1411
|
message: string;
|
|
1411
1412
|
isError: boolean;
|
|
1413
|
+
onClose?: () => void;
|
|
1412
1414
|
}
|
|
1413
1415
|
export const MessageDialog: React.FC<MessageDialogProps>;
|
|
1414
1416
|
|
|
@@ -2360,7 +2362,6 @@ import { StateManager } from "@babylonjs/node-editor/nodeGraphSystem/stateManage
|
|
|
2360
2362
|
import { INodeData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/nodeData";
|
|
2361
2363
|
import { IPortData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/portData";
|
|
2362
2364
|
import { INodeContainer } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/nodeContainer";
|
|
2363
|
-
import "@babylonjs/node-editor/nodeGraphSystem/scss/graphCanvas.scss";
|
|
2364
2365
|
export interface IGraphCanvasComponentProps {
|
|
2365
2366
|
stateManager: StateManager;
|
|
2366
2367
|
onEmitNewNode: (nodeData: INodeData) => GraphNode;
|
|
@@ -2641,6 +2642,7 @@ export class GraphNode {
|
|
|
2641
2642
|
private _outputsContainer;
|
|
2642
2643
|
private _content;
|
|
2643
2644
|
private _comments;
|
|
2645
|
+
private _selectionBorder;
|
|
2644
2646
|
private _inputPorts;
|
|
2645
2647
|
private _outputPorts;
|
|
2646
2648
|
private _links;
|
|
@@ -2703,10 +2705,14 @@ export class GraphNode {
|
|
|
2703
2705
|
declare module "@babylonjs/node-editor/nodeGraphSystem/interfaces/displayManager" {
|
|
2704
2706
|
import { INodeData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/nodeData";
|
|
2705
2707
|
import { IPortData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/portData";
|
|
2708
|
+
export interface VisualContentDescription {
|
|
2709
|
+
[key: string]: HTMLElement;
|
|
2710
|
+
}
|
|
2706
2711
|
export interface IDisplayManager {
|
|
2707
2712
|
getHeaderClass(data: INodeData): string;
|
|
2708
2713
|
shouldDisplayPortLabels(data: IPortData): boolean;
|
|
2709
2714
|
updatePreviewContent(data: INodeData, contentArea: HTMLDivElement): void;
|
|
2715
|
+
updateFullVisualContent?(data: INodeData, visualContent: VisualContentDescription): void;
|
|
2710
2716
|
getBackgroundColor(data: INodeData): string;
|
|
2711
2717
|
getHeaderText(data: INodeData): string;
|
|
2712
2718
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.23.0",
|
|
4
4
|
"main": "dist/babylon.nodeEditor.max.js",
|
|
5
5
|
"module": "dist/babylon.nodeEditor.max.js",
|
|
6
6
|
"esnext": "dist/babylon.nodeEditor.max.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@babylonjs/core": "^5.
|
|
26
|
+
"@babylonjs/core": "^5.23.0",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2",
|
|
29
29
|
"rimraf": "^3.0.2",
|