babylonjs-gui-editor 7.32.4 → 7.33.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.
@@ -1640,7 +1640,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1640
1640
  onFrameCreatedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>;
1641
1641
  onUpdateRequiredObservable: Observable<any>;
1642
1642
  onGraphNodeRemovalObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
1643
- onSelectionBoxMoved: Observable<DOMRect | ClientRect>;
1643
+ onSelectionBoxMoved: Observable<ClientRect | DOMRect>;
1644
1644
  onCandidateLinkMoved: Observable<Nullable<Vector2>>;
1645
1645
  onCandidatePortSelectedObservable: Observable<Nullable<BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort>>;
1646
1646
  onNewNodeCreatedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
@@ -1660,6 +1660,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1660
1660
  data: any;
1661
1661
  active: boolean;
1662
1662
  }>;
1663
+ onPreviewCommandActivated: Observable<boolean>;
1663
1664
  exportData: (data: any, frame?: Nullable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>) => string;
1664
1665
  isElbowConnectionAllowed: (nodeA: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort) => boolean;
1665
1666
  isDebugConnectionAllowed: (nodeA: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort) => boolean;
@@ -1668,6 +1669,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1668
1669
  getEditorDataMap: () => {
1669
1670
  [key: number]: number;
1670
1671
  };
1672
+ getScene?: () => Scene;
1671
1673
  createDefaultInputData: (rootData: any, portData: BABYLON.GuiEditor.SharedUIComponents.IPortData, nodeContainer: BABYLON.GuiEditor.SharedUIComponents.INodeContainer) => Nullable<{
1672
1674
  data: BABYLON.GuiEditor.SharedUIComponents.INodeData;
1673
1675
  name: string;
@@ -1732,6 +1734,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1732
1734
  portData: BABYLON.GuiEditor.SharedUIComponents.IPortData;
1733
1735
  node: BABYLON.GuiEditor.SharedUIComponents.GraphNode;
1734
1736
  protected _element: HTMLDivElement;
1737
+ protected _portContainer: HTMLElement;
1735
1738
  protected _img: HTMLImageElement;
1736
1739
  protected _pip: HTMLDivElement;
1737
1740
  protected _stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager;
@@ -1741,6 +1744,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1741
1744
  protected _exposedOnFrame: boolean;
1742
1745
  delegatedPort: Nullable<BABYLON.GuiEditor.SharedUIComponents.FrameNodePort>;
1743
1746
  get element(): HTMLDivElement;
1747
+ get container(): HTMLElement;
1744
1748
  get portName(): string;
1745
1749
  set portName(newName: string);
1746
1750
  get disabled(): boolean;
@@ -1821,8 +1825,11 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1821
1825
  private _headerContainer;
1822
1826
  private _headerIcon;
1823
1827
  private _headerIconImg;
1828
+ private _headerCollapseImg;
1824
1829
  private _header;
1830
+ private _headerCollapse;
1825
1831
  private _connections;
1832
+ private _optionsContainer;
1826
1833
  private _inputsContainer;
1827
1834
  private _outputsContainer;
1828
1835
  private _content;
@@ -1849,8 +1856,10 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1849
1856
  private _displayManager;
1850
1857
  private _isVisible;
1851
1858
  private _enclosingFrameId;
1859
+ private _visualPropertiesRefresh;
1852
1860
  addClassToVisual(className: string): void;
1853
1861
  removeClassFromVisual(className: string): void;
1862
+ get isCollapsed(): boolean;
1854
1863
  get isVisible(): boolean;
1855
1864
  set isVisible(value: boolean);
1856
1865
  private _upateNodePortNames;
@@ -1887,6 +1896,16 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1887
1896
  private _onUp;
1888
1897
  private _onMove;
1889
1898
  renderProperties(): Nullable<JSX.Element>;
1899
+ private _forceRebuild;
1900
+ private _isCollapsed;
1901
+ /**
1902
+ * Collapse the node
1903
+ */
1904
+ collapse(): void;
1905
+ /**
1906
+ * Expand the node
1907
+ */
1908
+ expand(): void;
1890
1909
  appendVisual(root: HTMLDivElement, owner: BABYLON.GuiEditor.SharedUIComponents.GraphCanvasComponent): void;
1891
1910
  dispose(): void;
1892
1911
  }
