babylonjs-node-render-graph-editor 7.21.4 → 7.22.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.
@@ -118,7 +118,6 @@ declare module BABYLON.NodeRenderGraphEditor {
118
118
  onReOrganizedRequiredObservable: BABYLON.Observable<void>;
119
119
  onLogRequiredObservable: BABYLON.Observable<LogEntry>;
120
120
  onIsLoadingChanged: BABYLON.Observable<boolean>;
121
- onPreviewCommandActivated: BABYLON.Observable<boolean>;
122
121
  onLightUpdated: BABYLON.Observable<void>;
123
122
  onFrame: BABYLON.Observable<void>;
124
123
  onAnimationCommandActivated: BABYLON.Observable<void>;
@@ -439,7 +438,6 @@ declare module BABYLON.NodeRenderGraphEditor {
439
438
  }
440
439
  export class GenericPropertyTabComponent extends React.Component<BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPropertyComponentProps> {
441
440
  constructor(props: BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPropertyComponentProps);
442
- forceRebuild(propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
443
441
  render(): import("react/jsx-runtime").JSX.Element;
444
442
  }
445
443
 
@@ -1168,7 +1166,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1168
1166
  onFrameCreatedObservable: BABYLON.Observable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphFrame>;
1169
1167
  onUpdateRequiredObservable: BABYLON.Observable<any>;
1170
1168
  onGraphNodeRemovalObservable: BABYLON.Observable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode>;
1171
- onSelectionBoxMoved: BABYLON.Observable<DOMRect | ClientRect>;
1169
+ onSelectionBoxMoved: BABYLON.Observable<ClientRect | DOMRect>;
1172
1170
  onCandidateLinkMoved: BABYLON.Observable<BABYLON.Nullable<BABYLON.Vector2>>;
1173
1171
  onCandidatePortSelectedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeRenderGraphEditor.SharedUIComponents.NodePort>>;
1174
1172
  onNewNodeCreatedObservable: BABYLON.Observable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode>;
@@ -1188,6 +1186,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1188
1186
  data: any;
1189
1187
  active: boolean;
1190
1188
  }>;
1189
+ onPreviewCommandActivated: BABYLON.Observable<boolean>;
1191
1190
  exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphFrame>) => string;
1192
1191
  isElbowConnectionAllowed: (nodeA: BABYLON.NodeRenderGraphEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeRenderGraphEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeRenderGraphEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeRenderGraphEditor.SharedUIComponents.NodePort) => boolean;
1193
1192
  isDebugConnectionAllowed: (nodeA: BABYLON.NodeRenderGraphEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeRenderGraphEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeRenderGraphEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeRenderGraphEditor.SharedUIComponents.NodePort) => boolean;
@@ -1196,6 +1195,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1196
1195
  getEditorDataMap: () => {
1197
1196
  [key: number]: number;
1198
1197
  };
1198
+ getScene?: () => BABYLON.Scene;
1199
1199
  createDefaultInputData: (rootData: any, portData: BABYLON.NodeRenderGraphEditor.SharedUIComponents.IPortData, nodeContainer: BABYLON.NodeRenderGraphEditor.SharedUIComponents.INodeContainer) => BABYLON.Nullable<{
1200
1200
  data: BABYLON.NodeRenderGraphEditor.SharedUIComponents.INodeData;
1201
1201
  name: string;
@@ -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,8 +1351,11 @@ 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;
1358
+ private _optionsContainer;
1354
1359
  private _inputsContainer;
1355
1360
  private _outputsContainer;
1356
1361
  private _content;
@@ -1377,8 +1382,10 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1377
1382
  private _displayManager;
1378
1383
  private _isVisible;
1379
1384
  private _enclosingFrameId;
1385
+ private _visualPropertiesRefresh;
1380
1386
  addClassToVisual(className: string): void;
1381
1387
  removeClassFromVisual(className: string): void;
1388
+ get isCollapsed(): boolean;
1382
1389
  get isVisible(): boolean;
1383
1390
  set isVisible(value: boolean);
1384
1391
  private _upateNodePortNames;
@@ -1415,6 +1422,16 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1415
1422
  private _onUp;
1416
1423
  private _onMove;
1417
1424
  renderProperties(): BABYLON.Nullable<JSX.Element>;
1425
+ private _forceRebuild;
1426
+ private _isCollapsed;
1427
+ /**
1428
+ * Collapse the node
1429
+ */
1430
+ collapse(): void;
1431
+ /**
1432
+ * Expand the node
1433
+ */
1434
+ expand(): void;
1418
1435
  appendVisual(root: HTMLDivElement, owner: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphCanvasComponent): void;
1419
1436
  dispose(): void;
1420
1437
  }
@@ -1741,6 +1758,23 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1741
1758
 
1742
1759
 
1743
1760
 
1761
+ }
1762
+ declare module BABYLON.NodeRenderGraphEditor {
1763
+
1764
+
1765
+ }
1766
+ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1767
+ /**
1768
+ * Function used to force a rebuild of the node system
1769
+ * @param source source object
1770
+ * @param stateManager defines the state manager to use
1771
+ * @param propertyName name of the property that has been changed
1772
+ * @param notifiers list of notifiers to use
1773
+ */
1774
+ export function ForceRebuild(source: any, stateManager: BABYLON.NodeRenderGraphEditor.SharedUIComponents.StateManager, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
1775
+
1776
+
1777
+
1744
1778
  }
1745
1779
  declare module BABYLON.NodeRenderGraphEditor {
1746
1780
 
@@ -1826,6 +1860,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
1826
1860
  blockId: number;
1827
1861
  x: number;
1828
1862
  y: number;
1863
+ isCollapsed: boolean;
1829
1864
  }
1830
1865
  export interface IFrameData {
1831
1866
  x: number;