@babylonjs/inspector 5.31.2 → 5.32.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.
@@ -4506,8 +4506,9 @@ export type ButtonProps = {
|
|
4506
4506
|
active?: boolean;
|
4507
4507
|
onClick?: () => void;
|
4508
4508
|
color: "light" | "dark";
|
4509
|
-
size: "default" | "small" | "wide";
|
4509
|
+
size: "default" | "small" | "wide" | "smaller";
|
4510
4510
|
title?: string;
|
4511
|
+
backgroundColor?: string;
|
4511
4512
|
};
|
4512
4513
|
export const Button: React.FC<ButtonProps>;
|
4513
4514
|
|
@@ -5117,6 +5118,29 @@ export class NumericInputComponent extends React.Component<INumericInputComponen
|
|
5117
5118
|
}
|
5118
5119
|
export {};
|
5119
5120
|
|
5121
|
+
}
|
5122
|
+
declare module "@babylonjs/inspector/components/lines/OptionsLineComponent" {
|
5123
|
+
/// <reference types="react" />
|
5124
|
+
/**
|
5125
|
+
* This components represents an options menu with optional
|
5126
|
+
* customizable properties. Option IDs should be unique.
|
5127
|
+
*/
|
5128
|
+
export interface IOption {
|
5129
|
+
label: string;
|
5130
|
+
value: string;
|
5131
|
+
id: string;
|
5132
|
+
}
|
5133
|
+
export interface IOptionsLineComponentProps {
|
5134
|
+
options: IOption[];
|
5135
|
+
addOptionPlaceholder?: string;
|
5136
|
+
onOptionAdded?: (newOption: IOption) => void;
|
5137
|
+
onOptionSelected: (selectedOptionValue: string) => void;
|
5138
|
+
selectedOptionValue: string;
|
5139
|
+
validateNewOptionValue?: (newOptionValue: string) => boolean;
|
5140
|
+
addOptionText?: string;
|
5141
|
+
}
|
5142
|
+
export const OptionsLineComponent: (props: IOptionsLineComponentProps) => JSX.Element;
|
5143
|
+
|
5120
5144
|
}
|
5121
5145
|
declare module "@babylonjs/inspector/components/MessageDialog" {
|
5122
5146
|
import * as React from "react";
|
@@ -5127,6 +5151,21 @@ export interface MessageDialogProps {
|
|
5127
5151
|
}
|
5128
5152
|
export const MessageDialog: React.FC<MessageDialogProps>;
|
5129
5153
|
|
5154
|
+
}
|
5155
|
+
declare module "@babylonjs/inspector/components/TextInputWithSubmit" {
|
5156
|
+
/// <reference types="react" />
|
5157
|
+
export interface ITextInputProps {
|
5158
|
+
label?: string;
|
5159
|
+
placeholder?: string;
|
5160
|
+
submitValue: (newValue: string) => void;
|
5161
|
+
validateValue?: (value: string) => boolean;
|
5162
|
+
cancelSubmit?: () => void;
|
5163
|
+
}
|
5164
|
+
/**
|
5165
|
+
* This component represents a text input that can be submitted or cancelled on buttons
|
5166
|
+
*/
|
5167
|
+
export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
|
5168
|
+
|
5130
5169
|
}
|
5131
5170
|
declare module "@babylonjs/inspector/components/Toggle" {
|
5132
5171
|
/// <reference types="react" />
|
@@ -5682,14 +5721,9 @@ export interface IOptionsLineComponentProps {
|
|
5682
5721
|
target: any;
|
5683
5722
|
propertyName: string;
|
5684
5723
|
options: IInspectableOptions[];
|
5685
|
-
addInput?: boolean;
|
5686
5724
|
noDirectUpdate?: boolean;
|
5687
5725
|
onSelect?: (value: number | string) => void;
|
5688
5726
|
extractValue?: (target: any) => number | string;
|
5689
|
-
addVal?: (newVal: {
|
5690
|
-
label: string;
|
5691
|
-
value: number;
|
5692
|
-
}, prevVal: number) => void;
|
5693
5727
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
5694
5728
|
allowNullValue?: boolean;
|
5695
5729
|
icon?: string;
|
@@ -5697,13 +5731,9 @@ export interface IOptionsLineComponentProps {
|
|
5697
5731
|
className?: string;
|
5698
5732
|
valuesAreStrings?: boolean;
|
5699
5733
|
defaultIfNull?: number;
|
5700
|
-
fromFontDropdown?: boolean;
|
5701
|
-
valueProp?: number;
|
5702
|
-
fallbackValue?: number;
|
5703
5734
|
}
|
5704
5735
|
export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
|
5705
5736
|
value: number | string;
|
5706
|
-
addCustom: boolean;
|
5707
5737
|
}> {
|
5708
5738
|
private _localChange;
|
5709
5739
|
private _remapValueIn;
|
@@ -5712,12 +5742,10 @@ export class OptionsLineComponent extends React.Component<IOptionsLineComponentP
|
|
5712
5742
|
constructor(props: IOptionsLineComponentProps);
|
5713
5743
|
shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
|
5714
5744
|
value: number;
|
5715
|
-
addCustom: boolean;
|
5716
5745
|
}): boolean;
|
5717
5746
|
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
5718
5747
|
setValue(value: string | number): void;
|
5719
5748
|
updateValue(valueString: string): void;
|
5720
|
-
updateCustomValue(): void;
|
5721
5749
|
render(): JSX.Element;
|
5722
5750
|
}
|
5723
5751
|
|
@@ -6732,25 +6760,25 @@ export class PropertyChangedEvent {
|
|
6732
6760
|
}
|
6733
6761
|
declare module "@babylonjs/inspector/stories/bars/CommandBarComponent.stories" {
|
6734
6762
|
/// <reference types="react" />
|
6763
|
+
import { CommandBarComponent } from "@babylonjs/inspector/components/bars/CommandBarComponent";
|
6764
|
+
|
6735
6765
|
const _default: {
|
6736
6766
|
|
6737
6767
|
};
|
6738
6768
|
export default _default;
|
6739
|
-
export const Default:
|
6740
|
-
export const WithArtboardColor:
|
6741
|
-
parameters: {
|
6742
|
-
onArtboardColorChanged: (color: string) => void;
|
6743
|
-
};
|
6744
|
-
};
|
6769
|
+
export const Default: StoryObj<typeof CommandBarComponent>;
|
6770
|
+
export const WithArtboardColor: StoryObj<typeof CommandBarComponent>;
|
6745
6771
|
|
6746
6772
|
}
|
6747
6773
|
declare module "@babylonjs/inspector/stories/bars/CommandButtonComponent.stories" {
|
6748
6774
|
/// <reference types="react" />
|
6775
|
+
import { CommandButtonComponent } from "@babylonjs/inspector/components/bars/CommandButtonComponent";
|
6776
|
+
|
6749
6777
|
const _default: {
|
6750
6778
|
|
6751
6779
|
};
|
6752
6780
|
export default _default;
|
6753
|
-
export const Default:
|
6781
|
+
export const Default: StoryObj<typeof CommandButtonComponent>;
|
6754
6782
|
|
6755
6783
|
}
|
6756
6784
|
declare module "@babylonjs/inspector/stories/Button.stories" {
|
@@ -6767,17 +6795,13 @@ export const Small: any;
|
|
6767
6795
|
|
6768
6796
|
}
|
6769
6797
|
declare module "@babylonjs/inspector/stories/colorPicker/ColorPicker.stories" {
|
6770
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color";
|
6771
6798
|
import { ColorPicker } from "@babylonjs/inspector/components/colorPicker/ColorPicker";
|
6799
|
+
|
6772
6800
|
const _default: {
|
6773
6801
|
component: typeof ColorPicker;
|
6774
6802
|
};
|
6775
6803
|
export default _default;
|
6776
|
-
export const Default:
|
6777
|
-
args: {
|
6778
|
-
color: Color3;
|
6779
|
-
};
|
6780
|
-
};
|
6804
|
+
export const Default: StoryObj<typeof ColorPicker>;
|
6781
6805
|
|
6782
6806
|
}
|
6783
6807
|
declare module "@babylonjs/inspector/stories/Icon.stories" {
|
@@ -6806,114 +6830,67 @@ export const Default: any;
|
|
6806
6830
|
declare module "@babylonjs/inspector/stories/layout/FlexibleGridLayout.stories" {
|
6807
6831
|
/// <reference types="react" />
|
6808
6832
|
import { IFlexibleGridLayoutProps } from "@babylonjs/inspector/components/layout/FlexibleGridLayout";
|
6833
|
+
import { FlexibleGridLayout } from "@babylonjs/inspector/components/layout/FlexibleGridLayout";
|
6834
|
+
|
6809
6835
|
const _default: {
|
6810
6836
|
component: import("react").FC<IFlexibleGridLayoutProps>;
|
6811
6837
|
};
|
6812
6838
|
export default _default;
|
6813
|
-
export const Default:
|
6814
|
-
|
6815
|
-
args: {
|
6816
|
-
layoutDefinition: {
|
6817
|
-
columns: {
|
6818
|
-
id: string;
|
6819
|
-
width: string;
|
6820
|
-
rows: {
|
6821
|
-
id: string;
|
6822
|
-
height: string;
|
6823
|
-
selectedTab: string;
|
6824
|
-
tabs: {
|
6825
|
-
id: string;
|
6826
|
-
component: JSX.Element;
|
6827
|
-
}[];
|
6828
|
-
}[];
|
6829
|
-
}[];
|
6830
|
-
};
|
6831
|
-
};
|
6832
|
-
};
|
6833
|
-
export const TwoColumn: {
|
6834
|
-
render: (props: IFlexibleGridLayoutProps) => JSX.Element;
|
6835
|
-
args: {
|
6836
|
-
layoutDefinition: {
|
6837
|
-
columns: {
|
6838
|
-
id: string;
|
6839
|
-
width: string;
|
6840
|
-
rows: {
|
6841
|
-
id: string;
|
6842
|
-
height: string;
|
6843
|
-
selectedTab: string;
|
6844
|
-
tabs: {
|
6845
|
-
id: string;
|
6846
|
-
component: JSX.Element;
|
6847
|
-
}[];
|
6848
|
-
}[];
|
6849
|
-
}[];
|
6850
|
-
};
|
6851
|
-
};
|
6852
|
-
};
|
6839
|
+
export const Default: StoryObj<typeof FlexibleGridLayout>;
|
6840
|
+
export const TwoColumn: StoryObj<typeof FlexibleGridLayout>;
|
6853
6841
|
|
6854
6842
|
}
|
6855
6843
|
declare module "@babylonjs/inspector/stories/lines/ColorLineComponent.stories" {
|
6856
|
-
/// <reference types="react" />
|
6857
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
6858
|
-
import { PropertyChangedEvent } from "@babylonjs/inspector/propertyChangedEvent";
|
6859
|
-
import { IColorLineComponentProps } from "@babylonjs/inspector/components/lines/ColorLineComponent";
|
6860
6844
|
import { ColorLineComponent } from "@babylonjs/inspector/components/lines/ColorLineComponent";
|
6845
|
+
|
6861
6846
|
const _default: {
|
6862
6847
|
component: typeof ColorLineComponent;
|
6863
6848
|
};
|
6864
6849
|
export default _default;
|
6865
|
-
export const Default:
|
6866
|
-
render: (args: IColorLineComponentProps) => JSX.Element;
|
6867
|
-
args: {
|
6868
|
-
target: {};
|
6869
|
-
label: string;
|
6870
|
-
propertyName: string;
|
6871
|
-
lockObject: {
|
6872
|
-
lock: boolean;
|
6873
|
-
};
|
6874
|
-
onPropertyChangedObservable: Observable<PropertyChangedEvent>;
|
6875
|
-
};
|
6876
|
-
};
|
6850
|
+
export const Default: StoryObj<typeof ColorLineComponent>;
|
6877
6851
|
|
6878
6852
|
}
|
6879
6853
|
declare module "@babylonjs/inspector/stories/lines/ColorPickerLineComponent.stories" {
|
6880
|
-
/// <reference types="react" />
|
6881
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color";
|
6882
|
-
import { IColorPickerComponentProps } from "@babylonjs/inspector/components/lines/ColorPickerLineComponent";
|
6883
6854
|
import { ColorPickerLineComponent } from "@babylonjs/inspector/components/lines/ColorPickerLineComponent";
|
6855
|
+
|
6884
6856
|
const _default: {
|
6885
6857
|
component: typeof ColorPickerLineComponent;
|
6886
6858
|
};
|
6887
6859
|
export default _default;
|
6888
|
-
export const Default:
|
6889
|
-
render: (args: IColorPickerComponentProps) => JSX.Element;
|
6890
|
-
args: {
|
6891
|
-
value: Color3;
|
6892
|
-
};
|
6893
|
-
};
|
6860
|
+
export const Default: StoryObj<typeof ColorPickerLineComponent>;
|
6894
6861
|
|
6895
6862
|
}
|
6896
6863
|
declare module "@babylonjs/inspector/stories/lines/FileButtonLineComponent.stories" {
|
6897
6864
|
import { FileButtonLineComponent } from "@babylonjs/inspector/components/lines/FileButtonLineComponent";
|
6865
|
+
|
6898
6866
|
const _default: {
|
6899
6867
|
component: typeof FileButtonLineComponent;
|
6900
6868
|
};
|
6901
6869
|
export default _default;
|
6902
|
-
export const Default:
|
6870
|
+
export const Default: StoryObj<typeof FileButtonLineComponent>;
|
6903
6871
|
|
6904
6872
|
}
|
6905
6873
|
declare module "@babylonjs/inspector/stories/lines/NumericInputComponent.stories" {
|
6906
6874
|
import { NumericInputComponent } from "@babylonjs/inspector/components/lines/NumericInputComponent";
|
6875
|
+
|
6907
6876
|
const _default: {
|
6908
6877
|
component: typeof NumericInputComponent;
|
6909
6878
|
};
|
6910
6879
|
export default _default;
|
6911
|
-
export const Default:
|
6912
|
-
|
6913
|
-
|
6914
|
-
|
6915
|
-
|
6880
|
+
export const Default: StoryObj<typeof NumericInputComponent>;
|
6881
|
+
|
6882
|
+
}
|
6883
|
+
declare module "@babylonjs/inspector/stories/lines/OptionsLineComponent.stories" {
|
6884
|
+
/// <reference types="react" />
|
6885
|
+
|
6886
|
+
const _default: {
|
6887
|
+
component: (props: import("@babylonjs/inspector/components/lines/OptionsLineComponent").IOptionsLineComponentProps) => JSX.Element;
|
6916
6888
|
};
|
6889
|
+
export default _default;
|
6890
|
+
const RenderComponent: (args: any) => JSX.Element;
|
6891
|
+
export const Default: StoryObj<typeof RenderComponent>;
|
6892
|
+
export const WithCustomOptions: StoryObj<typeof RenderComponent>;
|
6893
|
+
export const WithValidation: StoryObj<typeof RenderComponent>;
|
6917
6894
|
|
6918
6895
|
}
|
6919
6896
|
declare module "@babylonjs/inspector/stories/MessageDialog.stories" {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/inspector",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.32.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": "^5.
|
36
|
-
"@babylonjs/gui": "^5.
|
37
|
-
"@babylonjs/gui-editor": "^5.
|
38
|
-
"@babylonjs/loaders": "^5.
|
39
|
-
"@babylonjs/materials": "^5.
|
40
|
-
"@babylonjs/serializers": "^5.
|
35
|
+
"@babylonjs/core": "^5.32.1",
|
36
|
+
"@babylonjs/gui": "^5.32.1",
|
37
|
+
"@babylonjs/gui-editor": "^5.32.1",
|
38
|
+
"@babylonjs/loaders": "^5.32.1",
|
39
|
+
"@babylonjs/materials": "^5.32.1",
|
40
|
+
"@babylonjs/serializers": "^5.32.1",
|
41
41
|
"@lts/gui": "1.0.0",
|
42
42
|
"react": "^17.0.2",
|
43
43
|
"react-dom": "^17.0.2",
|