babylonjs-node-editor 7.32.5 → 7.34.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.
@@ -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;
@@ -4830,7 +4845,7 @@ declare module BABYLON.NodeEditor {
4830
4845
  canConnectTo(port: BABYLON.NodeEditor.SharedUIComponents.IPortData): boolean;
4831
4846
  disconnectFrom(port: BABYLON.NodeEditor.SharedUIComponents.IPortData): void;
4832
4847
  checkCompatibilityState(port: BABYLON.NodeEditor.SharedUIComponents.IPortData): 0 | BABYLON.NodeMaterialConnectionPointCompatibilityStates.TypeIncompatible | BABYLON.NodeMaterialConnectionPointCompatibilityStates.TargetIncompatible | BABYLON.NodeMaterialConnectionPointCompatibilityStates.HierarchyIssue;
4833
- getCompatibilityIssueMessage(issue: number, targetNode: BABYLON.NodeEditor.SharedUIComponents.GraphNode, targetPort: BABYLON.NodeEditor.SharedUIComponents.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";
4848
+ getCompatibilityIssueMessage(issue: number, targetNode: BABYLON.NodeEditor.SharedUIComponents.GraphNode, targetPort: BABYLON.NodeEditor.SharedUIComponents.IPortData): string;
4834
4849
  }
4835
4850
 
4836
4851
 
@@ -5330,11 +5345,11 @@ declare module BABYLON.NodeEditor {
5330
5345
  Rain = 9,
5331
5346
  Explosion = 10,
5332
5347
  Fire = 11,
5333
- Custom = 12,
5334
- Room = 13,
5335
- Parrot = 14,
5336
- BricksSkull = 15,
5337
- Plants = 16
5348
+ Parrot = 12,
5349
+ BricksSkull = 13,
5350
+ Plants = 14,
5351
+ Custom = 15,
5352
+ Room = 16
5338
5353
  }
5339
5354
 
5340
5355
 
@@ -6036,6 +6051,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
6036
6051
  portData: BABYLON.NodeEditor.SharedUIComponents.IPortData;
6037
6052
  node: BABYLON.NodeEditor.SharedUIComponents.GraphNode;
6038
6053
  protected _element: HTMLDivElement;
6054
+ protected _portContainer: HTMLElement;
6039
6055
  protected _img: HTMLImageElement;
6040
6056
  protected _pip: HTMLDivElement;
6041
6057
  protected _stateManager: BABYLON.NodeEditor.SharedUIComponents.StateManager;
@@ -6045,6 +6061,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
6045
6061
  protected _exposedOnFrame: boolean;
6046
6062
  delegatedPort: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.FrameNodePort>;
6047
6063
  get element(): HTMLDivElement;
6064
+ get container(): HTMLElement;
6048
6065
  get portName(): string;
6049
6066
  set portName(newName: string);
6050
6067
  get disabled(): boolean;
@@ -6125,7 +6142,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
6125
6142
  private _headerContainer;
6126
6143
  private _headerIcon;
6127
6144
  private _headerIconImg;
6145
+ private _headerCollapseImg;
6128
6146
  private _header;
6147
+ private _headerCollapse;
6129
6148
  private _connections;
6130
6149
  private _optionsContainer;
6131
6150
  private _inputsContainer;
@@ -6157,6 +6176,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
6157
6176
  private _visualPropertiesRefresh;
6158
6177
  addClassToVisual(className: string): void;
6159
6178
  removeClassFromVisual(className: string): void;
6179
+ get isCollapsed(): boolean;
6160
6180
  get isVisible(): boolean;
6161
6181
  set isVisible(value: boolean);
6162
6182
  private _upateNodePortNames;
@@ -6194,6 +6214,15 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
6194
6214
  private _onMove;
6195
6215
  renderProperties(): BABYLON.Nullable<JSX.Element>;
6196
6216
  private _forceRebuild;
6217
+ private _isCollapsed;
6218
+ /**
6219
+ * Collapse the node
6220
+ */
6221
+ collapse(): void;
6222
+ /**
6223
+ * Expand the node
6224
+ */
6225
+ expand(): void;
6197
6226
  appendVisual(root: HTMLDivElement, owner: BABYLON.NodeEditor.SharedUIComponents.GraphCanvasComponent): void;
6198
6227
  dispose(): void;
6199
6228
  }
@@ -6622,6 +6651,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
6622
6651
  blockId: number;
6623
6652
  x: number;
6624
6653
  y: number;
6654
+ isCollapsed: boolean;
6625
6655
  }
6626
6656
  export interface IFrameData {
6627
6657
  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": "babylon.nodeEditor.js",
5
5
  "types": "babylon.nodeEditor.module.d.ts",
6
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.32.5"
17
+ "babylonjs": "^7.34.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",