babylonjs-node-editor 5.45.0 → 5.45.1

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.
@@ -348,7 +348,7 @@ declare module BABYLON.NodeEditor {
348
348
  onWheel: (evt: WheelEvent) => void;
349
349
  resizeColumns(evt: React.PointerEvent<HTMLDivElement>, forLeft?: boolean): void;
350
350
  buildColumnLayout(): string;
351
- emitNewBlock(blockType: string, targetX: number, targetY: number): void;
351
+ emitNewBlock(blockType: string, targetX: number, targetY: number): BABYLON.NodeEditor.SharedUIComponents.GraphNode | undefined;
352
352
  dropNewBlock(event: React.DragEvent<HTMLDivElement>): void;
353
353
  handlePopUp: () => void;
354
354
  handleClosingPopUp: () => void;
@@ -3207,6 +3207,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
3207
3207
  constructor(props: IGraphCanvasComponentProps);
3208
3208
  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;
3209
3209
  automaticRewire(inputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], outputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], firstOnly?: boolean): void;
3210
+ smartAddOverLink(node: BABYLON.NodeEditor.SharedUIComponents.GraphNode, link: BABYLON.NodeEditor.SharedUIComponents.NodeLink): void;
3211
+ smartAddOverNode(node: BABYLON.NodeEditor.SharedUIComponents.GraphNode, source: BABYLON.NodeEditor.SharedUIComponents.GraphNode): void;
3212
+ deleteSelection(onRemove: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => void, autoReconnect?: boolean): void;
3210
3213
  handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, rootElement: HTMLDivElement): void;
3211
3214
  pasteSelection(copiedNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, selectNew?: boolean): BABYLON.NodeEditor.SharedUIComponents.GraphNode[];
3212
3215
  reconnectNewNodes(nodeIndex: number, newNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], sourceNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], done: boolean[]): void;
@@ -3620,6 +3623,18 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
3620
3623
 
3621
3624
 
3622
3625
 
3626
+ }
3627
+ declare module BABYLON.NodeEditor {
3628
+
3629
+ }
3630
+ declare module BABYLON.NodeEditor.SharedUIComponents {
3631
+ export class NodeLedger {
3632
+ static RegisteredNodeNames: string[];
3633
+ static NameFormatter: (name: string) => string;
3634
+ }
3635
+
3636
+
3637
+
3623
3638
  }
3624
3639
  declare module BABYLON.NodeEditor {
3625
3640
 
@@ -3702,6 +3717,35 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
3702
3717
 
3703
3718
 
3704
3719
 
3720
+ }
3721
+ declare module BABYLON.NodeEditor {
3722
+
3723
+ }
3724
+ declare module BABYLON.NodeEditor.SharedUIComponents {
3725
+ export interface ISearchBoxComponentProps {
3726
+ stateManager: BABYLON.NodeEditor.SharedUIComponents.StateManager;
3727
+ }
3728
+ /**
3729
+ * The search box component.
3730
+ */
3731
+ export class SearchBoxComponent extends React.Component<ISearchBoxComponentProps, {
3732
+ isVisible: boolean;
3733
+ filter: string;
3734
+ }> {
3735
+ private _handleEscKey;
3736
+ private _targetX;
3737
+ private _targetY;
3738
+ private _nodes;
3739
+ constructor(props: ISearchBoxComponentProps);
3740
+ hide(): void;
3741
+ onFilterChange(evt: React.ChangeEvent<HTMLInputElement>): void;
3742
+ onNewNodeRequested(name: string): void;
3743
+ onKeyDown(evt: React.KeyboardEvent): void;
3744
+ render(): JSX.Element | null;
3745
+ }
3746
+
3747
+
3748
+
3705
3749
  }
3706
3750
  declare module BABYLON.NodeEditor {
3707
3751
 
@@ -3711,6 +3755,11 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
3711
3755
  data: any;
3712
3756
  hostDocument: Document;
3713
3757
  lockObject: any;
3758
+ modalIsDisplayed: boolean;
3759
+ onSearchBoxRequiredObservable: BABYLON.Observable<{
3760
+ x: number;
3761
+ y: number;
3762
+ }>;
3714
3763
  onSelectionChangedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.ISelectionChangedOptions>>;
3715
3764
  onFrameCreatedObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>;
3716
3765
  onUpdateRequiredObservable: BABYLON.Observable<any>;
@@ -3728,6 +3777,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
3728
3777
  targetX: number;
3729
3778
  targetY: number;
3730
3779
  needRepositioning?: boolean | undefined;
3780
+ smartAdd?: boolean | undefined;
3731
3781
  }>;
3732
3782
  exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => string;
3733
3783
  isElbowConnectionAllowed: (nodeA: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort) => boolean;