babylonjs-node-editor 5.17.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.
@@ -1398,8 +1398,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1398
1398
  updateValue(valueString: string): void;
1399
1399
  lock(): void;
1400
1400
  unlock(): void;
1401
- incrementValue(amount: number): void;
1402
- onKeyDown(event: React.KeyboardEvent): void;
1401
+ incrementValue(amount: number, processStep?: boolean): void;
1402
+ onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
1403
1403
  render(): JSX.Element;
1404
1404
  }
1405
1405
 
@@ -1660,8 +1660,10 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1660
1660
  shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
1661
1661
  value: string;
1662
1662
  }): boolean;
1663
- updateValue(evt: any): void;
1663
+ updateValue(valueString: string): void;
1664
1664
  onBlur(): void;
1665
+ incrementValue(amount: number): void;
1666
+ onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
1665
1667
  render(): JSX.Element;
1666
1668
  }
1667
1669
 
@@ -2127,6 +2129,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
2127
2129
  private _oldY;
2128
2130
  _frameIsMoving: boolean;
2129
2131
  _isLoading: boolean;
2132
+ _targetLinkCandidate: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.NodeLink>;
2130
2133
  private _copiedNodes;
2131
2134
  private _copiedFrames;
2132
2135
  get gridSize(): number;
@@ -2153,7 +2156,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
2153
2156
  private _selectedFrameAndNodesConflict;
2154
2157
  constructor(props: IGraphCanvasComponentProps);
2155
2158
  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;
2159
+ automaticRewire(inputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], outputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], firstOnly?: boolean): void;
2157
2160
  handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, rootElement: HTMLDivElement): void;
2158
2161
  pasteSelection(copiedNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, selectNew?: boolean): BABYLON.NodeEditor.SharedUIComponents.GraphNode[];
2159
2162
  reconnectNewNodes(nodeIndex: number, newNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], sourceNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], done: boolean[]): void;
@@ -2575,13 +2578,17 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
2575
2578
  private _selectionPath;
2576
2579
  private _onSelectionChangedObserver;
2577
2580
  private _isVisible;
2581
+ private _isTargetCandidate;
2578
2582
  onDisposedObservable: BABYLON.Observable<NodeLink>;
2583
+ get isTargetCandidate(): boolean;
2584
+ set isTargetCandidate(value: boolean);
2579
2585
  get isVisible(): boolean;
2580
2586
  set isVisible(value: boolean);
2581
2587
  get portA(): BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort;
2582
2588
  get portB(): BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort | undefined;
2583
2589
  get nodeA(): BABYLON.NodeEditor.SharedUIComponents.GraphNode;
2584
2590
  get nodeB(): BABYLON.NodeEditor.SharedUIComponents.GraphNode | undefined;
2591
+ intersectsWith(rect: DOMRect): boolean;
2585
2592
  update(endX?: number, endY?: number, straight?: boolean): void;
2586
2593
  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);
2587
2594
  onClick(evt: MouseEvent): void;