@babylonjs/inspector 7.32.4 → 7.33.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5113,6 +5113,7 @@ import { IPortData } from "@babylonjs/inspector/nodeGraphSystem/interfaces/portD
5113
5113
  import { ISelectionChangedOptions } from "@babylonjs/inspector/nodeGraphSystem/interfaces/selectionChangedOptions";
5114
5114
  import { NodePort } from "@babylonjs/inspector/nodeGraphSystem/nodePort";
5115
5115
  import { HistoryStack } from "@babylonjs/inspector/historyStack";
5116
+ import { Scene } from "@babylonjs/core/scene";
5116
5117
  export class StateManager {
5117
5118
  data: any;
5118
5119
  hostDocument: Document;
@@ -5127,7 +5128,7 @@ export class StateManager {
5127
5128
  onFrameCreatedObservable: Observable<GraphFrame>;
5128
5129
  onUpdateRequiredObservable: Observable<any>;
5129
5130
  onGraphNodeRemovalObservable: Observable<GraphNode>;
5130
- onSelectionBoxMoved: Observable<DOMRect | ClientRect>;
5131
+ onSelectionBoxMoved: Observable<ClientRect | DOMRect>;
5131
5132
  onCandidateLinkMoved: Observable<Nullable<Vector2>>;
5132
5133
  onCandidatePortSelectedObservable: Observable<Nullable<FrameNodePort | NodePort>>;
5133
5134
  onNewNodeCreatedObservable: Observable<GraphNode>;
@@ -5147,6 +5148,7 @@ export class StateManager {
5147
5148
  data: any;
5148
5149
  active: boolean;
5149
5150
  }>;
5151
+ onPreviewCommandActivated: Observable<boolean>;
5150
5152
  exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
5151
5153
  isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
5152
5154
  isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
@@ -5155,6 +5157,7 @@ export class StateManager {
5155
5157
  getEditorDataMap: () => {
5156
5158
  [key: number]: number;
5157
5159
  };
5160
+ getScene?: () => Scene;
5158
5161
  createDefaultInputData: (rootData: any, portData: IPortData, nodeContainer: INodeContainer) => Nullable<{
5159
5162
  data: INodeData;
5160
5163
  name: string;
@@ -5215,6 +5218,7 @@ export class NodePort {
5215
5218
  portData: IPortData;
5216
5219
  node: GraphNode;
5217
5220
  protected _element: HTMLDivElement;
5221
+ protected _portContainer: HTMLElement;
5218
5222
  protected _img: HTMLImageElement;
5219
5223
  protected _pip: HTMLDivElement;
5220
5224
  protected _stateManager: StateManager;
@@ -5224,6 +5228,7 @@ export class NodePort {
5224
5228
  protected _exposedOnFrame: boolean;
5225
5229
  delegatedPort: Nullable<FrameNodePort>;
5226
5230
  get element(): HTMLDivElement;
5231
+ get container(): HTMLElement;
5227
5232
  get portName(): string;
5228
5233
  set portName(newName: string);
5229
5234
  get disabled(): boolean;
@@ -5299,8 +5304,11 @@ export class GraphNode {
5299
5304
  private _headerContainer;
5300
5305
  private _headerIcon;
5301
5306
  private _headerIconImg;
5307
+ private _headerCollapseImg;
5302
5308
  private _header;
5309
+ private _headerCollapse;
5303
5310
  private _connections;
5311
+ private _optionsContainer;
5304
5312
  private _inputsContainer;
5305
5313
  private _outputsContainer;
5306
5314
  private _content;
@@ -5327,8 +5335,10 @@ export class GraphNode {
5327
5335
  private _displayManager;
5328
5336
  private _isVisible;
5329
5337
  private _enclosingFrameId;
5338
+ private _visualPropertiesRefresh;
5330
5339
  addClassToVisual(className: string): void;
5331
5340
  removeClassFromVisual(className: string): void;
5341
+ get isCollapsed(): boolean;
5332
5342
  get isVisible(): boolean;
5333
5343
  set isVisible(value: boolean);
5334
5344
  private _upateNodePortNames;
@@ -5365,6 +5375,16 @@ export class GraphNode {
5365
5375
  private _onUp;
5366
5376
  private _onMove;
5367
5377
  renderProperties(): Nullable<JSX.Element>;
5378
+ private _forceRebuild;
5379
+ private _isCollapsed;
5380
+ /**
5381
+ * Collapse the node
5382
+ */
5383
+ collapse(): void;
5384
+ /**
5385
+ * Expand the node
5386
+ */
5387
+ expand(): void;
5368
5388
  appendVisual(root: HTMLDivElement, owner: GraphCanvasComponent): void;
5369
5389
  dispose(): void;
5370
5390
  }
@@ -5691,6 +5711,19 @@ export class DisplayLedger {
5691
5711
  };
5692
5712
  }
5693
5713
 
5714
+ }
5715
+ declare module "@babylonjs/inspector/nodeGraphSystem/automaticProperties" {
5716
+ import { IEditablePropertyOption } from "@babylonjs/core/Decorators/nodeDecorator";
5717
+ import { StateManager } from "@babylonjs/inspector/nodeGraphSystem/stateManager";
5718
+ /**
5719
+ * Function used to force a rebuild of the node system
5720
+ * @param source source object
5721
+ * @param stateManager defines the state manager to use
5722
+ * @param propertyName name of the property that has been changed
5723
+ * @param notifiers list of notifiers to use
5724
+ */
5725
+ export function ForceRebuild(source: any, stateManager: StateManager, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
5726
+
5694
5727
  }
5695
5728
  declare module "@babylonjs/inspector/nodeGraphSystem/types/framePortData" {
5696
5729
  import { GraphFrame } from "@babylonjs/inspector/nodeGraphSystem/graphFrame";
@@ -5760,6 +5793,7 @@ export interface INodeLocationInfo {
5760
5793
  blockId: number;
5761
5794
  x: number;
5762
5795
  y: number;
5796
+ isCollapsed: boolean;
5763
5797
  }
5764
5798
  export interface IFrameData {
5765
5799
  x: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/inspector",
3
- "version": "7.32.4",
3
+ "version": "7.33.0",
4
4
  "module": "dist/babylon.inspector.bundle.max.js",
5
5
  "main": "dist/babylon.inspector.bundle.max.js",
6
6
  "typings": "dist/babylon.inspector.module.d.ts",
@@ -32,12 +32,12 @@
32
32
  "@types/react-dom": ">=16.0.9"
33
33
  },
34
34
  "devDependencies": {
35
- "@babylonjs/core": "^7.32.4",
36
- "@babylonjs/gui": "^7.32.4",
37
- "@babylonjs/gui-editor": "^7.32.4",
38
- "@babylonjs/loaders": "^7.32.4",
39
- "@babylonjs/materials": "^7.32.4",
40
- "@babylonjs/serializers": "^7.32.4",
35
+ "@babylonjs/core": "^7.33.0",
36
+ "@babylonjs/gui": "^7.33.0",
37
+ "@babylonjs/gui-editor": "^7.33.0",
38
+ "@babylonjs/loaders": "^7.33.0",
39
+ "@babylonjs/materials": "^7.33.0",
40
+ "@babylonjs/serializers": "^7.33.0",
41
41
  "@lts/gui": "1.0.0",
42
42
  "react": "^17.0.2",
43
43
  "react-dom": "^17.0.2"