@babylonjs/node-editor 7.32.5 → 7.33.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1858,6 +1858,7 @@ export class NodePort {
1858
1858
  portData: IPortData;
1859
1859
  node: GraphNode;
1860
1860
  protected _element: HTMLDivElement;
1861
+ protected _portContainer: HTMLElement;
1861
1862
  protected _img: HTMLImageElement;
1862
1863
  protected _pip: HTMLDivElement;
1863
1864
  protected _stateManager: StateManager;
@@ -1867,6 +1868,7 @@ export class NodePort {
1867
1868
  protected _exposedOnFrame: boolean;
1868
1869
  delegatedPort: Nullable<FrameNodePort>;
1869
1870
  get element(): HTMLDivElement;
1871
+ get container(): HTMLElement;
1870
1872
  get portName(): string;
1871
1873
  set portName(newName: string);
1872
1874
  get disabled(): boolean;
@@ -1942,7 +1944,9 @@ export class GraphNode {
1942
1944
  private _headerContainer;
1943
1945
  private _headerIcon;
1944
1946
  private _headerIconImg;
1947
+ private _headerCollapseImg;
1945
1948
  private _header;
1949
+ private _headerCollapse;
1946
1950
  private _connections;
1947
1951
  private _optionsContainer;
1948
1952
  private _inputsContainer;
@@ -1974,6 +1978,7 @@ export class GraphNode {
1974
1978
  private _visualPropertiesRefresh;
1975
1979
  addClassToVisual(className: string): void;
1976
1980
  removeClassFromVisual(className: string): void;
1981
+ get isCollapsed(): boolean;
1977
1982
  get isVisible(): boolean;
1978
1983
  set isVisible(value: boolean);
1979
1984
  private _upateNodePortNames;
@@ -2011,6 +2016,15 @@ export class GraphNode {
2011
2016
  private _onMove;
2012
2017
  renderProperties(): Nullable<JSX.Element>;
2013
2018
  private _forceRebuild;
2019
+ private _isCollapsed;
2020
+ /**
2021
+ * Collapse the node
2022
+ */
2023
+ collapse(): void;
2024
+ /**
2025
+ * Expand the node
2026
+ */
2027
+ expand(): void;
2014
2028
  appendVisual(root: HTMLDivElement, owner: GraphCanvasComponent): void;
2015
2029
  dispose(): void;
2016
2030
  }
@@ -2419,6 +2433,7 @@ export interface INodeLocationInfo {
2419
2433
  blockId: number;
2420
2434
  x: number;
2421
2435
  y: number;
2436
+ isCollapsed: boolean;
2422
2437
  }
2423
2438
  export interface IFrameData {
2424
2439
  x: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-editor",
3
- "version": "7.32.5",
3
+ "version": "7.33.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.32.5",
26
+ "@babylonjs/core": "^7.33.0",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },