@babylonjs/inspector 7.5.0 → 7.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -95,6 +95,7 @@ export class QuaternionLineComponent extends React.Component<IQuaternionLineComp
95
95
  updateStateEulerX(value: number): void;
96
96
  updateStateEulerY(value: number): void;
97
97
  updateStateEulerZ(value: number): void;
98
+ onCopyClick(): void;
98
99
 
99
100
  }
100
101
  export {};
@@ -2151,9 +2152,6 @@ import { Vector2 } from "@babylonjs/core/Maths/math.vector";
2151
2152
  import { PointerInfo } from "@babylonjs/core/Events/pointerEvents";
2152
2153
  import { PopupComponent } from "@babylonjs/inspector/components/popupComponent";
2153
2154
  import "@babylonjs/inspector/components/actionTabs/tabs/propertyGrids/materials/textures/textureEditor.scss";
2154
- global {
2155
- var _TOOL_DATA_: IToolData;
2156
- }
2157
2155
  interface ITextureEditorComponentProps {
2158
2156
  texture: BaseTexture;
2159
2157
  url: string;
@@ -4027,6 +4025,7 @@ export function SetGUIEditorURL(guiEditorURL: string): void;
4027
4025
  * If you are in a UMD environment, it will load the package from a URL
4028
4026
  * @param adt
4029
4027
  * @param embed defines whether editor is being opened from the Playground
4028
+ * @returns a promise that resolves when the editor is opened
4030
4029
  */
4031
4030
  export function EditAdvancedDynamicTexture(adt: AdvancedDynamicTexture, embed?: boolean): Promise<void>;
4032
4031
 
@@ -4506,6 +4505,10 @@ export class TreeItemSpecializedComponent extends React.Component<ITreeItemSpeci
4506
4505
  }
4507
4506
  export {};
4508
4507
 
4508
+ }
4509
+ declare module "@babylonjs/inspector/components/sceneExplorer/treeNodeDebugger" {
4510
+ export function setDebugNode(node: any): void;
4511
+
4509
4512
  }
