babylonjs-gui-editor 7.5.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.
@@ -1683,7 +1683,7 @@ export interface IColorComponentEntryProps {
1683
1683
  disabled?: boolean;
1684
1684
  lockObject: LockObject;
1685
1685
  }
1686
- export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
1686
+ export class ColorComponentComponentEntry extends React.Component<IColorComponentEntryProps> {
1687
1687
  constructor(props: IColorComponentEntryProps);
1688
1688
  updateValue(valueString: string): void;
1689
1689
  lock(): void;
@@ -1699,7 +1699,7 @@ import { LockObject } from "babylonjs-gui-editor/tabs/propertyGrids/lockObject";
1699
1699
  /**
1700
1700
  * Interface used to specify creation options for color picker
1701
1701
  */
1702
- export interface IColorPickerProps {
1702
+ export interface IColorPickerComponentProps {
1703
1703
  color: Color3 | Color4;
1704
1704
  linearhint?: boolean;
1705
1705
  debugMode?: boolean;
@@ -1717,13 +1717,13 @@ export interface IColorPickerState {
1717
1717
  /**
1718
1718
  * Class used to create a color picker
1719
1719
  */
1720
- export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
1720
+ export class ColorPickerComponent extends React.Component<IColorPickerComponentProps, IColorPickerState> {
1721
1721
  private _saturationRef;
1722
1722
  private _hueRef;
1723
1723
  private _isSaturationPointerDown;
1724
1724
  private _isHuePointerDown;
1725
- constructor(props: IColorPickerProps);
1726
- shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
1725
+ constructor(props: IColorPickerComponentProps);
1726
+ shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerState): boolean;
1727
1727
  onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
1728
1728
  onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
1729
1729
  onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
@@ -1747,7 +1747,7 @@ export interface IHexColorProps {
1747
1747
  onChange: (value: string) => void;
1748
1748
  lockObject: LockObject;
1749
1749
  }
1750
- export class HexColor extends React.Component<IHexColorProps, {
1750
+ export class HexColorComponent extends React.Component<IHexColorProps, {
1751
1751
  hex: string;
1752
1752
  }> {
1753
1753
  constructor(props: IHexColorProps);
@@ -2206,7 +2206,7 @@ declare module "babylonjs-gui-editor/components/lines/ColorPickerLineComponent"
2206
2206
  import * as React from "react";
2207
2207
  import { Color4, Color3 } from "babylonjs/Maths/math.color";
2208
2208
  import { LockObject } from "babylonjs-gui-editor/tabs/propertyGrids/lockObject";
2209
- export interface IColorPickerComponentProps {
2209
+ export interface IColorPickerLineComponentProps {
2210
2210
  value: Color4 | Color3;
2211
2211
  linearHint?: boolean;
2212
2212
  onColorChanged: (newOne: string) => void;
@@ -2221,14 +2221,14 @@ interface IColorPickerComponentState {
2221
2221
  color: Color3 | Color4;
2222
2222
  hex: string;
2223
2223
  }
2224
- export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
2224
+ export class ColorPickerLineComponent extends React.Component<IColorPickerLineComponentProps, IColorPickerComponentState> {
2225
2225
  private _floatRef;
2226
2226
  private _floatHostRef;
2227
2227
  private _coverRef;
2228
- constructor(props: IColorPickerComponentProps);
2228
+ constructor(props: IColorPickerLineComponentProps);
2229
2229
  syncPositions(): void;
2230
- shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
2231
- getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
2230
+ shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
2231
+ getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
2232
2232
  children?: React.ReactNode;
2233
2233
  }>): string;
2234
2234
  componentDidUpdate(): void;
@@ -2473,7 +2473,7 @@ export interface IGraphNodeProps {
2473
2473
  highlighted?: boolean;
2474
2474
  parentContainerId: string;
2475
2475
  }
2476
- export const GraphNode: FC<IGraphNodeProps>;
2476
+ export const SingleGraphNode: FC<IGraphNodeProps>;
2477
2477
 
2478
2478
  }
2479
2479
  declare module "babylonjs-gui-editor/components/reactGraphSystem/GraphNodesContainer" {
@@ -2596,6 +2596,14 @@ export type ToggleProps = {
2596
2596
  };
2597
2597
  export const Toggle: React.FC<ToggleProps>;
2598
2598
 
2599
+ }
2600
+ declare module "babylonjs-gui-editor/copyCommandToClipboard" {
2601
+ export function copyCommandToClipboard(strCommand: string): void;
2602
+ export function getClassNameWithNamespace(obj: any): {
2603
+ className: string;
2604
+ babylonNamespace: string;
2605
+ };
2606
+
2599
2607
  }
2600
2608
  declare module "babylonjs-gui-editor/lines/booleanLineComponent" {
2601
2609
  import * as React from "react";
@@ -2661,6 +2669,7 @@ export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponen
2661
2669
  isConflict: boolean;
2662
2670
  }): boolean;
2663
2671
  onChange(): void;
2672
+ onCopyClick(): void;
2664
2673
 
2665
2674
  }
2666
2675
 
@@ -2713,7 +2722,7 @@ import { Observable } from "babylonjs/Misc/observable";
2713
2722
  import { Color4 } from "babylonjs/Maths/math.color";
2714
2723
  import { PropertyChangedEvent } from "babylonjs-gui-editor/propertyChangedEvent";
2715
2724
  import { LockObject } from "babylonjs-gui-editor/tabs/propertyGrids/lockObject";
2716
- export interface IColorLineComponentProps {
2725
+ export interface IColorLineProps {
2717
2726
  label: string;
2718
2727
  target?: any;
2719
2728
  propertyName: string;
@@ -2729,10 +2738,10 @@ interface IColorLineComponentState {
2729
2738
  isExpanded: boolean;
2730
2739
  color: Color4;
2731
2740
  }
2732
- export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
2733
- constructor(props: IColorLineComponentProps);
2734
- shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
2735
- getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
2741
+ export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
2742
+ constructor(props: IColorLineProps);
2743
+ shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
2744
+ getValue(props?: Readonly<IColorLineProps> & Readonly<{
2736
2745
  children?: React.ReactNode;
2737
2746
  }>): Color4;
2738
2747
  setColorFromString(colorString: string): void;
@@ -2742,9 +2751,9 @@ export class ColorLineComponent extends React.Component<IColorLineComponentProps
2742
2751
  updateStateG(value: number): void;
2743
2752
  updateStateB(value: number): void;
2744
2753
  updateStateA(value: number): void;
2745
- copyToClipboard(): void;
2746
2754
  private _convertToColor;
2747
2755
  private _toColor3;
2756
+ onCopyClick(): void;
2748
2757
 
2749
2758
  }
2750
2759
  export {};
@@ -2754,7 +2763,7 @@ declare module "babylonjs-gui-editor/lines/colorPickerComponent" {
2754
2763
  import * as React from "react";
2755
2764
  import { Color4, Color3 } from "babylonjs/Maths/math.color";
2756
2765
  import { LockObject } from "babylonjs-gui-editor/tabs/propertyGrids/lockObject";
2757
- export interface IColorPickerComponentProps {
2766
+ export interface IColorPickerLineProps {
2758
2767
  value: Color4 | Color3;
2759
2768
  linearHint?: boolean;
2760
2769
  onColorChanged: (newOne: string) => void;
@@ -2768,13 +2777,13 @@ interface IColorPickerComponentState {
2768
2777
  color: Color3 | Color4;
2769
2778
  hex: string;
2770
2779
  }
2771
- export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
2780
+ export class ColorPickerLine extends React.Component<IColorPickerLineProps, IColorPickerComponentState> {
2772
2781
  private _floatRef;
2773
2782
  private _floatHostRef;
2774
- constructor(props: IColorPickerComponentProps);
2783
+ constructor(props: IColorPickerLineProps);
2775
2784
  syncPositions(): void;
2776
- shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
2777
- getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
2785
+ shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
2786
+ getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
2778
2787
  children?: React.ReactNode;
2779
2788
  }>): string;
2780
2789
  componentDidUpdate(): void;
@@ -2798,18 +2807,18 @@ export class DraggableLineComponent extends React.Component<IButtonLineComponent
2798
2807
  }
2799
2808
  declare module "babylonjs-gui-editor/lines/fileButtonLineComponent" {
2800
2809
  import * as React from "react";
2801
- interface IFileButtonLineComponentProps {
2810
+ interface IFileButtonLineProps {
2802
2811
  label: string;
2803
2812
  onClick: (file: File) => void;
2804
2813
  accept: string;
2805
2814
  icon?: string;
2806
2815
  iconLabel?: string;
2807
2816
  }
2808
- export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
2817
+ export class FileButtonLine extends React.Component<IFileButtonLineProps> {
2809
2818
  private static _IDGenerator;
2810
2819
  private _id;
2811
2820
  private _uploadInputRef;
2812
- constructor(props: IFileButtonLineComponentProps);
2821
+ constructor(props: IFileButtonLineProps);
2813
2822
  onChange(evt: any): void;
2814
2823
 
2815
2824
  }
@@ -2885,6 +2894,7 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
2885
2894
  unlock(): void;
2886
2895
  incrementValue(amount: number, processStep?: boolean): void;
2887
2896
  onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
2897
+ onCopyClick(): void;
2888
2898
 
2889
2899
  }
2890
2900
  export {};
@@ -3099,7 +3109,7 @@ export {};
3099
3109
  declare module "babylonjs-gui-editor/lines/numericInputComponent" {
3100
3110
  import * as React from "react";
3101
3111
  import { LockObject } from "babylonjs-gui-editor/tabs/propertyGrids/lockObject";
3102
- interface INumericInputComponentProps {
3112
+ interface INumericInputProps {
3103
3113
  label: string;
3104
3114
  value: number;
3105
3115
  step?: number;
@@ -3109,16 +3119,16 @@ interface INumericInputComponentProps {
3109
3119
  iconLabel?: string;
3110
3120
  lockObject: LockObject;
3111
3121
  }
3112
- export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
3122
+ export class NumericInput extends React.Component<INumericInputProps, {
3113
3123
  value: string;
3114
3124
  }> {
3115
3125
  static defaultProps: {
3116
3126
  step: number;
3117
3127
  };
3118
3128
  private _localChange;
3119
- constructor(props: INumericInputComponentProps);
3129
+ constructor(props: INumericInputProps);
3120
3130
  componentWillUnmount(): void;
3121
- shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
3131
+ shouldComponentUpdate(nextProps: INumericInputProps, nextState: {
3122
3132
  value: string;
3123
3133
  }): boolean;
3124
3134
  updateValue(valueString: string): void;
@@ -3136,7 +3146,7 @@ import { Observable } from "babylonjs/Misc/observable";
3136
3146
  import { PropertyChangedEvent } from "babylonjs-gui-editor/propertyChangedEvent";
3137
3147
  import { IInspectableOptions } from "babylonjs/Misc/iInspectable";
3138
3148
  export const Null_Value: number;
3139
- export interface IOptionsLineComponentProps {
3149
+ export interface IOptionsLineProps {
3140
3150
  label: string;
3141
3151
  target: any;
3142
3152
  propertyName: string;
@@ -3152,20 +3162,21 @@ export interface IOptionsLineComponentProps {
3152
3162
  valuesAreStrings?: boolean;
3153
3163
  defaultIfNull?: number;
3154
3164
  }
3155
- export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
3165
+ export class OptionsLine extends React.Component<IOptionsLineProps, {
3156
3166
  value: number | string;
3157
3167
  }> {
3158
3168
  private _localChange;
3159
3169
  private _remapValueIn;
3160
3170
  private _remapValueOut;
3161
3171
  private _getValue;
3162
- constructor(props: IOptionsLineComponentProps);
3163
- shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
3172
+ constructor(props: IOptionsLineProps);
3173
+ shouldComponentUpdate(nextProps: IOptionsLineProps, nextState: {
3164
3174
  value: number;
3165
3175
  }): boolean;
3166
3176
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
3167
3177
  setValue(value: string | number): void;
3168
3178
  updateValue(valueString: string): void;
3179
+ onCopyClick(): void;
3169
3180
 
3170
3181
  }
3171
3182
 
@@ -3236,6 +3247,7 @@ export class SliderLineComponent extends React.Component<ISliderLineComponentPro
3236
3247
  onChange(newValueString: any): void;
3237
3248
  onInput(newValueString: any): void;
3238
3249
  prepareDataToRead(value: number): number;
3250
+ onCopyClick(): void;
3239
3251
 
3240
3252
  }
3241
3253
  export {};
@@ -3438,6 +3450,7 @@ export class Vector3LineComponent extends React.Component<IVector3LineComponentP
3438
3450
  updateStateX(value: number): void;
3439
3451
  updateStateY(value: number): void;
3440
3452
  updateStateZ(value: number): void;
3453
+ onCopyClick(): void;
3441
3454
 
3442
3455
  }
3443
3456
  export {};
@@ -4277,13 +4290,13 @@ export const Small: any;
4277
4290
 
4278
4291
  }
4279
4292
  declare module "babylonjs-gui-editor/stories/colorPicker/ColorPicker.stories" {
4280
- import { ColorPicker } from "babylonjs-gui-editor/components/colorPicker/ColorPicker";
4293
+ import { ColorPickerComponent } from "babylonjs-gui-editor/components/colorPicker/ColorPicker";
4281
4294
 
4282
4295
  const _default: {
4283
- component: typeof ColorPicker;
4296
+ component: typeof ColorPickerComponent;
4284
4297
  };
4285
4298
  export default _default;
4286
- export const Default: StoryObj<typeof ColorPicker>;
4299
+ export const Default: StoryObj<typeof ColorPickerComponent>;
4287
4300
 
4288
4301
  }
4289
4302
  declare module "babylonjs-gui-editor/stories/Icon.stories" {
@@ -6109,7 +6122,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6109
6122
  disabled?: boolean;
6110
6123
  lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
6111
6124
  }
6112
- export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
6125
+ export class ColorComponentComponentEntry extends React.Component<IColorComponentEntryProps> {
6113
6126
  constructor(props: IColorComponentEntryProps);
6114
6127
  updateValue(valueString: string): void;
6115
6128
  lock(): void;
@@ -6127,7 +6140,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6127
6140
  /**
6128
6141
  * Interface used to specify creation options for color picker
6129
6142
  */
6130
- export interface IColorPickerProps {
6143
+ export interface IColorPickerComponentProps {
6131
6144
  color: Color3 | Color4;
6132
6145
  linearhint?: boolean;
6133
6146
  debugMode?: boolean;
@@ -6145,13 +6158,13 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6145
6158
  /**
6146
6159
  * Class used to create a color picker
6147
6160
  */
6148
- export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
6161
+ export class ColorPickerComponent extends React.Component<IColorPickerComponentProps, IColorPickerState> {
6149
6162
  private _saturationRef;
6150
6163
  private _hueRef;
6151
6164
  private _isSaturationPointerDown;
6152
6165
  private _isHuePointerDown;
6153
- constructor(props: IColorPickerProps);
6154
- shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
6166
+ constructor(props: IColorPickerComponentProps);
6167
+ shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerState): boolean;
6155
6168
  onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
6156
6169
  onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
6157
6170
  onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
@@ -6178,7 +6191,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6178
6191
  onChange: (value: string) => void;
6179
6192
  lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
6180
6193
  }
6181
- export class HexColor extends React.Component<IHexColorProps, {
6194
+ export class HexColorComponent extends React.Component<IHexColorProps, {
6182
6195
  hex: string;
6183
6196
  }> {
6184
6197
  constructor(props: IHexColorProps);
@@ -6690,7 +6703,7 @@ declare module BABYLON {
6690
6703
 
6691
6704
  }
6692
6705
  declare module BABYLON.GuiEditor.SharedUIComponents {
6693
- export interface IColorPickerComponentProps {
6706
+ export interface IColorPickerLineComponentProps {
6694
6707
  value: Color4 | Color3;
6695
6708
  linearHint?: boolean;
6696
6709
  onColorChanged: (newOne: string) => void;
@@ -6705,14 +6718,14 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6705
6718
  color: Color3 | Color4;
6706
6719
  hex: string;
6707
6720
  }
6708
- export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
6721
+ export class ColorPickerLineComponent extends React.Component<IColorPickerLineComponentProps, IColorPickerComponentState> {
6709
6722
  private _floatRef;
6710
6723
  private _floatHostRef;
6711
6724
  private _coverRef;
6712
- constructor(props: IColorPickerComponentProps);
6725
+ constructor(props: IColorPickerLineComponentProps);
6713
6726
  syncPositions(): void;
6714
- shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
6715
- getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
6727
+ shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
6728
+ getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
6716
6729
  children?: React.ReactNode;
6717
6730
  }>): string;
6718
6731
  componentDidUpdate(): void;
@@ -6996,7 +7009,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6996
7009
  highlighted?: boolean;
6997
7010
  parentContainerId: string;
6998
7011
  }
6999
- export var GraphNode: React.FC<IGraphNodeProps>;
7012
+ export var SingleGraphNode: React.FC<IGraphNodeProps>;
7000
7013
 
7001
7014
 
7002
7015
 
@@ -7143,6 +7156,19 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7143
7156
 
7144
7157
 
7145
7158
 
7159
+ }
7160
+ declare module BABYLON {
7161
+
7162
+ }
7163
+ declare module BABYLON.GuiEditor.SharedUIComponents {
7164
+ export function copyCommandToClipboard(strCommand: string): void;
7165
+ export function getClassNameWithNamespace(obj: any): {
7166
+ className: string;
7167
+ babylonNamespace: string;
7168
+ };
7169
+
7170
+
7171
+
7146
7172
  }
7147
7173
  declare module BABYLON {
7148
7174
 
@@ -7215,6 +7241,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7215
7241
  isConflict: boolean;
7216
7242
  }): boolean;
7217
7243
  onChange(): void;
7244
+ onCopyClick(): void;
7218
7245
  render(): import("react/jsx-runtime").JSX.Element;
7219
7246
  }
7220
7247
 
@@ -7269,7 +7296,7 @@ declare module BABYLON {
7269
7296
 
7270
7297
  }
7271
7298
  declare module BABYLON.GuiEditor.SharedUIComponents {
7272
- export interface IColorLineComponentProps {
7299
+ export interface IColorLineProps {
7273
7300
  label: string;
7274
7301
  target?: any;
7275
7302
  propertyName: string;
@@ -7285,10 +7312,10 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7285
7312
  isExpanded: boolean;
7286
7313
  color: Color4;
7287
7314
  }
7288
- export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
7289
- constructor(props: IColorLineComponentProps);
7290
- shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
7291
- getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
7315
+ export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
7316
+ constructor(props: IColorLineProps);
7317
+ shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
7318
+ getValue(props?: Readonly<IColorLineProps> & Readonly<{
7292
7319
  children?: React.ReactNode;
7293
7320
  }>): Color4;
7294
7321
  setColorFromString(colorString: string): void;
@@ -7298,9 +7325,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7298
7325
  updateStateG(value: number): void;
7299
7326
  updateStateB(value: number): void;
7300
7327
  updateStateA(value: number): void;
7301
- copyToClipboard(): void;
7302
7328
  private _convertToColor;
7303
7329
  private _toColor3;
7330
+ onCopyClick(): void;
7304
7331
  render(): import("react/jsx-runtime").JSX.Element;
7305
7332
  }
7306
7333
 
@@ -7311,7 +7338,7 @@ declare module BABYLON {
7311
7338
 
7312
7339
  }
7313
7340
  declare module BABYLON.GuiEditor.SharedUIComponents {
7314
- export interface IColorPickerComponentProps {
7341
+ export interface IColorPickerLineProps {
7315
7342
  value: Color4 | Color3;
7316
7343
  linearHint?: boolean;
7317
7344
  onColorChanged: (newOne: string) => void;
@@ -7325,13 +7352,13 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7325
7352
  color: Color3 | Color4;
7326
7353
  hex: string;
7327
7354
  }
7328
- export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
7355
+ export class ColorPickerLine extends React.Component<IColorPickerLineProps, IColorPickerComponentState> {
7329
7356
  private _floatRef;
7330
7357
  private _floatHostRef;
7331
- constructor(props: IColorPickerComponentProps);
7358
+ constructor(props: IColorPickerLineProps);
7332
7359
  syncPositions(): void;
7333
- shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
7334
- getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
7360
+ shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
7361
+ getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
7335
7362
  children?: React.ReactNode;
7336
7363
  }>): string;
7337
7364
  componentDidUpdate(): void;
@@ -7362,18 +7389,18 @@ declare module BABYLON {
7362
7389
 
7363
7390
  }
7364
7391
  declare module BABYLON.GuiEditor.SharedUIComponents {
7365
- interface IFileButtonLineComponentProps {
7392
+ interface IFileButtonLineProps {
7366
7393
  label: string;
7367
7394
  onClick: (file: File) => void;
7368
7395
  accept: string;
7369
7396
  icon?: string;
7370
7397
  iconLabel?: string;
7371
7398
  }
7372
- export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
7399
+ export class FileButtonLine extends React.Component<IFileButtonLineProps> {
7373
7400
  private static _IDGenerator;
7374
7401
  private _id;
7375
7402
  private _uploadInputRef;
7376
- constructor(props: IFileButtonLineComponentProps);
7403
+ constructor(props: IFileButtonLineProps);
7377
7404
  onChange(evt: any): void;
7378
7405
  render(): import("react/jsx-runtime").JSX.Element;
7379
7406
  }
@@ -7452,6 +7479,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7452
7479
  unlock(): void;
7453
7480
  incrementValue(amount: number, processStep?: boolean): void;
7454
7481
  onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
7482
+ onCopyClick(): void;
7455
7483
  render(): import("react/jsx-runtime").JSX.Element;
7456
7484
  }
7457
7485
 
@@ -7690,7 +7718,7 @@ declare module BABYLON {
7690
7718
 
7691
7719
  }
7692
7720
  declare module BABYLON.GuiEditor.SharedUIComponents {
7693
- interface INumericInputComponentProps {
7721
+ interface INumericInputProps {
7694
7722
  label: string;
7695
7723
  value: number;
7696
7724
  step?: number;
@@ -7700,16 +7728,16 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7700
7728
  iconLabel?: string;
7701
7729
  lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
7702
7730
  }
7703
- export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
7731
+ export class NumericInput extends React.Component<INumericInputProps, {
7704
7732
  value: string;
7705
7733
  }> {
7706
7734
  static defaultProps: {
7707
7735
  step: number;
7708
7736
  };
7709
7737
  private _localChange;
7710
- constructor(props: INumericInputComponentProps);
7738
+ constructor(props: INumericInputProps);
7711
7739
  componentWillUnmount(): void;
7712
- shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
7740
+ shouldComponentUpdate(nextProps: INumericInputProps, nextState: {
7713
7741
  value: string;
7714
7742
  }): boolean;
7715
7743
  updateValue(valueString: string): void;
@@ -7727,7 +7755,7 @@ declare module BABYLON {
7727
7755
  }
7728
7756
  declare module BABYLON.GuiEditor.SharedUIComponents {
7729
7757
  export var Null_Value: number;
7730
- export interface IOptionsLineComponentProps {
7758
+ export interface IOptionsLineProps {
7731
7759
  label: string;
7732
7760
  target: any;
7733
7761
  propertyName: string;
@@ -7743,20 +7771,21 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7743
7771
  valuesAreStrings?: boolean;
7744
7772
  defaultIfNull?: number;
7745
7773
  }
7746
- export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
7774
+ export class OptionsLine extends React.Component<IOptionsLineProps, {
7747
7775
  value: number | string;
7748
7776
  }> {
7749
7777
  private _localChange;
7750
7778
  private _remapValueIn;
7751
7779
  private _remapValueOut;
7752
7780
  private _getValue;
7753
- constructor(props: IOptionsLineComponentProps);
7754
- shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
7781
+ constructor(props: IOptionsLineProps);
7782
+ shouldComponentUpdate(nextProps: IOptionsLineProps, nextState: {
7755
7783
  value: number;
7756
7784
  }): boolean;
7757
7785
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
7758
7786
  setValue(value: string | number): void;
7759
7787
  updateValue(valueString: string): void;
7788
+ onCopyClick(): void;
7760
7789
  render(): import("react/jsx-runtime").JSX.Element;
7761
7790
  }
7762
7791
 
@@ -7835,6 +7864,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7835
7864
  onChange(newValueString: any): void;
7836
7865
  onInput(newValueString: any): void;
7837
7866
  prepareDataToRead(value: number): number;
7867
+ onCopyClick(): void;
7838
7868
  render(): import("react/jsx-runtime").JSX.Element;
7839
7869
  }
7840
7870
 
@@ -8049,6 +8079,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
8049
8079
  updateStateX(value: number): void;
8050
8080
  updateStateY(value: number): void;
8051
8081
  updateStateZ(value: number): void;
8082
+ onCopyClick(): void;
8052
8083
  render(): import("react/jsx-runtime").JSX.Element;
8053
8084
  }
8054
8085
 
@@ -8917,9 +8948,9 @@ declare module BABYLON {
8917
8948
  }
8918
8949
  declare module BABYLON.GuiEditor.SharedUIComponents {
8919
8950
  var _default: {
8920
- component: typeof BABYLON.GuiEditor.SharedUIComponents.ColorPicker;
8951
+ component: typeof BABYLON.GuiEditor.SharedUIComponents.ColorPickerComponent;
8921
8952
  };
8922
- export var Default: StoryObj<typeof BABYLON.GuiEditor.SharedUIComponents.ColorPicker>;
8953
+ export var Default: StoryObj<typeof BABYLON.GuiEditor.SharedUIComponents.ColorPickerComponent>;
8923
8954
 
8924
8955
 
8925
8956
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui-editor",
3
- "version": "7.5.0",
3
+ "version": "7.6.1",
4
4
  "main": "babylon.guiEditor.max.js",
5
5
  "types": "babylon.guiEditor.module.d.ts",
6
6
  "files": [
@@ -14,8 +14,8 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.5.0",
18
- "babylonjs-gui": "^7.5.0"
17
+ "babylonjs": "^7.6.1",
18
+ "babylonjs-gui": "^7.6.1"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",