@babylonjs/inspector 7.32.3 → 7.32.5

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;
@@ -5301,6 +5304,7 @@ export class GraphNode {
5301
5304
  private _headerIconImg;
5302
5305
  private _header;
5303
5306
  private _connections;
5307
+ private _optionsContainer;
5304
5308
  private _inputsContainer;
5305
5309
  private _outputsContainer;
5306
5310
  private _content;
@@ -5327,6 +5331,7 @@ export class GraphNode {
5327
5331
  private _displayManager;
5328
5332
  private _isVisible;
5329
5333
  private _enclosingFrameId;
5334
+ private _visualPropertiesRefresh;
5330
5335
  addClassToVisual(className: string): void;
5331
5336
  removeClassFromVisual(className: string): void;
5332
5337
  get isVisible(): boolean;
@@ -5365,6 +5370,7 @@ export class GraphNode {
5365
5370
  private _onUp;
5366
5371
  private _onMove;
5367
5372
  renderProperties(): Nullable<JSX.Element>;
5373
+ private _forceRebuild;
5368
5374
  appendVisual(root: HTMLDivElement, owner: GraphCanvasComponent): void;
5369
5375
  dispose(): void;
5370
5376
  }
@@ -5691,6 +5697,19 @@ export class DisplayLedger {
5691
5697
  };
5692
5698
  }
5693
5699
 
5700
+ }
5701
+ declare module "@babylonjs/inspector/nodeGraphSystem/automaticProperties" {
5702
+ import { IEditablePropertyOption } from "@babylonjs/core/Decorators/nodeDecorator";
5703
+ import { StateManager } from "@babylonjs/inspector/nodeGraphSystem/stateManager";
5704
+ /**
5705
+ * Function used to force a rebuild of the node system
5706
+ * @param source source object
5707
+ * @param stateManager defines the state manager to use
5708
+ * @param propertyName name of the property that has been changed
5709
+ * @param notifiers list of notifiers to use
5710
+ */
5711
+ export function ForceRebuild(source: any, stateManager: StateManager, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
5712
+
5694
5713
  }
5695
5714
  declare module "@babylonjs/inspector/nodeGraphSystem/types/framePortData" {
5696
5715
  import { GraphFrame } from "@babylonjs/inspector/nodeGraphSystem/graphFrame";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/inspector",
3
- "version": "7.32.3",
3
+ "version": "7.32.5",
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.3",
36
- "@babylonjs/gui": "^7.32.3",
37
- "@babylonjs/gui-editor": "^7.32.3",
38
- "@babylonjs/loaders": "^7.32.3",
39
- "@babylonjs/materials": "^7.32.3",
40
- "@babylonjs/serializers": "^7.32.3",
35
+ "@babylonjs/core": "^7.32.5",
36
+ "@babylonjs/gui": "^7.32.5",
37
+ "@babylonjs/gui-editor": "^7.32.5",
38
+ "@babylonjs/loaders": "^7.32.5",
39
+ "@babylonjs/materials": "^7.32.5",
40
+ "@babylonjs/serializers": "^7.32.5",
41
41
  "@lts/gui": "1.0.0",
42
42
  "react": "^17.0.2",
43
43
  "react-dom": "^17.0.2"