babylonjs-gui-editor 8.12.1 → 8.13.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.
@@ -2804,7 +2804,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2804
2804
  updateStateX(value: number): void;
2805
2805
  updateStateY(value: number): void;
2806
2806
  updateStateZ(value: number): void;
2807
- onCopyClick(): void;
2807
+ onCopyClick(): string;
2808
+ renderFluent(): import("react/jsx-runtime").JSX.Element;
2809
+ renderOriginal(): import("react/jsx-runtime").JSX.Element;
2808
2810
  render(): import("react/jsx-runtime").JSX.Element;
2809
2811
  }
2810
2812
 
@@ -2936,7 +2938,10 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2936
2938
  export class TextLineComponent extends React.Component<ITextLineComponentProps> {
2937
2939
  constructor(props: ITextLineComponentProps);
2938
2940
  onLink(): void;
2939
- renderContent(): import("react/jsx-runtime").JSX.Element | null;
2941
+ copyFn(): (() => string) | undefined;
2942
+ renderContent(isLink: boolean, tooltip: string): import("react/jsx-runtime").JSX.Element | null;
2943
+ renderOriginal(isLink: boolean, tooltip: string): import("react/jsx-runtime").JSX.Element;
2944
+ renderFluent(isLink: boolean, tooltip: string): import("react/jsx-runtime").JSX.Element;
2940
2945
  render(): import("react/jsx-runtime").JSX.Element;
2941
2946
  }
2942
2947
 
@@ -2992,6 +2997,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2992
2997
  updateValue(value: string, valueToValidate?: string): void;
2993
2998
  incrementValue(amount: number): void;
2994
2999
  onKeyDown(event: React.KeyboardEvent): void;
3000
+ renderFluent(value: string, placeholder: string, step: number): import("react/jsx-runtime").JSX.Element;
3001
+ renderOriginal(value: string, placeholder: string, step: number): import("react/jsx-runtime").JSX.Element;
2995
3002
  render(): import("react/jsx-runtime").JSX.Element;
2996
3003
  }
2997
3004
 
@@ -3053,6 +3060,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3053
3060
  onInput(newValueString: any): void;
3054
3061
  prepareDataToRead(value: number): number;
3055
3062
  onCopyClick(): void;
3063
+ renderFluent(): import("react/jsx-runtime").JSX.Element;
3064
+ renderOriginal(): import("react/jsx-runtime").JSX.Element;
3056
3065
  render(): import("react/jsx-runtime").JSX.Element;
3057
3066
  }
3058
3067
 
@@ -3122,7 +3131,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3122
3131
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
3123
3132
  setValue(value: string | number): void;
3124
3133
  updateValue(valueString: string): void;
3125
- onCopyClick(): void;
3134
+ onCopyClickStr(): string;
3135
+ private _renderFluent;
3136
+ private _renderOriginal;
3126
3137
  render(): import("react/jsx-runtime").JSX.Element;
3127
3138
  }
3128
3139
 
@@ -3531,6 +3542,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3531
3542
  private _uploadInputRef;
3532
3543
  constructor(props: IFileButtonLineProps);
3533
3544
  onChange(evt: any): void;
3545
+ renderFluent(): import("react/jsx-runtime").JSX.Element;
3546
+ renderOriginal(): import("react/jsx-runtime").JSX.Element;
3534
3547
  render(): import("react/jsx-runtime").JSX.Element;
3535
3548
  }
3536
3549
 
@@ -3646,6 +3659,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3646
3659
  private _convertToColor;
3647
3660
  private _toColor3;
3648
3661
  onCopyClick(): void;
3662
+ renderFluent(): import("react/jsx-runtime").JSX.Element;
3663
+ renderOriginal(): import("react/jsx-runtime").JSX.Element;
3649
3664
  render(): import("react/jsx-runtime").JSX.Element;
3650
3665
  }
3651
3666
 
@@ -3734,6 +3749,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3734
3749
  }): boolean;
3735
3750
  onChange(): void;
3736
3751
  onCopyClick(): void;
