@babylonjs/node-geometry-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.
@@ -2539,7 +2539,9 @@ export class Vector3LineComponent extends React.Component<IVector3LineComponentP
2539
2539
  updateStateX(value: number): void;
2540
2540
  updateStateY(value: number): void;
2541
2541
  updateStateZ(value: number): void;
2542
- onCopyClick(): void;
2542
+ onCopyClick(): string;
2543
+
2544
+
2543
2545
 
2544
2546
  }
2545
2547
  export {};
@@ -2656,6 +2658,9 @@ interface ITextLineComponentProps {
2656
2658
  export class TextLineComponent extends React.Component<ITextLineComponentProps> {
2657
2659
  constructor(props: ITextLineComponentProps);
2658
2660
  onLink(): void;
2661
+ copyFn(): (() => string) | undefined;
2662
+
2663
+
2659
2664
 
2660
2665
 
2661
2666
  }
@@ -2663,7 +2668,8 @@ export {};
2663
2668
 
2664
2669
  }
2665
2670
  declare module "@babylonjs/node-geometry-editor/lines/textInputLineComponent" {
2666
- import * as React from "react";
2671
+ import { ReactNode, KeyboardEvent } from "react";
2672
+ import { Component } from "react";
2667
2673
  import { Observable } from "@babylonjs/core/Misc/observable";
2668
2674
  import { PropertyChangedEvent } from "@babylonjs/node-geometry-editor/propertyChangedEvent";
2669
2675
  import { LockObject } from "@babylonjs/node-geometry-editor/tabs/propertyGrids/lockObject";
@@ -2688,14 +2694,14 @@ export interface ITextInputLineComponentProps {
2688
2694
  min?: number;
2689
2695
  max?: number;
2690
2696
  placeholder?: string;
2691
- unit?: React.ReactNode;
2697
+ unit?: ReactNode;
2692
2698
  validator?: (value: string) => boolean;
2693
2699
  multilines?: boolean;
2694
2700
  throttlePropertyChangedNotification?: boolean;
2695
2701
  throttlePropertyChangedNotificationDelay?: number;
2696
2702
  disabled?: boolean;
2697
2703
  }
2698
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
2704
+ export class TextInputLineComponent extends Component<ITextInputLineComponentProps, {
2699
2705
  value: string;
2700
2706
  dragging: boolean;
2701
2707
  }> {
@@ -2710,7 +2716,9 @@ export class TextInputLineComponent extends React.Component<ITextInputLineCompon
2710
2716
  getCurrentNumericValue(value: string): number;
2711
2717
  updateValue(value: string, valueToValidate?: string): void;
2712
2718
  incrementValue(amount: number): void;
2713
- onKeyDown(event: React.KeyboardEvent): void;
2719
+ onKeyDown(event: KeyboardEvent): void;
2720
+
2721
+
2714
2722
 
2715
2723
  }
2716
2724
 
@@ -2767,6 +2775,8 @@ export class SliderLineComponent extends React.Component<ISliderLineComponentPro
2767
2775
  prepareDataToRead(value: number): number;
2768
2776
  onCopyClick(): void;
2769
2777
 
2778
+
2779
+
2770
2780
  }
2771
2781
  export {};
2772
2782
 
@@ -2831,7 +2841,9 @@ export class OptionsLine extends React.Component<IOptionsLineProps, {
2831
2841
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
2832
2842
  setValue(value: string | number): void;
2833
2843
  updateValue(valueString: string): void;
2834
- onCopyClick(): void;
2844
+ onCopyClickStr(): string;
2845
+ private _renderFluent;
2846
+ private _renderOriginal;
2835
2847
 
2836
2848
  }
2837
2849
 
@@ -3192,6 +3204,8 @@ export class FileButtonLine extends React.Component<IFileButtonLineProps> {
3192
3204
  constructor(props: IFileButtonLineProps);
3193
3205
  onChange(evt: any): void;
3194
3206
 
3207
+
3208
+
3195
3209
  }
3196
3210
  export {};
3197
3211
 
@@ -3295,6 +3309,8 @@ export class ColorLine extends React.Component<IColorLineProps, IColorLineCompon
3295
3309
  private _toColor3;
3296
3310
  onCopyClick(): void;
3297
3311
 
3312
+
3313
+
3298
3314
  }
3299
3315
  export {};
3300
3316
 
