@babylonjs/node-editor 6.4.1 → 6.5.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.
@@ -94,8 +94,9 @@ import { ShadowMapBlock } from "@babylonjs/core/Materials/Node/Blocks/Fragment/s
|
|
94
94
|
import { TriPlanarBlock } from "@babylonjs/core/Materials/Node/Blocks/triPlanarBlock";
|
95
95
|
import { MatrixDeterminantBlock } from "@babylonjs/core/Materials/Node/Blocks/matrixDeterminantBlock";
|
96
96
|
import { MatrixTransposeBlock } from "@babylonjs/core/Materials/Node/Blocks/matrixTransposeBlock";
|
97
|
+
import { CurveBlock } from "@babylonjs/core/Materials/Node/Blocks/curveBlock";
|
97
98
|
export class BlockTools {
|
98
|
-
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 | MeshAttributeExistsBlock | WaveBlock | InputBlock | PBRMetallicRoughnessBlock | SheenBlock | AnisotropyBlock | ReflectionBlock | ClearCoatBlock | RefractionBlock | SubSurfaceBlock | CurrentScreenBlock | ParticleTextureBlock | ParticleRampGradientBlock | ParticleBlendMultiplyBlock | FragCoordBlock | ScreenSizeBlock | SceneDepthBlock | ConditionalBlock | ImageSourceBlock | ClipPlanesBlock | FragDepthBlock | ShadowMapBlock | TriPlanarBlock | MatrixTransposeBlock | MatrixDeterminantBlock | null;
|
99
|
+
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 | MeshAttributeExistsBlock | WaveBlock | InputBlock | PBRMetallicRoughnessBlock | SheenBlock | AnisotropyBlock | ReflectionBlock | ClearCoatBlock | RefractionBlock | SubSurfaceBlock | CurrentScreenBlock | ParticleTextureBlock | ParticleRampGradientBlock | ParticleBlendMultiplyBlock | FragCoordBlock | ScreenSizeBlock | SceneDepthBlock | ConditionalBlock | ImageSourceBlock | ClipPlanesBlock | FragDepthBlock | ShadowMapBlock | TriPlanarBlock | MatrixTransposeBlock | MatrixDeterminantBlock | CurveBlock | null;
|
99
100
|
static GetColorFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): string;
|
100
101
|
static GetConnectionNodeTypeFromString(type: string): NodeMaterialBlockConnectionPointTypes.Float | NodeMaterialBlockConnectionPointTypes.Vector2 | NodeMaterialBlockConnectionPointTypes.Vector3 | NodeMaterialBlockConnectionPointTypes.Vector4 | NodeMaterialBlockConnectionPointTypes.Color3 | NodeMaterialBlockConnectionPointTypes.Color4 | NodeMaterialBlockConnectionPointTypes.Matrix | NodeMaterialBlockConnectionPointTypes.AutoDetect;
|
101
102
|
static GetStringFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): "" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix" | "Color3" | "Color4";
|
@@ -654,6 +655,18 @@ export class ConditionalDisplayManager implements IDisplayManager {
|
|
654
655
|
updatePreviewContent(): void;
|
655
656
|
}
|
656
657
|
|
658
|
+
}
|
659
|
+
declare module "@babylonjs/node-editor/graphSystem/display/curveDisplayManager" {
|
660
|
+
import { IDisplayManager } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/displayManager";
|
661
|
+
import { INodeData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/nodeData";
|
662
|
+
export class CurveDisplayManager implements IDisplayManager {
|
663
|
+
getHeaderClass(): string;
|
664
|
+
shouldDisplayPortLabels(): boolean;
|
665
|
+
getHeaderText(nodeData: INodeData): string;
|
666
|
+
getBackgroundColor(): string;
|
667
|
+
updatePreviewContent(nodeData: INodeData, contentArea: HTMLDivElement): void;
|
668
|
+
}
|
669
|
+
|
657
670
|
}
|
658
671
|
declare module "@babylonjs/node-editor/graphSystem/display/discardDisplayManager" {
|
659
672
|
import { IDisplayManager } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/displayManager";
|
@@ -815,6 +828,15 @@ export class ConditionalPropertyTabComponent extends React.Component<IPropertyCo
|
|
815
828
|
render(): JSX.Element;
|
816
829
|
}
|
817
830
|
|
831
|
+
}
|
832
|
+
declare module "@babylonjs/node-editor/graphSystem/properties/curveNodePropertyComponent" {
|
833
|
+
import * as React from "react";
|
834
|
+
import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
|
835
|
+
export class CurvePropertyTabComponent extends React.Component<IPropertyComponentProps> {
|
836
|
+
constructor(props: IPropertyComponentProps);
|
837
|
+
render(): JSX.Element;
|
838
|
+
}
|
839
|
+
|
818
840
|
}
|
819
841
|
declare module "@babylonjs/node-editor/graphSystem/properties/frameNodePortPropertyComponent" {
|
820
842
|
import * as React from "react";
|
@@ -3897,6 +3919,7 @@ export interface ISearchBoxComponentProps {
|
|
3897
3919
|
export class SearchBoxComponent extends React.Component<ISearchBoxComponentProps, {
|
3898
3920
|
isVisible: boolean;
|
3899
3921
|
filter: string;
|
3922
|
+
selectedIndex: number;
|
3900
3923
|
}> {
|
3901
3924
|
private _handleEscKey;
|
3902
3925
|
private _targetX;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/node-editor",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.5.1",
|
4
4
|
"main": "dist/babylon.nodeEditor.max.js",
|
5
5
|
"module": "dist/babylon.nodeEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.nodeEditor.max.js",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
|
-
"@babylonjs/core": "^6.
|
26
|
+
"@babylonjs/core": "^6.5.1",
|
27
27
|
"react": "^17.0.2",
|
28
28
|
"react-dom": "^17.0.2",
|
29
29
|
"rimraf": "^3.0.2",
|