babylonjs-node-editor 5.22.1 → 5.24.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/Materials/Node/
|
|
|
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/stateManager
|
|
|
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
|
}
|
|
@@ -3818,7 +3824,8 @@ declare module BABYLON.NodeEditor {
|
|
|
3818
3824
|
shouldDisplayPortLabels(): boolean;
|
|
3819
3825
|
getHeaderText(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
|
|
3820
3826
|
getBackgroundColor(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
|
|
3821
|
-
updatePreviewContent(
|
|
3827
|
+
updatePreviewContent(_nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, _contentArea: HTMLDivElement): void;
|
|
3828
|
+
updateFullVisualContent(data: BABYLON.NodeEditor.SharedUIComponents.INodeData, visualContent: BABYLON.NodeEditor.SharedUIComponents.VisualContentDescription): void;
|
|
3822
3829
|
}
|
|
3823
3830
|
|
|
3824
3831
|
|
|
@@ -3843,7 +3850,7 @@ declare module BABYLON.NodeEditor {
|
|
|
3843
3850
|
|
|
3844
3851
|
|
|
3845
3852
|
export class InputDisplayManager implements BABYLON.NodeEditor.SharedUIComponents.IDisplayManager {
|
|
3846
|
-
getHeaderClass(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData):
|
|
3853
|
+
getHeaderClass(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
|
|
3847
3854
|
shouldDisplayPortLabels(): boolean;
|
|
3848
3855
|
getHeaderText(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
|
|
3849
3856
|
static GetBaseType(type: BABYLON.NodeMaterialBlockConnectionPointTypes): string;
|
|
@@ -4452,6 +4459,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
4452
4459
|
export interface MessageDialogProps {
|
|
4453
4460
|
message: string;
|
|
4454
4461
|
isError: boolean;
|
|
4462
|
+
onClose?: () => void;
|
|
4455
4463
|
}
|
|
4456
4464
|
export var MessageDialog: React.FC<MessageDialogProps>;
|
|
4457
4465
|
|
|
@@ -5743,6 +5751,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5743
5751
|
private _outputsContainer;
|
|
5744
5752
|
private _content;
|
|
5745
5753
|
private _comments;
|
|
5754
|
+
private _selectionBorder;
|
|
5746
5755
|
private _inputPorts;
|
|
5747
5756
|
private _outputPorts;
|
|
5748
5757
|
private _links;
|
|
@@ -5808,10 +5817,14 @@ declare module BABYLON.NodeEditor {
|
|
|
5808
5817
|
|
|
5809
5818
|
}
|
|
5810
5819
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
5811
|
-
export interface
|
|
5820
|
+
export interface VisualContentDescription {
|
|
5821
|
+
[key: string]: HTMLElement;
|
|
5822
|
+
}
|
|
5823
|
+
export interface IDisplayManager {
|
|
5812
5824
|
getHeaderClass(data: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
|
|
5813
5825
|
shouldDisplayPortLabels(data: BABYLON.NodeEditor.SharedUIComponents.IPortData): boolean;
|
|
5814
5826
|
updatePreviewContent(data: BABYLON.NodeEditor.SharedUIComponents.INodeData, contentArea: HTMLDivElement): void;
|
|
5827
|
+
updateFullVisualContent?(data: BABYLON.NodeEditor.SharedUIComponents.INodeData, visualContent: VisualContentDescription): void;
|
|
5815
5828
|
getBackgroundColor(data: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
|
|
5816
5829
|
getHeaderText(data: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
|
|
5817
5830
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.24.0",
|
|
4
4
|
"main": "babylon.nodeEditor.js",
|
|
5
5
|
"types": "babylon.nodeEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^5.
|
|
17
|
+
"babylonjs": "^5.24.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|