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.
@@ -1385,7 +1385,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1385
1385
  disabled?: boolean;
1386
1386
  lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
1387
1387
  }
1388
- export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
1388
+ export class ColorComponentComponentEntry extends React.Component<IColorComponentEntryProps> {
1389
1389
  constructor(props: IColorComponentEntryProps);
1390
1390
  updateValue(valueString: string): void;
1391
1391
  lock(): void;
@@ -1403,7 +1403,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1403
1403
  /**
1404
1404
  * Interface used to specify creation options for color picker
1405
1405
  */
1406
- export interface IColorPickerProps {
1406
+ export interface IColorPickerComponentProps {
1407
1407
  color: Color3 | Color4;
1408
1408
  linearhint?: boolean;
1409
1409
  debugMode?: boolean;
@@ -1421,13 +1421,13 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1421
1421
  /**
1422
1422
  * Class used to create a color picker
1423
1423
  */
1424
- export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
1424
+ export class ColorPickerComponent extends React.Component<IColorPickerComponentProps, IColorPickerState> {
1425
1425
  private _saturationRef;
1426
1426
  private _hueRef;
1427
1427
  private _isSaturationPointerDown;
1428
1428
  private _isHuePointerDown;
1429
- constructor(props: IColorPickerProps);
1430
- shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
1429
+ constructor(props: IColorPickerComponentProps);
1430
+ shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerState): boolean;
1431
1431
  onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
1432
1432
  onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
1433
1433
  onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
@@ -1454,7 +1454,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1454
1454
  onChange: (value: string) => void;
1455
1455
  lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
1456
1456
  }
1457
- export class HexColor extends React.Component<IHexColorProps, {
1457
+ export class HexColorComponent extends React.Component<IHexColorProps, {
1458
1458
  hex: string;
1459
1459
  }> {
1460
1460
  constructor(props: IHexColorProps);
@@ -1966,7 +1966,7 @@ declare module BABYLON {
1966
1966
 
1967
1967
  }
1968
1968
  declare module BABYLON.GuiEditor.SharedUIComponents {
1969
- export interface IColorPickerComponentProps {
1969
+ export interface IColorPickerLineComponentProps {
1970
1970
  value: Color4 | Color3;
1971
1971
  linearHint?: boolean;
1972
1972
  onColorChanged: (newOne: string) => void;
@@ -1981,14 +1981,14 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1981
1981
  color: Color3 | Color4;
1982
1982
  hex: string;
1983
1983
  }
1984
- export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
1984
+ export class ColorPickerLineComponent extends React.Component<IColorPickerLineComponentProps, IColorPickerComponentState> {
1985
1985
  private _floatRef;
1986
1986
  private _floatHostRef;
1987
1987
  private _coverRef;
1988
- constructor(props: IColorPickerComponentProps);
1988
+ constructor(props: IColorPickerLineComponentProps);
1989
1989
  syncPositions(): void;
1990
- shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
1991
- getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
1990
+ shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
1991
+ getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
1992
1992
  children?: React.ReactNode;
1993
1993
  }>): string;
1994
1994
  componentDidUpdate(): void;
@@ -2272,7 +2272,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2272
2272
  highlighted?: boolean;
2273
2273
  parentContainerId: string;
2274
2274
  }
2275
- export var GraphNode: React.FC<IGraphNodeProps>;
2275
+ export var SingleGraphNode: React.FC<IGraphNodeProps>;
2276
2276
 
2277
2277
 
2278
2278
 
@@ -2419,6 +2419,19 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2419
2419
 
2420
2420
 
2421
2421
 
2422
+ }
2423
+ declare module BABYLON {
2424
+
2425
+ }
2426
+ declare module BABYLON.GuiEditor.SharedUIComponents {
2427
+ export function copyCommandToClipboard(strCommand: string): void;
2428
+ export function getClassNameWithNamespace(obj: any): {
2429
+ className: string;
2430
+ babylonNamespace: string;
2431
+ };
2432
+
2433
+
2434
+
2422
2435
  }
2423
2436
  declare module BABYLON {
2424
2437
 
@@ -2491,6 +2504,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2491
2504
  isConflict: boolean;
2492
2505
  }): boolean;
2493
2506
  onChange(): void;
2507
+ onCopyClick(): void;
2494
2508
  render(): import("react/jsx-runtime").JSX.Element;
2495
2509
  }
2496
2510
 
@@ -2545,7 +2559,7 @@ declare module BABYLON {
2545
2559
 
2546
2560
  }
2547
2561
  declare module BABYLON.GuiEditor.SharedUIComponents {
2548
- export interface IColorLineComponentProps {
2562
+ export interface IColorLineProps {
2549
2563
  label: string;
2550
2564
  target?: any;
2551
2565
  propertyName: string;
@@ -2561,10 +2575,10 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2561
2575
  isExpanded: boolean;
2562
2576
  color: Color4;
2563
2577
  }
2564
- export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
2565
- constructor(props: IColorLineComponentProps);
2566
- shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
2567
- getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
2578
+ export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
2579
+ constructor(props: IColorLineProps);
2580
+ shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
2581
+ getValue(props?: Readonly<IColorLineProps> & Readonly<{
2568
2582
  children?: React.ReactNode;
2569
2583
  }>): Color4;
2570
2584
  setColorFromString(colorString: string): void;
@@ -2574,9 +2588,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2574
2588
  updateStateG(value: number): void;
2575
2589
  updateStateB(value: number): void;
2576
2590
  updateStateA(value: number): void;
2577
- copyToClipboard(): void;
2578
2591
  private _convertToColor;
2579
2592
  private _toColor3;
2593
+ onCopyClick(): void;
2580
2594
  render(): import("react/jsx-runtime").JSX.Element;
2581
2595
  }
2582
2596
 
@@ -2587,7 +2601,7 @@ declare module BABYLON {
2587
2601
 
2588
2602
  }
2589
2603
  declare module BABYLON.GuiEditor.SharedUIComponents {
2590
- export interface IColorPickerComponentProps {
2604
+ export interface IColorPickerLineProps {
2591
2605
  value: Color4 | Color3;
2592
2606
  linearHint?: boolean;
2593
2607
  onColorChanged: (newOne: string) => void;
@@ -2601,13 +2615,13 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2601
2615
  color: Color3 | Color4;
2602
2616
  hex: string;
2603
2617
  }
2604
- export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
2618
+ export class ColorPickerLine extends React.Component<IColorPickerLineProps, IColorPickerComponentState> {
2605
2619
  private _floatRef;
2606
2620
  private _floatHostRef;
2607
- constructor(props: IColorPickerComponentProps);
2621
+ constructor(props: IColorPickerLineProps);
2608
2622
  syncPositions(): void;
2609
- shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
2610
- getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
2623
+ shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
2624
+ getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
2611
2625
  children?: React.ReactNode;
2612
2626
  }>): string;
2613
2627
  componentDidUpdate(): void;
@@ -2638,18 +2652,18 @@ declare module BABYLON {
2638
2652
 
2639
2653
  }
2640
2654
  declare module BABYLON.GuiEditor.SharedUIComponents {
2641
- interface IFileButtonLineComponentProps {
2655
+ interface IFileButtonLineProps {
2642
2656
  label: string;
2643
2657
  onClick: (file: File) => void;
2644
2658
  accept: string;
2645
2659
  icon?: string;
2646
2660
  iconLabel?: string;
2647
2661
  }
2648
- export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
2662
+ export class FileButtonLine extends React.Component<IFileButtonLineProps> {
2649
2663
  private static _IDGenerator;
2650
2664
  private _id;
2651
2665
  private _uploadInputRef;
2652
- constructor(props: IFileButtonLineComponentProps);
2666
+ constructor(props: IFileButtonLineProps);
2653
2667
  onChange(evt: any): void;
2654
2668
  render(): import("react/jsx-runtime").JSX.Element;
2655
2669
  }
@@ -2728,6 +2742,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2728
2742
  unlock(): void;
2729
2743
  incrementValue(amount: number, processStep?: boolean): void;
2730
2744
  onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
2745
+ onCopyClick(): void;
2731
2746
  render(): import("react/jsx-runtime").JSX.Element;
2732
2747
  }
2733
2748
 
@@ -2966,7 +2981,7 @@ declare module BABYLON {
2966
2981
 
2967
2982
  }
2968
2983
  declare module BABYLON.GuiEditor.SharedUIComponents {
2969
- interface INumericInputComponentProps {
2984
+ interface INumericInputProps {
2970
2985
  label: string;
2971
2986
  value: number;
2972
2987
  step?: number;
@@ -2976,16 +2991,16 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
2976
2991
  iconLabel?: string;
2977
2992
  lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
2978
2993
  }
2979
- export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
2994
+ export class NumericInput extends React.Component<INumericInputProps, {
2980
2995
  value: string;
2981
2996
  }> {
2982
2997
  static defaultProps: {
2983
2998
  step: number;
2984
2999
  };
2985
3000
  private _localChange;
2986
- constructor(props: INumericInputComponentProps);
3001
+ constructor(props: INumericInputProps);
2987
3002
  componentWillUnmount(): void;
2988
- shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
3003
+ shouldComponentUpdate(nextProps: INumericInputProps, nextState: {
2989
3004
  value: string;
2990
3005
  }): boolean;
2991
3006
  updateValue(valueString: string): void;
@@ -3003,7 +3018,7 @@ declare module BABYLON {
3003
3018
  }
3004
3019
  declare module BABYLON.GuiEditor.SharedUIComponents {
3005
3020
  export var Null_Value: number;
3006
- export interface IOptionsLineComponentProps {
3021
+ export interface IOptionsLineProps {
3007
3022
  label: string;
3008
3023
  target: any;
3009
3024
  propertyName: string;
@@ -3019,20 +3034,21 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3019
3034
  valuesAreStrings?: boolean;
3020
3035
  defaultIfNull?: number;
3021
3036
  }
3022
- export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
3037
+ export class OptionsLine extends React.Component<IOptionsLineProps, {
3023
3038
  value: number | string;
3024
3039
  }> {
3025
3040
  private _localChange;
3026
3041
  private _remapValueIn;
3027
3042
  private _remapValueOut;
3028
3043
  private _getValue;
3029
- constructor(props: IOptionsLineComponentProps);
3030
- shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
3044
+ constructor(props: IOptionsLineProps);
3045
+ shouldComponentUpdate(nextProps: IOptionsLineProps, nextState: {
3031
3046
  value: number;
3032
3047
  }): boolean;
3033
3048
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
3034
3049
  setValue(value: string | number): void;
3035
3050
  updateValue(valueString: string): void;
3051
+ onCopyClick(): void;
3036
3052
  render(): import("react/jsx-runtime").JSX.Element;
3037
3053
  }
3038
3054
 
@@ -3111,6 +3127,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3111
3127
  onChange(newValueString: any): void;
3112
3128
  onInput(newValueString: any): void;
3113
3129
  prepareDataToRead(value: number): number;
3130
+ onCopyClick(): void;
3114
3131
  render(): import("react/jsx-runtime").JSX.Element;
3115
3132
  }
3116
3133
 
@@ -3325,6 +3342,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3325
3342
  updateStateX(value: number): void;
3326
3343
  updateStateY(value: number): void;
3327
3344
  updateStateZ(value: number): void;
3345
+ onCopyClick(): void;
3328
3346
  render(): import("react/jsx-runtime").JSX.Element;
3329
3347
  }
3330
3348
 
@@ -4193,9 +4211,9 @@ declare module BABYLON {
4193
4211
  }
4194
4212
  declare module BABYLON.GuiEditor.SharedUIComponents {
4195
4213
  var _default: {
4196
- component: typeof BABYLON.GuiEditor.SharedUIComponents.ColorPicker;
4214
+ component: typeof BABYLON.GuiEditor.SharedUIComponents.ColorPickerComponent;
4197
4215
  };
4198
- export var Default: StoryObj<typeof BABYLON.GuiEditor.SharedUIComponents.ColorPicker>;
4216
+ export var Default: StoryObj<typeof BABYLON.GuiEditor.SharedUIComponents.ColorPickerComponent>;
4199
4217
 
4200
4218
 
4201
4219