babylonjs-node-editor 6.15.0 → 6.16.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
|
@@ -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";
|
|
@@ -383,6 +383,7 @@ declare module BABYLON.NodeEditor {
|
|
|
383
383
|
getPortByName(name: string): BABYLON.NodeEditor.SharedUIComponents.IPortData | null;
|
|
384
384
|
dispose(): void;
|
|
385
385
|
prepareHeaderIcon(iconDiv: HTMLDivElement, img: HTMLImageElement): void;
|
|
386
|
+
get invisibleEndpoints(): import("core/Materials/Node/Blocks").NodeMaterialTeleportOutBlock[] | null;
|
|
386
387
|
constructor(data: BABYLON.NodeMaterialBlock, nodeContainer: BABYLON.NodeEditor.SharedUIComponents.INodeContainer);
|
|
387
388
|
}
|
|
388
389
|
|
|
@@ -531,6 +532,30 @@ declare module BABYLON.NodeEditor {
|
|
|
531
532
|
}
|
|
532
533
|
|
|
533
534
|
|
|
535
|
+
export class TeleportInDisplayManager implements BABYLON.NodeEditor.SharedUIComponents.IDisplayManager {
|
|
536
|
+
private _hasHighlights;
|
|
537
|
+
getHeaderClass(): string;
|
|
538
|
+
shouldDisplayPortLabels(): boolean;
|
|
539
|
+
getHeaderText(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
|
|
540
|
+
getBackgroundColor(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
|
|
541
|
+
updatePreviewContent(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, contentArea: HTMLDivElement): void;
|
|
542
|
+
onSelectionChanged(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, selectedData: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.INodeData>, manager: BABYLON.NodeEditor.SharedUIComponents.StateManager): void;
|
|
543
|
+
onDispose(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, manager: BABYLON.NodeEditor.SharedUIComponents.StateManager): void;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
export class TeleportOutDisplayManager implements BABYLON.NodeEditor.SharedUIComponents.IDisplayManager {
|
|
548
|
+
private _hasHighlights;
|
|
549
|
+
getHeaderClass(): string;
|
|
550
|
+
shouldDisplayPortLabels(): boolean;
|
|
551
|
+
getHeaderText(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
|
|
552
|
+
getBackgroundColor(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData): string;
|
|
553
|
+
updatePreviewContent(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, contentArea: HTMLDivElement): void;
|
|
554
|
+
onSelectionChanged(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, selectedData: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.INodeData>, manager: BABYLON.NodeEditor.SharedUIComponents.StateManager): void;
|
|
555
|
+
onDispose(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, manager: BABYLON.NodeEditor.SharedUIComponents.StateManager): void;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
|
|
534
559
|
export class TextureDisplayManager implements BABYLON.NodeEditor.SharedUIComponents.IDisplayManager {
|
|
535
560
|
private _previewCanvas;
|
|
536
561
|
private _previewImage;
|
|
@@ -705,6 +730,15 @@ declare module BABYLON.NodeEditor {
|
|
|
705
730
|
}
|
|
706
731
|
|
|
707
732
|
|
|
733
|
+
export class TeleportOutPropertyTabComponent extends React.Component<BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps> {
|
|
734
|
+
private _onUpdateRequiredObserver;
|
|
735
|
+
constructor(props: BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps);
|
|
736
|
+
componentDidMount(): void;
|
|
737
|
+
componentWillUnmount(): void;
|
|
738
|
+
render(): JSX.Element;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
|
|
708
742
|
type ReflectionTexture = BABYLON.ReflectionTextureBlock | BABYLON.ReflectionBlock | BABYLON.RefractionBlock;
|
|
709
743
|
type AnyTexture = BABYLON.TextureBlock | ReflectionTexture | BABYLON.CurrentScreenBlock | BABYLON.ParticleTextureBlock | BABYLON.TriPlanarBlock;
|
|
710
744
|
export class TexturePropertyTabComponent extends React.Component<BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps, {
|
|
@@ -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
|
|
|
@@ -3561,6 +3598,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
3561
3598
|
getPortByName: (name: string) => BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>;
|
|
3562
3599
|
inputs: BABYLON.NodeEditor.SharedUIComponents.IPortData[];
|
|
3563
3600
|
outputs: BABYLON.NodeEditor.SharedUIComponents.IPortData[];
|
|
3601
|
+
invisibleEndpoints?: BABYLON.Nullable<any[]>;
|
|
3564
3602
|
}
|
|
3565
3603
|
|
|
3566
3604
|
|
|
@@ -3800,7 +3838,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
3800
3838
|
onFrameCreatedObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>;
|
|
3801
3839
|
onUpdateRequiredObservable: BABYLON.Observable<any>;
|
|
3802
3840
|
onGraphNodeRemovalObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.GraphNode>;
|
|
3803
|
-
onSelectionBoxMoved: BABYLON.Observable<
|
|
3841
|
+
onSelectionBoxMoved: BABYLON.Observable<DOMRect | ClientRect>;
|
|
3804
3842
|
onCandidateLinkMoved: BABYLON.Observable<BABYLON.Nullable<BABYLON.Vector2>>;
|
|
3805
3843
|
onCandidatePortSelectedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort>>;
|
|
3806
3844
|
onNewNodeCreatedObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.GraphNode>;
|
|
@@ -3815,6 +3853,10 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
3815
3853
|
needRepositioning?: boolean | undefined;
|
|
3816
3854
|
smartAdd?: boolean | undefined;
|
|
3817
3855
|
}>;
|
|
3856
|
+
onHighlightNodeObservable: BABYLON.Observable<{
|
|
3857
|
+
data: any;
|
|
3858
|
+
active: boolean;
|
|
3859
|
+
}>;
|
|
3818
3860
|
exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => string;
|
|
3819
3861
|
isElbowConnectionAllowed: (nodeA: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort) => boolean;
|
|
3820
3862
|
applyNodePortDesign: (data: BABYLON.NodeEditor.SharedUIComponents.IPortData, element: HTMLElement, img: HTMLImageElement) => void;
|
|
@@ -3836,7 +3878,7 @@ declare module BABYLON.NodeEditor {
|
|
|
3836
3878
|
}
|
|
3837
3879
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
3838
3880
|
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
|
|
3881
|
+
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
3882
|
|
|
3841
3883
|
|
|
3842
3884
|
|