babylonjs-node-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.
@@ -119,7 +119,6 @@ declare module BABYLON.NodeEditor {
119
119
  onReOrganizedRequiredObservable: BABYLON.Observable<void>;
120
120
  onLogRequiredObservable: BABYLON.Observable<LogEntry>;
121
121
  onIsLoadingChanged: BABYLON.Observable<boolean>;
122
- onPreviewCommandActivated: BABYLON.Observable<boolean>;
123
122
  onLightUpdated: BABYLON.Observable<void>;
124
123
  onBackgroundHDRUpdated: BABYLON.Observable<void>;
125
124
  onPreviewBackgroundChanged: BABYLON.Observable<void>;
@@ -323,18 +322,6 @@ declare module BABYLON.NodeEditor {
323
322
  }
324
323
 
325
324
 
326
- export class TrigonometryPropertyTabComponent extends React.Component<BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps> {
327
- constructor(props: BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps);
328
- render(): import("react/jsx-runtime").JSX.Element;
329
- }
330
-
331
-
332
- export class TransformPropertyTabComponent extends React.Component<BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps> {
333
- constructor(props: BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps);
334
- render(): import("react/jsx-runtime").JSX.Element;
335
- }
336
-
337
-
338
325
  type ReflectionTexture = BABYLON.ReflectionTextureBlock | BABYLON.ReflectionBlock | BABYLON.RefractionBlock;
339
326
  type AnyTexture = BABYLON.TextureBlock | ReflectionTexture | BABYLON.CurrentScreenBlock | BABYLON.ParticleTextureBlock | BABYLON.TriPlanarBlock;
340
327
  export class TexturePropertyTabComponent extends React.Component<BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps, {
@@ -470,7 +457,6 @@ declare module BABYLON.NodeEditor {
470
457
  }
471
458
  export class GenericPropertyTabComponent extends React.Component<BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps> {
472
459
  constructor(props: BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps);
473
- forceRebuild(propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
474
460
  render(): import("react/jsx-runtime").JSX.Element;
475
461
  }
476
462
 
@@ -505,18 +491,6 @@ declare module BABYLON.NodeEditor {
505
491
  }
506
492
 
507
493
 
508
- export class CurvePropertyTabComponent extends React.Component<BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps> {
509
- constructor(props: BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps);
510
- render(): import("react/jsx-runtime").JSX.Element;
511
- }
512
-
513
-
514
- export class ConditionalPropertyTabComponent extends React.Component<BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps> {
515
- constructor(props: BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps);
516
- render(): import("react/jsx-runtime").JSX.Element;
517
- }
518
-
519
-
520
494
  export class ColorMergerPropertyTabComponent extends React.Component<BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps> {
521
495
  constructor(props: BABYLON.NodeEditor.SharedUIComponents.IPropertyComponentProps);
522
496
  render(): import("react/jsx-runtime").JSX.Element;
@@ -1429,7 +1403,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1429
1403
  onFrameCreatedObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>;
1430
1404
  onUpdateRequiredObservable: BABYLON.Observable<any>;
1431
1405
  onGraphNodeRemovalObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.GraphNode>;
1432
- onSelectionBoxMoved: BABYLON.Observable<DOMRect | ClientRect>;
1406
+ onSelectionBoxMoved: BABYLON.Observable<ClientRect | DOMRect>;
1433
1407
  onCandidateLinkMoved: BABYLON.Observable<BABYLON.Nullable<BABYLON.Vector2>>;
1434
1408
  onCandidatePortSelectedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort>>;
1435
1409
  onNewNodeCreatedObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.GraphNode>;
@@ -1449,6 +1423,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1449
1423
  data: any;
1450
1424
  active: boolean;
1451
1425
  }>;
1426
+ onPreviewCommandActivated: BABYLON.Observable<boolean>;
1452
1427
  exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => string;
1453
1428
  isElbowConnectionAllowed: (nodeA: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort) => boolean;
1454
1429
  isDebugConnectionAllowed: (nodeA: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort) => boolean;
@@ -1457,6 +1432,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1457
1432
  getEditorDataMap: () => {
1458
1433
  [key: number]: number;
1459
1434
  };
1435
+ getScene?: () => BABYLON.Scene;
1460
1436
  createDefaultInputData: (rootData: any, portData: BABYLON.NodeEditor.SharedUIComponents.IPortData, nodeContainer: BABYLON.NodeEditor.SharedUIComponents.INodeContainer) => BABYLON.Nullable<{
1461
1437
  data: BABYLON.NodeEditor.SharedUIComponents.INodeData;
1462
1438
  name: string;
@@ -1521,6 +1497,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1521
1497
  portData: BABYLON.NodeEditor.SharedUIComponents.IPortData;
1522
1498
  node: BABYLON.NodeEditor.SharedUIComponents.GraphNode;
1523
1499
  protected _element: HTMLDivElement;
1500
+ protected _portContainer: HTMLElement;
1524
1501
  protected _img: HTMLImageElement;
1525
1502
  protected _pip: HTMLDivElement;
1526
1503
  protected _stateManager: BABYLON.NodeEditor.SharedUIComponents.StateManager;
@@ -1530,6 +1507,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1530
1507
  protected _exposedOnFrame: boolean;
1531
1508
  delegatedPort: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.FrameNodePort>;
1532
1509
  get element(): HTMLDivElement;
1510
+ get container(): HTMLElement;
1533
1511
  get portName(): string;
1534
1512
  set portName(newName: string);
1535
1513
  get disabled(): boolean;
@@ -1610,8 +1588,11 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1610
1588
  private _headerContainer;
1611
1589
  private _headerIcon;
1612
1590
  private _headerIconImg;
1591
+ private _headerCollapseImg;
1613
1592
  private _header;
1593
+ private _headerCollapse;
1614
1594
  private _connections;
1595
+ private _optionsContainer;
1615
1596
  private _inputsContainer;
1616
1597
  private _outputsContainer;
1617
1598
  private _content;
@@ -1638,8 +1619,10 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1638
1619
  private _displayManager;
1639
1620
  private _isVisible;
1640
1621
  private _enclosingFrameId;
1622
+ private _visualPropertiesRefresh;
1641
1623
  addClassToVisual(className: string): void;
1642
1624
  removeClassFromVisual(className: string): void;
1625
+ get isCollapsed(): boolean;
1643
1626
  get isVisible(): boolean;
1644
1627
  set isVisible(value: boolean);
1645
1628
  private _upateNodePortNames;
@@ -1676,6 +1659,16 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1676
1659
  private _onUp;
1677
1660
  private _onMove;
1678
1661
  renderProperties(): BABYLON.Nullable<JSX.Element>;
1662
+ private _forceRebuild;
1663
+ private _isCollapsed;
1664
+ /**
1665
+ * Collapse the node
1666
+ */
1667
+ collapse(): void;
1668
+ /**
1669
+ * Expand the node
1670
+ */
1671
+ expand(): void;
1679
1672
  appendVisual(root: HTMLDivElement, owner: BABYLON.NodeEditor.SharedUIComponents.GraphCanvasComponent): void;
1680
1673
  dispose(): void;
1681
1674
  }
@@ -2002,6 +1995,23 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
2002
1995
 
2003
1996
 
2004
1997
 
1998
+ }
1999
+ declare module BABYLON.NodeEditor {
2000
+
2001
+
2002
+ }
2003
+ declare module BABYLON.NodeEditor.SharedUIComponents {
2004
+ /**
2005
+ * Function used to force a rebuild of the node system
2006
+ * @param source source object
2007
+ * @param stateManager defines the state manager to use
2008
+ * @param propertyName name of the property that has been changed
2009
+ * @param notifiers list of notifiers to use
2010
+ */
2011
+ export function ForceRebuild(source: any, stateManager: BABYLON.NodeEditor.SharedUIComponents.StateManager, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
2012
+
2013
+
2014
+
2005
2015
  }
2006
2016
  declare module BABYLON.NodeEditor {
2007
2017
 
@@ -2087,6 +2097,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
2087
2097
  blockId: number;
2088
2098
  x: number;
2089
2099
  y: number;
2100
+ isCollapsed: boolean;
2090
2101
  }
2091
2102
  export interface IFrameData {
2092
2103
  x: number;