4510
4513
  declare module "@babylonjs/inspector/index" {
4511
4514
  export * from "@babylonjs/inspector/inspector";
@@ -4803,7 +4806,7 @@ export interface IColorComponentEntryProps {
4803
4806
  disabled?: boolean;
4804
4807
  lockObject: LockObject;
4805
4808
  }
4806
- export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
4809
+ export class ColorComponentComponentEntry extends React.Component<IColorComponentEntryProps> {
4807
4810
  constructor(props: IColorComponentEntryProps);
4808
4811
  updateValue(valueString: string): void;
4809
4812
  lock(): void;
@@ -4819,7 +4822,7 @@ import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
4819
4822
  /**
4820
4823
  * Interface used to specify creation options for color picker
4821
4824
  */
4822
- export interface IColorPickerProps {
4825
+ export interface IColorPickerComponentProps {
4823
4826
  color: Color3 | Color4;
4824
4827
  linearhint?: boolean;
4825
4828
  debugMode?: boolean;
@@ -4837,13 +4840,13 @@ export interface IColorPickerState {
4837
4840
  /**
4838
4841
  * Class used to create a color picker
4839
4842
  */
4840
- export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
4843
+ export class ColorPickerComponent extends React.Component<IColorPickerComponentProps, IColorPickerState> {
4841
4844
  private _saturationRef;
4842
4845
  private _hueRef;
4843
4846
  private _isSaturationPointerDown;
4844
4847
  private _isHuePointerDown;
4845
- constructor(props: IColorPickerProps);
4846
- shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
4848
+ constructor(props: IColorPickerComponentProps);
4849
+ shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerState): boolean;
4847
4850
  onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
4848
4851
  onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
4849
4852
  onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
@@ -4867,7 +4870,7 @@ export interface IHexColorProps {
4867
4870
  onChange: (value: string) => void;
4868
4871
  lockObject: LockObject;
4869
4872
  }
4870
- export class HexColor extends React.Component<IHexColorProps, {
4873
+ export class HexColorComponent extends React.Component<IHexColorProps, {
4871
4874
  hex: string;
4872
4875
  }> {
4873
4876
  constructor(props: IHexColorProps);
@@ -5326,7 +5329,7 @@ declare module "@babylonjs/inspector/components/lines/ColorPickerLineComponent"
5326
5329
  import * as React from "react";
5327
5330
  import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
5328
5331
  import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
5329
- export interface IColorPickerComponentProps {
5332
+ export interface IColorPickerLineComponentProps {
5330
5333
  value: Color4 | Color3;
5331
5334
  linearHint?: boolean;
5332
5335
  onColorChanged: (newOne: string) => void;
@@ -5341,14 +5344,14 @@ interface IColorPickerComponentState {
5341
5344
  color: Color3 | Color4;
5342
5345
  hex: string;
5343
5346
  }
5344
- export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
5347
+ export class ColorPickerLineComponent extends React.Component<IColorPickerLineComponentProps, IColorPickerComponentState> {
5345
5348
  private _floatRef;
5346
5349
  private _floatHostRef;
5347
5350
  private _coverRef;
5348
- constructor(props: IColorPickerComponentProps);
5351
+ constructor(props: IColorPickerLineComponentProps);
5349
5352
  syncPositions(): void;
5350
- shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
5351
- getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
5353
+ shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
5354
+ getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
5352
5355
  children?: React.ReactNode;
5353
5356
  }>): string;
5354
5357
  componentDidUpdate(): void;
@@ -5593,7 +5596,7 @@ export interface IGraphNodeProps {
5593
5596
  highlighted?: boolean;
5594
5597
  parentContainerId: string;
5595
5598
  }
5596
- export const GraphNode: FC<IGraphNodeProps>;
5599
+ export const SingleGraphNode: FC<IGraphNodeProps>;
5597
5600
 
5598
5601
  }
5599
5602
  declare module "@babylonjs/inspector/components/reactGraphSystem/GraphNodesContainer" {
@@ -5716,6 +5719,14 @@ export type ToggleProps = {
5716
5719
  };
5717
5720
  export const Toggle: React.FC<ToggleProps>;
5718
5721
 
5722
+ }
5723
+ declare module "@babylonjs/inspector/copyCommandToClipboard" {
5724
+ export function copyCommandToClipboard(strCommand: string): void;
5725
+ export function getClassNameWithNamespace(obj: any): {
5726
+ className: string;
5727
+ babylonNamespace: string;
5728
+ };
5729
+
5719
5730
  }
5720
5731
  declare module "@babylonjs/inspector/lines/booleanLineComponent" {
5721
5732
  import * as React from "react";
@@ -5781,6 +5792,7 @@ export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponen
5781
5792
  isConflict: boolean;
5782
5793
  }): boolean;
5783
5794
  onChange(): void;
5795
+ onCopyClick(): void;
5784
5796
 
5785
5797
  }
5786
5798
 
@@ -5833,7 +5845,7 @@ import { Observable } from "@babylonjs/core/Misc/observable";
5833
5845
  import { Color4 } from "@babylonjs/core/Maths/math.color";
5834
5846
  import { PropertyChangedEvent } from "@babylonjs/inspector/propertyChangedEvent";
5835
5847
  import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
5836
- export interface IColorLineComponentProps {
5848
+ export interface IColorLineProps {
5837
5849
  label: string;
5838
5850
  target?: any;
5839
5851
  propertyName: string;
@@ -5849,10 +5861,10 @@ interface IColorLineComponentState {
5849
5861
  isExpanded: boolean;
5850
5862
  color: Color4;
5851
5863
  }
5852
- export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
5853
- constructor(props: IColorLineComponentProps);
5854
- shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
5855
- 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<{
5856
5868
  children?: React.ReactNode;
5857
5869
  }>): Color4;
5858
5870
  setColorFromString(colorString: string): void;
@@ -5862,9 +5874,9 @@ export class ColorLineComponent extends React.Component<IColorLineComponentProps
5862
5874
  updateStateG(value: number): void;
5863
5875
  updateStateB(value: number): void;
5864
5876
  updateStateA(value: number): void;
5865
- copyToClipboard(): void;
5866
5877
  private _convertToColor;
5867
5878
  private _toColor3;
5879
+ onCopyClick(): void;
5868
5880
 
5869
5881
  }
5870
5882
  export {};
@@ -5874,7 +5886,7 @@ declare module "@babylonjs/inspector/lines/colorPickerComponent" {
5874
5886
  import * as React from "react";
5875
5887
  import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
5876
5888
  import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
5877
- export interface IColorPickerComponentProps {
5889
+ export interface IColorPickerLineProps {
5878
5890
  value: Color4 | Color3;
5879
5891
  linearHint?: boolean;
5880
5892
  onColorChanged: (newOne: string) => void;
@@ -5888,13 +5900,13 @@ interface IColorPickerComponentState {
5888
5900
  color: Color3 | Color4;
5889
5901
  hex: string;
5890
5902
  }
5891
- export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
5903
+ export class ColorPickerLine extends React.Component<IColorPickerLineProps, IColorPickerComponentState> {
5892
5904
  private _floatRef;
5893
5905
  private _floatHostRef;
5894
- constructor(props: IColorPickerComponentProps);
5906
+ constructor(props: IColorPickerLineProps);
5895
5907
  syncPositions(): void;
5896
- shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
5897
- getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
5908
+ shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
5909
+ getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
5898
5910
  children?: React.ReactNode;
5899
5911
  }>): string;
5900
5912
  componentDidUpdate(): void;
@@ -5918,18 +5930,18 @@ export class DraggableLineComponent extends React.Component<IButtonLineComponent
5918
5930
  }
5919
5931
  declare module "@babylonjs/inspector/lines/fileButtonLineComponent" {
5920
5932
  import * as React from "react";
5921
- interface IFileButtonLineComponentProps {
5933
+ interface IFileButtonLineProps {
5922
5934
  label: string;
5923
5935
  onClick: (file: File) => void;
5924
5936
  accept: string;
5925
5937
  icon?: string;
5926
5938
  iconLabel?: string;
5927
5939
  }
5928
- export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
5940
+ export class FileButtonLine extends React.Component<IFileButtonLineProps> {
5929
5941
  private static _IDGenerator;
5930
5942
  private _id;
5931
5943
  private _uploadInputRef;
5932
- constructor(props: IFileButtonLineComponentProps);
5944
+ constructor(props: IFileButtonLineProps);
5933
5945
  onChange(evt: any): void;
5934
5946
 
5935
5947
  }
@@ -6005,6 +6017,7 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
6005
6017
  unlock(): void;
6006
6018
  incrementValue(amount: number, processStep?: boolean): void;
6007
6019
  onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
6020
+ onCopyClick(): void;
6008
6021
 
6009
6022
  }
6010
6023
  export {};
@@ -6219,7 +6232,7 @@ export {};
6219
6232
  declare module "@babylonjs/inspector/lines/numericInputComponent" {
6220
6233
  import * as React from "react";
6221
6234
  import { LockObject } from "@babylonjs/inspector/tabs/propertyGrids/lockObject";
6222
- interface INumericInputComponentProps {
6235
+ interface INumericInputProps {
6223
6236
  label: string;
6224
6237
  value: number;
6225
6238
  step?: number;
@@ -6229,16 +6242,16 @@ interface INumericInputComponentProps {
6229
6242
  iconLabel?: string;
6230
6243
  lockObject: LockObject;
6231
6244
  }
6232
- export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
6245
+ export class NumericInput extends React.Component<INumericInputProps, {
6233
6246
  value: string;
6234
6247
  }> {
6235
6248
  static defaultProps: {
6236
6249
  step: number;
6237
6250
  };
6238
6251
  private _localChange;
6239
- constructor(props: INumericInputComponentProps);
6252
+ constructor(props: INumericInputProps);
6240
6253
  componentWillUnmount(): void;
6241
- shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
6254
+ shouldComponentUpdate(nextProps: INumericInputProps, nextState: {
6242
6255
  value: string;
6243
6256
  }): boolean;
6244
6257
  updateValue(valueString: string): void;
@@ -6256,7 +6269,7 @@ import { Observable } from "@babylonjs/core/Misc/observable";
6256
6269
  import { PropertyChangedEvent } from "@babylonjs/inspector/propertyChangedEvent";
6257
6270
  import { IInspectableOptions } from "@babylonjs/core/Misc/iInspectable";
6258
6271
  export const Null_Value: number;
6259
- export interface IOptionsLineComponentProps {
6272
+ export interface IOptionsLineProps {
6260
6273
  label: string;
6261
6274
  target: any;
6262
6275
  propertyName: string;
@@ -6272,20 +6285,21 @@ export interface IOptionsLineComponentProps {
6272
6285
  valuesAreStrings?: boolean;
6273
6286
  defaultIfNull?: number;
6274
6287
  }
6275
- export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
6288
+ export class OptionsLine extends React.Component<IOptionsLineProps, {
6276
6289
  value: number | string;
6277
6290
  }> {
6278
6291
  private _localChange;
6279
6292
  private _remapValueIn;
6280
6293
  private _remapValueOut;
6281
6294
  private _getValue;
6282
- constructor(props: IOptionsLineComponentProps);
6283
- shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
6295
+ constructor(props: IOptionsLineProps);
6296
+ shouldComponentUpdate(nextProps: IOptionsLineProps, nextState: {
6284
6297
  value: number;
6285
6298
  }): boolean;
6286
6299
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
6287
6300
  setValue(value: string | number): void;
6288
6301
  updateValue(valueString: string): void;
6302
+ onCopyClick(): void;
6289
6303
 
6290
6304
  }
6291
6305
 
@@ -6356,6 +6370,7 @@ export class SliderLineComponent extends React.Component<ISliderLineComponentPro
6356
6370
  onChange(newValueString: any): void;
6357
6371
  onInput(newValueString: any): void;
6358
6372
  prepareDataToRead(value: number): number;
6373
+ onCopyClick(): void;
6359
6374
 
6360
6375
  }
6361
6376
  export {};
@@ -6558,6 +6573,7 @@ export class Vector3LineComponent extends React.Component<IVector3LineComponentP
6558
6573
  updateStateX(value: number): void;
6559
6574
  updateStateY(value: number): void;
6560
6575
  updateStateZ(value: number): void;
6576
+ onCopyClick(): void;
6561
6577
 
6562
6578
  }
6563
6579
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/inspector",
3
- "version": "7.5.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.5.0",
36
- "@babylonjs/gui": "^7.5.0",
37
- "@babylonjs/gui-editor": "^7.5.0",
38
- "@babylonjs/loaders": "^7.5.0",
39
- "@babylonjs/materials": "^7.5.0",
40
- "@babylonjs/serializers": "^7.5.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"