@babylonjs/node-editor 7.32.4 → 7.33.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -158,7 +158,6 @@ export class GlobalState {
158
158
  onReOrganizedRequiredObservable: Observable<void>;
159
159
  onLogRequiredObservable: Observable<LogEntry>;
160
160
  onIsLoadingChanged: Observable<boolean>;
161
- onPreviewCommandActivated: Observable<boolean>;
162
161
  onLightUpdated: Observable<void>;
163
162
  onBackgroundHDRUpdated: Observable<void>;
164
163
  onPreviewBackgroundChanged: Observable<void>;
@@ -512,24 +511,6 @@ export class VectorMergerPropertyTabComponent extends React.Component<IPropertyC
512
511
 
513
512
  }
514
513
 
515
- }
516
- declare module "@babylonjs/node-editor/graphSystem/properties/trigonometryNodePropertyComponent" {
517
- import * as React from "react";
518
- import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
519
- export class TrigonometryPropertyTabComponent extends React.Component<IPropertyComponentProps> {
520
- constructor(props: IPropertyComponentProps);
521
-
522
- }
523
-
524
- }
525
- declare module "@babylonjs/node-editor/graphSystem/properties/transformNodePropertyComponent" {
526
- import * as React from "react";
527
- import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
528
- export class TransformPropertyTabComponent extends React.Component<IPropertyComponentProps> {
529
- constructor(props: IPropertyComponentProps);
530
-
531
- }
532
-
533
514
  }
534
515
  declare module "@babylonjs/node-editor/graphSystem/properties/texturePropertyTabComponent" {
535
516
  import * as React from "react";
@@ -699,7 +680,6 @@ export class GradientPropertyTabComponent extends React.Component<IPropertyCompo
699
680
  }
700
681
  declare module "@babylonjs/node-editor/graphSystem/properties/genericNodePropertyComponent" {
701
682
  import * as React from "react";
702
- import { IEditablePropertyOption } from "@babylonjs/core/Decorators/nodeDecorator";
703
683
  import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
704
684
  export class GenericPropertyComponent extends React.Component<IPropertyComponentProps> {
705
685
  constructor(props: IPropertyComponentProps);
@@ -711,7 +691,6 @@ export class GeneralPropertyTabComponent extends React.Component<IPropertyCompon
711
691
  }
712
692
  export class GenericPropertyTabComponent extends React.Component<IPropertyComponentProps> {
713
693
  constructor(props: IPropertyComponentProps);
714
- forceRebuild(propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
715
694
 
716
695
  }
717
696
 
@@ -755,24 +734,6 @@ export class FrameNodePortPropertyTabComponent extends React.Component<IFrameNod
755
734
 
756
735
  }
757
736
 
758
- }
759
- declare module "@babylonjs/node-editor/graphSystem/properties/curveNodePropertyComponent" {
760
- import * as React from "react";
761
- import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
762
- export class CurvePropertyTabComponent extends React.Component<IPropertyComponentProps> {
763
- constructor(props: IPropertyComponentProps);
764
-
765
- }
766
-
767
- }
768
- declare module "@babylonjs/node-editor/graphSystem/properties/conditionalNodePropertyComponent" {
769
- import * as React from "react";
770
- import { IPropertyComponentProps } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/propertyComponentProps";
771
- export class ConditionalPropertyTabComponent extends React.Component<IPropertyComponentProps> {
772
- constructor(props: IPropertyComponentProps);
773
-
774
- }
775
-
776
737
  }
