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.
|
@@ -84,11 +84,12 @@ import { ImageSourceBlock } from "babylonjs/Materials/Node/Blocks/Dual/imageSour
|
|
|
84
84
|
import { CloudBlock } from "babylonjs/Materials/Node/Blocks/cloudBlock";
|
|
85
85
|
import { VoronoiNoiseBlock } from "babylonjs/Materials/Node/Blocks/voronoiNoiseBlock";
|
|
86
86
|
import { ScreenSpaceBlock } from "babylonjs/Materials/Node/Blocks/Fragment/screenSpaceBlock";
|
|
87
|
+
import { HeightToNormalBlock } from "babylonjs/Materials/Node/Blocks/Fragment/heightToNormalBlock";
|
|
87
88
|
import { TwirlBlock } from "babylonjs/Materials/Node/Blocks/Fragment/twirlBlock";
|
|
88
89
|
import { ElbowBlock } from "babylonjs/Materials/Node/Blocks/elbowBlock";
|
|
89
90
|
import { ClipPlanesBlock } from "babylonjs/Materials/Node/Blocks/Dual/clipPlanesBlock";
|
|
90
91
|
export class BlockTools {
|
|
91
|
-
static GetBlockFromString(data: string, scene: Scene, nodeMaterial: NodeMaterial): ElbowBlock | TwirlBlock | VoronoiNoiseBlock | ScreenSpaceBlock | CloudBlock | MatrixBuilderBlock | DesaturateBlock | RefractBlock | ReflectBlock | DerivativeBlock | Rotate2dBlock | NormalBlendBlock | WorleyNoise3DBlock | SimplexPerlin3DBlock | BonesBlock | InstancesBlock | MorphTargetsBlock | DiscardBlock | ImageProcessingBlock | ColorMergerBlock | VectorMergerBlock | ColorSplitterBlock | VectorSplitterBlock | TextureBlock | ReflectionTextureBlock | LightBlock | FogBlock | VertexOutputBlock | FragmentOutputBlock | AddBlock | ClampBlock | ScaleBlock | CrossBlock | DotBlock | PowBlock | MultiplyBlock | TransformBlock | TrigonometryBlock | RemapBlock | NormalizeBlock | FresnelBlock | LerpBlock | NLerpBlock | DivideBlock | SubtractBlock | ModBlock | StepBlock | SmoothStepBlock | OneMinusBlock | ReciprocalBlock | ViewDirectionBlock | LightInformationBlock | MaxBlock | MinBlock | LengthBlock | DistanceBlock | NegateBlock | PerturbNormalBlock | TBNBlock | RandomNumberBlock | ReplaceColorBlock | PosterizeBlock | ArcTan2Block | GradientBlock | FrontFacingBlock | WaveBlock | InputBlock | PBRMetallicRoughnessBlock | SheenBlock | AnisotropyBlock | ReflectionBlock | ClearCoatBlock | RefractionBlock | SubSurfaceBlock | CurrentScreenBlock | ParticleTextureBlock | ParticleRampGradientBlock | ParticleBlendMultiplyBlock | FragCoordBlock | ScreenSizeBlock | SceneDepthBlock | ConditionalBlock | ImageSourceBlock | ClipPlanesBlock | null;
|
|
92
|
+
static GetBlockFromString(data: string, scene: Scene, nodeMaterial: NodeMaterial): HeightToNormalBlock | ElbowBlock | TwirlBlock | VoronoiNoiseBlock | ScreenSpaceBlock | CloudBlock | MatrixBuilderBlock | DesaturateBlock | RefractBlock | ReflectBlock | DerivativeBlock | Rotate2dBlock | NormalBlendBlock | WorleyNoise3DBlock | SimplexPerlin3DBlock | BonesBlock | InstancesBlock | MorphTargetsBlock | DiscardBlock | ImageProcessingBlock | ColorMergerBlock | VectorMergerBlock | ColorSplitterBlock | VectorSplitterBlock | TextureBlock | ReflectionTextureBlock | LightBlock | FogBlock | VertexOutputBlock | FragmentOutputBlock | AddBlock | ClampBlock | ScaleBlock | CrossBlock | DotBlock | PowBlock | MultiplyBlock | TransformBlock | TrigonometryBlock | RemapBlock | NormalizeBlock | FresnelBlock | LerpBlock | NLerpBlock | DivideBlock | SubtractBlock | ModBlock | StepBlock | SmoothStepBlock | OneMinusBlock | ReciprocalBlock | ViewDirectionBlock | LightInformationBlock | MaxBlock | MinBlock | LengthBlock | DistanceBlock | NegateBlock | PerturbNormalBlock | TBNBlock | RandomNumberBlock | ReplaceColorBlock | PosterizeBlock | ArcTan2Block | GradientBlock | FrontFacingBlock | WaveBlock | InputBlock | PBRMetallicRoughnessBlock | SheenBlock | AnisotropyBlock | ReflectionBlock | ClearCoatBlock | RefractionBlock | SubSurfaceBlock | CurrentScreenBlock | ParticleTextureBlock | ParticleRampGradientBlock | ParticleBlendMultiplyBlock | FragCoordBlock | ScreenSizeBlock | SceneDepthBlock | ConditionalBlock | ImageSourceBlock | ClipPlanesBlock | null;
|
|
92
93
|
static GetColorFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): string;
|
|
93
94
|
static GetConnectionNodeTypeFromString(type: string): NodeMaterialBlockConnectionPointTypes.Float | NodeMaterialBlockConnectionPointTypes.Vector2 | NodeMaterialBlockConnectionPointTypes.Vector3 | NodeMaterialBlockConnectionPointTypes.Vector4 | NodeMaterialBlockConnectionPointTypes.Color3 | NodeMaterialBlockConnectionPointTypes.Color4 | NodeMaterialBlockConnectionPointTypes.Matrix | NodeMaterialBlockConnectionPointTypes.AutoDetect;
|
|
94
95
|
static GetStringFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): "" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix" | "Color3" | "Color4";
|
|
@@ -498,6 +499,8 @@ interface IGraphEditorProps {
|
|
|
498
499
|
}
|
|
499
500
|
interface IGraphEditorState {
|
|
500
501
|
showPreviewPopUp: boolean;
|
|
502
|
+
message: string;
|
|
503
|
+
isError: boolean;
|
|
501
504
|
}
|
|
502
505
|
interface IInternalPreviewAreaOptions extends IInspectorOptions {
|
|
503
506
|
popup: boolean;
|
|
@@ -1237,22 +1240,6 @@ export class LineWithFileButtonComponent extends React.Component<ILineWithFileBu
|
|
|
1237
1240
|
}
|
|
1238
1241
|
export {};
|
|
1239
1242
|
|
|
1240
|
-
}
|
|
1241
|
-
declare module "babylonjs-node-editor/sharedComponents/messageDialog" {
|
|
1242
|
-
import * as React from "react";
|
|
1243
|
-
import { GlobalState } from "babylonjs-node-editor/globalState";
|
|
1244
|
-
interface IMessageDialogComponentProps {
|
|
1245
|
-
globalState: GlobalState;
|
|
1246
|
-
}
|
|
1247
|
-
export class MessageDialogComponent extends React.Component<IMessageDialogComponentProps, {
|
|
1248
|
-
message: string;
|
|
1249
|
-
isError: boolean;
|
|
1250
|
-
}> {
|
|
1251
|
-
constructor(props: IMessageDialogComponentProps);
|
|
1252
|
-
render(): JSX.Element | null;
|
|
1253
|
-
}
|
|
1254
|
-
export {};
|
|
1255
|
-
|
|
1256
1243
|
}
|
|
1257
1244
|
declare module "babylonjs-node-editor/sharedComponents/popup" {
|
|
1258
1245
|
export class Popup {
|
|
@@ -1416,6 +1403,15 @@ export type LabelProps = {
|
|
|
1416
1403
|
};
|
|
1417
1404
|
export const Label: React.FC<LabelProps>;
|
|
1418
1405
|
|
|
1406
|
+
}
|
|
1407
|
+
declare module "babylonjs-node-editor/components/MessageDialog" {
|
|
1408
|
+
import * as React from "react";
|
|
1409
|
+
export interface MessageDialogProps {
|
|
1410
|
+
message: string;
|
|
1411
|
+
isError: boolean;
|
|
1412
|
+
}
|
|
1413
|
+
export const MessageDialog: React.FC<MessageDialogProps>;
|
|
1414
|
+
|
|
1419
1415
|
}
|
|
1420
1416
|
declare module "babylonjs-node-editor/components/Toggle" {
|
|
1421
1417
|
/// <reference types="react" />
|
|
@@ -1713,8 +1709,8 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
|
|
|
1713
1709
|
updateValue(valueString: string): void;
|
|
1714
1710
|
lock(): void;
|
|
1715
1711
|
unlock(): void;
|
|
1716
|
-
incrementValue(amount: number): void;
|
|
1717
|
-
onKeyDown(event: React.KeyboardEvent): void;
|
|
1712
|
+
incrementValue(amount: number, processStep?: boolean): void;
|
|
1713
|
+
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
|
1718
1714
|
render(): JSX.Element;
|
|
1719
1715
|
}
|
|
1720
1716
|
export {};
|
|
@@ -1951,8 +1947,10 @@ export class NumericInputComponent extends React.Component<INumericInputComponen
|
|
|
1951
1947
|
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
1952
1948
|
value: string;
|
|
1953
1949
|
}): boolean;
|
|
1954
|
-
updateValue(
|
|
1950
|
+
updateValue(valueString: string): void;
|
|
1955
1951
|
onBlur(): void;
|
|
1952
|
+
incrementValue(amount: number): void;
|
|
1953
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
1956
1954
|
render(): JSX.Element;
|
|
1957
1955
|
}
|
|
1958
1956
|
export {};
|
|
@@ -2405,6 +2403,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2405
2403
|
private _oldY;
|
|
2406
2404
|
_frameIsMoving: boolean;
|
|
2407
2405
|
_isLoading: boolean;
|
|
2406
|
+
_targetLinkCandidate: Nullable<NodeLink>;
|
|
2408
2407
|
private _copiedNodes;
|
|
2409
2408
|
private _copiedFrames;
|
|
2410
2409
|
get gridSize(): number;
|
|
@@ -2431,7 +2430,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2431
2430
|
private _selectedFrameAndNodesConflict;
|
|
2432
2431
|
constructor(props: IGraphCanvasComponentProps);
|
|
2433
2432
|
populateConnectedEntriesBeforeRemoval(item: GraphNode, items: GraphNode[], inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
|
2434
|
-
automaticRewire(inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
|
2433
|
+
automaticRewire(inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[], firstOnly?: boolean): void;
|
|
2435
2434
|
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: INodeData) => any, rootElement: HTMLDivElement): void;
|
|
2436
2435
|
pasteSelection(copiedNodes: GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: INodeData) => any, selectNew?: boolean): GraphNode[];
|
|
2437
2436
|
reconnectNewNodes(nodeIndex: number, newNodes: GraphNode[], sourceNodes: GraphNode[], done: boolean[]): void;
|
|
@@ -2839,13 +2838,17 @@ export class NodeLink {
|
|
|
2839
2838
|
private _selectionPath;
|
|
2840
2839
|
private _onSelectionChangedObserver;
|
|
2841
2840
|
private _isVisible;
|
|
2841
|
+
private _isTargetCandidate;
|
|
2842
2842
|
onDisposedObservable: Observable<NodeLink>;
|
|
2843
|
+
get isTargetCandidate(): boolean;
|
|
2844
|
+
set isTargetCandidate(value: boolean);
|
|
2843
2845
|
get isVisible(): boolean;
|
|
2844
2846
|
set isVisible(value: boolean);
|
|
2845
2847
|
get portA(): FrameNodePort | NodePort;
|
|
2846
2848
|
get portB(): FrameNodePort | NodePort | undefined;
|
|
2847
2849
|
get nodeA(): GraphNode;
|
|
2848
2850
|
get nodeB(): GraphNode | undefined;
|
|
2851
|
+
intersectsWith(rect: DOMRect): boolean;
|
|
2849
2852
|
update(endX?: number, endY?: number, straight?: boolean): void;
|
|
2850
2853
|
constructor(graphCanvas: GraphCanvasComponent, portA: NodePort, nodeA: GraphNode, portB?: NodePort, nodeB?: GraphNode);
|
|
2851
2854
|
onClick(evt: MouseEvent): void;
|
|
@@ -3024,6 +3027,18 @@ const _default: {
|
|
|
3024
3027
|
export default _default;
|
|
3025
3028
|
export const Default: any;
|
|
3026
3029
|
|
|
3030
|
+
}
|
|
3031
|
+
declare module "babylonjs-node-editor/stories/MessageDialog.stories" {
|
|
3032
|
+
/// <reference types="react" />
|
|
3033
|
+
import { MessageDialogProps } from "babylonjs-node-editor/components/MessageDialog";
|
|
3034
|
+
const _default: {
|
|
3035
|
+
title: string;
|
|
3036
|
+
component: import("react").FC<MessageDialogProps>;
|
|
3037
|
+
};
|
|
3038
|
+
export default _default;
|
|
3039
|
+
export const NoError: any;
|
|
3040
|
+
export const Error: any;
|
|
3041
|
+
|
|
3027
3042
|
}
|
|
3028
3043
|
declare module "babylonjs-node-editor/stories/Toggle.stories" {
|
|
3029
3044
|
/// <reference types="react" />
|
|
@@ -3364,7 +3379,7 @@ declare module "babylonjs-node-editor" {
|
|
|
3364
3379
|
|
|
3365
3380
|
declare module BABYLON.NodeEditor {
|
|
3366
3381
|
export class BlockTools {
|
|
3367
|
-
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;
|
|
3382
|
+
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;
|
|
3368
3383
|
static GetColorFromConnectionNodeType(type: BABYLON.NodeMaterialBlockConnectionPointTypes): string;
|
|
3369
3384
|
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;
|
|
3370
3385
|
static GetStringFromConnectionNodeType(type: BABYLON.NodeMaterialBlockConnectionPointTypes): "" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix" | "Color3" | "Color4";
|
|
@@ -3668,6 +3683,8 @@ declare module BABYLON.NodeEditor {
|
|
|
3668
3683
|
}
|
|
3669
3684
|
interface IGraphEditorState {
|
|
3670
3685
|
showPreviewPopUp: boolean;
|
|
3686
|
+
message: string;
|
|
3687
|
+
isError: boolean;
|
|
3671
3688
|
}
|
|
3672
3689
|
interface IInternalPreviewAreaOptions extends BABYLON.IInspectorOptions {
|
|
3673
3690
|
popup: boolean;
|
|
@@ -4245,18 +4262,6 @@ declare module BABYLON.NodeEditor {
|
|
|
4245
4262
|
}
|
|
4246
4263
|
|
|
4247
4264
|
|
|
4248
|
-
interface IMessageDialogComponentProps {
|
|
4249
|
-
globalState: GlobalState;
|
|
4250
|
-
}
|
|
4251
|
-
export class MessageDialogComponent extends React.Component<IMessageDialogComponentProps, {
|
|
4252
|
-
message: string;
|
|
4253
|
-
isError: boolean;
|
|
4254
|
-
}> {
|
|
4255
|
-
constructor(props: IMessageDialogComponentProps);
|
|
4256
|
-
render(): JSX.Element | null;
|
|
4257
|
-
}
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
4265
|
export class Popup {
|
|
4261
4266
|
static CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
|
|
4262
4267
|
static _CopyStyles(sourceDoc: HTMLDocument, targetDoc: HTMLDocument): void;
|
|
@@ -4439,6 +4444,19 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
4439
4444
|
|
|
4440
4445
|
|
|
4441
4446
|
|
|
4447
|
+
}
|
|
4448
|
+
declare module BABYLON.NodeEditor {
|
|
4449
|
+
|
|
4450
|
+
}
|
|
4451
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
4452
|
+
export interface MessageDialogProps {
|
|
4453
|
+
message: string;
|
|
4454
|
+
isError: boolean;
|
|
4455
|
+
}
|
|
4456
|
+
export var MessageDialog: React.FC<MessageDialogProps>;
|
|
4457
|
+
|
|
4458
|
+
|
|
4459
|
+
|
|
4442
4460
|
}
|
|
4443
4461
|
declare module BABYLON.NodeEditor {
|
|
4444
4462
|
|
|
@@ -4761,8 +4779,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
4761
4779
|
updateValue(valueString: string): void;
|
|
4762
4780
|
lock(): void;
|
|
4763
4781
|
unlock(): void;
|
|
4764
|
-
incrementValue(amount: number): void;
|
|
4765
|
-
onKeyDown(event: React.KeyboardEvent): void;
|
|
4782
|
+
incrementValue(amount: number, processStep?: boolean): void;
|
|
4783
|
+
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
|
4766
4784
|
render(): JSX.Element;
|
|
4767
4785
|
}
|
|
4768
4786
|
|
|
@@ -5023,8 +5041,10 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5023
5041
|
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
5024
5042
|
value: string;
|
|
5025
5043
|
}): boolean;
|
|
5026
|
-
updateValue(
|
|
5044
|
+
updateValue(valueString: string): void;
|
|
5027
5045
|
onBlur(): void;
|
|
5046
|
+
incrementValue(amount: number): void;
|
|
5047
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
5028
5048
|
render(): JSX.Element;
|
|
5029
5049
|
}
|
|
5030
5050
|
|
|
@@ -5490,6 +5510,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5490
5510
|
private _oldY;
|
|
5491
5511
|
_frameIsMoving: boolean;
|
|
5492
5512
|
_isLoading: boolean;
|
|
5513
|
+
_targetLinkCandidate: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.NodeLink>;
|
|
5493
5514
|
private _copiedNodes;
|
|
5494
5515
|
private _copiedFrames;
|
|
5495
5516
|
get gridSize(): number;
|
|
@@ -5516,7 +5537,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5516
5537
|
private _selectedFrameAndNodesConflict;
|
|
5517
5538
|
constructor(props: IGraphCanvasComponentProps);
|
|
5518
5539
|
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;
|
|
5519
|
-
automaticRewire(inputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], outputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[]): void;
|
|
5540
|
+
automaticRewire(inputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], outputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], firstOnly?: boolean): void;
|
|
5520
5541
|
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, rootElement: HTMLDivElement): void;
|
|
5521
5542
|
pasteSelection(copiedNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, selectNew?: boolean): BABYLON.NodeEditor.SharedUIComponents.GraphNode[];
|
|
5522
5543
|
reconnectNewNodes(nodeIndex: number, newNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], sourceNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], done: boolean[]): void;
|
|
@@ -5938,13 +5959,17 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5938
5959
|
private _selectionPath;
|
|
5939
5960
|
private _onSelectionChangedObserver;
|
|
5940
5961
|
private _isVisible;
|
|
5962
|
+
private _isTargetCandidate;
|
|
5941
5963
|
onDisposedObservable: BABYLON.Observable<NodeLink>;
|
|
5964
|
+
get isTargetCandidate(): boolean;
|
|
5965
|
+
set isTargetCandidate(value: boolean);
|
|
5942
5966
|
get isVisible(): boolean;
|
|
5943
5967
|
set isVisible(value: boolean);
|
|
5944
5968
|
get portA(): BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort;
|
|
5945
5969
|
get portB(): BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort | undefined;
|
|
5946
5970
|
get nodeA(): BABYLON.NodeEditor.SharedUIComponents.GraphNode;
|
|
5947
5971
|
get nodeB(): BABYLON.NodeEditor.SharedUIComponents.GraphNode | undefined;
|
|
5972
|
+
intersectsWith(rect: DOMRect): boolean;
|
|
5948
5973
|
update(endX?: number, endY?: number, straight?: boolean): void;
|
|
5949
5974
|
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);
|
|
5950
5975
|
onClick(evt: MouseEvent): void;
|
|
@@ -6137,6 +6162,21 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6137
6162
|
|
|
6138
6163
|
|
|
6139
6164
|
|
|
6165
|
+
}
|
|
6166
|
+
declare module BABYLON.NodeEditor {
|
|
6167
|
+
|
|
6168
|
+
}
|
|
6169
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
6170
|
+
/// <reference types="react" />
|
|
6171
|
+
var _default: {
|
|
6172
|
+
title: string;
|
|
6173
|
+
component: import("react").FC<BABYLON.NodeEditor.SharedUIComponents.MessageDialogProps>;
|
|
6174
|
+
};
|
|
6175
|
+
export var NoError: any;
|
|
6176
|
+
export var Error: any;
|
|
6177
|
+
|
|
6178
|
+
|
|
6179
|
+
|
|
6140
6180
|
}
|
|
6141
6181
|
declare module BABYLON.NodeEditor {
|
|
6142
6182
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.21.0",
|
|
4
4
|
"main": "babylon.nodeEditor.js",
|
|
5
5
|
"types": "babylon.nodeEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^5.
|
|
17
|
+
"babylonjs": "^5.21.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|