babylonjs-node-editor 5.18.0 → 5.21.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.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.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 | null;
|
|
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.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 | 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";
|
|
@@ -305,6 +305,8 @@ declare module BABYLON.NodeEditor {
|
|
|
305
305
|
}
|
|
306
306
|
interface IGraphEditorState {
|
|
307
307
|
showPreviewPopUp: boolean;
|
|
308
|
+
message: string;
|
|
309
|
+
isError: boolean;
|
|
308
310
|
}
|
|
309
311
|
interface IInternalPreviewAreaOptions extends BABYLON.IInspectorOptions {
|
|
310
312
|
popup: boolean;
|
|
@@ -882,18 +884,6 @@ declare module BABYLON.NodeEditor {
|
|
|
882
884
|
}
|
|
883
885
|
|
|
884
886
|
|
|
885
|
-
interface IMessageDialogComponentProps {
|
|
886
|
-
globalState: GlobalState;
|
|
887
|
-
}
|
|
888
|
-
export class MessageDialogComponent extends React.Component<IMessageDialogComponentProps, {
|
|
889
|
-
message: string;
|
|
890
|
-
isError: boolean;
|
|
891
|
-
}> {
|
|
892
|
-
constructor(props: IMessageDialogComponentProps);
|
|
893
|
-
render(): JSX.Element | null;
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
|
|
897
887
|
export class Popup {
|
|
898
888
|
static CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
|
|
899
889
|
static _CopyStyles(sourceDoc: HTMLDocument, targetDoc: HTMLDocument): void;
|
|
@@ -1076,6 +1066,19 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1076
1066
|
|
|
1077
1067
|
|
|
1078
1068
|
|
|
1069
|
+
}
|
|
1070
|
+
declare module BABYLON.NodeEditor {
|
|
1071
|
+
|
|
1072
|
+
}
|
|
1073
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1074
|
+
export interface MessageDialogProps {
|
|
1075
|
+
message: string;
|
|
1076
|
+
isError: boolean;
|
|
1077
|
+
}
|
|
1078
|
+
export var MessageDialog: React.FC<MessageDialogProps>;
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
|
|
1079
1082
|
}
|
|
1080
1083
|
declare module BABYLON.NodeEditor {
|
|
1081
1084
|
|
|
@@ -1398,8 +1401,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1398
1401
|
updateValue(valueString: string): void;
|
|
1399
1402
|
lock(): void;
|
|
1400
1403
|
unlock(): void;
|
|
1401
|
-
incrementValue(amount: number): void;
|
|
1402
|
-
onKeyDown(event: React.KeyboardEvent): void;
|
|
1404
|
+
incrementValue(amount: number, processStep?: boolean): void;
|
|
1405
|
+
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
|
1403
1406
|
render(): JSX.Element;
|
|
1404
1407
|
}
|
|
1405
1408
|
|
|
@@ -1660,8 +1663,10 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1660
1663
|
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
1661
1664
|
value: string;
|
|
1662
1665
|
}): boolean;
|
|
1663
|
-
updateValue(
|
|
1666
|
+
updateValue(valueString: string): void;
|
|
1664
1667
|
onBlur(): void;
|
|
1668
|
+
incrementValue(amount: number): void;
|
|
1669
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
1665
1670
|
render(): JSX.Element;
|
|
1666
1671
|
}
|
|
1667
1672
|
|
|
@@ -2127,6 +2132,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2127
2132
|
private _oldY;
|
|
2128
2133
|
_frameIsMoving: boolean;
|
|
2129
2134
|
_isLoading: boolean;
|
|
2135
|
+
_targetLinkCandidate: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.NodeLink>;
|
|
2130
2136
|
private _copiedNodes;
|
|
2131
2137
|
private _copiedFrames;
|
|
2132
2138
|
get gridSize(): number;
|
|
@@ -2153,7 +2159,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2153
2159
|
private _selectedFrameAndNodesConflict;
|
|
2154
2160
|
constructor(props: IGraphCanvasComponentProps);
|
|
2155
2161
|
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;
|
|
2162
|
+
automaticRewire(inputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], outputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], firstOnly?: boolean): void;
|
|
2157
2163
|
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
2164
|
pasteSelection(copiedNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, selectNew?: boolean): BABYLON.NodeEditor.SharedUIComponents.GraphNode[];
|
|
2159
2165
|
reconnectNewNodes(nodeIndex: number, newNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], sourceNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], done: boolean[]): void;
|
|
@@ -2575,13 +2581,17 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2575
2581
|
private _selectionPath;
|
|
2576
2582
|
private _onSelectionChangedObserver;
|
|
2577
2583
|
private _isVisible;
|
|
2584
|
+
private _isTargetCandidate;
|
|
2578
2585
|
onDisposedObservable: BABYLON.Observable<NodeLink>;
|
|
2586
|
+
get isTargetCandidate(): boolean;
|
|
2587
|
+
set isTargetCandidate(value: boolean);
|
|
2579
2588
|
get isVisible(): boolean;
|
|
2580
2589
|
set isVisible(value: boolean);
|
|
2581
2590
|
get portA(): BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort;
|
|
2582
2591
|
get portB(): BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort | undefined;
|
|
2583
2592
|
get nodeA(): BABYLON.NodeEditor.SharedUIComponents.GraphNode;
|
|
2584
2593
|
get nodeB(): BABYLON.NodeEditor.SharedUIComponents.GraphNode | undefined;
|
|
2594
|
+
intersectsWith(rect: DOMRect): boolean;
|
|
2585
2595
|
update(endX?: number, endY?: number, straight?: boolean): void;
|
|
2586
2596
|
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
2597
|
onClick(evt: MouseEvent): void;
|
|
@@ -2774,6 +2784,21 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2774
2784
|
|
|
2775
2785
|
|
|
2776
2786
|
|
|
2787
|
+
}
|
|
2788
|
+
declare module BABYLON.NodeEditor {
|
|
2789
|
+
|
|
2790
|
+
}
|
|
2791
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2792
|
+
/// <reference types="react" />
|
|
2793
|
+
var _default: {
|
|
2794
|
+
title: string;
|
|
2795
|
+
component: import("react").FC<BABYLON.NodeEditor.SharedUIComponents.MessageDialogProps>;
|
|
2796
|
+
};
|
|
2797
|
+
export var NoError: any;
|
|
2798
|
+
export var Error: any;
|
|
2799
|
+
|
|
2800
|
+
|
|
2801
|
+
|
|
2777
2802
|
}
|
|
2778
2803
|
declare module BABYLON.NodeEditor {
|
|
2779
2804
|
|