@babylonjs/node-editor 7.32.5 → 7.34.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -472,7 +472,7 @@ export class ConnectionPointPortData implements IPortData {
472
472
  canConnectTo(port: IPortData): boolean;
473
473
  disconnectFrom(port: IPortData): void;
474
474
  checkCompatibilityState(port: IPortData): 0 | NodeMaterialConnectionPointCompatibilityStates.TypeIncompatible | NodeMaterialConnectionPointCompatibilityStates.TargetIncompatible | NodeMaterialConnectionPointCompatibilityStates.HierarchyIssue;
475
- getCompatibilityIssueMessage(issue: number, targetNode: GraphNode, targetPort: IPortData): "" | "Cannot connect two different connection types" | "Source block can only work in fragment shader whereas destination block is currently aimed for the vertex shader" | "Source block cannot be connected with one of its ancestors";
475
+ getCompatibilityIssueMessage(issue: number, targetNode: GraphNode, targetPort: IPortData): string;
476
476
  }
477
477
 
478
478
  }
@@ -1155,11 +1155,11 @@ export enum PreviewType {
1155
1155
  Rain = 9,
1156
1156
  Explosion = 10,
1157
1157
  Fire = 11,
1158
- Custom = 12,
1159
- Room = 13,
1160
- Parrot = 14,
1161
- BricksSkull = 15,
1162
- Plants = 16
1158
+ Parrot = 12,
1159
+ BricksSkull = 13,
1160
+ Plants = 14,
1161
+ Custom = 15,
1162
+ Room = 16
1163
1163
  }
1164
1164
 
1165
1165
  }
@@ -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.34.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.34.0",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },