babylonjs-node-editor 5.18.0 → 5.19.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.
|
@@ -1713,8 +1713,8 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
|
|
|
1713
1713
|
updateValue(valueString: string): void;
|
|
1714
1714
|
lock(): void;
|
|
1715
1715
|
unlock(): void;
|
|
1716
|
-
incrementValue(amount: number): void;
|
|
1717
|
-
onKeyDown(event: React.KeyboardEvent): void;
|
|
1716
|
+
incrementValue(amount: number, processStep?: boolean): void;
|
|
1717
|
+
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
|
1718
1718
|
render(): JSX.Element;
|
|
1719
1719
|
}
|
|
1720
1720
|
export {};
|
|
@@ -1951,8 +1951,10 @@ export class NumericInputComponent extends React.Component<INumericInputComponen
|
|
|
1951
1951
|
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
1952
1952
|
value: string;
|
|
1953
1953
|
}): boolean;
|
|
1954
|
-
updateValue(
|
|
1954
|
+
updateValue(valueString: string): void;
|
|
1955
1955
|
onBlur(): void;
|
|
1956
|
+
incrementValue(amount: number): void;
|
|
1957
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
1956
1958
|
render(): JSX.Element;
|
|
1957
1959
|
}
|
|
1958
1960
|
export {};
|
|
@@ -2405,6 +2407,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2405
2407
|
private _oldY;
|
|
2406
2408
|
_frameIsMoving: boolean;
|
|
2407
2409
|
_isLoading: boolean;
|
|
2410
|
+
_targetLinkCandidate: Nullable<NodeLink>;
|
|
2408
2411
|
private _copiedNodes;
|
|
2409
2412
|
private _copiedFrames;
|
|
2410
2413
|
get gridSize(): number;
|
|
@@ -2431,7 +2434,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2431
2434
|
private _selectedFrameAndNodesConflict;
|
|
2432
2435
|
constructor(props: IGraphCanvasComponentProps);
|
|
2433
2436
|
populateConnectedEntriesBeforeRemoval(item: GraphNode, items: GraphNode[], inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
|
2434
|
-
automaticRewire(inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
|
2437
|
+
automaticRewire(inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[], firstOnly?: boolean): void;
|
|
2435
2438
|
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: INodeData) => any, rootElement: HTMLDivElement): void;
|
|
2436
2439
|
pasteSelection(copiedNodes: GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: INodeData) => any, selectNew?: boolean): GraphNode[];
|
|
2437
2440
|
reconnectNewNodes(nodeIndex: number, newNodes: GraphNode[], sourceNodes: GraphNode[], done: boolean[]): void;
|
|
@@ -2839,13 +2842,17 @@ export class NodeLink {
|
|
|
2839
2842
|
private _selectionPath;
|
|
2840
2843
|
private _onSelectionChangedObserver;
|
|
2841
2844
|
private _isVisible;
|
|
2845
|
+
private _isTargetCandidate;
|
|
2842
2846
|
onDisposedObservable: Observable<NodeLink>;
|
|
2847
|
+
get isTargetCandidate(): boolean;
|
|
2848
|
+
set isTargetCandidate(value: boolean);
|
|
2843
2849
|
get isVisible(): boolean;
|
|
2844
2850
|
set isVisible(value: boolean);
|
|
2845
2851
|
get portA(): FrameNodePort | NodePort;
|
|
2846
2852
|
get portB(): FrameNodePort | NodePort | undefined;
|
|
2847
2853
|
get nodeA(): GraphNode;
|
|
2848
2854
|
get nodeB(): GraphNode | undefined;
|
|
2855
|
+
intersectsWith(rect: DOMRect): boolean;
|
|
2849
2856
|
update(endX?: number, endY?: number, straight?: boolean): void;
|
|
2850
2857
|
constructor(graphCanvas: GraphCanvasComponent, portA: NodePort, nodeA: GraphNode, portB?: NodePort, nodeB?: GraphNode);
|
|
2851
2858
|
onClick(evt: MouseEvent): void;
|
|
@@ -4761,8 +4768,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
4761
4768
|
updateValue(valueString: string): void;
|
|
4762
4769
|
lock(): void;
|
|
4763
4770
|
unlock(): void;
|
|
4764
|
-
incrementValue(amount: number): void;
|
|
4765
|
-
onKeyDown(event: React.KeyboardEvent): void;
|
|
4771
|
+
incrementValue(amount: number, processStep?: boolean): void;
|
|
4772
|
+
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
|
4766
4773
|
render(): JSX.Element;
|
|
4767
4774
|
}
|
|
4768
4775
|
|
|
@@ -5023,8 +5030,10 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5023
5030
|
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
5024
5031
|
value: string;
|
|
5025
5032
|
}): boolean;
|
|
5026
|
-
updateValue(
|
|
5033
|
+
updateValue(valueString: string): void;
|
|
5027
5034
|
onBlur(): void;
|
|
5035
|
+
incrementValue(amount: number): void;
|
|
5036
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
5028
5037
|
render(): JSX.Element;
|
|
5029
5038
|
}
|
|
5030
5039
|
|
|
@@ -5490,6 +5499,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5490
5499
|
private _oldY;
|
|
5491
5500
|
_frameIsMoving: boolean;
|
|
5492
5501
|
_isLoading: boolean;
|
|
5502
|
+
_targetLinkCandidate: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.NodeLink>;
|
|
5493
5503
|
private _copiedNodes;
|
|
5494
5504
|
private _copiedFrames;
|
|
5495
5505
|
get gridSize(): number;
|
|
@@ -5516,7 +5526,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5516
5526
|
private _selectedFrameAndNodesConflict;
|
|
5517
5527
|
constructor(props: IGraphCanvasComponentProps);
|
|
5518
5528
|
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;
|
|
5519
|
-
automaticRewire(inputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], outputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[]): void;
|
|
5529
|
+
automaticRewire(inputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], outputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], firstOnly?: boolean): void;
|
|
5520
5530
|
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, rootElement: HTMLDivElement): void;
|
|
5521
5531
|
pasteSelection(copiedNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, selectNew?: boolean): BABYLON.NodeEditor.SharedUIComponents.GraphNode[];
|
|
5522
5532
|
reconnectNewNodes(nodeIndex: number, newNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], sourceNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], done: boolean[]): void;
|
|
@@ -5938,13 +5948,17 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5938
5948
|
private _selectionPath;
|
|
5939
5949
|
private _onSelectionChangedObserver;
|
|
5940
5950
|
private _isVisible;
|
|
5951
|
+
private _isTargetCandidate;
|
|
5941
5952
|
onDisposedObservable: BABYLON.Observable<NodeLink>;
|
|
5953
|
+
get isTargetCandidate(): boolean;
|
|
5954
|
+
set isTargetCandidate(value: boolean);
|
|
5942
5955
|
get isVisible(): boolean;
|
|
5943
5956
|
set isVisible(value: boolean);
|
|
5944
5957
|
get portA(): BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort;
|
|
5945
5958
|
get portB(): BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort | undefined;
|
|
5946
5959
|
get nodeA(): BABYLON.NodeEditor.SharedUIComponents.GraphNode;
|
|
5947
5960
|
get nodeB(): BABYLON.NodeEditor.SharedUIComponents.GraphNode | undefined;
|
|
5961
|
+
intersectsWith(rect: DOMRect): boolean;
|
|
5948
5962
|
update(endX?: number, endY?: number, straight?: boolean): void;
|
|
5949
5963
|
constructor(graphCanvas: BABYLON.NodeEditor.SharedUIComponents.GraphCanvasComponent, portA: BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeA: BABYLON.NodeEditor.SharedUIComponents.GraphNode, portB?: BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB?: BABYLON.NodeEditor.SharedUIComponents.GraphNode);
|
|
5950
5964
|
onClick(evt: MouseEvent): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.19.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.19.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|