babylonjs-node-render-graph-editor 7.21.5 → 7.23.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.
@@ -162,7 +162,7 @@ declare module BABYLON.NodeRenderGraphEditor {
162
162
  * Static class for BlockTools
163
163
  */
164
164
  export class BlockTools {
165
- static GetBlockFromString(data: string, frameGraph: BABYLON.FrameGraph, scene: BABYLON.Scene): BABYLON.NodeRenderGraphTeleportInBlock | BABYLON.NodeRenderGraphTeleportOutBlock | BABYLON.NodeRenderGraphOutputBlock | BABYLON.NodeRenderGraphElbowBlock | BABYLON.NodeRenderGraphInputBlock | BABYLON.NodeRenderGraphClearBlock | BABYLON.NodeRenderGraphCopyTextureBlock | BABYLON.NodeRenderGraphGenerateMipmapsBlock | BABYLON.NodeRenderGraphBlackAndWhitePostProcessBlock | BABYLON.NodeRenderGraphBloomPostProcessBlock | BABYLON.NodeRenderGraphBlurPostProcessBlock | BABYLON.GUI.NodeRenderGraphGUIBlock | BABYLON.NodeRenderGraphObjectRendererBlock | BABYLON.NodeRenderGraphGeometryRendererBlock | BABYLON.NodeRenderGraphCullObjectsBlock | BABYLON.NodeRenderGraphCircleOfConfusionPostProcessBlock | BABYLON.NodeRenderGraphDepthOfFieldPostProcessBlock | BABYLON.NodeRenderGraphExtractHighlightsPostProcessBlock | null;
165
+ static GetBlockFromString(data: string, frameGraph: BABYLON.FrameGraph, scene: BABYLON.Scene): BABYLON.NodeRenderGraphTeleportInBlock | BABYLON.NodeRenderGraphTeleportOutBlock | BABYLON.NodeRenderGraphOutputBlock | BABYLON.NodeRenderGraphElbowBlock | BABYLON.NodeRenderGraphInputBlock | BABYLON.NodeRenderGraphClearBlock | BABYLON.NodeRenderGraphCopyTextureBlock | BABYLON.NodeRenderGraphGenerateMipmapsBlock | BABYLON.NodeRenderGraphBlackAndWhitePostProcessBlock | BABYLON.NodeRenderGraphBloomPostProcessBlock | BABYLON.NodeRenderGraphBlurPostProcessBlock | BABYLON.GUI.NodeRenderGraphGUIBlock | BABYLON.NodeRenderGraphObjectRendererBlock | BABYLON.NodeRenderGraphGeometryRendererBlock | BABYLON.NodeRenderGraphTAAObjectRendererBlock | BABYLON.NodeRenderGraphCullObjectsBlock | BABYLON.NodeRenderGraphCircleOfConfusionPostProcessBlock | BABYLON.NodeRenderGraphDepthOfFieldPostProcessBlock | BABYLON.NodeRenderGraphExtractHighlightsPostProcessBlock | null;
166
166
  static GetColorFromConnectionNodeType(type: BABYLON.NodeRenderGraphBlockConnectionPointTypes): string;
167
167
  static GetConnectionNodeTypeFromString(type: string): BABYLON.NodeRenderGraphBlockConnectionPointTypes.Texture | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureBackBuffer | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureBackBufferDepthStencilAttachment | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureDepthStencilAttachment | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureViewDepth | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureViewNormal | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureAlbedo | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureReflectivity | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureWorldPosition | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureVelocity | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureScreenDepth | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureWorldNormal | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureLocalPosition | BABYLON.NodeRenderGraphBlockConnectionPointTypes.TextureLinearVelocity | BABYLON.NodeRenderGraphBlockConnectionPointTypes.Camera | BABYLON.NodeRenderGraphBlockConnectionPointTypes.ObjectList | BABYLON.NodeRenderGraphBlockConnectionPointTypes.AutoDetect;
168
168
  static GetStringFromConnectionNodeType(type: BABYLON.NodeRenderGraphBlockConnectionPointTypes): "" | "Texture" | "Camera" | "TextureBackBuffer" | "TextureBackBufferDepthStencilAttachment" | "TextureDepthStencilAttachment" | "ObjectList" | "TextureNormal" | "TextureAlbedo" | "TextureReflectivity" | "TexturePosition" | "TextureVelocity" | "TextureScreenDepth" | "TextureLocalPosition" | "TextureWorldNormal" | "TextureLinearVelocity" | "TextureDepth";
@@ -350,7 +350,7 @@ declare module BABYLON.NodeRenderGraphEditor {
350
350
  canConnectTo(port: BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPortData): boolean;
351
351
  disconnectFrom(port: BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPortData): void;
352
352
  checkCompatibilityState(port: BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPortData): 0 | BABYLON.NodeRenderGraphConnectionPointCompatibilityStates.TypeIncompatible | BABYLON.NodeRenderGraphConnectionPointCompatibilityStates.HierarchyIssue;
353
- getCompatibilityIssueMessage(issue: number, targetNode: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode, targetPort: BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPortData): "" | "Cannot connect two different connection types" | "Source block cannot be connected with one of its ancestors";
353
+ getCompatibilityIssueMessage(issue: number, targetNode: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode, targetPort: BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPortData): string;
354
354
  }
355
355
 
356
356
 
@@ -1260,6 +1260,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1260
1260
  portData: BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPortData;
1261
1261
  node: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode;
1262
1262
  protected _element: HTMLDivElement;
1263
+ protected _portContainer: HTMLElement;
1263
1264
  protected _img: HTMLImageElement;
1264
1265
  protected _pip: HTMLDivElement;
1265
1266
  protected _stateManager: BABYLON.NodeRenderGraphEditor.SharedUIComponents.StateManager;
@@ -1269,6 +1270,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1269
1270
  protected _exposedOnFrame: boolean;
1270
1271
  delegatedPort: BABYLON.Nullable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.FrameNodePort>;
1271
1272
  get element(): HTMLDivElement;
1273
+ get container(): HTMLElement;
1272
1274
  get portName(): string;
1273
1275
  set portName(newName: string);
1274
1276
  get disabled(): boolean;
@@ -1349,7 +1351,9 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1349
1351
  private _headerContainer;
1350
1352
  private _headerIcon;
1351
1353
  private _headerIconImg;
1354
+ private _headerCollapseImg;
1352
1355
  private _header;
1356
+ private _headerCollapse;
1353
1357
  private _connections;
1354
1358
  private _optionsContainer;
1355
1359
  private _inputsContainer;
@@ -1381,6 +1385,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1381
1385
  private _visualPropertiesRefresh;
1382
1386
  addClassToVisual(className: string): void;
1383
1387
  removeClassFromVisual(className: string): void;
1388
+ get isCollapsed(): boolean;
1384
1389
  get isVisible(): boolean;
1385
1390
  set isVisible(value: boolean);
1386
1391
  private _upateNodePortNames;
@@ -1418,6 +1423,15 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1418
1423
  private _onMove;
1419
1424
  renderProperties(): BABYLON.Nullable<JSX.Element>;
1420
1425
  private _forceRebuild;
1426
+ private _isCollapsed;
1427
+ /**
1428
+ * Collapse the node
1429
+ */
1430
+ collapse(): void;
1431
+ /**
1432
+ * Expand the node
1433
+ */
1434
+ expand(): void;
1421
1435
  appendVisual(root: HTMLDivElement, owner: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphCanvasComponent): void;
1422
1436
  dispose(): void;
1423
1437
  }
@@ -1846,6 +1860,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1846
1860
  blockId: number;
1847
1861
  x: number;
1848
1862
  y: number;
1863
+ isCollapsed: boolean;
1849
1864
  }
1850
1865
  export interface IFrameData {
1851
1866
  x: number;