@@ -2213,6 +2232,23 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2213
2232
 
2214
2233
 
2215
2234
 
2235
+ }
2236
+ declare module BABYLON {
2237
+
2238
+
2239
+ }
2240
+ declare module BABYLON.GuiEditor.SharedUIComponents {
2241
+ /**
2242
+ * Function used to force a rebuild of the node system
2243
+ * @param source source object
2244
+ * @param stateManager defines the state manager to use
2245
+ * @param propertyName name of the property that has been changed
2246
+ * @param notifiers list of notifiers to use
2247
+ */
2248
+ export function ForceRebuild(source: any, stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
2249
+
2250
+
2251
+
2216
2252
  }
2217
2253
  declare module BABYLON {
2218
2254
 
@@ -2298,6 +2334,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2298
2334
  blockId: number;
2299
2335
  x: number;
2300
2336
  y: number;
2337
+ isCollapsed: boolean;
2301
2338
  }
2302
2339
  export interface IFrameData {
2303
2340
  x: number;
@@ -1929,6 +1929,7 @@ import { IPortData } from "babylonjs-gui-editor/nodeGraphSystem/interfaces/portD
1929
1929
  import { ISelectionChangedOptions } from "babylonjs-gui-editor/nodeGraphSystem/interfaces/selectionChangedOptions";
1930
1930
  import { NodePort } from "babylonjs-gui-editor/nodeGraphSystem/nodePort";
1931
1931
  import { HistoryStack } from "babylonjs-gui-editor/historyStack";
1932
+ import { Scene } from "babylonjs/scene";
1932
1933
  export class StateManager {
1933
1934
  data: any;
1934
1935
  hostDocument: Document;
@@ -1943,7 +1944,7 @@ export class StateManager {
1943
1944
  onFrameCreatedObservable: Observable<GraphFrame>;
1944
1945
  onUpdateRequiredObservable: Observable<any>;
1945
1946
  onGraphNodeRemovalObservable: Observable<GraphNode>;
1946
- onSelectionBoxMoved: Observable<DOMRect | ClientRect>;
1947
+ onSelectionBoxMoved: Observable<ClientRect | DOMRect>;
1947
1948
  onCandidateLinkMoved: Observable<Nullable<Vector2>>;
1948
1949
  onCandidatePortSelectedObservable: Observable<Nullable<FrameNodePort | NodePort>>;
1949
1950
  onNewNodeCreatedObservable: Observable<GraphNode>;
@@ -1963,6 +1964,7 @@ export class StateManager {
1963
1964
  data: any;
1964
1965
  active: boolean;
1965
1966
  }>;
1967
+ onPreviewCommandActivated: Observable<boolean>;
1966
1968
  exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
1967
1969
  isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
1968
1970
  isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
@@ -1971,6 +1973,7 @@ export class StateManager {
1971
1973
  getEditorDataMap: () => {
1972
1974
  [key: number]: number;
1973
1975
  };
1976
+ getScene?: () => Scene;
1974
1977
  createDefaultInputData: (rootData: any, portData: IPortData, nodeContainer: INodeContainer) => Nullable<{
1975
1978
  data: INodeData;
1976
1979
  name: string;
@@ -2031,6 +2034,7 @@ export class NodePort {
2031
2034
  portData: IPortData;
2032
2035
  node: GraphNode;
2033
2036
  protected _element: HTMLDivElement;
2037
+ protected _portContainer: HTMLElement;
2034
2038
  protected _img: HTMLImageElement;
2035
2039
  protected _pip: HTMLDivElement;
2036
2040
  protected _stateManager: StateManager;
@@ -2040,6 +2044,7 @@ export class NodePort {
2040
2044
  protected _exposedOnFrame: boolean;
2041
2045
  delegatedPort: Nullable<FrameNodePort>;
2042
2046
  get element(): HTMLDivElement;
2047
+ get container(): HTMLElement;
2043
2048
  get portName(): string;
2044
2049
  set portName(newName: string);
2045
2050
  get disabled(): boolean;
@@ -2115,8 +2120,11 @@ export class GraphNode {
2115
2120
  private _headerContainer;
2116
2121
  private _headerIcon;
2117
2122
  private _headerIconImg;
2123
+ private _headerCollapseImg;
2118
2124
  private _header;
2125
+ private _headerCollapse;
2119
2126
  private _connections;
2127
+ private _optionsContainer;
2120
2128
  private _inputsContainer;
2121
2129
  private _outputsContainer;
2122
2130
  private _content;
@@ -2143,8 +2151,10 @@ export class GraphNode {
2143
2151
  private _displayManager;
2144
2152
  private _isVisible;
2145
2153
  private _enclosingFrameId;
2154
+ private _visualPropertiesRefresh;
2146
2155
  addClassToVisual(className: string): void;
2147
2156
  removeClassFromVisual(className: string): void;
2157
+ get isCollapsed(): boolean;
2148
2158
  get isVisible(): boolean;
2149
2159
  set isVisible(value: boolean);
2150
2160
  private _upateNodePortNames;
@@ -2181,6 +2191,16 @@ export class GraphNode {
2181
2191
  private _onUp;
2182
2192
  private _onMove;
2183
2193
  renderProperties(): Nullable<JSX.Element>;
2194
+ private _forceRebuild;
2195
+ private _isCollapsed;
2196
+ /**
2197
+ * Collapse the node
2198
+ */
2199
+ collapse(): void;
2200
+ /**
2201
+ * Expand the node
2202
+ */
2203
+ expand(): void;
2184
2204
  appendVisual(root: HTMLDivElement, owner: GraphCanvasComponent): void;
2185
2205
  dispose(): void;
2186
2206
  }
@@ -2507,6 +2527,19 @@ export class DisplayLedger {
2507
2527
  };
2508
2528
  }
2509
2529
 
2530
+ }
2531
+ declare module "babylonjs-gui-editor/nodeGraphSystem/automaticProperties" {
2532
+ import { IEditablePropertyOption } from "babylonjs/Decorators/nodeDecorator";
2533
+ import { StateManager } from "babylonjs-gui-editor/nodeGraphSystem/stateManager";
2534
+ /**
2535
+ * Function used to force a rebuild of the node system
2536
+ * @param source source object
2537
+ * @param stateManager defines the state manager to use
2538
+ * @param propertyName name of the property that has been changed
2539
+ * @param notifiers list of notifiers to use
2540
+ */
2541
+ export function ForceRebuild(source: any, stateManager: StateManager, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
2542
+
2510
2543
  }
2511
2544
  declare module "babylonjs-gui-editor/nodeGraphSystem/types/framePortData" {
2512
2545
  import { GraphFrame } from "babylonjs-gui-editor/nodeGraphSystem/graphFrame";
@@ -2576,6 +2609,7 @@ export interface INodeLocationInfo {
2576
2609
  blockId: number;
2577
2610
  x: number;
2578
2611
  y: number;
2612
+ isCollapsed: boolean;
2579
2613
  }
2580
2614
  export interface IFrameData {
2581
2615
  x: number;
@@ -6336,7 +6370,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6336
6370
  onFrameCreatedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>;
6337
6371
  onUpdateRequiredObservable: Observable<any>;
6338
6372
  onGraphNodeRemovalObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
6339
- onSelectionBoxMoved: Observable<DOMRect | ClientRect>;
6373
+ onSelectionBoxMoved: Observable<ClientRect | DOMRect>;
6340
6374
  onCandidateLinkMoved: Observable<Nullable<Vector2>>;
6341
6375
  onCandidatePortSelectedObservable: Observable<Nullable<BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort>>;
6342
6376
  onNewNodeCreatedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
@@ -6356,6 +6390,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6356
6390
  data: any;
6357
6391
  active: boolean;
6358
6392
  }>;
6393
+ onPreviewCommandActivated: Observable<boolean>;
6359
6394
  exportData: (data: any, frame?: Nullable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>) => string;
6360
6395
  isElbowConnectionAllowed: (nodeA: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort) => boolean;
6361
6396
  isDebugConnectionAllowed: (nodeA: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort) => boolean;
@@ -6364,6 +6399,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6364
6399
  getEditorDataMap: () => {
6365
6400
  [key: number]: number;
6366
6401
  };
6402
+ getScene?: () => Scene;
6367
6403
  createDefaultInputData: (rootData: any, portData: BABYLON.GuiEditor.SharedUIComponents.IPortData, nodeContainer: BABYLON.GuiEditor.SharedUIComponents.INodeContainer) => Nullable<{
6368
6404
  data: BABYLON.GuiEditor.SharedUIComponents.INodeData;
6369
6405
  name: string;
@@ -6428,6 +6464,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6428
6464
  portData: BABYLON.GuiEditor.SharedUIComponents.IPortData;
6429
6465
  node: BABYLON.GuiEditor.SharedUIComponents.GraphNode;
6430
6466
  protected _element: HTMLDivElement;
6467
+ protected _portContainer: HTMLElement;
6431
6468
  protected _img: HTMLImageElement;
6432
6469
  protected _pip: HTMLDivElement;
6433
6470
  protected _stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager;
@@ -6437,6 +6474,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6437
6474
  protected _exposedOnFrame: boolean;
6438
6475
  delegatedPort: Nullable<BABYLON.GuiEditor.SharedUIComponents.FrameNodePort>;
6439
6476
  get element(): HTMLDivElement;
6477
+ get container(): HTMLElement;
6440
6478
  get portName(): string;
6441
6479
  set portName(newName: string);
6442
6480
  get disabled(): boolean;
@@ -6517,8 +6555,11 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6517
6555
  private _headerContainer;
6518
6556
  private _headerIcon;
6519
6557
  private _headerIconImg;
6558
+ private _headerCollapseImg;
6520
6559
  private _header;
6560
+ private _headerCollapse;
6521
6561
  private _connections;
6562
+ private _optionsContainer;
6522
6563
  private _inputsContainer;
6523
6564
  private _outputsContainer;
6524
6565
  private _content;
@@ -6545,8 +6586,10 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6545
6586
  private _displayManager;
6546
6587
  private _isVisible;
6547
6588
  private _enclosingFrameId;
6589
+ private _visualPropertiesRefresh;
6548
6590
  addClassToVisual(className: string): void;
6549
6591
  removeClassFromVisual(className: string): void;
6592
+ get isCollapsed(): boolean;
6550
6593
  get isVisible(): boolean;
6551
6594
  set isVisible(value: boolean);
6552
6595
  private _upateNodePortNames;
@@ -6583,6 +6626,16 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6583
6626
  private _onUp;
6584
6627
  private _onMove;
6585
6628
  renderProperties(): Nullable<JSX.Element>;
6629
+ private _forceRebuild;
6630
+ private _isCollapsed;
6631
+ /**
6632
+ * Collapse the node
6633
+ */
6634
+ collapse(): void;
6635
+ /**
6636
+ * Expand the node
6637
+ */
6638
+ expand(): void;
6586
6639
  appendVisual(root: HTMLDivElement, owner: BABYLON.GuiEditor.SharedUIComponents.GraphCanvasComponent): void;
6587
6640
  dispose(): void;
6588
6641
  }
@@ -6909,6 +6962,23 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6909
6962
 
6910
6963
 
6911
6964
 
6965
+ }
6966
+ declare module BABYLON {
6967
+
6968
+
6969
+ }
6970
+ declare module BABYLON.GuiEditor.SharedUIComponents {
6971
+ /**
6972
+ * Function used to force a rebuild of the node system
6973
+ * @param source source object
6974
+ * @param stateManager defines the state manager to use
6975
+ * @param propertyName name of the property that has been changed
6976
+ * @param notifiers list of notifiers to use
6977
+ */
6978
+ export function ForceRebuild(source: any, stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
6979
+
6980
+
6981
+
6912
6982
  }
6913
6983
  declare module BABYLON {
6914
6984
 
@@ -6994,6 +7064,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6994
7064
  blockId: number;
6995
7065
  x: number;
6996
7066
  y: number;
7067
+ isCollapsed: boolean;
6997
7068
  }
6998
7069
  export interface IFrameData {
6999
7070
  x: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui-editor",
3
- "version": "7.32.4",
3
+ "version": "7.33.0",
4
4
  "main": "babylon.guiEditor.max.js",
5
5
  "types": "babylon.guiEditor.module.d.ts",
6
6
  "files": [
@@ -14,8 +14,8 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.32.4",
18
- "babylonjs-gui": "^7.32.4"
17
+ "babylonjs": "^7.33.0",
18
+ "babylonjs-gui": "^7.33.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",