@@ -3378,6 +3394,8 @@ export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponen
3378
3394
  onChange(): void;
3379
3395
  onCopyClick(): void;
3380
3396
 
3397
+
3398
+
3381
3399
  }
3382
3400
 
3383
3401
  }
@@ -3393,6 +3411,8 @@ export interface IButtonLineComponentProps {
3393
3411
  export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
3394
3412
  constructor(props: IButtonLineComponentProps);
3395
3413
 
3414
+
3415
+
3396
3416
  }
3397
3417
 
3398
3418
  }
@@ -3409,6 +3429,432 @@ export class BooleanLineComponent extends React.Component<IBooleanLineComponentP
3409
3429
 
3410
3430
  }
3411
3431
 
3432
+ }
3433
+ declare module "@babylonjs/node-geometry-editor/fluent/primitives/textarea" {
3434
+
3435
+ import { FunctionComponent } from "react";
3436
+ import { BaseComponentProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3437
+ export type TextareaProps = BaseComponentProps<string> & {
3438
+ placeholder?: string;
3439
+ };
3440
+ /**
3441
+ * This is a texarea box that stops propagation of change/keydown events
3442
+ * @param props
3443
+ * @returns
3444
+ */
3445
+ export const Textarea: FunctionComponent<any>;
3446
+
3447
+ }
3448
+ declare module "@babylonjs/node-geometry-editor/fluent/primitives/syncedSlider" {
3449
+ import { FunctionComponent } from "react";
3450
+ import { BaseComponentProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3451
+ export type SyncedSliderProps = BaseComponentProps<number> & {
3452
+ min?: number;
3453
+ max?: number;
3454
+ step?: number;
3455
+ };
3456
+ /**
3457
+ * Component which synchronizes a slider and an input field, allowing the user to change a value using either control
3458
+ * @param props
3459
+ * @returns SyncedSlider component
3460
+ */
3461
+ export const SyncedSliderInput: FunctionComponent<SyncedSliderProps>;
3462
+
3463
+ }
3464
+ declare module "@babylonjs/node-geometry-editor/fluent/primitives/switch" {
3465
+ import { FunctionComponent } from "react";
3466
+ import { BaseComponentProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3467
+ export type SwitchProps = BaseComponentProps<boolean>;
3468
+ /**
3469
+ * This is a primitive fluent boolean switch component whose only knowledge is the shared styling across all tools
3470
+ * @param props
3471
+ * @returns Switch component
3472
+ */
3473
+ export const Switch: FunctionComponent<SwitchProps>;
3474
+
3475
+ }
3476
+ declare module "@babylonjs/node-geometry-editor/fluent/primitives/spinButton" {
3477
+ import { FunctionComponent } from "react";
3478
+ import { BaseComponentProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3479
+ export type SpinButtonProps = BaseComponentProps<number>;
3480
+ export const SpinButton: FunctionComponent<SpinButtonProps>;
3481
+
3482
+ }
3483
+ declare module "@babylonjs/node-geometry-editor/fluent/primitives/link" {
3484
+
3485
+
3486
+ }
3487
+ declare module "@babylonjs/node-geometry-editor/fluent/primitives/input" {
3488
+ import { FunctionComponent } from "react";
3489
+ import { BaseComponentProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3490
+ export type InputProps<T extends string | number> = BaseComponentProps<T> & {
3491
+ step?: number;
3492
+ placeholder?: string;
3493
+ min?: number;
3494
+ max?: number;
3495
+ };
3496
+ /**
3497
+ * 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)
3498
+ * @param props
3499
+ * @returns
3500
+ */
3501
+ export const Input: FunctionComponent<InputProps<string | number>>;
3502
+
3503
+ }
3504
+ declare module "@babylonjs/node-geometry-editor/fluent/primitives/dropdown" {
3505
+ import { FunctionComponent } from "react";
3506
+ import { BaseComponentProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3507
+ export type AcceptedDropdownValue = string | number;
3508
+ export type DropdownOption = {
3509
+ /**
3510
+ * Defines the visible part of the option
3511
+ */
3512
+ label: string;
3513
+ /**
3514
+ * Defines the value part of the option
3515
+ */
3516
+ value: AcceptedDropdownValue;
3517
+ };
3518
+ export type DropdownProps = BaseComponentProps<AcceptedDropdownValue | undefined> & {
3519
+ options: DropdownOption[];
3520
+ includeUndefined?: boolean;
3521
+ };
3522
+ /**
3523
+ * Renders a fluent UI dropdown component for the options passed in, and an additional 'Not Defined' option if includeUndefined is set to true
3524
+ * @param props
3525
+ * @returns dropdown component
3526
+ */
3527
+ export const Dropdown: FunctionComponent<DropdownProps>;
3528
+
3529
+ }
3530
+ declare module "@babylonjs/node-geometry-editor/fluent/primitives/colorPicker" {
3531
+ import { FunctionComponent } from "react";
3532
+ import { Color3, Color4 } from "@babylonjs/core/Maths/math.color";
3533
+ import { BaseComponentProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3534
+ export type ColorPickerProps<C extends Color3 | Color4> = {
3535
+ isLinearMode?: boolean;
3536
+ } & BaseComponentProps<C>;
3537
+ export const ColorPickerPopup: FunctionComponent<ColorPickerProps<Color3 | Color4>>;
3538
+ type HsvKey = "h" | "s" | "v";
3539
+ export type InputHexProps = BaseComponentProps<Color3 | Color4> & {
3540
+ label?: string;
3541
+ linearHex?: boolean;
3542
+ isLinearMode?: boolean;
3543
+ };
3544
+ /**
3545
+ * Component which displays the passed in color's HEX value, either in linearSpace (if linearHex is true) or in gamma space
3546
+ * When the hex color is changed by user, component calculates the new Color3/4 value and calls onChange
3547
+ *
3548
+ * Component uses the isLinearMode boolean to display an informative label regarding linear / gamma space
3549
+ * @param props - The properties for the InputHexField component.
3550
+ * @returns
3551
+ */
3552
+ export const InputHexField: FunctionComponent<InputHexProps>;
3553
+ type InputHsvFieldProps = {
3554
+ color: Color3 | Color4;
3555
+ label: string;
3556
+ hsvKey: HsvKey;
3557
+ onChange: (color: Color3 | Color4) => void;
3558
+ max: number;
3559
+ scale?: number;
3560
+ };
3561
+ /**
3562
+ * 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.
3563
+ * 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.
3564
+ * Value (V) ranges from 0 to 100%, representing the brightness of the color, with 0 being black and 100 being the brightest.
3565
+ * @param props - The properties for the InputHsvField component.
3566
+ */
3567
+ export const InputHsvField: FunctionComponent<InputHsvFieldProps>;
3568
+ export {};
3569
+
3570
+ }
3571
+ declare module "@babylonjs/node-geometry-editor/fluent/primitives/checkbox" {
3572
+ import { FunctionComponent } from "react";
3573
+ import { BaseComponentProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3574
+ export type CheckboxProps = BaseComponentProps<boolean>;
3575
+ /**
3576
+ * This is a primitive fluent checkbox that can both read and write checked state
3577
+ * @param props
3578
+ * @returns Checkbox component
3579
+ */
3580
+ export const Checkbox: FunctionComponent<CheckboxProps>;
3581
+
3582
+ }
3583
+ declare module "@babylonjs/node-geometry-editor/fluent/primitives/accordion" {
3584
+ import { FunctionComponent, PropsWithChildren } from "react";
3585
+ export type AccordionSectionProps = {
3586
+ title: string;
3587
+ };
3588
+ export const AccordionSection: FunctionComponent<PropsWithChildren<AccordionSectionProps>>;
3589
+ export const Accordion: FunctionComponent<PropsWithChildren>;
3590
+
3591
+ }
3592
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/vectorPropertyLine" {
3593
+ import { FunctionComponent } from "react";
3594
+ import { BaseComponentProps, PropertyLineProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3595
+ import { Vector4 } from "@babylonjs/core/Maths/math.vector";
3596
+ import { Vector3 } from "@babylonjs/core/Maths/math.vector";
3597
+ export type VectorPropertyLineProps<V extends Vector3 | Vector4> = BaseComponentProps<V> & PropertyLineProps & {
3598
+ /**
3599
+ * If passed, all sliders will use this for the min value
3600
+ */
3601
+ min?: number;
3602
+ /**
3603
+ * If passed, all sliders will use this for the max value
3604
+ */
3605
+ max?: number;
3606
+ /**
3607
+ * If passed, the UX will use the conversion functions to display/update values
3608
+ */
3609
+ valueConverter?: {
3610
+ /**
3611
+ * Will call from(val) before displaying in the UX
3612
+ */
3613
+ from: (val: number) => number;
3614
+ /**
3615
+ * Will call to(val) before calling onChange
3616
+ */
3617
+ to: (val: number) => number;
3618
+ };
3619
+ };
3620
+ type RotationVectorPropertyLineProps = VectorPropertyLineProps<Vector3> & {
3621
+ /**
3622
+ * Display angles as degrees instead of radians
3623
+ */
3624
+ useDegrees?: boolean;
3625
+ };
3626
+ export const RotationVectorPropertyLine: FunctionComponent<RotationVectorPropertyLineProps>;
3627
+ export const Vector3PropertyLine: FunctionComponent<VectorPropertyLineProps<Vector3>>;
3628
+ export const Vector4PropertyLine: FunctionComponent<VectorPropertyLineProps<Vector4>>;
3629
+ export {};
3630
+
3631
+ }
3632
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/textPropertyLine" {
3633
+ import { PropertyLineProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3634
+ import { FunctionComponent } from "react";
3635
+ type TextProps = {
3636
+ value: string;
3637
+ tooltip?: string;
3638
+ };
3639
+ /**
3640
+ * Wraps text in a property line
3641
+ * @param props - PropertyLineProps and TextProps
3642
+ * @returns property-line wrapped text
3643
+ */
3644
+ export const TextPropertyLine: FunctionComponent<PropertyLineProps & TextProps>;
3645
+ export {};
3646
+
3647
+ }
3648
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/syncedSliderLine" {
3649
+ import { PropertyLineProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3650
+ import { SyncedSliderProps } from "@babylonjs/node-geometry-editor/fluent/primitives/syncedSlider";
3651
+ import { FunctionComponent } from "react";
3652
+ type SyncedSliderLineProps = SyncedSliderProps & PropertyLineProps;
3653
+ /**
3654
+ * Renders a simple wrapper around the SyncedSliderInput
3655
+ * @param props
3656
+ * @returns
3657
+ */
3658
+ export const SyncedSliderLine: FunctionComponent<SyncedSliderLineProps>;
3659
+ export {};
3660
+
3661
+ }
3662
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/switchPropertyLine" {
3663
+ import { PropertyLineProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3664
+ import { FunctionComponent } from "react";
3665
+ import { SwitchProps } from "@babylonjs/node-geometry-editor/fluent/primitives/switch";
3666
+ /**
3667
+ * Wraps a switch in a property line
3668
+ * @param props - The properties for the switch and property line
3669
+ * @returns A React element representing the property line with a switch
3670
+ */
3671
+ export const SwitchPropertyLine: FunctionComponent<PropertyLineProps & SwitchProps>;
3672
+
3673
+ }
3674
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine" {
3675
+ import { FunctionComponent } from "react";
3676
+ export type PropertyLineProps = {
3677
+ /**
3678
+ * The name of the property to display in the property line.
3679
+ */
3680
+ label: string;
3681
+ /**
3682
+ * Optional description for the property, shown on hover of the info icon
3683
+ */
3684
+ description?: string;
3685
+ /**
3686
+ * Optional function returning a string to copy to clipboard.
3687
+ */
3688
+ onCopy?: () => string;
3689
+ /**
3690
+ * If supplied, an 'expand' icon will be shown which, when clicked, renders this component within the property line.
3691
+ */
3692
+ expandedContent?: JSX.Element;
3693
+ /**
3694
+ * Link to the documentation for this property, available from the info icon either linked from the description (if provided) or defalt 'docs' text
3695
+ */
3696
+ docLink?: string;
3697
+ };
3698
+ export const LineContainer: import("react").ForwardRefExoticComponent<{
3699
+ children?: import("react").ReactNode | undefined;
3700
+ } & import("react").RefAttributes<HTMLDivElement>>;
3701
+ export type BaseComponentProps<T> = {
3702
+ /**
3703
+ * The value of the property to be displayed and modified.
3704
+ */
3705
+ value: T;
3706
+ /**
3707
+ * Callback function to handle changes to the value
3708
+ */
3709
+ onChange: (value: T) => void;
3710
+ /**
3711
+ * Optional flag to disable the component, preventing any interaction.
3712
+ */
3713
+ disabled?: boolean;
3714
+ /**
3715
+ * Optional class name to apply custom styles to the component.
3716
+ */
3717
+ className?: string;
3718
+ };
3719
+ /**
3720
+ * A reusable component that renders a property line with a label and child content, and an optional description, copy button, and expandable section.
3721
+ *
3722
+ * @param props - The properties for the PropertyLine component.
3723
+ * @returns A React element representing the property line.
3724
+ *
3725
+ */
3726
+ export const PropertyLine: import("react").ForwardRefExoticComponent<PropertyLineProps & {
3727
+ children?: import("react").ReactNode | undefined;
3728
+ } & import("react").RefAttributes<HTMLDivElement>>;
3729
+ export const PlaceholderPropertyLine: FunctionComponent<BaseComponentProps<any> & PropertyLineProps>;
3730
+
3731
+ }
3732
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/linkPropertyLine" {
3733
+ import { PropertyLineProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3734
+ import { FunctionComponent } from "react";
3735
+ type LinkProps = {
3736
+ value: string;
3737
+ tooltip?: string;
3738
+ onLink?: () => void;
3739
+ url?: string;
3740
+ };
3741
+ /**
3742
+ * Wraps a link in a property line
3743
+ * @param props - PropertyLineProps and LinkProps
3744
+ * @returns property-line wrapped link
3745
+ */
3746
+ export const LinkPropertyLine: FunctionComponent<PropertyLineProps & LinkProps>;
3747
+ export {};
3748
+
3749
+ }
3750
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/inputPropertyLine" {
3751
+ import { PropertyLineProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3752
+ import { FunctionComponent } from "react";
3753
+ import { InputProps } from "@babylonjs/node-geometry-editor/fluent/primitives/input";
3754
+ export const TextInputPropertyLine: FunctionComponent<InputProps<string> & PropertyLineProps>;
3755
+ export const FloatInputPropertyLine: FunctionComponent<InputProps<number> & PropertyLineProps>;
3756
+
3757
+ }
3758
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/hexLineComponent" {
3759
+ import { PropertyLineProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3760
+ import { FunctionComponent } from "react";
3761
+ import { InputHexProps } from "@babylonjs/node-geometry-editor/fluent/primitives/colorPicker";
3762
+ /**
3763
+ * Wraps a hex input in a property line
3764
+ * @param props - PropertyLineProps and InputHexProps
3765
+ * @returns property-line wrapped input hex component
3766
+ */
3767
+ export const HexPropertyLine: FunctionComponent<InputHexProps & PropertyLineProps>;
3768
+
3769
+ }
3770
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/fluentToolWrapper" {
3771
+ import { PropsWithChildren, FunctionComponent } from "react";
3772
+
3773
+ export type ToolHostProps = {
3774
+ /**
3775
+ * Allows host to pass in a theme
3776
+ */
3777
+ customTheme?: any;
3778
+ /**
3779
+ * Can be set to true to disable the copy button in the tool's property lines. Default is false (copy enabled)
3780
+ */
3781
+ disableCopy?: boolean;
3782
+ };
3783
+ export const ToolContext: import("react").Context<{
3784
+ readonly useFluent: boolean;
3785
+ readonly disableCopy: boolean;
3786
+ }>;
3787
+ /**
3788
+ * 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
3789
+ * Today we will only enable fluent if the URL has the `newUX` query parameter is truthy
3790
+ * @param props
3791
+ * @returns
3792
+ */
3793
+ export const FluentToolWrapper: FunctionComponent<PropsWithChildren<ToolHostProps>>;
3794
+
3795
+ }
3796
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/fileUploadLine" {
3797
+ import { FunctionComponent } from "react";
3798
+ import { ButtonLineProps } from "@babylonjs/node-geometry-editor/fluent/hoc/buttonLine";
3799
+ type FileUploadLineProps = Omit<ButtonLineProps, "onClick"> & {
3800
+ onClick: (file: File) => void;
3801
+ accept: string;
3802
+ };
3803
+ export const FileUploadLine: FunctionComponent<FileUploadLineProps>;
3804
+ export {};
3805
+
3806
+ }
3807
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/dropdownPropertyLine" {
3808
+ import { DropdownProps } from "@babylonjs/node-geometry-editor/fluent/primitives/dropdown";
3809
+ import { PropertyLineProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3810
+ import { FunctionComponent } from "react";
3811
+ /**
3812
+ * Wraps a dropdown in a property line
3813
+ * @param props - PropertyLineProps and DropdownProps
3814
+ * @returns property-line wrapped dropdown
3815
+ */
3816
+ export const DropdownPropertyLine: FunctionComponent<PropertyLineProps & DropdownProps>;
3817
+
3818
+ }
3819
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/colorPropertyLine" {
3820
+ import { FunctionComponent } from "react";
3821
+ import { PropertyLineProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3822
+ import { Color3 } from "@babylonjs/core/Maths/math.color";
3823
+ import { Color4 } from "@babylonjs/core/Maths/math.color";
3824
+ import { ColorPickerProps } from "@babylonjs/node-geometry-editor/fluent/primitives/colorPicker";
3825
+ export type ColorPropertyLineProps = ColorPickerProps<Color3 | Color4> & PropertyLineProps;
3826
+ export const Color3PropertyLine: FunctionComponent<ColorPickerProps<Color3> & PropertyLineProps>;
3827
+ export const Color4PropertyLine: FunctionComponent<ColorPickerProps<Color4> & PropertyLineProps>;
3828
+
3829
+ }
3830
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/checkboxPropertyLine" {
3831
+ import { PropertyLineProps } from "@babylonjs/node-geometry-editor/fluent/hoc/propertyLine";
3832
+ import { FunctionComponent } from "react";
3833
+ import { CheckboxProps } from "@babylonjs/node-geometry-editor/fluent/primitives/checkbox";
3834
+ /**
3835
+ * Wraps a checkbox in a property line
3836
+ * @param props - PropertyLineProps and CheckboxProps
3837
+ * @returns property-line wrapped checkbox
3838
+ */
3839
+ export const CheckboxPropertyLine: FunctionComponent<PropertyLineProps & CheckboxProps>;
3840
+
3841
+ }
3842
+ declare module "@babylonjs/node-geometry-editor/fluent/hoc/buttonLine" {
3843
+ import { FunctionComponent } from "react";
3844
+ export type ButtonLineProps = {
3845
+ label: string;
3846
+ onClick: () => void;
3847
+ disabled?: boolean;
3848
+ icon?: string;
3849
+ title?: string;
3850
+ };
3851
+ /**
3852
+ * Wraps a button with a label in a line container
3853
+ * @param props Button props plus a label
3854
+ * @returns A button inside a line
3855
+ */
3856
+ export const ButtonLine: FunctionComponent<ButtonLineProps>;
3857
+
3412
3858
  }
3413
3859
  declare module "@babylonjs/node-geometry-editor/components/classNames" {
3414
3860
  export function ClassNames(names: any, styleObject: any): string;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@babylonjs/node-geometry-editor",
3
- "version": "8.12.1",
4
- "main": "dist/babylon.nodeGeometryEditor.max.js",
5
- "module": "dist/babylon.nodeGeometryEditor.max.js",
6
- "esnext": "dist/babylon.nodeGeometryEditor.max.js",
3
+ "version": "8.13.1",
4
+ "main": "dist/babylon.nodeGeometryEditor.js",
5
+ "module": "dist/babylon.nodeGeometryEditor.js",
6
+ "esnext": "dist/babylon.nodeGeometryEditor.js",
7
7
  "typings": "dist/babylon.nodeGeometryEditor.module.d.ts",
8
8
  "files": [
9
9
  "dist/**/*.*",
@@ -11,7 +11,7 @@
11
11
  "license.md"
12
12
  ],
13
13
  "scripts": {
14
- "build": "npm run clean && npm run build:dev && npm run build:prod && npm run build:declaration",
14
+ "build": "npm run clean && npm run build:prod && npm run build:declaration",
15
15
  "build:dev": "webpack --env development",
16
16
  "build:prod": "webpack --env production",
17
17
  "build:declaration": "build-tools -c pud --config ./config.json",
@@ -23,7 +23,7 @@
23
23
  "@types/react-dom": ">=16.0.9"
24
24
  },
25
25
  "devDependencies": {
26
- "@babylonjs/core": "^8.12.1",
26
+ "@babylonjs/core": "^8.13.1",
27
27
  "react": "^18.2.0",
28
28
  "react-dom": "^18.2.0"
29
29
  },