babylonjs-node-editor 5.14.1 → 5.15.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.
package/babylon.nodeEditor.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ declare module BABYLON.NodeEditor {
|
|
|
61
61
|
componentWillUnmount(): void;
|
|
62
62
|
changeBackFaceCulling(value: boolean): void;
|
|
63
63
|
changeDepthPrePass(value: boolean): void;
|
|
64
|
+
_onPointerOverCanvas: () => void;
|
|
65
|
+
_onPointerOutCanvas: () => void;
|
|
64
66
|
changeParticleSystemBlendMode(newOne: number): void;
|
|
65
67
|
render(): JSX.Element;
|
|
66
68
|
}
|
|
@@ -284,6 +286,7 @@ declare module BABYLON.NodeEditor {
|
|
|
284
286
|
directionalLight1: boolean;
|
|
285
287
|
controlCamera: boolean;
|
|
286
288
|
_mode: BABYLON.NodeMaterialModes;
|
|
289
|
+
pointerOverCanvas: boolean;
|
|
287
290
|
/** Gets the mode */
|
|
288
291
|
get mode(): BABYLON.NodeMaterialModes;
|
|
289
292
|
/** Sets the mode */
|
|
@@ -339,7 +342,7 @@ declare module BABYLON.NodeEditor {
|
|
|
339
342
|
reOrganize(editorData?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IEditorData>, isImportingAFrame?: boolean): void;
|
|
340
343
|
onPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
341
344
|
onPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
342
|
-
onWheel
|
|
345
|
+
onWheel: (evt: WheelEvent) => void;
|
|
343
346
|
resizeColumns(evt: React.PointerEvent<HTMLDivElement>, forLeft?: boolean): void;
|
|
344
347
|
buildColumnLayout(): string;
|
|
345
348
|
emitNewBlock(blockType: string, targetX: number, targetY: number): void;
|
|
@@ -370,7 +373,7 @@ declare module BABYLON.NodeEditor {
|
|
|
370
373
|
set comments(value: string);
|
|
371
374
|
getPortByName(name: string): BABYLON.NodeEditor.SharedUIComponents.IPortData | null;
|
|
372
375
|
dispose(): void;
|
|
373
|
-
|
|
376
|
+
prepareHeaderIcon(iconDiv: HTMLDivElement, img: HTMLImageElement): void;
|
|
374
377
|
constructor(data: BABYLON.NodeMaterialBlock, nodeContainer: BABYLON.NodeEditor.SharedUIComponents.INodeContainer);
|
|
375
378
|
}
|
|
376
379
|
|
|
@@ -396,6 +399,7 @@ declare module BABYLON.NodeEditor {
|
|
|
396
399
|
constructor(connectionPoint: BABYLON.NodeMaterialConnectionPoint, nodeContainer: BABYLON.NodeEditor.SharedUIComponents.INodeContainer);
|
|
397
400
|
updateDisplayName(newName: string): void;
|
|
398
401
|
connectTo(port: BABYLON.NodeEditor.SharedUIComponents.IPortData): void;
|
|
402
|
+
canConnectTo(port: BABYLON.NodeEditor.SharedUIComponents.IPortData): boolean;
|
|
399
403
|
disconnectFrom(port: BABYLON.NodeEditor.SharedUIComponents.IPortData): void;
|
|
400
404
|
checkCompatibilityState(port: BABYLON.NodeEditor.SharedUIComponents.IPortData): 0 | BABYLON.NodeMaterialConnectionPointCompatibilityStates.TypeIncompatible | BABYLON.NodeMaterialConnectionPointCompatibilityStates.TargetIncompatible | BABYLON.NodeMaterialConnectionPointCompatibilityStates.HierarchyIssue;
|
|
401
405
|
getCompatibilityIssueMessage(issue: number, targetNode: BABYLON.NodeEditor.SharedUIComponents.GraphNode, targetPort: BABYLON.NodeEditor.SharedUIComponents.IPortData): "" | "Cannot connect two different connection types" | "Source block can only work in fragment shader whereas destination block is currently aimed for the vertex shader" | "Source block cannot be connected with one of its ancestors";
|
|
@@ -1357,7 +1361,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1357
1361
|
label: string;
|
|
1358
1362
|
target: any;
|
|
1359
1363
|
propertyName: string;
|
|
1360
|
-
lockObject
|
|
1364
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1361
1365
|
onChange?: (newValue: number) => void;
|
|
1362
1366
|
isInteger?: boolean;
|
|
1363
1367
|
onPropertyChangedObservable?: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
@@ -1763,7 +1767,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1763
1767
|
margin?: boolean;
|
|
1764
1768
|
icon?: string;
|
|
1765
1769
|
iconLabel?: string;
|
|
1766
|
-
lockObject
|
|
1770
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1767
1771
|
unit?: React.ReactNode;
|
|
1768
1772
|
}
|
|
1769
1773
|
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
|
@@ -2148,6 +2152,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2148
2152
|
get frameContainer(): HTMLDivElement;
|
|
2149
2153
|
private _selectedFrameAndNodesConflict;
|
|
2150
2154
|
constructor(props: IGraphCanvasComponentProps);
|
|
2155
|
+
populateConnectedEntriesBeforeRemoval(item: BABYLON.NodeEditor.SharedUIComponents.GraphNode, items: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], inputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], outputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[]): void;
|
|
2156
|
+
automaticRewire(inputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], outputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[]): void;
|
|
2151
2157
|
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, rootElement: HTMLDivElement): void;
|
|
2152
2158
|
pasteSelection(copiedNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, selectNew?: boolean): BABYLON.NodeEditor.SharedUIComponents.GraphNode[];
|
|
2153
2159
|
reconnectNewNodes(nodeIndex: number, newNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], sourceNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], done: boolean[]): void;
|
|
@@ -2345,7 +2351,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2345
2351
|
content: BABYLON.NodeEditor.SharedUIComponents.INodeData;
|
|
2346
2352
|
private _visual;
|
|
2347
2353
|
private _headerContainer;
|
|
2348
|
-
private
|
|
2354
|
+
private _headerIcon;
|
|
2355
|
+
private _headerIconImg;
|
|
2349
2356
|
private _header;
|
|
2350
2357
|
private _connections;
|
|
2351
2358
|
private _inputsContainer;
|
|
@@ -2450,7 +2457,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2450
2457
|
uniqueId: number;
|
|
2451
2458
|
isInput: boolean;
|
|
2452
2459
|
comments: string;
|
|
2453
|
-
|
|
2460
|
+
prepareHeaderIcon: (iconDiv: HTMLDivElement, img: HTMLImageElement) => void;
|
|
2454
2461
|
getClassName: () => string;
|
|
2455
2462
|
dispose: () => void;
|
|
2456
2463
|
getPortByName: (name: string) => BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>;
|
|
@@ -2519,6 +2526,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2519
2526
|
hasEndpoints: boolean;
|
|
2520
2527
|
endpoints: BABYLON.Nullable<IPortData[]>;
|
|
2521
2528
|
updateDisplayName: (newName: string) => void;
|
|
2529
|
+
canConnectTo: (port: IPortData) => boolean;
|
|
2522
2530
|
connectTo: (port: IPortData) => void;
|
|
2523
2531
|
disconnectFrom: (port: IPortData) => void;
|
|
2524
2532
|
checkCompatibilityState(port: IPortData): number;
|
|
@@ -2657,7 +2665,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2657
2665
|
targetY: number;
|
|
2658
2666
|
needRepositioning?: boolean | undefined;
|
|
2659
2667
|
}>;
|
|
2660
|
-
exportData: (data: any) => string;
|
|
2668
|
+
exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => string;
|
|
2661
2669
|
isElbowConnectionAllowed: (nodeA: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort) => boolean;
|
|
2662
2670
|
applyNodePortDesign: (data: BABYLON.NodeEditor.SharedUIComponents.IPortData, element: HTMLElement, img: HTMLImageElement) => void;
|
|
2663
2671
|
storeEditorData: (serializationObject: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => void;
|