@babylonjs/node-render-graph-editor 8.1.0 → 8.2.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.
@@ -15,10 +15,11 @@ export class SerializationTools {
15
15
  declare module "@babylonjs/node-render-graph-editor/portal" {
16
16
  import * as React from "react";
17
17
  import { GlobalState } from "@babylonjs/node-render-graph-editor/globalState";
18
+ import { PropsWithChildren } from "react";
18
19
  interface IPortalProps {
19
20
  globalState: GlobalState;
20
21
  }
21
- export class Portal extends React.Component<IPortalProps> {
22
+ export class Portal extends React.Component<PropsWithChildren<IPortalProps>> {
22
23
  render(): React.ReactPortal;
23
24
  }
24
25
  export {};
@@ -229,11 +230,12 @@ import { NodeRenderGraphUtilityLayerRendererBlock } from "@babylonjs/core/FrameG
229
230
  import { NodeRenderGraphSSRPostProcessBlock } from "@babylonjs/core/FrameGraph/Node/Blocks/PostProcesses/ssrPostProcessBlock";
230
231
  import { NodeRenderGraphAnaglyphPostProcessBlock } from "@babylonjs/core/FrameGraph/Node/Blocks/PostProcesses/anaglyphPostProcessBlock";
231
232
  import { NodeRenderGraphChromaticAberrationPostProcessBlock } from "@babylonjs/core/FrameGraph/Node/Blocks/PostProcesses/chromaticAberrationPostProcessBlock";
233
+ import { NodeRenderGraphImageProcessingPostProcessBlock } from "@babylonjs/core/FrameGraph/Node/Blocks/PostProcesses/imageProcessingPostProcessBlock";
232
234
  /**
233
235
  * Static class for BlockTools
234
236
  */
235
237
  export class BlockTools {
236
- static GetBlockFromString(data: string, frameGraph: FrameGraph, scene: Scene): NodeRenderGraphTeleportInBlock | NodeRenderGraphTeleportOutBlock | NodeRenderGraphOutputBlock | NodeRenderGraphElbowBlock | NodeRenderGraphResourceContainerBlock | NodeRenderGraphExecuteBlock | NodeRenderGraphUtilityLayerRendererBlock | NodeRenderGraphInputBlock | NodeRenderGraphClearBlock | NodeRenderGraphCopyTextureBlock | NodeRenderGraphGenerateMipmapsBlock | NodeRenderGraphBlackAndWhitePostProcessBlock | NodeRenderGraphBloomPostProcessBlock | NodeRenderGraphBlurPostProcessBlock | NodeRenderGraphPassPostProcessBlock | NodeRenderGraphPassCubePostProcessBlock | NodeRenderGraphGUIBlock | NodeRenderGraphObjectRendererBlock | NodeRenderGraphGeometryRendererBlock | NodeRenderGraphTAAObjectRendererBlock | NodeRenderGraphCullObjectsBlock | NodeRenderGraphCircleOfConfusionPostProcessBlock | NodeRenderGraphDepthOfFieldPostProcessBlock | NodeRenderGraphExtractHighlightsPostProcessBlock | NodeRenderGraphShadowGeneratorBlock | NodeRenderGraphCascadedShadowGeneratorBlock | NodeRenderGraphGlowLayerBlock | NodeRenderGraphHighlightLayerBlock | NodeRenderGraphSSRPostProcessBlock | NodeRenderGraphAnaglyphPostProcessBlock | NodeRenderGraphChromaticAberrationPostProcessBlock | null;
238
+ static GetBlockFromString(data: string, frameGraph: FrameGraph, scene: Scene): NodeRenderGraphTeleportInBlock | NodeRenderGraphTeleportOutBlock | NodeRenderGraphOutputBlock | NodeRenderGraphElbowBlock | NodeRenderGraphResourceContainerBlock | NodeRenderGraphExecuteBlock | NodeRenderGraphUtilityLayerRendererBlock | NodeRenderGraphInputBlock | NodeRenderGraphClearBlock | NodeRenderGraphCopyTextureBlock | NodeRenderGraphGenerateMipmapsBlock | NodeRenderGraphBlackAndWhitePostProcessBlock | NodeRenderGraphBloomPostProcessBlock | NodeRenderGraphBlurPostProcessBlock | NodeRenderGraphPassPostProcessBlock | NodeRenderGraphPassCubePostProcessBlock | NodeRenderGraphGUIBlock | NodeRenderGraphObjectRendererBlock | NodeRenderGraphGeometryRendererBlock | NodeRenderGraphTAAObjectRendererBlock | NodeRenderGraphCullObjectsBlock | NodeRenderGraphCircleOfConfusionPostProcessBlock | NodeRenderGraphDepthOfFieldPostProcessBlock | NodeRenderGraphExtractHighlightsPostProcessBlock | NodeRenderGraphShadowGeneratorBlock | NodeRenderGraphCascadedShadowGeneratorBlock | NodeRenderGraphGlowLayerBlock | NodeRenderGraphHighlightLayerBlock | NodeRenderGraphSSRPostProcessBlock | NodeRenderGraphAnaglyphPostProcessBlock | NodeRenderGraphChromaticAberrationPostProcessBlock | NodeRenderGraphImageProcessingPostProcessBlock | null;
237
239
  static GetColorFromConnectionNodeType(type: NodeRenderGraphBlockConnectionPointTypes): string;
238
240
  static GetConnectionNodeTypeFromString(type: string): NodeRenderGraphBlockConnectionPointTypes.Texture | NodeRenderGraphBlockConnectionPointTypes.TextureBackBuffer | NodeRenderGraphBlockConnectionPointTypes.TextureBackBufferDepthStencilAttachment | NodeRenderGraphBlockConnectionPointTypes.TextureDepthStencilAttachment | NodeRenderGraphBlockConnectionPointTypes.TextureViewDepth | NodeRenderGraphBlockConnectionPointTypes.TextureViewNormal | NodeRenderGraphBlockConnectionPointTypes.TextureAlbedo | NodeRenderGraphBlockConnectionPointTypes.TextureReflectivity | NodeRenderGraphBlockConnectionPointTypes.TextureWorldPosition | NodeRenderGraphBlockConnectionPointTypes.TextureVelocity | NodeRenderGraphBlockConnectionPointTypes.TextureScreenDepth | NodeRenderGraphBlockConnectionPointTypes.TextureWorldNormal | NodeRenderGraphBlockConnectionPointTypes.TextureLocalPosition | NodeRenderGraphBlockConnectionPointTypes.TextureLinearVelocity | NodeRenderGraphBlockConnectionPointTypes.ResourceContainer | NodeRenderGraphBlockConnectionPointTypes.ShadowGenerator | NodeRenderGraphBlockConnectionPointTypes.ShadowLight | NodeRenderGraphBlockConnectionPointTypes.Camera | NodeRenderGraphBlockConnectionPointTypes.ObjectList | NodeRenderGraphBlockConnectionPointTypes.AutoDetect;
239
241
  static GetStringFromConnectionNodeType(type: NodeRenderGraphBlockConnectionPointTypes): "" | "Texture" | "Camera" | "TextureBackBuffer" | "TextureBackBufferDepthStencilAttachment" | "TextureDepthStencilAttachment" | "ObjectList" | "TextureNormal" | "TextureAlbedo" | "TextureReflectivity" | "TexturePosition" | "TextureVelocity" | "TextureScreenDepth" | "TextureLocalPosition" | "TextureWorldNormal" | "TextureLinearVelocity" | "ResourceContainer" | "ShadowGenerator" | "ShadowLight" | "TextureDepth";
@@ -1424,6 +1426,7 @@ export const SplitContext: import("react").Context<ISplitContext>;
1424
1426
 
1425
1427
  }
1426
1428
  declare module "@babylonjs/node-render-graph-editor/split/splitContainer" {
1429
+ import { PropsWithChildren } from "react";
1427
1430
  import { SplitDirection } from "@babylonjs/node-render-graph-editor/split/splitContext";
1428
1431
  /**
1429
1432
  * Split container properties
@@ -1480,7 +1483,7 @@ export interface ISplitContainerProps {
1480
1483
  * @param props defines the split container properties
1481
1484
  * @returns the split container component
1482
1485
  */
1483
- export const SplitContainer: React.FC<ISplitContainerProps>;
1486
+ export const SplitContainer: React.FC<PropsWithChildren<ISplitContainerProps>>;
1484
1487
 
1485
1488
  }
1486
1489
  declare module "@babylonjs/node-render-graph-editor/nodeGraphSystem/typeLedger" {
@@ -3119,9 +3122,7 @@ export class ColorPickerLine extends React.Component<IColorPickerLineProps, ICol
3119
3122
  constructor(props: IColorPickerLineProps);
3120
3123
  syncPositions(): void;
3121
3124
  shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
3122
- getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
3123
- children?: React.ReactNode | undefined;
3124
- }>): string;
3125
+ getHexString(props?: Readonly<IColorPickerLineProps>): string;
3125
3126
  componentDidUpdate(): void;
3126
3127
  componentDidMount(): void;
3127
3128
 
@@ -3154,9 +3155,7 @@ interface IColorLineComponentState {
3154
3155
  export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
3155
3156
  constructor(props: IColorLineProps);
3156
3157
  shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
3157
- getValue(props?: Readonly<IColorLineProps> & Readonly<{
3158
- children?: React.ReactNode | undefined;
3159
- }>): Color4;
3158
+ getValue(props?: Readonly<IColorLineProps>): Color4;
3160
3159
  setColorFromString(colorString: string): void;
3161
3160
  setColor(newColor: Color4): void;
3162
3161
  switchExpandState(): void;
@@ -3343,6 +3342,7 @@ export const Icon: React.FC<IconProps>;
3343
3342
 
3344
3343
  }
3345
3344
  declare module "@babylonjs/node-render-graph-editor/components/Button" {
3345
+ import { PropsWithChildren } from "react";
3346
3346
  export type ButtonProps = {
3347
3347
  disabled?: boolean;
3348
3348
  active?: boolean;
@@ -3352,7 +3352,7 @@ export type ButtonProps = {
3352
3352
  title?: string;
3353
3353
  backgroundColor?: string;
3354
3354
  };
3355
- export const Button: React.FC<ButtonProps>;
3355
+ export const Button: React.FC<PropsWithChildren<ButtonProps>>;
3356
3356
 
3357
3357
  }
3358
3358
  declare module "@babylonjs/node-render-graph-editor/components/reactGraphSystem/useGraphContext" {
@@ -3364,7 +3364,7 @@ export const useGraphContext: () => import("@babylonjs/node-render-graph-editor/
3364
3364
 
3365
3365
  }
3366
3366
  declare module "@babylonjs/node-render-graph-editor/components/reactGraphSystem/NodeRenderer" {
3367
- import { ComponentType } from "react";
3367
+ import { ComponentType, PropsWithChildren } from "react";
3368
3368
  import { Nullable } from "@babylonjs/core/types";
3369
3369
  export type IVisualRecordsType = Record<string, {
3370
3370
  x: number;
@@ -3436,7 +3436,7 @@ export interface INodeRendererProps {
3436
3436
 
3437
3437
  }
3438
3438
  declare module "@babylonjs/node-render-graph-editor/components/reactGraphSystem/GraphNodesContainer" {
3439
- import { FC } from "react";
3439
+ import { FC, PropsWithChildren } from "react";
3440
3440
  export interface IGraphContainerProps {
3441
3441
  onNodeMoved: (id: string, x: number, y: number) => void;
3442
3442
  id: string;
@@ -3446,11 +3446,11 @@ export interface IGraphContainerProps {
3446
3446
  * @param props properties
3447
3447
  * @returns graph node container element
3448
3448
  */
3449
- export const GraphNodesContainer: FC<IGraphContainerProps>;
3449
+ export const GraphNodesContainer: FC<PropsWithChildren<IGraphContainerProps>>;
3450
3450
 
3451
3451
  }
3452
3452
  declare module "@babylonjs/node-render-graph-editor/components/reactGraphSystem/GraphNode" {
3453
- import { FC } from "react";
3453
+ import { FC, PropsWithChildren } from "react";
3454
3454
  export interface IGraphNodeProps {
3455
3455
  id: string;
3456
3456
  name: string;
@@ -3462,11 +3462,11 @@ export interface IGraphNodeProps {
3462
3462
  highlighted?: boolean;
3463
3463
  parentContainerId: string;
3464
3464
  }
3465
- export const SingleGraphNode: FC<IGraphNodeProps>;
3465
+ export const SingleGraphNode: FC<PropsWithChildren<IGraphNodeProps>>;
3466
3466
 
3467
3467
  }
3468
3468
  declare module "@babylonjs/node-render-graph-editor/components/reactGraphSystem/GraphLinesContainer" {
3469
- import { FC } from "react";
3469
+ import { FC, PropsWithChildren } from "react";
3470
3470
  /**
3471
3471
  * props for the GraphLineContainer
3472
3472
  */
@@ -3481,7 +3481,7 @@ export interface IGraphLinesContainerProps {
3481
3481
  * @param props
3482
3482
  * @returns
3483
3483
  */
3484
- export const GraphLinesContainer: FC<IGraphLinesContainerProps>;
3484
+ export const GraphLinesContainer: FC<PropsWithChildren<IGraphLinesContainerProps>>;
3485
3485
 
3486
3486
  }
3487
3487
  declare module "@babylonjs/node-render-graph-editor/components/reactGraphSystem/GraphLine" {
@@ -3542,7 +3542,7 @@ export const GraphContextManager: import("react").Context<IGraphContext>;
3542
3542
 
3543
3543
  }
3544
3544
  declare module "@babylonjs/node-render-graph-editor/components/reactGraphSystem/GraphContainer" {
3545
- import { FC } from "react";
3545
+ import { FC, PropsWithChildren } from "react";
3546
3546
  export interface IGraphContainerProps {
3547
3547
  }
3548
3548
  /**
@@ -3551,11 +3551,11 @@ export interface IGraphContainerProps {
3551
3551
  * @param props
3552
3552
  * @returns
3553
3553
  */
3554
- export const GraphContainer: FC<IGraphContainerProps>;
3554
+ export const GraphContainer: FC<PropsWithChildren<IGraphContainerProps>>;
3555
3555
 
3556
3556
  }
3557
3557
  declare module "@babylonjs/node-render-graph-editor/components/reactGraphSystem/GraphConnectorHandle" {
3558
- import { FC } from "react";
3558
+ import { FC, PropsWithChildren } from "react";
3559
3559
  /**
3560
3560
  * Props for the connector
3561
3561
  */
@@ -3598,7 +3598,7 @@ export interface IGraphConnectorHandlerProps {
3598
3598
  * drag the handle in a node and drop it in another node to create a connection.
3599
3599
  * @returns connector element
3600
3600
  */
3601
- export const GraphConnectorHandler: FC<IGraphConnectorHandlerProps>;
3601
+ export const GraphConnectorHandler: FC<PropsWithChildren<IGraphConnectorHandlerProps>>;
3602
3602
 
3603
3603
  }
3604
3604
  declare module "@babylonjs/node-render-graph-editor/components/lines/OptionsLineComponent" {
@@ -3703,9 +3703,7 @@ export class ColorPickerLineComponent extends React.Component<IColorPickerLineCo
3703
3703
  constructor(props: IColorPickerLineComponentProps);
3704
3704
  syncPositions(): void;
3705
3705
  shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
3706
- getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
3707
- children?: React.ReactNode | undefined;
3708
- }>): string;
3706
+ getHexString(props?: Readonly<IColorPickerLineComponentProps>): string;
3709
3707
  componentDidUpdate(): void;
3710
3708
  componentDidMount(): void;
3711
3709
 
@@ -3738,9 +3736,7 @@ interface IColorLineComponentState {
3738
3736
  export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
3739
3737
  constructor(props: IColorLineComponentProps);
3740
3738
  shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
3741
- getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
3742
- children?: React.ReactNode | undefined;
3743
- }>): Color4;
3739
+ getValue(props?: Readonly<IColorLineComponentProps>): Color4;
3744
3740
  setColorFromString(colorString: string): void;
3745
3741
  setColor(newColor: Color4): void;
3746
3742
  switchExpandState(): void;
@@ -4040,7 +4036,7 @@ export const FlexibleGridContainer: FC<IFlexibleGridContainerProps>;
4040
4036
 
4041
4037
  }
4042
4038
  declare module "@babylonjs/node-render-graph-editor/components/layout/FlexibleDropZone" {
4043
- import { FC } from "react";
4039
+ import { FC, PropsWithChildren } from "react";
4044
4040
  /**
4045
4041
  * Arguments for the FlexibleDropZone component.
4046
4042
  */
@@ -4060,11 +4056,11 @@ export interface IFlexibleDropZoneProps {
4060
4056
  * @param props properties
4061
4057
  * @returns drop zone element
4062
4058
  */
4063
- export const FlexibleDropZone: FC<IFlexibleDropZoneProps>;
4059
+ export const FlexibleDropZone: FC<PropsWithChildren<IFlexibleDropZoneProps>>;
4064
4060
 
4065
4061
  }
4066
4062
  declare module "@babylonjs/node-render-graph-editor/components/layout/FlexibleDragHandler" {
4067
- import { FC } from "react";
4063
+ import { FC, PropsWithChildren } from "react";
4068
4064
  /**
4069
4065
  * Arguments for the DragHandler component.
4070
4066
  */
@@ -4083,11 +4079,11 @@ export interface IFlexibleDragHandlerProps {
4083
4079
  * @param props properties
4084
4080
  * @returns DragHandler element
4085
4081
  */
4086
- export const FlexibleDragHandler: FC<IFlexibleDragHandlerProps>;
4082
+ export const FlexibleDragHandler: FC<PropsWithChildren<IFlexibleDragHandlerProps>>;
4087
4083
 
4088
4084
  }
4089
4085
  declare module "@babylonjs/node-render-graph-editor/components/layout/FlexibleColumn" {
4090
- import { FC } from "react";
4086
+ import { FC, PropsWithChildren } from "react";
4091
4087
  /**
4092
4088
  * Arguments for the Column component.
4093
4089
  */
@@ -4103,7 +4099,7 @@ export interface IFlexibleColumnProps {
4103
4099
  * @param props
4104
4100
  * @returns
4105
4101
  */
4106
- export const FlexibleColumn: FC<IFlexibleColumnProps>;
4102
+ export const FlexibleColumn: FC<PropsWithChildren<IFlexibleColumnProps>>;
4107
4103
 
4108
4104
  }
4109
4105
  declare module "@babylonjs/node-render-graph-editor/components/layout/DraggableIcon" {
@@ -4268,7 +4264,7 @@ export const CommandButtonComponent: React.FC<ICommandButtonComponentProps>;
4268
4264
 
4269
4265
  }
4270
4266
  declare module "@babylonjs/node-render-graph-editor/components/bars/CommandBarComponent" {
4271
- import { FC } from "react";
4267
+ import { FC, PropsWithChildren } from "react";
4272
4268
  export interface ICommandBarComponentProps {
4273
4269
  onSaveButtonClicked?: () => void;
4274
4270
  onSaveToSnippetButtonClicked?: () => void;
@@ -4283,7 +4279,7 @@ export interface ICommandBarComponentProps {
4283
4279
  artboardColor?: string;
4284
4280
  artboardColorPickerColor?: string;
4285
4281
  }
4286
- export const CommandBarComponent: FC<ICommandBarComponentProps>;
4282
+ export const CommandBarComponent: FC<PropsWithChildren<ICommandBarComponentProps>>;
4287
4283
 
4288
4284
  }
4289
4285
  declare module "@babylonjs/node-render-graph-editor/colorPicker/hexColor" {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-render-graph-editor",
3
- "version": "8.1.0",
3
+ "version": "8.2.0",
4
4
  "main": "dist/babylon.nodeRenderGraphEditor.max.js",
5
5
  "module": "dist/babylon.nodeRenderGraphEditor.max.js",
6
6
  "esnext": "dist/babylon.nodeRenderGraphEditor.max.js",
@@ -23,9 +23,9 @@
23
23
  "@types/react-dom": ">=16.0.9"
24
24
  },
25
25
  "devDependencies": {
26
- "@babylonjs/core": "^8.1.0",
27
- "react": "^17.0.2",
28
- "react-dom": "^17.0.2"
26
+ "@babylonjs/core": "^8.2.0",
27
+ "react": "^18.2.0",
28
+ "react-dom": "^18.2.0"
29
29
  },
30
30
  "keywords": [
31
31
  "3D",