@babylonjs/inspector 5.0.0-beta.7 → 5.0.0-rc.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.
@@ -440,7 +440,7 @@ declare module "@babylonjs/inspector/sharedUiComponents/lines/targetsProxy" {
440
440
  * @param setter an optional setter function to override the default setter behavior
441
441
  * @returns a proxy object that can be passed as a target into the input
442
442
  */
443
- export function makeTargetsProxy(targets: any[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>): {};
443
+ export function makeTargetsProxy<Type>(targets: Type[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>, getProperty?: (target: Type, property: keyof Type) => any): any;
444
444
  }
445
445
  declare module "@babylonjs/inspector/sharedUiComponents/lines/checkBoxLineComponent" {
446
446
  import * as React from "react";
@@ -810,6 +810,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/re
810
810
  }
811
811
  declare module "@babylonjs/inspector/components/actionTabs/tabs/debugTabComponent" {
812
812
  import { PaneComponent, IPaneComponentProps } from "@babylonjs/inspector/components/actionTabs/paneComponent";
813
+ import "@babylonjs/core/Physics/physicsEngineComponent";
813
814
  export class DebugTabComponent extends PaneComponent {
814
815
  private _physicsViewersEnabled;
815
816
  constructor(props: IPaneComponentProps);
@@ -852,6 +853,9 @@ declare module "@babylonjs/inspector/sharedUiComponents/lines/floatLineComponent
852
853
  icon?: string;
853
854
  iconLabel?: string;
854
855
  defaultValue?: number;
856
+ unit?: string;
857
+ onUnitClicked?: () => void;
858
+ unitLocked?: boolean;
855
859
  }
856
860
  export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
857
861
  value: string;
@@ -969,6 +973,19 @@ declare module "@babylonjs/inspector/sharedUiComponents/lines/numericInputCompon
969
973
  render(): JSX.Element;
970
974
  }
971
975
  }
976
+ declare module "@babylonjs/inspector/sharedUiComponents/lines/inputArrowsComponent" {
977
+ import * as React from "react";
978
+ interface IInputArrowsComponentProps {
979
+ incrementValue: (amount: number) => void;
980
+ setDragging: (dragging: boolean) => void;
981
+ }
982
+ export class InputArrowsComponent extends React.Component<IInputArrowsComponentProps> {
983
+ private _arrowsRef;
984
+ private _drag;
985
+ private _releaseListener;
986
+ render(): JSX.Element;
987
+ }
988
+ }
972
989
  declare module "@babylonjs/inspector/sharedUiComponents/lines/textInputLineComponent" {
973
990
  import * as React from "react";
974
991
  import { Observable } from "@babylonjs/core/Misc/observable";
@@ -987,18 +1004,28 @@ declare module "@babylonjs/inspector/sharedUiComponents/lines/textInputLineCompo
987
1004
  noUnderline?: boolean;
988
1005
  numbersOnly?: boolean;
989
1006
  delayInput?: boolean;
1007
+ unit?: string;
1008
+ onUnitClicked?: (unit: string) => void;
1009
+ unitLocked?: boolean;
1010
+ arrows?: boolean;
1011
+ arrowsIncrement?: (amount: number) => void;
1012
+ step?: number;
990
1013
  }
991
1014
  export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
992
1015
  value: string;
1016
+ dragging: boolean;
993
1017
  }> {
994
1018
  private _localChange;
995
1019
  constructor(props: ITextInputLineComponentProps);
996
1020
  componentWillUnmount(): void;
997
1021
  shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
998
1022
  value: string;
1023
+ dragging: boolean;
999
1024
  }): boolean;
1000
1025
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
1001
1026
  updateValue(value: string): void;
1027
+ incrementValue(amount: number): void;
1028
+ onKeyDown(event: React.KeyboardEvent): void;
1002
1029
  render(): JSX.Element;
1003
1030
  }
1004
1031
  }
@@ -1194,6 +1221,7 @@ declare module "@babylonjs/inspector/components/popupComponent" {
1194
1221
  private _host;
1195
1222
  constructor(props: IPopupComponentProps);
1196
1223
  componentDidMount(): void;
1224
+ onBeforeUnloadListener: () => void;
1197
1225
  openPopup(): void;
1198
1226
  componentWillUnmount(): void;
1199
1227
  getWindow(): Window | null;
@@ -1331,6 +1359,11 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
1331
1359
  import { IAnimatable } from "@babylonjs/core/Animations/animatable.interface";
1332
1360
  import { AnimationGroup, TargetedAnimation } from "@babylonjs/core/Animations/animationGroup";
1333
1361
  import { AnimationKeyInterpolation } from "@babylonjs/core/Animations/animationKey";
1362
+ export interface IActiveAnimationChangedOptions {
1363
+ evaluateKeys?: boolean;
1364
+ frame?: boolean;
1365
+ range?: boolean;
1366
+ }
1334
1367
  export class Context {
1335
1368
  title: string;
1336
1369
  animations: Nullable<Animation[] | TargetedAnimation[]>;
@@ -1355,7 +1388,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
1355
1388
  referenceMinFrame: number;
1356
1389
  referenceMaxFrame: number;
1357
1390
  focusedInput: boolean;
1358
- onActiveAnimationChanged: Observable<void>;
1391
+ onActiveAnimationChanged: Observable<IActiveAnimationChangedOptions>;
1359
1392
  onActiveKeyPointChanged: Observable<void>;
1360
1393
  onHostWindowResized: Observable<void>;
1361
1394
  onSelectAllKeys: Observable<void>;
@@ -1420,6 +1453,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
1420
1453
  animationIndex: number;
1421
1454
  keyIndex: number;
1422
1455
  } | null;
1456
+ hasActiveQuaternionAnimationKeyPoints(): boolean;
1423
1457
  }
1424
1458
  }
1425
1459
  declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/animations/curveEditor/controls/textInputComponent" {
@@ -1696,7 +1730,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/an
1696
1730
  private _invertY;
1697
1731
  private _buildFrameIntervalAxis;
1698
1732
  private _buildYAxis;
1699
- private _frame;
1733
+ private _frameFromActiveKeys;
1700
1734
  private _dropKeyFrames;
1701
1735
  private _onPointerDown;
1702
1736
  private _onPointerMove;
@@ -2722,6 +2756,8 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/ma
2722
2756
  import { TextureLinkLineComponent } from "@babylonjs/inspector/components/actionTabs/lines/textureLinkLineComponent";
2723
2757
  import { LockObject } from "@babylonjs/inspector/sharedUiComponents/tabs/propertyGrids/lockObject";
2724
2758
  import { GlobalState } from "@babylonjs/inspector/components/globalState";
2759
+ import "@babylonjs/core/Rendering/prePassRendererSceneComponent";
2760
+ import "@babylonjs/core/Rendering/subSurfaceSceneComponent";
2725
2761
  interface IPBRMaterialPropertyGridComponentProps {
2726
2762
  globalState: GlobalState;
2727
2763
  material: PBRMaterial;
@@ -2787,6 +2823,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/sc
2787
2823
  import { PropertyChangedEvent } from "@babylonjs/inspector/components/propertyChangedEvent";
2788
2824
  import { LockObject } from "@babylonjs/inspector/sharedUiComponents/tabs/propertyGrids/lockObject";
2789
2825
  import { GlobalState } from "@babylonjs/inspector/components/globalState";
2826
+ import "@babylonjs/core/Physics/physicsEngineComponent";
2790
2827
  interface IScenePropertyGridComponentProps {
2791
2828
  globalState: GlobalState;
2792
2829
  scene: Scene;
@@ -3000,6 +3037,7 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/me
3000
3037
  import { PropertyChangedEvent } from "@babylonjs/inspector/components/propertyChangedEvent";
3001
3038
  import { LockObject } from "@babylonjs/inspector/sharedUiComponents/tabs/propertyGrids/lockObject";
3002
3039
  import { GlobalState } from "@babylonjs/inspector/components/globalState";
3040
+ import "@babylonjs/core/Physics/physicsEngineComponent";
3003
3041
  interface IMeshPropertyGridComponentProps {
3004
3042
  globalState: GlobalState;
3005
3043
  mesh: Mesh;
@@ -3556,7 +3594,6 @@ declare module "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/me
3556
3594
  changeDisplayMode(): void;
3557
3595
  changeDisplayOptions(option: string, value: number): void;
3558
3596
  shouldComponentUpdate(nextProps: ISkeletonPropertyGridComponentProps): boolean;
3559
- onOverrideMeshLink(): void;
3560
3597
  render(): JSX.Element;
3561
3598
  }
3562
3599
  }
@@ -4413,6 +4450,7 @@ declare module "@babylonjs/inspector/components/sceneExplorer/entities/meshTreeI
4413
4450
  import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh";
4414
4451
  import * as React from "react";
4415
4452
  import { GlobalState } from "@babylonjs/inspector/components/globalState";
4453
+ import "@babylonjs/core/Rendering/boundingBoxRenderer";
4416
4454
  interface IMeshTreeItemComponentProps {
4417
4455
  mesh: AbstractMesh;
4418
4456
  extensibilityGroups?: IExplorerExtensibilityGroup[];
@@ -4849,6 +4887,9 @@ declare module "@babylonjs/inspector/components/sceneExplorer/sceneExplorerCompo
4849
4887
  import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
4850
4888
  import { Scene } from "@babylonjs/core/scene";
4851
4889
  import { GlobalState } from "@babylonjs/inspector/components/globalState";
4890
+ import "@babylonjs/core/Sprites/spriteSceneComponent";
4891
+ import "@babylonjs/core/Audio/audioSceneComponent";
4892
+ import "@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent";
4852
4893
  interface ISceneExplorerFilterComponentProps {
4853
4894
  onFilter: (filter: string) => void;
4854
4895
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "name": "@babylonjs/inspector",
6
6
  "description": "The Babylon.js inspector.",
7
- "version": "5.0.0-beta.7",
7
+ "version": "5.0.0-rc.0",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -27,12 +27,12 @@
27
27
  ],
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@babylonjs/core": "5.0.0-beta.7",
31
- "@babylonjs/gui": "5.0.0-beta.7",
32
- "@babylonjs/loaders": "5.0.0-beta.7",
33
- "@babylonjs/materials": "5.0.0-beta.7",
34
- "@babylonjs/serializers": "5.0.0-beta.7",
35
- "babylonjs-gltf2interface": "5.0.0-beta.7",
30
+ "@babylonjs/core": "5.0.0-rc.0",
31
+ "@babylonjs/gui": "5.0.0-rc.0",
32
+ "@babylonjs/loaders": "5.0.0-rc.0",
33
+ "@babylonjs/materials": "5.0.0-rc.0",
34
+ "@babylonjs/serializers": "5.0.0-rc.0",
35
+ "babylonjs-gltf2interface": "5.0.0-rc.0",
36
36
  "tslib": "^2.3.1"
37
37
  },
38
38
  "peerDependencies": {