@babylonjs/node-editor 5.33.1 → 5.34.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.
@@ -88,8 +88,11 @@ import { HeightToNormalBlock } from "@babylonjs/core/Materials/Node/Blocks/Fragm
|
|
88
88
|
import { TwirlBlock } from "@babylonjs/core/Materials/Node/Blocks/Fragment/twirlBlock";
|
89
89
|
import { ElbowBlock } from "@babylonjs/core/Materials/Node/Blocks/elbowBlock";
|
90
90
|
import { ClipPlanesBlock } from "@babylonjs/core/Materials/Node/Blocks/Dual/clipPlanesBlock";
|
91
|
+
import { FragDepthBlock } from "@babylonjs/core/Materials/Node/Blocks/Fragment/fragDepthBlock";
|
92
|
+
import { ShadowMapBlock } from "@babylonjs/core/Materials/Node/Blocks/Fragment/shadowMapBlock";
|
93
|
+
import { TriPlanarBlock } from "@babylonjs/core/Materials/Node/Blocks/triPlanarBlock";
|
91
94
|
export class BlockTools {
|
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;
|
95
|
+
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 | FragDepthBlock | ShadowMapBlock | TriPlanarBlock | null;
|
93
96
|
static GetColorFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): string;
|
94
97
|
static GetConnectionNodeTypeFromString(type: string): NodeMaterialBlockConnectionPointTypes.Float | NodeMaterialBlockConnectionPointTypes.Vector2 | NodeMaterialBlockConnectionPointTypes.Vector3 | NodeMaterialBlockConnectionPointTypes.Vector4 | NodeMaterialBlockConnectionPointTypes.Color3 | NodeMaterialBlockConnectionPointTypes.Color4 | NodeMaterialBlockConnectionPointTypes.Matrix | NodeMaterialBlockConnectionPointTypes.AutoDetect;
|
95
98
|
static GetStringFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): "" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix" | "Color3" | "Color4";
|
@@ -829,7 +832,7 @@ export class FramePropertyTabComponent extends React.Component<IFramePropertyTab
|
|
829
832
|
}
|
830
833
|
declare module "@babylonjs/node-editor/graphSystem/properties/genericNodePropertyComponent" {
|
831
834
|
import * as React from "react";
|
832
|
-
import {
|
835
|
+
import { IEditablePropertyOption } from "@babylonjs/core/Materials/Node/nodeMaterialDecorator";
|
833
836
|
import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
|
834
837
|
export class GenericPropertyComponent extends React.Component<IPropertyComponentProps> {
|
835
838
|
constructor(props: IPropertyComponentProps);
|
@@ -841,12 +844,7 @@ export class GeneralPropertyTabComponent extends React.Component<IPropertyCompon
|
|
841
844
|
}
|
842
845
|
export class GenericPropertyTabComponent extends React.Component<IPropertyComponentProps> {
|
843
846
|
constructor(props: IPropertyComponentProps);
|
844
|
-
forceRebuild(notifiers?:
|
845
|
-
rebuild?: boolean;
|
846
|
-
update?: boolean;
|
847
|
-
activatePreviewCommand?: boolean;
|
848
|
-
callback?: (scene: Scene) => void;
|
849
|
-
}): void;
|
847
|
+
forceRebuild(propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
850
848
|
render(): JSX.Element;
|
851
849
|
}
|
852
850
|
|
@@ -978,8 +976,9 @@ import { TextureBlock } from "@babylonjs/core/Materials/Node/Blocks/Dual/texture
|
|
978
976
|
import { CurrentScreenBlock } from "@babylonjs/core/Materials/Node/Blocks/Dual/currentScreenBlock";
|
979
977
|
import { ParticleTextureBlock } from "@babylonjs/core/Materials/Node/Blocks/Particle/particleTextureBlock";
|
980
978
|
import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
|
979
|
+
import { TriPlanarBlock } from "@babylonjs/core/Materials/Node/Blocks/triPlanarBlock";
|
981
980
|
type ReflectionTexture = ReflectionTextureBlock | ReflectionBlock | RefractionBlock;
|
982
|
-
type AnyTexture = TextureBlock | ReflectionTexture | CurrentScreenBlock | ParticleTextureBlock;
|
981
|
+
type AnyTexture = TextureBlock | ReflectionTexture | CurrentScreenBlock | ParticleTextureBlock | TriPlanarBlock;
|
983
982
|
export class TexturePropertyTabComponent extends React.Component<IPropertyComponentProps, {
|
984
983
|
isEmbedded: boolean;
|
985
984
|
loadAsCubeTexture: boolean;
|
@@ -3932,165 +3931,6 @@ export class PropertyChangedEvent {
|
|
3932
3931
|
allowNullValue?: boolean;
|
3933
3932
|
}
|
3934
3933
|
|
3935
|
-
}
|
3936
|
-
declare module "@babylonjs/node-editor/stories/bars/CommandBarComponent.stories" {
|
3937
|
-
/// <reference types="react" />
|
3938
|
-
import { CommandBarComponent } from "@babylonjs/node-editor/components/bars/CommandBarComponent";
|
3939
|
-
|
3940
|
-
const _default: {
|
3941
|
-
|
3942
|
-
};
|
3943
|
-
export default _default;
|
3944
|
-
export const Default: StoryObj<typeof CommandBarComponent>;
|
3945
|
-
export const WithArtboardColor: StoryObj<typeof CommandBarComponent>;
|
3946
|
-
|
3947
|
-
}
|
3948
|
-
declare module "@babylonjs/node-editor/stories/bars/CommandButtonComponent.stories" {
|
3949
|
-
/// <reference types="react" />
|
3950
|
-
import { CommandButtonComponent } from "@babylonjs/node-editor/components/bars/CommandButtonComponent";
|
3951
|
-
|
3952
|
-
const _default: {
|
3953
|
-
|
3954
|
-
};
|
3955
|
-
export default _default;
|
3956
|
-
export const Default: StoryObj<typeof CommandButtonComponent>;
|
3957
|
-
|
3958
|
-
}
|
3959
|
-
declare module "@babylonjs/node-editor/stories/Button.stories" {
|
3960
|
-
/// <reference types="react" />
|
3961
|
-
import { ButtonProps } from "@babylonjs/node-editor/components/Button";
|
3962
|
-
const _default: {
|
3963
|
-
title: string;
|
3964
|
-
component: import("react").FC<ButtonProps>;
|
3965
|
-
};
|
3966
|
-
export default _default;
|
3967
|
-
export const Default: any;
|
3968
|
-
export const Wide: any;
|
3969
|
-
export const Small: any;
|
3970
|
-
|
3971
|
-
}
|
3972
|
-
declare module "@babylonjs/node-editor/stories/colorPicker/ColorPicker.stories" {
|
3973
|
-
import { ColorPicker } from "@babylonjs/node-editor/components/colorPicker/ColorPicker";
|
3974
|
-
|
3975
|
-
const _default: {
|
3976
|
-
component: typeof ColorPicker;
|
3977
|
-
};
|
3978
|
-
export default _default;
|
3979
|
-
export const Default: StoryObj<typeof ColorPicker>;
|
3980
|
-
|
3981
|
-
}
|
3982
|
-
declare module "@babylonjs/node-editor/stories/Icon.stories" {
|
3983
|
-
/// <reference types="react" />
|
3984
|
-
import { IconProps } from "@babylonjs/node-editor/components/Icon";
|
3985
|
-
const _default: {
|
3986
|
-
title: string;
|
3987
|
-
component: import("react").FC<IconProps>;
|
3988
|
-
};
|
3989
|
-
export default _default;
|
3990
|
-
export const Light: any;
|
3991
|
-
export const Dark: any;
|
3992
|
-
|
3993
|
-
}
|
3994
|
-
declare module "@babylonjs/node-editor/stories/Label.stories" {
|
3995
|
-
/// <reference types="react" />
|
3996
|
-
import { LabelProps } from "@babylonjs/node-editor/components/Label";
|
3997
|
-
const _default: {
|
3998
|
-
title: string;
|
3999
|
-
component: import("react").FC<LabelProps>;
|
4000
|
-
};
|
4001
|
-
export default _default;
|
4002
|
-
export const Default: any;
|
4003
|
-
|
4004
|
-
}
|
4005
|
-
declare module "@babylonjs/node-editor/stories/layout/FlexibleGridLayout.stories" {
|
4006
|
-
/// <reference types="react" />
|
4007
|
-
import { IFlexibleGridLayoutProps } from "@babylonjs/node-editor/components/layout/FlexibleGridLayout";
|
4008
|
-
import { FlexibleGridLayout } from "@babylonjs/node-editor/components/layout/FlexibleGridLayout";
|
4009
|
-
|
4010
|
-
const _default: {
|
4011
|
-
component: import("react").FC<IFlexibleGridLayoutProps>;
|
4012
|
-
};
|
4013
|
-
export default _default;
|
4014
|
-
export const Default: StoryObj<typeof FlexibleGridLayout>;
|
4015
|
-
export const TwoColumn: StoryObj<typeof FlexibleGridLayout>;
|
4016
|
-
|
4017
|
-
}
|
4018
|
-
declare module "@babylonjs/node-editor/stories/lines/ColorLineComponent.stories" {
|
4019
|
-
import { ColorLineComponent } from "@babylonjs/node-editor/components/lines/ColorLineComponent";
|
4020
|
-
|
4021
|
-
const _default: {
|
4022
|
-
component: typeof ColorLineComponent;
|
4023
|
-
};
|
4024
|
-
export default _default;
|
4025
|
-
export const Default: StoryObj<typeof ColorLineComponent>;
|
4026
|
-
|
4027
|
-
}
|
4028
|
-
declare module "@babylonjs/node-editor/stories/lines/ColorPickerLineComponent.stories" {
|
4029
|
-
import { ColorPickerLineComponent } from "@babylonjs/node-editor/components/lines/ColorPickerLineComponent";
|
4030
|
-
|
4031
|
-
const _default: {
|
4032
|
-
component: typeof ColorPickerLineComponent;
|
4033
|
-
};
|
4034
|
-
export default _default;
|
4035
|
-
export const Default: StoryObj<typeof ColorPickerLineComponent>;
|
4036
|
-
|
4037
|
-
}
|
4038
|
-
declare module "@babylonjs/node-editor/stories/lines/FileButtonLineComponent.stories" {
|
4039
|
-
import { FileButtonLineComponent } from "@babylonjs/node-editor/components/lines/FileButtonLineComponent";
|
4040
|
-
|
4041
|
-
const _default: {
|
4042
|
-
component: typeof FileButtonLineComponent;
|
4043
|
-
};
|
4044
|
-
export default _default;
|
4045
|
-
export const Default: StoryObj<typeof FileButtonLineComponent>;
|
4046
|
-
|
4047
|
-
}
|
4048
|
-
declare module "@babylonjs/node-editor/stories/lines/NumericInputComponent.stories" {
|
4049
|
-
import { NumericInputComponent } from "@babylonjs/node-editor/components/lines/NumericInputComponent";
|
4050
|
-
|
4051
|
-
const _default: {
|
4052
|
-
component: typeof NumericInputComponent;
|
4053
|
-
};
|
4054
|
-
export default _default;
|
4055
|
-
export const Default: StoryObj<typeof NumericInputComponent>;
|
4056
|
-
|
4057
|
-
}
|
4058
|
-
declare module "@babylonjs/node-editor/stories/lines/OptionsLineComponent.stories" {
|
4059
|
-
/// <reference types="react" />
|
4060
|
-
|
4061
|
-
const _default: {
|
4062
|
-
component: (props: import("@babylonjs/node-editor/components/lines/OptionsLineComponent").IOptionsLineComponentProps) => JSX.Element;
|
4063
|
-
};
|
4064
|
-
export default _default;
|
4065
|
-
const RenderComponent: (args: any) => JSX.Element;
|
4066
|
-
export const Default: StoryObj<typeof RenderComponent>;
|
4067
|
-
export const WithCustomOptions: StoryObj<typeof RenderComponent>;
|
4068
|
-
export const WithValidation: StoryObj<typeof RenderComponent>;
|
4069
|
-
|
4070
|
-
}
|
4071
|
-
declare module "@babylonjs/node-editor/stories/MessageDialog.stories" {
|
4072
|
-
/// <reference types="react" />
|
4073
|
-
import { MessageDialogProps } from "@babylonjs/node-editor/components/MessageDialog";
|
4074
|
-
const _default: {
|
4075
|
-
title: string;
|
4076
|
-
component: import("react").FC<MessageDialogProps>;
|
4077
|
-
};
|
4078
|
-
export default _default;
|
4079
|
-
export const NoError: any;
|
4080
|
-
export const Error: any;
|
4081
|
-
|
4082
|
-
}
|
4083
|
-
declare module "@babylonjs/node-editor/stories/Toggle.stories" {
|
4084
|
-
/// <reference types="react" />
|
4085
|
-
import { ToggleProps } from "@babylonjs/node-editor/components/Toggle";
|
4086
|
-
const _default: {
|
4087
|
-
title: string;
|
4088
|
-
component: import("react").FC<ToggleProps>;
|
4089
|
-
};
|
4090
|
-
export default _default;
|
4091
|
-
export const Default: any;
|
4092
|
-
export const Padded: any;
|
4093
|
-
|
4094
3934
|
}
|
4095
3935
|
declare module "@babylonjs/node-editor/stringTools" {
|
4096
3936
|
export class StringTools {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/node-editor",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.34.0",
|
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": "^5.
|
26
|
+
"@babylonjs/core": "^5.34.0",
|
27
27
|
"react": "^17.0.2",
|
28
28
|
"react-dom": "^17.0.2",
|
29
29
|
"rimraf": "^3.0.2",
|