@babylonjs/inspector 5.29.0 → 5.31.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.
@@ -3905,8 +3905,10 @@ import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
3905
3905
  import { Scene } from "@babylonjs/core/scene";
3906
3906
  import * as React from "react";
3907
3907
  import { GlobalState } from "@babylonjs/inspector/components/globalState";
3908
+ import { Camera } from "@babylonjs/core/Cameras/camera";
3908
3909
  interface ISceneTreeItemComponentProps {
3909
3910
  scene: Scene;
3911
+ gizmoCamera?: Camera;
3910
3912
  onRefresh: () => void;
3911
3913
  selectedEntity?: any;
3912
3914
  extensibilityGroups?: IExplorerExtensibilityGroup[];
@@ -4080,6 +4082,7 @@ import { Nullable } from "@babylonjs/core/types";
4080
4082
  import { IExplorerAdditionalNode, IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
4081
4083
  import { Scene } from "@babylonjs/core/scene";
4082
4084
  import { GlobalState } from "@babylonjs/inspector/components/globalState";
4085
+ import { Camera } from "@babylonjs/core/Cameras/camera";
4083
4086
  import "@babylonjs/core/Sprites/spriteSceneComponent";
4084
4087
  import "@babylonjs/core/Audio/audioSceneComponent";
4085
4088
  import "@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent";
@@ -4093,6 +4096,7 @@ export class SceneExplorerFilterComponent extends React.Component<ISceneExplorer
4093
4096
  }
4094
4097
  interface ISceneExplorerComponentProps {
4095
4098
  scene: Scene;
4099
+ gizmoCamera?: Camera;
4096
4100
  noCommands?: boolean;
4097
4101
  noHeader?: boolean;
4098
4102
  noExpand?: boolean;
@@ -4870,7 +4874,7 @@ export const LayoutContext: import("react").Context<{
4870
4874
 
4871
4875
  }
4872
4876
  declare module "@babylonjs/inspector/components/layout/types" {
4873
- import { ComponentType } from "react";
4877
+ import { ReactElement } from "react";
4874
4878
  export type LayoutTab = {
4875
4879
  /**
4876
4880
  * Tab id
@@ -4879,7 +4883,11 @@ export type LayoutTab = {
4879
4883
  /**
4880
4884
  * React component rendered by tab
4881
4885
  */
4882
- component: ComponentType;
4886
+ component: ReactElement;
4887
+ /**
4888
+ * Tab title
4889
+ */
4890
+ title: string;
4883
4891
  };
4884
4892
  export type LayoutTabsRow = {
4885
4893
  /**
@@ -6086,11 +6094,17 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
6086
6094
  static readonly NodeWidth: number;
6087
6095
  private readonly _minZoom;
6088
6096
  private readonly _maxZoom;
6097
+ private _hostCanvasRef;
6089
6098
  private _hostCanvas;
6099
+ private _graphCanvasRef;
6090
6100
  private _graphCanvas;
6101
+ private _selectionContainerRef;
6091
6102
  private _selectionContainer;
6103
+ private _frameContainerRef;
6092
6104
  private _frameContainer;
6105
+ private _svgCanvasRef;
6093
6106
  private _svgCanvas;
6107
+ private _rootContainerRef;
6094
6108
  private _rootContainer;
6095
6109
  private _nodes;
6096
6110
  private _links;
@@ -6378,6 +6392,8 @@ export class GraphNode {
6378
6392
  private _displayManager;
6379
6393
  private _isVisible;
6380
6394
  private _enclosingFrameId;
6395
+ addClassToVisual(className: string): void;
6396
+ removeClassFromVisual(className: string): void;
6381
6397
  get isVisible(): boolean;
6382
6398
  set isVisible(value: boolean);
6383
6399
  private _upateNodePortNames;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/inspector",
3
- "version": "5.29.0",
3
+ "version": "5.31.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": "^5.29.0",
36
- "@babylonjs/gui": "^5.29.0",
37
- "@babylonjs/gui-editor": "^5.29.0",
38
- "@babylonjs/loaders": "^5.29.0",
39
- "@babylonjs/materials": "^5.29.0",
40
- "@babylonjs/serializers": "^5.29.0",
35
+ "@babylonjs/core": "^5.31.0",
36
+ "@babylonjs/gui": "^5.31.0",
37
+ "@babylonjs/gui-editor": "^5.31.0",
38
+ "@babylonjs/loaders": "^5.31.0",
39
+ "@babylonjs/materials": "^5.31.0",
40
+ "@babylonjs/serializers": "^5.31.0",
41
41
  "@lts/gui": "1.0.0",
42
42
  "react": "^17.0.2",
43
43
  "react-dom": "^17.0.2",