babylonjs-node-render-graph-editor 7.42.3 → 7.43.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.
|
@@ -68,11 +68,13 @@ declare module BABYLON.NodeRenderGraphEditor {
|
|
|
68
68
|
private _mouseLocationX;
|
|
69
69
|
private _mouseLocationY;
|
|
70
70
|
private _onWidgetKeyUpPointer;
|
|
71
|
+
private _historyStack;
|
|
71
72
|
private _previewHost;
|
|
72
73
|
private _popUpWindow;
|
|
73
74
|
private _externalTextures;
|
|
74
75
|
appendBlock(dataToAppend: BABYLON.NodeRenderGraphBlock | BABYLON.NodeRenderGraphEditor.SharedUIComponents.INodeData, recursion?: boolean): BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode;
|
|
75
76
|
addValueNode(type: string): BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode;
|
|
77
|
+
prepareHistoryStack(): void;
|
|
76
78
|
componentDidMount(): void;
|
|
77
79
|
componentWillUnmount(): void;
|
|
78
80
|
constructor(props: IGraphEditorProps);
|
|
@@ -103,6 +105,7 @@ declare module BABYLON.NodeRenderGraphEditor {
|
|
|
103
105
|
hostDocument: Document;
|
|
104
106
|
hostWindow: Window;
|
|
105
107
|
stateManager: BABYLON.NodeRenderGraphEditor.SharedUIComponents.StateManager;
|
|
108
|
+
onClearUndoStack: BABYLON.Observable<void>;
|
|
106
109
|
onBuiltObservable: BABYLON.Observable<void>;
|
|
107
110
|
onResetRequiredObservable: BABYLON.Observable<boolean>;
|
|
108
111
|
onZoomToFitRequiredObservable: BABYLON.Observable<void>;
|
|
@@ -131,6 +134,7 @@ declare module BABYLON.NodeRenderGraphEditor {
|
|
|
131
134
|
filesInput: BABYLON.FilesInput;
|
|
132
135
|
scene: BABYLON.Scene;
|
|
133
136
|
noAutoFillExternalInputs: boolean;
|
|
137
|
+
_engine: number;
|
|
134
138
|
customSave?: {
|
|
135
139
|
label: string;
|
|
136
140
|
action: (data: string) => Promise<void>;
|
|
@@ -144,6 +148,10 @@ declare module BABYLON.NodeRenderGraphEditor {
|
|
|
144
148
|
* Sets the current node material
|
|
145
149
|
*/
|
|
146
150
|
set nodeRenderGraph(nodeRenderGraph: BABYLON.NodeRenderGraph);
|
|
151
|
+
/** Gets the engine */
|
|
152
|
+
get engine(): number;
|
|
153
|
+
/** Sets the engine */
|
|
154
|
+
set engine(e: number);
|
|
147
155
|
constructor(scene: BABYLON.Scene);
|
|
148
156
|
storeEditorData(serializationObject: any, frame?: BABYLON.Nullable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphFrame>): void;
|
|
149
157
|
}
|
|
@@ -611,9 +619,10 @@ declare module BABYLON.NodeRenderGraphEditor {
|
|
|
611
619
|
private _currentType;
|
|
612
620
|
private _lightParent;
|
|
613
621
|
private _hdrTexture;
|
|
622
|
+
private _dummyExternalTexture;
|
|
614
623
|
constructor(targetCanvas: HTMLCanvasElement, globalState: GlobalState);
|
|
615
624
|
private _initAsync;
|
|
616
|
-
private
|
|
625
|
+
private _initSceneAsync;
|
|
617
626
|
private _reset;
|
|
618
627
|
private _prepareLights;
|
|
619
628
|
private _createNodeRenderGraph;
|
|
@@ -1335,7 +1344,17 @@ declare module BABYLON.NodeRenderGraphEditor {
|
|
|
1335
1344
|
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
1336
1345
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.NodeRenderGraphEditor.SharedUIComponents.FramePortData;
|
|
1337
1346
|
export const RefreshNode: (node: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.NodeRenderGraphEditor.SharedUIComponents.NodeLink>, canvas?: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphCanvasComponent) => void;
|
|
1338
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
|
1347
|
+
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>, additionalClassName?: string) => void;
|
|
1348
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
|
1349
|
+
acceptedConnectionPointTypes: number[];
|
|
1350
|
+
excludedConnectionPointTypes: number[];
|
|
1351
|
+
type: number;
|
|
1352
|
+
}, skips?: number[]): string[];
|
|
1353
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
|
1354
|
+
acceptedConnectionPointTypes: number[];
|
|
1355
|
+
excludedConnectionPointTypes: number[];
|
|
1356
|
+
type: number;
|
|
1357
|
+
}, skips?: number[]): string;
|
|
1339
1358
|
|
|
1340
1359
|
|
|
1341
1360
|
|
|
@@ -1383,7 +1402,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
1383
1402
|
exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphFrame>) => string;
|
|
1384
1403
|
isElbowConnectionAllowed: (nodeA: BABYLON.NodeRenderGraphEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeRenderGraphEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeRenderGraphEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeRenderGraphEditor.SharedUIComponents.NodePort) => boolean;
|
|
1385
1404
|
isDebugConnectionAllowed: (nodeA: BABYLON.NodeRenderGraphEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeRenderGraphEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeRenderGraphEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeRenderGraphEditor.SharedUIComponents.NodePort) => boolean;
|
|
1386
|
-
applyNodePortDesign: (data: BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPortData, element: HTMLElement,
|
|
1405
|
+
applyNodePortDesign: (data: BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
|
1387
1406
|
getPortColor: (portData: BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPortData) => string;
|
|
1388
1407
|
storeEditorData: (serializationObject: any, frame?: BABYLON.Nullable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphFrame>) => void;
|
|
1389
1408
|
getEditorDataMap: () => {
|
|
@@ -1457,7 +1476,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
1457
1476
|
node: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode;
|
|
1458
1477
|
protected _element: HTMLDivElement;
|
|
1459
1478
|
protected _portContainer: HTMLElement;
|
|
1460
|
-
protected
|
|
1479
|
+
protected _imgHost: HTMLDivElement;
|
|
1461
1480
|
protected _pip: HTMLDivElement;
|
|
1462
1481
|
protected _stateManager: BABYLON.NodeRenderGraphEditor.SharedUIComponents.StateManager;
|
|
1463
1482
|
protected _portLabelElement: Element;
|
|
@@ -1544,6 +1563,7 @@ declare module BABYLON.NodeRenderGraphEditor {
|
|
|
1544
1563
|
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
1545
1564
|
export class GraphNode {
|
|
1546
1565
|
content: BABYLON.NodeRenderGraphEditor.SharedUIComponents.INodeData;
|
|
1566
|
+
private static _IdGenerator;
|
|
1547
1567
|
private _visual;
|
|
1548
1568
|
private _headerContainer;
|
|
1549
1569
|
private _headerIcon;
|