@babylonjs/node-editor 7.54.0 → 7.54.2
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.
@@ -322,8 +322,9 @@ import { StorageReadBlock } from "@babylonjs/core/Materials/Node/Blocks/storageR
|
|
322
322
|
import { StorageWriteBlock } from "@babylonjs/core/Materials/Node/Blocks/storageWriteBlock";
|
323
323
|
import { MatrixSplitterBlock } from "@babylonjs/core/Materials/Node/Blocks/matrixSplitterBlock";
|
324
324
|
import { NodeMaterialDebugBlock } from "@babylonjs/core/Materials/Node/Blocks/debugBlock";
|
325
|
+
import { IridescenceBlock } from "@babylonjs/core/Materials/Node/Blocks/PBR/iridescenceBlock";
|
325
326
|
export class BlockTools {
|
326
|
-
static GetBlockFromString(data: string, scene: Scene, nodeMaterial: NodeMaterial): NodeMaterialDebugBlock | MatrixSplitterBlock | StorageWriteBlock | StorageReadBlock | LoopBlock | ColorConverterBlock | NodeMaterialTeleportInBlock | NodeMaterialTeleportOutBlock | HeightToNormalBlock | ElbowBlock | TwirlBlock | VoronoiNoiseBlock | ScreenSpaceBlock | CloudBlock | MatrixBuilderBlock | DesaturateBlock | RefractBlock | ReflectBlock | DerivativeBlock | Rotate2dBlock | NormalBlendBlock | WorleyNoise3DBlock | SimplexPerlin3DBlock | BonesBlock | InstancesBlock | MorphTargetsBlock | DiscardBlock | PrePassTextureBlock | ImageProcessingBlock | ColorMergerBlock | VectorMergerBlock | ColorSplitterBlock | VectorSplitterBlock | TextureBlock | ReflectionTextureBlock | LightBlock | FogBlock | VertexOutputBlock | FragmentOutputBlock | PrePassOutputBlock | 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 | GaussianSplattingBlock | GaussianBlock | SplatReaderBlock | null;
|
327
|
+
static GetBlockFromString(data: string, scene: Scene, nodeMaterial: NodeMaterial): NodeMaterialDebugBlock | MatrixSplitterBlock | StorageWriteBlock | StorageReadBlock | LoopBlock | ColorConverterBlock | NodeMaterialTeleportInBlock | NodeMaterialTeleportOutBlock | HeightToNormalBlock | ElbowBlock | TwirlBlock | VoronoiNoiseBlock | ScreenSpaceBlock | CloudBlock | MatrixBuilderBlock | DesaturateBlock | RefractBlock | ReflectBlock | DerivativeBlock | Rotate2dBlock | NormalBlendBlock | WorleyNoise3DBlock | SimplexPerlin3DBlock | BonesBlock | InstancesBlock | MorphTargetsBlock | DiscardBlock | PrePassTextureBlock | ImageProcessingBlock | ColorMergerBlock | VectorMergerBlock | ColorSplitterBlock | VectorSplitterBlock | TextureBlock | ReflectionTextureBlock | LightBlock | FogBlock | VertexOutputBlock | FragmentOutputBlock | PrePassOutputBlock | 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 | IridescenceBlock | CurrentScreenBlock | ParticleTextureBlock | ParticleRampGradientBlock | ParticleBlendMultiplyBlock | FragCoordBlock | ScreenSizeBlock | SceneDepthBlock | ConditionalBlock | ImageSourceBlock | ClipPlanesBlock | FragDepthBlock | ShadowMapBlock | TriPlanarBlock | MatrixTransposeBlock | MatrixDeterminantBlock | CurveBlock | GaussianSplattingBlock | GaussianBlock | SplatReaderBlock | null;
|
327
328
|
static GetColorFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): string;
|
328
329
|
static GetConnectionNodeTypeFromString(type: string): NodeMaterialBlockConnectionPointTypes.Float | NodeMaterialBlockConnectionPointTypes.Vector2 | NodeMaterialBlockConnectionPointTypes.Vector3 | NodeMaterialBlockConnectionPointTypes.Vector4 | NodeMaterialBlockConnectionPointTypes.Color3 | NodeMaterialBlockConnectionPointTypes.Color4 | NodeMaterialBlockConnectionPointTypes.Matrix | NodeMaterialBlockConnectionPointTypes.AutoDetect;
|
329
330
|
static GetStringFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): "" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix" | "Color3" | "Color4";
|
@@ -2012,7 +2013,7 @@ export class StateManager {
|
|
2012
2013
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
2013
2014
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
2014
2015
|
isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
2015
|
-
applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost:
|
2016
|
+
applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLImageElement, pip: HTMLDivElement) => boolean;
|
2016
2017
|
getPortColor: (portData: IPortData) => string;
|
2017
2018
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
2018
2019
|
getEditorDataMap: () => {
|
@@ -2082,7 +2083,7 @@ export class NodePort {
|
|
2082
2083
|
node: GraphNode;
|
2083
2084
|
protected _element: HTMLDivElement;
|
2084
2085
|
protected _portContainer: HTMLElement;
|
2085
|
-
protected _imgHost:
|
2086
|
+
protected _imgHost: HTMLImageElement;
|
2086
2087
|
protected _pip: HTMLDivElement;
|
2087
2088
|
protected _stateManager: StateManager;
|
2088
2089
|
protected _portLabelElement: Element;
|
@@ -2926,6 +2927,31 @@ interface IUnitButtonProps {
|
|
2926
2927
|
|
2927
2928
|
export {};
|
2928
2929
|
|
2930
|
+
}
|
2931
|
+
declare module "@babylonjs/node-editor/lines/textureButtonLineComponent" {
|
2932
|
+
import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture";
|
2933
|
+
import { Scene } from "@babylonjs/core/scene";
|
2934
|
+
import * as React from "react";
|
2935
|
+
interface ITextureButtonLineProps {
|
2936
|
+
label: string;
|
2937
|
+
scene: Scene;
|
2938
|
+
onClick: (file: File) => void;
|
2939
|
+
onLink: (texture: BaseTexture) => void;
|
2940
|
+
accept: string;
|
2941
|
+
}
|
2942
|
+
interface ITextureButtonLineState {
|
2943
|
+
isOpen: boolean;
|
2944
|
+
}
|
2945
|
+
export class TextureButtonLine extends React.Component<ITextureButtonLineProps, ITextureButtonLineState> {
|
2946
|
+
private static _IDGenerator;
|
2947
|
+
private _id;
|
2948
|
+
private _uploadInputRef;
|
2949
|
+
constructor(props: ITextureButtonLineProps);
|
2950
|
+
onChange(evt: any): void;
|
2951
|
+
|
2952
|
+
}
|
2953
|
+
export {};
|
2954
|
+
|
2929
2955
|
}
|
2930
2956
|
declare module "@babylonjs/node-editor/lines/textLineComponent" {
|
2931
2957
|
import * as React from "react";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/node-editor",
|
3
|
-
"version": "7.54.
|
3
|
+
"version": "7.54.2",
|
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": "^7.54.
|
26
|
+
"@babylonjs/core": "^7.54.2",
|
27
27
|
"react": "^17.0.2",
|
28
28
|
"react-dom": "^17.0.2"
|
29
29
|
},
|