@babylonjs/node-editor 7.45.0 → 7.46.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.
@@ -314,8 +314,9 @@ import { LoopBlock } from "@babylonjs/core/Materials/Node/Blocks/loopBlock";
314
314
  import { StorageReadBlock } from "@babylonjs/core/Materials/Node/Blocks/storageReadBlock";
315
315
  import { StorageWriteBlock } from "@babylonjs/core/Materials/Node/Blocks/storageWriteBlock";
316
316
  import { MatrixSplitterBlock } from "@babylonjs/core/Materials/Node/Blocks/matrixSplitterBlock";
317
+ import { NodeMaterialDebugBlock } from "@babylonjs/core/Materials/Node/Blocks/debugBlock";
317
318
  export class BlockTools {
318
- static GetBlockFromString(data: string, scene: Scene, nodeMaterial: NodeMaterial): 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;
319
+ 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;
319
320
  static GetColorFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): string;
320
321
  static GetConnectionNodeTypeFromString(type: string): NodeMaterialBlockConnectionPointTypes.Float | NodeMaterialBlockConnectionPointTypes.Vector2 | NodeMaterialBlockConnectionPointTypes.Vector3 | NodeMaterialBlockConnectionPointTypes.Vector4 | NodeMaterialBlockConnectionPointTypes.Color3 | NodeMaterialBlockConnectionPointTypes.Color4 | NodeMaterialBlockConnectionPointTypes.Matrix | NodeMaterialBlockConnectionPointTypes.AutoDetect;
321
322
  static GetStringFromConnectionNodeType(type: NodeMaterialBlockConnectionPointTypes): "" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix" | "Color3" | "Color4";
@@ -485,6 +486,9 @@ export class BlockNodeData implements INodeData {
485
486
  prepareHeaderIcon(iconDiv: HTMLDivElement, img: HTMLImageElement): void;
486
487
  get invisibleEndpoints(): NodeMaterialTeleportOutBlock[] | null;
487
488
  constructor(data: NodeMaterialBlock, nodeContainer: INodeContainer);
489
+ get canBeActivated(): boolean;
490
+ get isActive(): any;
491
+ setIsActive(value: boolean): void;
488
492
  }
489
493
 
490
494
  }
@@ -917,6 +921,19 @@ export class DiscardDisplayManager implements IDisplayManager {
917
921
  updatePreviewContent(nodeData: INodeData, contentArea: HTMLDivElement): void;
918
922
  }
919
923
 
924
+ }
925
+ declare module "@babylonjs/node-editor/graphSystem/display/debugDisplayManager" {
926
+ import { IDisplayManager, VisualContentDescription } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/displayManager";
927
+ import { INodeData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/nodeData";
928
+ export class DebugDisplayManager implements IDisplayManager {
929
+ getHeaderClass(): string;
930
+ shouldDisplayPortLabels(): boolean;
931
+ getHeaderText(nodeData: INodeData): string;
932
+ getBackgroundColor(): string;
933
+ updatePreviewContent(nodeData: INodeData, contentArea: HTMLDivElement): void;
934
+ updateFullVisualContent(data: INodeData, visualContent: VisualContentDescription): void;
935
+ }
936
+
920
937
  }
921
938
  declare module "@babylonjs/node-editor/graphSystem/display/curveDisplayManager" {
922
939
  import { IDisplayManager } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/displayManager";
@@ -1197,6 +1214,9 @@ export class PreviewManager {
1197
1214
  private _onBackgroundHDRUpdatedObserver;
1198
1215
  private _engine;
1199
1216
  private _scene;
1217
+ private _nrg;
1218
+ private _objectListBlock;
1219
+ private _clearBlock;
1200
1220
  private _meshes;
1201
1221
  private _camera;
1202
1222
  private _material;
@@ -1960,6 +1980,8 @@ export class StateManager {
1960
1980
  data: INodeData;
1961
1981
  name: string;
1962
1982
  }>;
1983
+ private _isRebuildQueued;
1984
+ queueRebuildCommand(): void;
1963
1985
  }
1964
1986
 
1965
1987
  }
@@ -2664,6 +2686,9 @@ export interface INodeData {
2664
2686
  outputs: IPortData[];
2665
2687
  invisibleEndpoints?: Nullable<any[]>;
2666
2688
  isConnectedToOutput?: () => boolean;
2689
+ isActive?: boolean;
2690
+ setIsActive?: (value: boolean) => void;
2691
+ canBeActivated?: boolean;
2667
2692
  }
2668
2693
 
2669
2694
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-editor",
3
- "version": "7.45.0",
3
+ "version": "7.46.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": "^7.45.0",
26
+ "@babylonjs/core": "^7.46.0",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },