babylonjs-node-editor 6.15.0 → 6.16.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.
@@ -1,7 +1,7 @@
1
1
 
2
2
  declare module BABYLON.NodeEditor {
3
3
  export class BlockTools {
4
- static GetBlockFromString(data: string, scene: BABYLON.Scene, nodeMaterial: BABYLON.NodeMaterial): BABYLON.HeightToNormalBlock | BABYLON.ElbowBlock | BABYLON.TwirlBlock | BABYLON.VoronoiNoiseBlock | BABYLON.ScreenSpaceBlock | BABYLON.CloudBlock | BABYLON.MatrixBuilderBlock | BABYLON.DesaturateBlock | BABYLON.RefractBlock | BABYLON.ReflectBlock | BABYLON.DerivativeBlock | BABYLON.Rotate2dBlock | BABYLON.NormalBlendBlock | BABYLON.WorleyNoise3DBlock | BABYLON.SimplexPerlin3DBlock | BABYLON.BonesBlock | BABYLON.InstancesBlock | BABYLON.MorphTargetsBlock | BABYLON.DiscardBlock | BABYLON.ImageProcessingBlock | BABYLON.ColorMergerBlock | BABYLON.VectorMergerBlock | BABYLON.ColorSplitterBlock | BABYLON.VectorSplitterBlock | BABYLON.TextureBlock | BABYLON.ReflectionTextureBlock | BABYLON.LightBlock | BABYLON.FogBlock | BABYLON.VertexOutputBlock | BABYLON.FragmentOutputBlock | BABYLON.AddBlock | BABYLON.ClampBlock | BABYLON.ScaleBlock | BABYLON.CrossBlock | BABYLON.DotBlock | BABYLON.PowBlock | BABYLON.MultiplyBlock | BABYLON.TransformBlock | BABYLON.TrigonometryBlock | BABYLON.RemapBlock | BABYLON.NormalizeBlock | BABYLON.FresnelBlock | BABYLON.LerpBlock | BABYLON.NLerpBlock | BABYLON.DivideBlock | BABYLON.SubtractBlock | BABYLON.ModBlock | BABYLON.StepBlock | BABYLON.SmoothStepBlock | BABYLON.OneMinusBlock | BABYLON.ReciprocalBlock | BABYLON.ViewDirectionBlock | BABYLON.LightInformationBlock | BABYLON.MaxBlock | BABYLON.MinBlock | BABYLON.LengthBlock | BABYLON.DistanceBlock | BABYLON.NegateBlock | BABYLON.PerturbNormalBlock | BABYLON.TBNBlock | BABYLON.RandomNumberBlock | BABYLON.ReplaceColorBlock | BABYLON.PosterizeBlock | BABYLON.ArcTan2Block | BABYLON.GradientBlock | BABYLON.FrontFacingBlock | BABYLON.MeshAttributeExistsBlock | BABYLON.WaveBlock | BABYLON.InputBlock | BABYLON.PBRMetallicRoughnessBlock | BABYLON.SheenBlock | BABYLON.AnisotropyBlock | BABYLON.ReflectionBlock | BABYLON.ClearCoatBlock | BABYLON.RefractionBlock | BABYLON.SubSurfaceBlock | BABYLON.CurrentScreenBlock | BABYLON.ParticleTextureBlock | BABYLON.ParticleRampGradientBlock | BABYLON.ParticleBlendMultiplyBlock | BABYLON.FragCoordBlock | BABYLON.ScreenSizeBlock | BABYLON.SceneDepthBlock | BABYLON.ConditionalBlock | BABYLON.ImageSourceBlock | BABYLON.ClipPlanesBlock | BABYLON.FragDepthBlock | BABYLON.ShadowMapBlock | BABYLON.TriPlanarBlock | BABYLON.MatrixTransposeBlock | BABYLON.MatrixDeterminantBlock | BABYLON.CurveBlock | null;
4
+ static GetBlockFromString(data: string, scene: BABYLON.Scene, nodeMaterial: BABYLON.NodeMaterial): BABYLON.NodeMaterialTeleportInBlock | BABYLON.NodeMaterialTeleportOutBlock | BABYLON.HeightToNormalBlock | BABYLON.ElbowBlock | BABYLON.TwirlBlock | BABYLON.VoronoiNoiseBlock | BABYLON.ScreenSpaceBlock | BABYLON.CloudBlock | BABYLON.MatrixBuilderBlock | BABYLON.DesaturateBlock | BABYLON.RefractBlock | BABYLON.ReflectBlock | BABYLON.DerivativeBlock | BABYLON.Rotate2dBlock | BABYLON.NormalBlendBlock | BABYLON.WorleyNoise3DBlock | BABYLON.SimplexPerlin3DBlock | BABYLON.BonesBlock | BABYLON.InstancesBlock | BABYLON.MorphTargetsBlock | BABYLON.DiscardBlock | BABYLON.ImageProcessingBlock | BABYLON.ColorMergerBlock | BABYLON.VectorMergerBlock | BABYLON.ColorSplitterBlock | BABYLON.VectorSplitterBlock | BABYLON.TextureBlock | BABYLON.ReflectionTextureBlock | BABYLON.LightBlock | BABYLON.FogBlock | BABYLON.VertexOutputBlock | BABYLON.FragmentOutputBlock | BABYLON.AddBlock | BABYLON.ClampBlock | BABYLON.ScaleBlock | BABYLON.CrossBlock | BABYLON.DotBlock | BABYLON.PowBlock | BABYLON.MultiplyBlock | BABYLON.TransformBlock | BABYLON.TrigonometryBlock | BABYLON.RemapBlock | BABYLON.NormalizeBlock | BABYLON.FresnelBlock | BABYLON.LerpBlock | BABYLON.NLerpBlock | BABYLON.DivideBlock | BABYLON.SubtractBlock | BABYLON.ModBlock | BABYLON.StepBlock | BABYLON.SmoothStepBlock | BABYLON.OneMinusBlock | BABYLON.ReciprocalBlock | BABYLON.ViewDirectionBlock | BABYLON.LightInformationBlock | BABYLON.MaxBlock | BABYLON.MinBlock | BABYLON.LengthBlock | BABYLON.DistanceBlock | BABYLON.NegateBlock | BABYLON.PerturbNormalBlock | BABYLON.TBNBlock | BABYLON.RandomNumberBlock | BABYLON.ReplaceColorBlock | BABYLON.PosterizeBlock | BABYLON.ArcTan2Block | BABYLON.GradientBlock | BABYLON.FrontFacingBlock | BABYLON.MeshAttributeExistsBlock | BABYLON.WaveBlock | BABYLON.InputBlock | BABYLON.PBRMetallicRoughnessBlock | BABYLON.SheenBlock | BABYLON.AnisotropyBlock | BABYLON.ReflectionBlock | BABYLON.ClearCoatBlock | BABYLON.RefractionBlock | BABYLON.SubSurfaceBlock | BABYLON.CurrentScreenBlock | BABYLON.ParticleTextureBlock | BABYLON.ParticleRampGradientBlock | BABYLON.ParticleBlendMultiplyBlock | BABYLON.FragCoordBlock | BABYLON.ScreenSizeBlock | BABYLON.SceneDepthBlock | BABYLON.ConditionalBlock | BABYLON.ImageSourceBlock | BABYLON.ClipPlanesBlock | BABYLON.FragDepthBlock | BABYLON.ShadowMapBlock | BABYLON.TriPlanarBlock | BABYLON.MatrixTransposeBlock | BABYLON.MatrixDeterminantBlock | BABYLON.CurveBlock | null;
5
5
  static GetColorFromConnectionNodeType(type: BABYLON.NodeMaterialBlockConnectionPointTypes): string;
6
6
  static GetConnectionNodeTypeFromString(type: string): BABYLON.NodeMaterialBlockConnectionPointTypes.Float | BABYLON.NodeMaterialBlockConnectionPointTypes.Vector2 | BABYLON.NodeMaterialBlockConnectionPointTypes.Vector3 | BABYLON.NodeMaterialBlockConnectionPointTypes.Vector4 | BABYLON.NodeMaterialBlockConnectionPointTypes.Color3 | BABYLON.NodeMaterialBlockConnectionPointTypes.Color4 | BABYLON.NodeMaterialBlockConnectionPointTypes.Matrix | BABYLON.NodeMaterialBlockConnectionPointTypes.AutoDetect;
7
7
  static GetStringFromConnectionNodeType(type: BABYLON.NodeMaterialBlockConnectionPointTypes): "" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix" | "Color3" | "Color4";
@@ -20,6 +20,7 @@ declare module BABYLON.NodeEditor {
20
20
  export class LogComponent extends React.Component<ILogComponentProps, {
21
21
  logs: LogEntry[];
22
22
  }> {
23
+ private _logConsoleRef;
23
24
  constructor(props: ILogComponentProps);
24
25
  componentDidMount(): void;
25
26
  componentDidUpdate(): void;
@@ -343,7 +344,7 @@ declare module BABYLON.NodeEditor {
343
344
  componentWillUnmount(): void;
344
345
  constructor(props: IGraphEditorProps);
345
346
  zoomToFit(): void;
346
- buildMaterial(autoConfigure?: boolean): void;
347
+ buildMaterial(): void;
347
348
  build(ignoreEditorData?: boolean): void;
348
349
  loadGraph(): void;
349
350
  showWaitScreen(): void;
@@ -383,6 +384,7 @@ declare module BABYLON.NodeEditor {
383
384
  getPortByName(name: string): BABYLON.NodeEditor.SharedUIComponents.IPortData | null;
384
385
  dispose(): void;
385
386
  prepareHeaderIcon(iconDiv: HTMLDivElement, img: HTMLImageElement): void;
387
+ get invisibleEndpoints(): import("core/Materials/Node/Blocks").NodeMaterialTeleportOutBlock[] | null;
386
388
  constructor(data: BABYLON.NodeMaterialBlock, nodeContainer: BABYLON.NodeEditor.SharedUIComponents.INodeContainer);
387
389
  }
388
390
 
@@ -531,6 +533,30 @@ declare module BABYLON.NodeEditor {
531
533
  }
532
534
 
533
535
 
536
+ export class TeleportInDisplayManager implements BABYLON.NodeEditor.SharedUIComponents.IDisplayManager {
537
+ private _hasHighlights;
538
+ getHeaderClass(): string;
539
+ shouldDisplayPortLabels(): boolean;
540
+ getHeaderText(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
541
+ getBackgroundColor(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
542
+ updatePreviewContent(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, contentArea: HTMLDivElement): void;
543
+ onSelectionChanged(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, selectedData: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.INodeData>, manager: BABYLON.NodeEditor.SharedUIComponents.StateManager): void;
544
+ onDispose(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, manager: BABYLON.NodeEditor.SharedUIComponents.StateManager): void;
545
+ }
546
+
547
+
548
+ export class TeleportOutDisplayManager implements BABYLON.NodeEditor.SharedUIComponents.IDisplayManager {
549
+ private _hasHighlights;
550
+ getHeaderClass(): string;
551
+ shouldDisplayPortLabels(): boolean;
552
+ getHeaderText(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
553
+ getBackgroundColor(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
554
+ updatePreviewContent(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, contentArea: HTMLDivElement): void;
555
+ onSelectionChanged(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, selectedData: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.INodeData>, manager: BABYLON.NodeEditor.SharedUIComponents.StateManager): void;
556
+ onDispose(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, manager: BABYLON.NodeEditor.SharedUIComponents.StateManager): void;
557
+ }
558
+
559
+
534
560
  export class TextureDisplayManager implements BABYLON.NodeEditor.SharedUIComponents.IDisplayManager {
535
561
  private _previewCanvas;
536
562
  private _previewImage;
@@ -697,14 +723,21 @@ declare module BABYLON.NodeEditor {
697
723
  nodePort: BABYLON.NodeEditor.SharedUIComponents.NodePort;
698
724
  }
699
725
  export class NodePortPropertyTabComponent extends React.Component<IFrameNodePortPropertyTabComponentProps> {
700
- private _onSelectionChangedObserver;
701
726
  constructor(props: IFrameNodePortPropertyTabComponentProps);
702
- componentWillUnmount(): void;
703
727
  toggleExposeOnFrame(value: boolean): void;
704
728
  render(): JSX.Element;
705
729
  }
706
730
 
707
731
 
732
+ export class TeleportOutPropertyTabComponent extends React.Component<BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps> {
733
+ private _onUpdateRequiredObserver;
734
+ constructor(props: BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps);
735
+ componentDidMount(): void;
736
+ componentWillUnmount(): void;
737
+ render(): JSX.Element;
738
+ }
739
+
740
+
708
741
  type ReflectionTexture = BABYLON.ReflectionTextureBlock | BABYLON.ReflectionBlock | BABYLON.RefractionBlock;
709
742
  type AnyTexture = BABYLON.TextureBlock | ReflectionTexture | BABYLON.CurrentScreenBlock | BABYLON.ParticleTextureBlock | BABYLON.TriPlanarBlock;
710
743
  export class TexturePropertyTabComponent extends React.Component<BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps, {
@@ -2465,7 +2498,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
2465
2498
  private _store;
2466
2499
  constructor(props: IFloatLineComponentProps);
2467
2500
  componentWillUnmount(): void;
2468
- getValueString(value: any): string;
2501
+ getValueString(value: any, props: IFloatLineComponentProps): string;
2469
2502
  shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
2470
2503
  value: string;
2471
2504
  dragging: boolean;
@@ -3450,6 +3483,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
3450
3483
  private _outputsContainer;
3451
3484
  private _content;
3452
3485
  private _comments;
3486
+ private _executionTime;
3453
3487
  private _selectionBorder;
3454
3488
  private _inputPorts;
3455
3489
  private _outputPorts;
@@ -3465,6 +3499,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
3465
3499
  private _onSelectionBoxMovedObserver;
3466
3500
  private _onFrameCreatedObserver;
3467
3501
  private _onUpdateRequiredObserver;
3502
+ private _onHighlightNodeObserver;
3468
3503
  private _ownerCanvas;
3469
3504
  private _isSelected;
3470
3505
  private _displayManager;
@@ -3528,6 +3563,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
3528
3563
  updateFullVisualContent?(data: BABYLON.NodeEditor.SharedUIComponents.INodeData, visualContent: VisualContentDescription): void;
3529
3564
  getBackgroundColor(data: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
3530
3565
  getHeaderText(data: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
3566
+ onSelectionChanged?(data: BABYLON.NodeEditor.SharedUIComponents.INodeData, selectedData: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.INodeData>, manager: BABYLON.NodeEditor.SharedUIComponents.StateManager): void;
3567
+ onDispose?(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, manager: BABYLON.NodeEditor.SharedUIComponents.StateManager): void;
3531
3568
  }
3532
3569
 
3533
3570
 
@@ -3555,12 +3592,16 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
3555
3592
  uniqueId: number;
3556
3593
  isInput: boolean;
3557
3594
  comments: string;
3595
+ executionTime?: number;
3596
+ refreshCallback?: () => void;
3558
3597
  prepareHeaderIcon: (iconDiv: HTMLDivElement, img: HTMLImageElement) => void;
3559
3598
  getClassName: () => string;
3560
3599
  dispose: () => void;
3561
3600
  getPortByName: (name: string) => BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>;
3562
3601
  inputs: BABYLON.NodeEditor.SharedUIComponents.IPortData[];
3563
3602
  outputs: BABYLON.NodeEditor.SharedUIComponents.IPortData[];
3603
+ invisibleEndpoints?: BABYLON.Nullable<any[]>;
3604
+ isConnectedToOutput?: () => boolean;
3564
3605
  }
3565
3606
 
3566
3607
 
@@ -3800,11 +3841,11 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
3800
3841
  onFrameCreatedObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>;
3801
3842
  onUpdateRequiredObservable: BABYLON.Observable<any>;
3802
3843
  onGraphNodeRemovalObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.GraphNode>;
3803
- onSelectionBoxMoved: BABYLON.Observable<ClientRect | DOMRect>;
3844
+ onSelectionBoxMoved: BABYLON.Observable<DOMRect | ClientRect>;
3804
3845
  onCandidateLinkMoved: BABYLON.Observable<BABYLON.Nullable<BABYLON.Vector2>>;
3805
3846
  onCandidatePortSelectedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort>>;
3806
3847
  onNewNodeCreatedObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.GraphNode>;
3807
- onRebuildRequiredObservable: BABYLON.Observable<boolean>;
3848
+ onRebuildRequiredObservable: BABYLON.Observable<void>;
3808
3849
  onErrorMessageDialogRequiredObservable: BABYLON.Observable<string>;
3809
3850
  onExposePortOnFrameObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.GraphNode>;
3810
3851
  onGridSizeChanged: BABYLON.Observable<void>;
@@ -3815,6 +3856,10 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
3815
3856
  needRepositioning?: boolean | undefined;
3816
3857
  smartAdd?: boolean | undefined;
3817
3858
  }>;
3859
+ onHighlightNodeObservable: BABYLON.Observable<{
3860
+ data: any;
3861
+ active: boolean;
3862
+ }>;
3818
3863
  exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => string;
3819
3864
  isElbowConnectionAllowed: (nodeA: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort) => boolean;
3820
3865
  applyNodePortDesign: (data: BABYLON.NodeEditor.SharedUIComponents.IPortData, element: HTMLElement, img: HTMLImageElement) => void;
@@ -3836,7 +3881,7 @@ declare module BABYLON.NodeEditor {
3836
3881
  }
3837
3882
  declare module BABYLON.NodeEditor.SharedUIComponents {
3838
3883
  export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.NodeEditor.SharedUIComponents.FramePortData;
3839
- export const RefreshNode: (node: BABYLON.NodeEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.NodeEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.NodeEditor.SharedUIComponents.NodeLink>) => void;
3884
+ export const RefreshNode: (node: BABYLON.NodeEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.NodeEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.NodeEditor.SharedUIComponents.NodeLink>, canvas?: BABYLON.NodeEditor.SharedUIComponents.GraphCanvasComponent) => void;
3840
3885
 
3841
3886
 
3842
3887