3752
+ renderOriginal(): import("react/jsx-runtime").JSX.Element;
3753
+ renderFluent(): import("react/jsx-runtime").JSX.Element;
3737
3754
  render(): import("react/jsx-runtime").JSX.Element;
3738
3755
  }
3739
3756
 
@@ -3754,6 +3771,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3754
3771
  }
3755
3772
  export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
3756
3773
  constructor(props: IButtonLineComponentProps);
3774
+ renderFluent(): import("react/jsx-runtime").JSX.Element;
3775
+ renderOriginal(): import("react/jsx-runtime").JSX.Element;
3757
3776
  render(): import("react/jsx-runtime").JSX.Element;
3758
3777
  }
3759
3778
 
@@ -3778,6 +3797,513 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3778
3797
 
3779
3798
 
3780
3799
 
3800
+ }
3801
+ declare module BABYLON {
3802
+
3803
+
3804
+ }
3805
+ declare module BABYLON.GuiEditor.SharedUIComponents {
3806
+ export type TextareaProps = BABYLON.GuiEditor.SharedUIComponents.BaseComponentProps<string> & {
3807
+ placeholder?: string;
3808
+ };
3809
+ /**
3810
+ * This is a texarea box that stops propagation of change/keydown events
3811
+ * @param props
3812
+ * @returns
3813
+ */
3814
+ export var Textarea: React.FunctionComponent<any>;
3815
+
3816
+
3817
+
3818
+ }
3819
+ declare module BABYLON {
3820
+
3821
+
3822
+ }
3823
+ declare module BABYLON.GuiEditor.SharedUIComponents {
3824
+ export type SyncedSliderProps = BABYLON.GuiEditor.SharedUIComponents.BaseComponentProps<number> & {
3825
+ min?: number;
3826
+ max?: number;
3827
+ step?: number;
3828
+ };
3829
+ /**
3830
+ * Component which synchronizes a slider and an input field, allowing the user to change a value using either control
3831
+ * @param props
3832
+ * @returns SyncedSlider component
3833
+ */
3834
+ export var SyncedSliderInput: React.FunctionComponent<SyncedSliderProps>;
3835
+
3836
+
3837
+
3838
+ }
3839
+ declare module BABYLON {
3840
+
3841
+
3842
+ }
3843
+ declare module BABYLON.GuiEditor.SharedUIComponents {
3844
+ export type SwitchProps = BABYLON.GuiEditor.SharedUIComponents.BaseComponentProps<boolean>;
3845
+ /**
3846
+ * This is a primitive fluent boolean switch component whose only knowledge is the shared styling across all tools
3847
+ * @param props
3848
+ * @returns Switch component
3849
+ */
3850
+ export var Switch: React.FunctionComponent<SwitchProps>;
3851
+
3852
+
3853
+
3854
+ }
3855
+ declare module BABYLON {
3856
+
3857
+
3858
+ }
3859
+ declare module BABYLON.GuiEditor.SharedUIComponents {
3860
+ export type SpinButtonProps = BABYLON.GuiEditor.SharedUIComponents.BaseComponentProps<number>;
3861
+ export var SpinButton: React.FunctionComponent<SpinButtonProps>;
3862
+
3863
+
3864
+
3865
+ }
3866
+ declare module BABYLON {
3867
+
3868
+
3869
+ }
3870
+ declare module BABYLON.GuiEditor.SharedUIComponents {
3871
+
3872
+
3873
+
3874
+ }
3875
+ declare module BABYLON {
3876
+
3877
+
3878
+ }
3879
+ declare module BABYLON.GuiEditor.SharedUIComponents {
3880
+ export type InputProps<T extends string | number> = BABYLON.GuiEditor.SharedUIComponents.BaseComponentProps<T> & {
3881
+ step?: number;
3882
+ placeholder?: string;
3883
+ min?: number;
3884
+ max?: number;
3885
+ };
3886
+ /**
3887
+ * This is an input text box that stops propagation of change events and sets its width based on the type of input (text or number)
3888
+ * @param props
3889
+ * @returns
3890
+ */
3891
+ export var Input: React.FunctionComponent<InputProps<string | number>>;
3892
+
3893
+
3894
+
3895
+ }
3896
+ declare module BABYLON {
3897
+
3898
+
3899
+ }
3900
+ declare module BABYLON.GuiEditor.SharedUIComponents {
3901
+ export type AcceptedDropdownValue = string | number;
3902
+ export type DropdownOption = {
3903
+ /**
3904
+ * Defines the visible part of the option
3905
+ */
3906
+ label: string;
3907
+ /**
3908
+ * Defines the value part of the option
3909
+ */
3910
+ value: AcceptedDropdownValue;
3911
+ };
3912
+ export type DropdownProps = BABYLON.GuiEditor.SharedUIComponents.BaseComponentProps<AcceptedDropdownValue | undefined> & {
3913
+ options: DropdownOption[];
3914
+ includeUndefined?: boolean;
3915
+ };
3916
+ /**
3917
+ * Renders a fluent UI dropdown component for the options passed in, and an additional 'Not Defined' option if includeUndefined is set to true
3918
+ * @param props
3919
+ * @returns dropdown component
3920
+ */
3921
+ export var Dropdown: React.FunctionComponent<DropdownProps>;
3922
+
3923
+
3924
+
3925
+ }
3926
+ declare module BABYLON {
3927
+
3928
+
3929
+ }
3930
+ declare module BABYLON.GuiEditor.SharedUIComponents {
3931
+ export type ColorPickerProps<C extends Color3 | Color4> = {
3932
+ isLinearMode?: boolean;
3933
+ } & BABYLON.GuiEditor.SharedUIComponents.BaseComponentProps<C>;
3934
+ export var ColorPickerPopup: React.FunctionComponent<ColorPickerProps<Color3 | Color4>>;
3935
+ type HsvKey = "h" | "s" | "v";
3936
+ export type InputHexProps = BABYLON.GuiEditor.SharedUIComponents.BaseComponentProps<Color3 | Color4> & {
3937
+ label?: string;
3938
+ linearHex?: boolean;
3939
+ isLinearMode?: boolean;
3940
+ };
3941
+ /**
3942
+ * Component which displays the passed in color's HEX value, either in linearSpace (if linearHex is true) or in gamma space
3943
+ * When the hex color is changed by user, component calculates the new Color3/4 value and calls onChange
3944
+ *
3945
+ * Component uses the isLinearMode boolean to display an informative label regarding linear / gamma space
3946
+ * @param props - The properties for the InputHexField component.
3947
+ * @returns
3948
+ */
3949
+ export var InputHexField: React.FunctionComponent<InputHexProps>;
3950
+ type InputHsvFieldProps = {
3951
+ color: Color3 | Color4;
3952
+ label: string;
3953
+ hsvKey: HsvKey;
3954
+ onChange: (color: Color3 | Color4) => void;
3955
+ max: number;
3956
+ scale?: number;
3957
+ };
3958
+ /**
3959
+ * In the HSV (Hue, Saturation, Value) color model, Hue (H) ranges from 0 to 360 degrees, representing the color's position on the color wheel.
3960
+ * Saturation (S) ranges from 0 to 100%, indicating the intensity or purity of the color, with 0 being shades of gray and 100 being a fully saturated color.
3961
+ * Value (V) ranges from 0 to 100%, representing the brightness of the color, with 0 being black and 100 being the brightest.
3962
+ * @param props - The properties for the InputHsvField component.
3963
+ */
3964
+ export var InputHsvField: React.FunctionComponent<InputHsvFieldProps>;
3965
+
3966
+
3967
+
3968
+ }
3969
+ declare module BABYLON {
3970
+
3971
+
3972
+ }
3973
+ declare module BABYLON.GuiEditor.SharedUIComponents {
3974
+ export type CheckboxProps = BABYLON.GuiEditor.SharedUIComponents.BaseComponentProps<boolean>;
3975
+ /**
3976
+ * This is a primitive fluent checkbox that can both read and write checked state
3977
+ * @param props
3978
+ * @returns Checkbox component
3979
+ */
3980
+ export var Checkbox: React.FunctionComponent<CheckboxProps>;
3981
+
3982
+
3983
+
3984
+ }
3985
+ declare module BABYLON {
3986
+
3987
+
3988
+ }
3989
+ declare module BABYLON.GuiEditor.SharedUIComponents {
3990
+ export type AccordionSectionProps = {
3991
+ title: string;
3992
+ };
3993
+ export var AccordionSection: React.FunctionComponent<React.PropsWithChildren<AccordionSectionProps>>;
3994
+ export var Accordion: React.FunctionComponent<React.PropsWithChildren>;
3995
+
3996
+
3997
+
3998
+ }
3999
+ declare module BABYLON {
4000
+
4001
+
4002
+ }
4003
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4004
+ export type VectorPropertyLineProps<V extends Vector3 | Vector4> = BABYLON.GuiEditor.SharedUIComponents.BaseComponentProps<V> & BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps & {
4005
+ /**
4006
+ * If passed, all sliders will use this for the min value
4007
+ */
4008
+ min?: number;
4009
+ /**
4010
+ * If passed, all sliders will use this for the max value
4011
+ */
4012
+ max?: number;
4013
+ /**
4014
+ * If passed, the UX will use the conversion functions to display/update values
4015
+ */
4016
+ valueConverter?: {
4017
+ /**
4018
+ * Will call from(val) before displaying in the UX
4019
+ */
4020
+ from: (val: number) => number;
4021
+ /**
4022
+ * Will call to(val) before calling onChange
4023
+ */
4024
+ to: (val: number) => number;
4025
+ };
4026
+ };
4027
+ type RotationVectorPropertyLineProps = VectorPropertyLineProps<Vector3> & {
4028
+ /**
4029
+ * Display angles as degrees instead of radians
4030
+ */
4031
+ useDegrees?: boolean;
4032
+ };
4033
+ export var RotationVectorPropertyLine: React.FunctionComponent<RotationVectorPropertyLineProps>;
4034
+ export var Vector3PropertyLine: React.FunctionComponent<VectorPropertyLineProps<Vector3>>;
4035
+ export var Vector4PropertyLine: React.FunctionComponent<VectorPropertyLineProps<Vector4>>;
4036
+
4037
+
4038
+
4039
+ }
4040
+ declare module BABYLON {
4041
+
4042
+
4043
+ }
4044
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4045
+ type TextProps = {
4046
+ value: string;
4047
+ tooltip?: string;
4048
+ };
4049
+ /**
4050
+ * Wraps text in a property line
4051
+ * @param props - BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps and TextProps
4052
+ * @returns property-line wrapped text
4053
+ */
4054
+ export var TextPropertyLine: React.FunctionComponent<BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps & TextProps>;
4055
+
4056
+
4057
+
4058
+ }
4059
+ declare module BABYLON {
4060
+
4061
+
4062
+ }
4063
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4064
+ type SyncedSliderLineProps = BABYLON.GuiEditor.SharedUIComponents.SyncedSliderProps & BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps;
4065
+ /**
4066
+ * Renders a simple wrapper around the SyncedSliderInput
4067
+ * @param props
4068
+ * @returns
4069
+ */
4070
+ export var SyncedSliderLine: React.FunctionComponent<SyncedSliderLineProps>;
4071
+
4072
+
4073
+
4074
+ }
4075
+ declare module BABYLON {
4076
+
4077
+
4078
+ }
4079
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4080
+ /**
4081
+ * Wraps a switch in a property line
4082
+ * @param props - The properties for the switch and property line
4083
+ * @returns A React element representing the property line with a switch
4084
+ */
4085
+ export var SwitchPropertyLine: React.FunctionComponent<BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps & BABYLON.GuiEditor.SharedUIComponents.SwitchProps>;
4086
+
4087
+
4088
+
4089
+ }
4090
+ declare module BABYLON {
4091
+
4092
+
4093
+ }
4094
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4095
+ export type PropertyLineProps = {
4096
+ /**
4097
+ * The name of the property to display in the property line.
4098
+ */
4099
+ label: string;
4100
+ /**
4101
+ * Optional description for the property, shown on hover of the info icon
4102
+ */
4103
+ description?: string;
4104
+ /**
4105
+ * Optional function returning a string to copy to clipboard.
4106
+ */
4107
+ onCopy?: () => string;
4108
+ /**
4109
+ * If supplied, an 'expand' icon will be shown which, when clicked, renders this component within the property line.
4110
+ */
4111
+ expandedContent?: JSX.Element;
4112
+ /**
4113
+ * Link to the documentation for this property, available from the info icon either linked from the description (if provided) or defalt 'docs' text
4114
+ */
4115
+ docLink?: string;
4116
+ };
4117
+ export var LineContainer: import("react").ForwardRefExoticComponent<{
4118
+ children?: import("react").ReactNode | undefined;
4119
+ } & import("react").RefAttributes<HTMLDivElement>>;
4120
+ export type BaseComponentProps<T> = {
4121
+ /**
4122
+ * The value of the property to be displayed and modified.
4123
+ */
4124
+ value: T;
4125
+ /**
4126
+ * Callback function to handle changes to the value
4127
+ */
4128
+ onChange: (value: T) => void;
4129
+ /**
4130
+ * Optional flag to disable the component, preventing any interaction.
4131
+ */
4132
+ disabled?: boolean;
4133
+ /**
4134
+ * Optional class name to apply custom styles to the component.
4135
+ */
4136
+ className?: string;
4137
+ };
4138
+ /**
4139
+ * A reusable component that renders a property line with a label and child content, and an optional description, copy button, and expandable section.
4140
+ *
4141
+ * @param props - The properties for the PropertyLine component.
4142
+ * @returns A React element representing the property line.
4143
+ *
4144
+ */
4145
+ export var PropertyLine: import("react").ForwardRefExoticComponent<PropertyLineProps & {
4146
+ children?: import("react").ReactNode | undefined;
4147
+ } & import("react").RefAttributes<HTMLDivElement>>;
4148
+ export var PlaceholderPropertyLine: React.FunctionComponent<BaseComponentProps<any> & PropertyLineProps>;
4149
+
4150
+
4151
+
4152
+ }
4153
+ declare module BABYLON {
4154
+
4155
+
4156
+ }
4157
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4158
+ type LinkProps = {
4159
+ value: string;
4160
+ tooltip?: string;
4161
+ onLink?: () => void;
4162
+ url?: string;
4163
+ };
4164
+ /**
4165
+ * Wraps a link in a property line
4166
+ * @param props - BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps and LinkProps
4167
+ * @returns property-line wrapped link
4168
+ */
4169
+ export var LinkPropertyLine: React.FunctionComponent<BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps & LinkProps>;
4170
+
4171
+
4172
+
4173
+ }
4174
+ declare module BABYLON {
4175
+
4176
+
4177
+ }
4178
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4179
+ export var TextInputPropertyLine: React.FunctionComponent<BABYLON.GuiEditor.SharedUIComponents.InputProps<string> & BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps>;
4180
+ export var FloatInputPropertyLine: React.FunctionComponent<BABYLON.GuiEditor.SharedUIComponents.InputProps<number> & BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps>;
4181
+
4182
+
4183
+
4184
+ }
4185
+ declare module BABYLON {
4186
+
4187
+
4188
+ }
4189
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4190
+ /**
4191
+ * Wraps a hex input in a property line
4192
+ * @param props - BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps and BABYLON.GuiEditor.SharedUIComponents.InputHexProps
4193
+ * @returns property-line wrapped input hex component
4194
+ */
4195
+ export var HexPropertyLine: React.FunctionComponent<BABYLON.GuiEditor.SharedUIComponents.InputHexProps & BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps>;
4196
+
4197
+
4198
+
4199
+ }
4200
+ declare module BABYLON {
4201
+
4202
+
4203
+ }
4204
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4205
+ export type ToolHostProps = {
4206
+ /**
4207
+ * Allows host to pass in a theme
4208
+ */
4209
+ customTheme?: any;
4210
+ /**
4211
+ * Can be set to true to disable the copy button in the tool's property lines. Default is false (copy enabled)
4212
+ */
4213
+ disableCopy?: boolean;
4214
+ };
4215
+ export var ToolContext: import("react").Context<{
4216
+ readonly useFluent: boolean;
4217
+ readonly disableCopy: boolean;
4218
+ }>;
4219
+ /**
4220
+ * For tools which are ready to move over the fluent, wrap the root of the tool (or the panel which you want fluentized) with this component
4221
+ * Today we will only enable fluent if the URL has the `newUX` query parameter is truthy
4222
+ * @param props
4223
+ * @returns
4224
+ */
4225
+ export var FluentToolWrapper: React.FunctionComponent<React.PropsWithChildren<ToolHostProps>>;
4226
+
4227
+
4228
+
4229
+ }
4230
+ declare module BABYLON {
4231
+
4232
+
4233
+ }
4234
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4235
+ type FileUploadLineProps = Omit<BABYLON.GuiEditor.SharedUIComponents.ButtonLineProps, "onClick"> & {
4236
+ onClick: (file: File) => void;
4237
+ accept: string;
4238
+ };
4239
+ export var FileUploadLine: React.FunctionComponent<FileUploadLineProps>;
4240
+
4241
+
4242
+
4243
+ }
4244
+ declare module BABYLON {
4245
+
4246
+
4247
+ }
4248
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4249
+ /**
4250
+ * Wraps a dropdown in a property line
4251
+ * @param props - BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps and BABYLON.GuiEditor.SharedUIComponents.DropdownProps
4252
+ * @returns property-line wrapped dropdown
4253
+ */
4254
+ export var DropdownPropertyLine: React.FunctionComponent<BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps & BABYLON.GuiEditor.SharedUIComponents.DropdownProps>;
4255
+
4256
+
4257
+
4258
+ }
4259
+ declare module BABYLON {
4260
+
4261
+
4262
+ }
4263
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4264
+ export type ColorPropertyLineProps = BABYLON.GuiEditor.SharedUIComponents.ColorPickerProps<Color3 | Color4> & BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps;
4265
+ export var Color3PropertyLine: React.FunctionComponent<BABYLON.GuiEditor.SharedUIComponents.ColorPickerProps<Color3> & BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps>;
4266
+ export var Color4PropertyLine: React.FunctionComponent<BABYLON.GuiEditor.SharedUIComponents.ColorPickerProps<Color4> & BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps>;
4267
+
4268
+
4269
+
4270
+ }
4271
+ declare module BABYLON {
4272
+
4273
+
4274
+ }
4275
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4276
+ /**
4277
+ * Wraps a checkbox in a property line
4278
+ * @param props - BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps and BABYLON.GuiEditor.SharedUIComponents.CheckboxProps
4279
+ * @returns property-line wrapped checkbox
4280
+ */
4281
+ export var CheckboxPropertyLine: React.FunctionComponent<BABYLON.GuiEditor.SharedUIComponents.PropertyLineProps & BABYLON.GuiEditor.SharedUIComponents.CheckboxProps>;
4282
+
4283
+
4284
+
4285
+ }
4286
+ declare module BABYLON {
4287
+
4288
+
4289
+ }
4290
+ declare module BABYLON.GuiEditor.SharedUIComponents {
4291
+ export type ButtonLineProps = {
4292
+ label: string;
4293
+ onClick: () => void;
4294
+ disabled?: boolean;
4295
+ icon?: string;
4296
+ title?: string;
4297
+ };
4298
+ /**
4299
+ * Wraps a button with a label in a line container
4300
+ * @param props Button props plus a label
4301
+ * @returns A button inside a line
4302
+ */
4303
+ export var ButtonLine: React.FunctionComponent<ButtonLineProps>;
4304
+
4305
+
4306
+
3781
4307
  }
3782
4308
  declare module BABYLON {
3783
4309