@babylonjs/gui-editor 7.32.5 → 7.34.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2034,6 +2034,7 @@ export class NodePort {
2034
2034
  portData: IPortData;
2035
2035
  node: GraphNode;
2036
2036
  protected _element: HTMLDivElement;
2037
+ protected _portContainer: HTMLElement;
2037
2038
  protected _img: HTMLImageElement;
2038
2039
  protected _pip: HTMLDivElement;
2039
2040
  protected _stateManager: StateManager;
@@ -2043,6 +2044,7 @@ export class NodePort {
2043
2044
  protected _exposedOnFrame: boolean;
2044
2045
  delegatedPort: Nullable<FrameNodePort>;
2045
2046
  get element(): HTMLDivElement;
2047
+ get container(): HTMLElement;
2046
2048
  get portName(): string;
2047
2049
  set portName(newName: string);
2048
2050
  get disabled(): boolean;
@@ -2118,7 +2120,9 @@ export class GraphNode {
2118
2120
  private _headerContainer;
2119
2121
  private _headerIcon;
2120
2122
  private _headerIconImg;
2123
+ private _headerCollapseImg;
2121
2124
  private _header;
2125
+ private _headerCollapse;
2122
2126
  private _connections;
2123
2127
  private _optionsContainer;
2124
2128
  private _inputsContainer;
@@ -2150,6 +2154,7 @@ export class GraphNode {
2150
2154
  private _visualPropertiesRefresh;
2151
2155
  addClassToVisual(className: string): void;
2152
2156
  removeClassFromVisual(className: string): void;
2157
+ get isCollapsed(): boolean;
2153
2158
  get isVisible(): boolean;
2154
2159
  set isVisible(value: boolean);
2155
2160
  private _upateNodePortNames;
@@ -2187,6 +2192,15 @@ export class GraphNode {
2187
2192
  private _onMove;
2188
2193
  renderProperties(): Nullable<JSX.Element>;
2189
2194
  private _forceRebuild;
2195
+ private _isCollapsed;
2196
+ /**
2197
+ * Collapse the node
2198
+ */
2199
+ collapse(): void;
2200
+ /**
2201
+ * Expand the node
2202
+ */
2203
+ expand(): void;
2190
2204
  appendVisual(root: HTMLDivElement, owner: GraphCanvasComponent): void;
2191
2205
  dispose(): void;
2192
2206
  }
@@ -2595,6 +2609,7 @@ export interface INodeLocationInfo {
2595
2609
  blockId: number;
2596
2610
  x: number;
2597
2611
  y: number;
2612
+ isCollapsed: boolean;
2598
2613
  }
2599
2614
  export interface IFrameData {
2600
2615
  x: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/gui-editor",
3
- "version": "7.32.5",
3
+ "version": "7.34.0",
4
4
  "main": "dist/babylon.guiEditor.max.js",
5
5
  "module": "dist/babylon.guiEditor.max.js",
6
6
  "esnext": "dist/babylon.guiEditor.max.js",
@@ -24,8 +24,8 @@
24
24
  "@types/react-dom": ">=16.0.9"
25
25
  },
26
26
  "devDependencies": {
27
- "@babylonjs/core": "^7.32.5",
28
- "@babylonjs/gui": "^7.32.5",
27
+ "@babylonjs/core": "^7.34.0",
28
+ "@babylonjs/gui": "^7.34.0",
29
29
  "react": "^17.0.2",
30
30
  "react-dom": "^17.0.2"
31
31
  },