777
738
  declare module "@babylonjs/node-editor/graphSystem/properties/colorMergerPropertyComponent" {
778
739
  import * as React from "react";
@@ -1792,6 +1753,7 @@ import { IPortData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/por
1792
1753
  import { ISelectionChangedOptions } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/selectionChangedOptions";
1793
1754
  import { NodePort } from "@babylonjs/node-editor/nodeGraphSystem/nodePort";
1794
1755
  import { HistoryStack } from "@babylonjs/node-editor/historyStack";
1756
+ import { Scene } from "@babylonjs/core/scene";
1795
1757
  export class StateManager {
1796
1758
  data: any;
1797
1759
  hostDocument: Document;
@@ -1806,7 +1768,7 @@ export class StateManager {
1806
1768
  onFrameCreatedObservable: Observable<GraphFrame>;
1807
1769
  onUpdateRequiredObservable: Observable<any>;
1808
1770
  onGraphNodeRemovalObservable: Observable<GraphNode>;
1809
- onSelectionBoxMoved: Observable<DOMRect | ClientRect>;
1771
+ onSelectionBoxMoved: Observable<ClientRect | DOMRect>;
1810
1772
  onCandidateLinkMoved: Observable<Nullable<Vector2>>;
1811
1773
  onCandidatePortSelectedObservable: Observable<Nullable<FrameNodePort | NodePort>>;
1812
1774
  onNewNodeCreatedObservable: Observable<GraphNode>;
@@ -1826,6 +1788,7 @@ export class StateManager {
1826
1788
  data: any;
1827
1789
  active: boolean;
1828
1790
  }>;
1791
+ onPreviewCommandActivated: Observable<boolean>;
1829
1792
  exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
1830
1793
  isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
1831
1794
  isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
@@ -1834,6 +1797,7 @@ export class StateManager {
1834
1797
  getEditorDataMap: () => {
1835
1798
  [key: number]: number;
1836
1799
  };
1800
+ getScene?: () => Scene;
1837
1801
  createDefaultInputData: (rootData: any, portData: IPortData, nodeContainer: INodeContainer) => Nullable<{
1838
1802
  data: INodeData;
1839
1803
  name: string;
@@ -1894,6 +1858,7 @@ export class NodePort {
1894
1858
  portData: IPortData;
1895
1859
  node: GraphNode;
1896
1860
  protected _element: HTMLDivElement;
1861
+ protected _portContainer: HTMLElement;
1897
1862
  protected _img: HTMLImageElement;
1898
1863
  protected _pip: HTMLDivElement;
1899
1864
  protected _stateManager: StateManager;
@@ -1903,6 +1868,7 @@ export class NodePort {
1903
1868
  protected _exposedOnFrame: boolean;
1904
1869
  delegatedPort: Nullable<FrameNodePort>;
1905
1870
  get element(): HTMLDivElement;
1871
+ get container(): HTMLElement;
1906
1872
  get portName(): string;
1907
1873
  set portName(newName: string);
1908
1874
  get disabled(): boolean;
@@ -1978,8 +1944,11 @@ export class GraphNode {
1978
1944
  private _headerContainer;
1979
1945
  private _headerIcon;
1980
1946
  private _headerIconImg;
1947
+ private _headerCollapseImg;
1981
1948
  private _header;
1949
+ private _headerCollapse;
1982
1950
  private _connections;
1951
+ private _optionsContainer;
1983
1952
  private _inputsContainer;
1984
1953
  private _outputsContainer;
1985
1954
  private _content;
@@ -2006,8 +1975,10 @@ export class GraphNode {
2006
1975
  private _displayManager;
2007
1976
  private _isVisible;
2008
1977
  private _enclosingFrameId;
1978
+ private _visualPropertiesRefresh;
2009
1979
  addClassToVisual(className: string): void;
2010
1980
  removeClassFromVisual(className: string): void;
1981
+ get isCollapsed(): boolean;
2011
1982
  get isVisible(): boolean;
2012
1983
  set isVisible(value: boolean);
2013
1984
  private _upateNodePortNames;
@@ -2044,6 +2015,16 @@ export class GraphNode {
2044
2015
  private _onUp;
2045
2016
  private _onMove;
2046
2017
  renderProperties(): Nullable<JSX.Element>;
2018
+ private _forceRebuild;
2019
+ private _isCollapsed;
2020
+ /**
2021
+ * Collapse the node
2022
+ */
2023
+ collapse(): void;
2024
+ /**
2025
+ * Expand the node
2026
+ */
2027
+ expand(): void;
2047
2028
  appendVisual(root: HTMLDivElement, owner: GraphCanvasComponent): void;
2048
2029
  dispose(): void;
2049
2030
  }
@@ -2370,6 +2351,19 @@ export class DisplayLedger {
2370
2351
  };
2371
2352
  }
2372
2353
 
2354
+ }
2355
+ declare module "@babylonjs/node-editor/nodeGraphSystem/automaticProperties" {
2356
+ import { IEditablePropertyOption } from "@babylonjs/core/Decorators/nodeDecorator";
2357
+ import { StateManager } from "@babylonjs/node-editor/nodeGraphSystem/stateManager";
2358
+ /**
2359
+ * Function used to force a rebuild of the node system
2360
+ * @param source source object
2361
+ * @param stateManager defines the state manager to use
2362
+ * @param propertyName name of the property that has been changed
2363
+ * @param notifiers list of notifiers to use
2364
+ */
2365
+ export function ForceRebuild(source: any, stateManager: StateManager, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
2366
+
2373
2367
  }
2374
2368
  declare module "@babylonjs/node-editor/nodeGraphSystem/types/framePortData" {
2375
2369
  import { GraphFrame } from "@babylonjs/node-editor/nodeGraphSystem/graphFrame";
@@ -2439,6 +2433,7 @@ export interface INodeLocationInfo {
2439
2433
  blockId: number;
2440
2434
  x: number;
2441
2435
  y: number;
2436
+ isCollapsed: boolean;
2442
2437
  }
2443
2438
  export interface IFrameData {
2444
2439
  x: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-editor",
3
- "version": "7.32.4",
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.4",
26
+ "@babylonjs/core": "^7.33.0",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },