@babylonjs/inspector 7.6.0 → 7.6.1

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.
@@ -2152,9 +2152,6 @@ import { Vector2 } from "@babylonjs/core/Maths/math.vector";
2152
2152
  import { PointerInfo } from "@babylonjs/core/Events/pointerEvents";
2153
2153
  import { PopupComponent } from "@babylonjs/inspector/components/popupComponent";
2154
2154
  import "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditor.scss";
2155
- global {
2156
- var _TOOL_DATA_: IToolData;
2157
- }
2158
2155
  interface ITextureEditorComponentProps {
2159
2156
  texture: BaseTexture;
2160
2157
  url: string;
@@ -4028,6 +4025,7 @@ export function SetGUIEditorURL(guiEditorURL: string): void;
4028
4025
  * If you are in a UMD environment, it will load the package from a URL
4029
4026
  * @param adt
4030
4027
  * @param embed defines whether editor is being opened from the Playground
4028
+ * @returns a promise that resolves when the editor is opened
4031
4029
  */
4032
4030
  export function EditAdvancedDynamicTexture(adt: AdvancedDynamicTexture, embed?: boolean): Promise<void>;
4033
4031
 
@@ -4509,11 +4507,6 @@ export {};
4509
4507
 
4510
4508
  }
4511
4509
  declare module "@babylonjs/inspector/components/sceneExplorer/treeNodeDebugger" {
4512
- global {
4513
- interface GlobalThis {
4514
- debugNode: any;
4515
- }
4516
- }
4517
4510
  export function setDebugNode(node: any): void;
4518
4511
 
4519
4512
  }
@@ -4813,7 +4806,7 @@ export interface IColorComponentEntryProps {
4813
4806
  disabled?: boolean;
4814
4807
  lockObject: LockObject;
4815
4808
  }
4816
- export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
4809
+ export class ColorComponentComponentEntry extends React.Component<IColorComponentEntryProps> {
4817
4810
  constructor(props: IColorComponentEntryProps);
4818
4811
  updateValue(valueString: string): void;
4819
4812
  lock(): void;
@@ -4829,7 +4822,7 @@ import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
4829
4822
  /**
4830
4823
  * Interface used to specify creation options for color picker
4831
4824
  */
4832
- export interface IColorPickerProps {
4825
+ export interface IColorPickerComponentProps {
4833
4826
  color: Color3 | Color4;
4834
4827
  linearhint?: boolean;
4835
4828
  debugMode?: boolean;
@@ -4847,13 +4840,13 @@ export interface IColorPickerState {
4847
4840
  /**
4848
4841
  * Class used to create a color picker
4849
4842
  */
4850
- export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
4843
+ export class ColorPickerComponent extends React.Component<IColorPickerComponentProps, IColorPickerState> {
4851
4844
  private _saturationRef;
4852
4845
  private _hueRef;
4853
4846
  private _isSaturationPointerDown;
4854
4847
  private _isHuePointerDown;
4855
- constructor(props: IColorPickerProps);
4856
- shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
4848
+ constructor(props: IColorPickerComponentProps);
4849
+ shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerState): boolean;
4857
4850
  onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
4858
4851
  onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
4859
4852
  onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
@@ -4877,7 +4870,7 @@ export interface IHexColorProps {
4877
4870
  onChange: (value: string) => void;
4878
4871
  lockObject: LockObject;
4879
4872
  }
4880
- export class HexColor extends React.Component<IHexColorProps, {
4873
+ export class HexColorComponent extends React.Component<IHexColorProps, {
4881
4874
  hex: string;
4882
4875
  }> {
4883
4876
  constructor(props: IHexColorProps);
@@ -5336,7 +5329,7 @@ declare module "@babylonjs/inspector/components/lines/ColorPickerLineComponent"
5336
5329
  import * as React from "react";
5337
5330
  import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
5338
5331
  import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
5339
- export interface IColorPickerComponentProps {
5332
+ export interface IColorPickerLineComponentProps {
5340
5333
  value: Color4 | Color3;
5341
5334
  linearHint?: boolean;
5342
5335
  onColorChanged: (newOne: string) => void;
@@ -5351,14 +5344,14 @@ interface IColorPickerComponentState {
5351
5344
  color: Color3 | Color4;
5352
5345
  hex: string;
5353
5346
  }
5354
- export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
5347
+ export class ColorPickerLineComponent extends React.Component<IColorPickerLineComponentProps, IColorPickerComponentState> {
5355
5348
  private _floatRef;
5356
5349
  private _floatHostRef;
5357
5350
  private _coverRef;
5358
- constructor(props: IColorPickerComponentProps);
5351
+ constructor(props: IColorPickerLineComponentProps);
5359
5352
  syncPositions(): void;
5360
- shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
5361
- getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
5353
+ shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
5354
+ getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
5362
5355
  children?: React.ReactNode;
5363
5356
  }>): string;
5364
5357
  componentDidUpdate(): void;
@@ -5603,7 +5596,7 @@ export interface IGraphNodeProps {
5603
5596
  highlighted?: boolean;
5604
5597
  parentContainerId: string;
5605
5598
  }
5606
- export const GraphNode: FC<IGraphNodeProps>;
5599
+ export const SingleGraphNode: FC<IGraphNodeProps>;
5607
5600
 
5608
5601
  }
5609
5602
  declare module "@babylonjs/inspector/components/reactGraphSystem/GraphNodesContainer" {
@@ -5852,7 +5845,7 @@ import { Observable } from "@babylonjs/core/Misc/observable";
5852
5845
  import { Color4 } from "@babylonjs/core/Maths/math.color";
5853
5846
  import { PropertyChangedEvent } from "@babylonjs/inspector/propertyChangedEvent";
5854
5847
  import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
5855
- export interface IColorLineComponentProps {
5848
+ export interface IColorLineProps {
5856
5849
  label: string;
5857
5850
  target?: any;
5858
5851
  propertyName: string;
@@ -5868,10 +5861,10 @@ interface IColorLineComponentState {
5868
5861
  isExpanded: boolean;
5869
5862
  color: Color4;
5870
5863
  }
5871
- export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
5872
- constructor(props: IColorLineComponentProps);
5873
- shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
5874
- getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
5864
+ export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
5865
+ constructor(props: IColorLineProps);
5866
+ shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
5867
+ getValue(props?: Readonly<IColorLineProps> & Readonly<{
5875
5868
  children?: React.ReactNode;
5876
5869
  }>): Color4;
5877
5870
  setColorFromString(colorString: string): void;
@@ -5893,7 +5886,7 @@ declare module "@babylonjs/inspector/lines/colorPickerComponent" {
5893
5886
  import * as React from "react";
5894
5887
  import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
5895
5888
  import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
5896
- export interface IColorPickerComponentProps {
5889
+ export interface IColorPickerLineProps {
5897
5890
  value: Color4 | Color3;
5898
5891
  linearHint?: boolean;
5899
5892
  onColorChanged: (newOne: string) => void;
@@ -5907,13 +5900,13 @@ interface IColorPickerComponentState {
5907
5900
  color: Color3 | Color4;
5908
5901
  hex: string;
5909
5902
  }
5910
- export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
5903
+ export class ColorPickerLine extends React.Component<IColorPickerLineProps, IColorPickerComponentState> {
5911
5904
  private _floatRef;
5912
5905
  private _floatHostRef;
5913
- constructor(props: IColorPickerComponentProps);
5906
+ constructor(props: IColorPickerLineProps);
5914
5907
  syncPositions(): void;
5915
- shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
5916
- getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
5908
+ shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
5909
+ getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
5917
5910
  children?: React.ReactNode;
5918
5911
  }>): string;
5919
5912
  componentDidUpdate(): void;
@@ -5937,18 +5930,18 @@ export class DraggableLineComponent extends React.Component<IButtonLineComponent
5937
5930
  }
5938
5931
  declare module "@babylonjs/inspector/lines/fileButtonLineComponent" {
5939
5932
  import * as React from "react";
5940
- interface IFileButtonLineComponentProps {
5933
+ interface IFileButtonLineProps {
5941
5934
  label: string;
5942
5935
  onClick: (file: File) => void;
5943
5936
  accept: string;
5944
5937
  icon?: string;
5945
5938
  iconLabel?: string;
5946
5939
  }
5947
- export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
5940
+ export class FileButtonLine extends React.Component<IFileButtonLineProps> {
5948
5941
  private static _IDGenerator;
5949
5942
  private _id;
5950
5943
  private _uploadInputRef;
5951
- constructor(props: IFileButtonLineComponentProps);
5944
+ constructor(props: IFileButtonLineProps);
5952
5945
  onChange(evt: any): void;
5953
5946
 
5954
5947
  }
@@ -6239,7 +6232,7 @@ export {};
6239
6232
  declare module "@babylonjs/inspector/lines/numericInputComponent" {
6240
6233
  import * as React from "react";
6241
6234
  import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
6242
- interface INumericInputComponentProps {
6235
+ interface INumericInputProps {
6243
6236
  label: string;
6244
6237
  value: number;
6245
6238
  step?: number;
@@ -6249,16 +6242,16 @@ interface INumericInputComponentProps {
6249
6242
  iconLabel?: string;
6250
6243
  lockObject: LockObject;
6251
6244
  }
6252
- export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
6245
+ export class NumericInput extends React.Component<INumericInputProps, {
6253
6246
  value: string;
6254
6247
  }> {
6255
6248
  static defaultProps: {
6256
6249
  step: number;
6257
6250
  };
6258
6251
  private _localChange;
6259
- constructor(props: INumericInputComponentProps);
6252
+ constructor(props: INumericInputProps);
6260
6253
  componentWillUnmount(): void;
6261
- shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
6254
+ shouldComponentUpdate(nextProps: INumericInputProps, nextState: {
6262
6255
  value: string;
6263
6256
  }): boolean;
6264
6257
  updateValue(valueString: string): void;
@@ -6276,7 +6269,7 @@ import { Observable } from "@babylonjs/core/Misc/observable";
6276
6269
  import { PropertyChangedEvent } from "@babylonjs/inspector/propertyChangedEvent";
6277
6270
  import { IInspectableOptions } from "@babylonjs/core/Misc/iInspectable";
6278
6271
  export const Null_Value: number;
6279
- export interface IOptionsLineComponentProps {
6272
+ export interface IOptionsLineProps {
6280
6273
  label: string;
6281
6274
  target: any;
6282
6275
  propertyName: string;
@@ -6292,15 +6285,15 @@ export interface IOptionsLineComponentProps {
6292
6285
  valuesAreStrings?: boolean;
6293
6286
  defaultIfNull?: number;
6294
6287
  }
6295
- export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
6288
+ export class OptionsLine extends React.Component<IOptionsLineProps, {
6296
6289
  value: number | string;
6297
6290
  }> {
6298
6291
  private _localChange;
6299
6292
  private _remapValueIn;
6300
6293
  private _remapValueOut;
6301
6294
  private _getValue;
6302
- constructor(props: IOptionsLineComponentProps);
6303
- shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
6295
+ constructor(props: IOptionsLineProps);
6296
+ shouldComponentUpdate(nextProps: IOptionsLineProps, nextState: {
6304
6297
  value: number;
6305
6298
  }): boolean;
6306
6299
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/inspector",
3
- "version": "7.6.0",
3
+ "version": "7.6.1",
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.6.0",
36
- "@babylonjs/gui": "^7.6.0",
37
- "@babylonjs/gui-editor": "^7.6.0",
38
- "@babylonjs/loaders": "^7.6.0",
39
- "@babylonjs/materials": "^7.6.0",
40
- "@babylonjs/serializers": "^7.6.0",
35
+ "@babylonjs/core": "^7.6.1",
36
+ "@babylonjs/gui": "^7.6.1",
37
+ "@babylonjs/gui-editor": "^7.6.1",
38
+ "@babylonjs/loaders": "^7.6.1",
39
+ "@babylonjs/materials": "^7.6.1",
40
+ "@babylonjs/serializers": "^7.6.1",
41
41
  "@lts/gui": "1.0.0",
42
42
  "react": "^17.0.2",
43
43
  "react-dom": "^17.0.2"