babylonjs-node-render-graph-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.
- package/babylon.nodeRenderGraphEditor.d.ts +529 -3
- package/babylon.nodeRenderGraphEditor.js +1 -1
- package/babylon.nodeRenderGraphEditor.js.LICENSE.txt +15 -0
- package/babylon.nodeRenderGraphEditor.js.map +1 -1
- package/babylon.nodeRenderGraphEditor.max.js +3 -81072
- package/babylon.nodeRenderGraphEditor.module.d.ts +981 -9
- package/package.json +3 -3
- package/webpack.config.js +1 -0
|
@@ -2322,7 +2322,9 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
2322
2322
|
updateStateX(value: number): void;
|
|
2323
2323
|
updateStateY(value: number): void;
|
|
2324
2324
|
updateStateZ(value: number): void;
|
|
2325
|
-
onCopyClick():
|
|
2325
|
+
onCopyClick(): string;
|
|
2326
|
+
renderFluent(): import("react/jsx-runtime").JSX.Element;
|
|
2327
|
+
renderOriginal(): import("react/jsx-runtime").JSX.Element;
|
|
2326
2328
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
2327
2329
|
}
|
|
2328
2330
|
|
|
@@ -2454,7 +2456,10 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
2454
2456
|
export class TextLineComponent extends React.Component<ITextLineComponentProps> {
|
|
2455
2457
|
constructor(props: ITextLineComponentProps);
|
|
2456
2458
|
onLink(): void;
|
|
2457
|
-
|
|
2459
|
+
copyFn(): (() => string) | undefined;
|
|
2460
|
+
renderContent(isLink: boolean, tooltip: string): import("react/jsx-runtime").JSX.Element | null;
|
|
2461
|
+
renderOriginal(isLink: boolean, tooltip: string): import("react/jsx-runtime").JSX.Element;
|
|
2462
|
+
renderFluent(isLink: boolean, tooltip: string): import("react/jsx-runtime").JSX.Element;
|
|
2458
2463
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
2459
2464
|
}
|
|
2460
2465
|
|
|
@@ -2510,6 +2515,8 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
2510
2515
|
updateValue(value: string, valueToValidate?: string): void;
|
|
2511
2516
|
incrementValue(amount: number): void;
|
|
2512
2517
|
onKeyDown(event: React.KeyboardEvent): void;
|
|
2518
|
+
renderFluent(value: string, placeholder: string, step: number): import("react/jsx-runtime").JSX.Element;
|
|
2519
|
+
renderOriginal(value: string, placeholder: string, step: number): import("react/jsx-runtime").JSX.Element;
|
|
2513
2520
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
2514
2521
|
}
|
|
2515
2522
|
|
|
@@ -2571,6 +2578,8 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
2571
2578
|
onInput(newValueString: any): void;
|
|
2572
2579
|
prepareDataToRead(value: number): number;
|
|
2573
2580
|
onCopyClick(): void;
|
|
2581
|
+
renderFluent(): import("react/jsx-runtime").JSX.Element;
|
|
2582
|
+
renderOriginal(): import("react/jsx-runtime").JSX.Element;
|
|
2574
2583
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
2575
2584
|
}
|
|
2576
2585
|
|
|
@@ -2640,7 +2649,9 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
2640
2649
|
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
|
2641
2650
|
setValue(value: string | number): void;
|
|
2642
2651
|
updateValue(valueString: string): void;
|
|
2643
|
-
|
|
2652
|
+
onCopyClickStr(): string;
|
|
2653
|
+
private _renderFluent;
|
|
2654
|
+
private _renderOriginal;
|
|
2644
2655
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
2645
2656
|
}
|
|
2646
2657
|
|
|
@@ -3049,6 +3060,8 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
3049
3060
|
private _uploadInputRef;
|
|
3050
3061
|
constructor(props: IFileButtonLineProps);
|
|
3051
3062
|
onChange(evt: any): void;
|
|
3063
|
+
renderFluent(): import("react/jsx-runtime").JSX.Element;
|
|
3064
|
+
renderOriginal(): import("react/jsx-runtime").JSX.Element;
|
|
3052
3065
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
3053
3066
|
}
|
|
3054
3067
|
|
|
@@ -3164,6 +3177,8 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
3164
3177
|
private _convertToColor;
|
|
3165
3178
|
private _toColor3;
|
|
3166
3179
|
onCopyClick(): void;
|
|
3180
|
+
renderFluent(): import("react/jsx-runtime").JSX.Element;
|
|
3181
|
+
renderOriginal(): import("react/jsx-runtime").JSX.Element;
|
|
3167
3182
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
3168
3183
|
}
|
|
3169
3184
|
|
|
@@ -3252,6 +3267,8 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
3252
3267
|
}): boolean;
|
|
3253
3268
|
onChange(): void;
|
|
3254
3269
|
onCopyClick(): void;
|
|
3270
|
+
renderOriginal(): import("react/jsx-runtime").JSX.Element;
|
|
3271
|
+
renderFluent(): import("react/jsx-runtime").JSX.Element;
|
|
3255
3272
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
3256
3273
|
}
|
|
3257
3274
|
|
|
@@ -3272,6 +3289,8 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
3272
3289
|
}
|
|
3273
3290
|
export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
|
|
3274
3291
|
constructor(props: IButtonLineComponentProps);
|
|
3292
|
+
renderFluent(): import("react/jsx-runtime").JSX.Element;
|
|
3293
|
+
renderOriginal(): import("react/jsx-runtime").JSX.Element;
|
|
3275
3294
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
3276
3295
|
}
|
|
3277
3296
|
|
|
@@ -3296,6 +3315,513 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
3296
3315
|
|
|
3297
3316
|
|
|
3298
3317
|
|
|
3318
|
+
}
|
|
3319
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3320
|
+
|
|
3321
|
+
|
|
3322
|
+
}
|
|
3323
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3324
|
+
export type TextareaProps = BABYLON.NodeRenderGraphEditor.SharedUIComponents.BaseComponentProps<string> & {
|
|
3325
|
+
placeholder?: string;
|
|
3326
|
+
};
|
|
3327
|
+
/**
|
|
3328
|
+
* This is a texarea box that stops propagation of change/keydown events
|
|
3329
|
+
* @param props
|
|
3330
|
+
* @returns
|
|
3331
|
+
*/
|
|
3332
|
+
export var Textarea: React.FunctionComponent<any>;
|
|
3333
|
+
|
|
3334
|
+
|
|
3335
|
+
|
|
3336
|
+
}
|
|
3337
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3338
|
+
|
|
3339
|
+
|
|
3340
|
+
}
|
|
3341
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3342
|
+
export type SyncedSliderProps = BABYLON.NodeRenderGraphEditor.SharedUIComponents.BaseComponentProps<number> & {
|
|
3343
|
+
min?: number;
|
|
3344
|
+
max?: number;
|
|
3345
|
+
step?: number;
|
|
3346
|
+
};
|
|
3347
|
+
/**
|
|
3348
|
+
* Component which synchronizes a slider and an input field, allowing the user to change a value using either control
|
|
3349
|
+
* @param props
|
|
3350
|
+
* @returns SyncedSlider component
|
|
3351
|
+
*/
|
|
3352
|
+
export var SyncedSliderInput: React.FunctionComponent<SyncedSliderProps>;
|
|
3353
|
+
|
|
3354
|
+
|
|
3355
|
+
|
|
3356
|
+
}
|
|
3357
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3358
|
+
|
|
3359
|
+
|
|
3360
|
+
}
|
|
3361
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3362
|
+
export type SwitchProps = BABYLON.NodeRenderGraphEditor.SharedUIComponents.BaseComponentProps<boolean>;
|
|
3363
|
+
/**
|
|
3364
|
+
* This is a primitive fluent boolean switch component whose only knowledge is the shared styling across all tools
|
|
3365
|
+
* @param props
|
|
3366
|
+
* @returns Switch component
|
|
3367
|
+
*/
|
|
3368
|
+
export var Switch: React.FunctionComponent<SwitchProps>;
|
|
3369
|
+
|
|
3370
|
+
|
|
3371
|
+
|
|
3372
|
+
}
|
|
3373
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3374
|
+
|
|
3375
|
+
|
|
3376
|
+
}
|
|
3377
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3378
|
+
export type SpinButtonProps = BABYLON.NodeRenderGraphEditor.SharedUIComponents.BaseComponentProps<number>;
|
|
3379
|
+
export var SpinButton: React.FunctionComponent<SpinButtonProps>;
|
|
3380
|
+
|
|
3381
|
+
|
|
3382
|
+
|
|
3383
|
+
}
|
|
3384
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3385
|
+
|
|
3386
|
+
|
|
3387
|
+
}
|
|
3388
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3389
|
+
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
}
|
|
3393
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3394
|
+
|
|
3395
|
+
|
|
3396
|
+
}
|
|
3397
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3398
|
+
export type InputProps<T extends string | number> = BABYLON.NodeRenderGraphEditor.SharedUIComponents.BaseComponentProps<T> & {
|
|
3399
|
+
step?: number;
|
|
3400
|
+
placeholder?: string;
|
|
3401
|
+
min?: number;
|
|
3402
|
+
max?: number;
|
|
3403
|
+
};
|
|
3404
|
+
/**
|
|
3405
|
+
* 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)
|
|
3406
|
+
* @param props
|
|
3407
|
+
* @returns
|
|
3408
|
+
*/
|
|
3409
|
+
export var Input: React.FunctionComponent<InputProps<string | number>>;
|
|
3410
|
+
|
|
3411
|
+
|
|
3412
|
+
|
|
3413
|
+
}
|
|
3414
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3415
|
+
|
|
3416
|
+
|
|
3417
|
+
}
|
|
3418
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3419
|
+
export type AcceptedDropdownValue = string | number;
|
|
3420
|
+
export type DropdownOption = {
|
|
3421
|
+
/**
|
|
3422
|
+
* Defines the visible part of the option
|
|
3423
|
+
*/
|
|
3424
|
+
label: string;
|
|
3425
|
+
/**
|
|
3426
|
+
* Defines the value part of the option
|
|
3427
|
+
*/
|
|
3428
|
+
value: AcceptedDropdownValue;
|
|
3429
|
+
};
|
|
3430
|
+
export type DropdownProps = BABYLON.NodeRenderGraphEditor.SharedUIComponents.BaseComponentProps<AcceptedDropdownValue | undefined> & {
|
|
3431
|
+
options: DropdownOption[];
|
|
3432
|
+
includeUndefined?: boolean;
|
|
3433
|
+
};
|
|
3434
|
+
/**
|
|
3435
|
+
* Renders a fluent UI dropdown component for the options passed in, and an additional 'Not Defined' option if includeUndefined is set to true
|
|
3436
|
+
* @param props
|
|
3437
|
+
* @returns dropdown component
|
|
3438
|
+
*/
|
|
3439
|
+
export var Dropdown: React.FunctionComponent<DropdownProps>;
|
|
3440
|
+
|
|
3441
|
+
|
|
3442
|
+
|
|
3443
|
+
}
|
|
3444
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3445
|
+
|
|
3446
|
+
|
|
3447
|
+
}
|
|
3448
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3449
|
+
export type ColorPickerProps<C extends BABYLON.Color3 | BABYLON.Color4> = {
|
|
3450
|
+
isLinearMode?: boolean;
|
|
3451
|
+
} & BABYLON.NodeRenderGraphEditor.SharedUIComponents.BaseComponentProps<C>;
|
|
3452
|
+
export var ColorPickerPopup: React.FunctionComponent<ColorPickerProps<BABYLON.Color3 | BABYLON.Color4>>;
|
|
3453
|
+
type HsvKey = "h" | "s" | "v";
|
|
3454
|
+
export type InputHexProps = BABYLON.NodeRenderGraphEditor.SharedUIComponents.BaseComponentProps<BABYLON.Color3 | BABYLON.Color4> & {
|
|
3455
|
+
label?: string;
|
|
3456
|
+
linearHex?: boolean;
|
|
3457
|
+
isLinearMode?: boolean;
|
|
3458
|
+
};
|
|
3459
|
+
/**
|
|
3460
|
+
* Component which displays the passed in color's HEX value, either in linearSpace (if linearHex is true) or in gamma space
|
|
3461
|
+
* When the hex color is changed by user, component calculates the new BABYLON.Color3/4 value and calls onChange
|
|
3462
|
+
*
|
|
3463
|
+
* Component uses the isLinearMode boolean to display an informative label regarding linear / gamma space
|
|
3464
|
+
* @param props - The properties for the InputHexField component.
|
|
3465
|
+
* @returns
|
|
3466
|
+
*/
|
|
3467
|
+
export var InputHexField: React.FunctionComponent<InputHexProps>;
|
|
3468
|
+
type InputHsvFieldProps = {
|
|
3469
|
+
color: BABYLON.Color3 | BABYLON.Color4;
|
|
3470
|
+
label: string;
|
|
3471
|
+
hsvKey: HsvKey;
|
|
3472
|
+
onChange: (color: BABYLON.Color3 | BABYLON.Color4) => void;
|
|
3473
|
+
max: number;
|
|
3474
|
+
scale?: number;
|
|
3475
|
+
};
|
|
3476
|
+
/**
|
|
3477
|
+
* 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.
|
|
3478
|
+
* 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.
|
|
3479
|
+
* Value (V) ranges from 0 to 100%, representing the brightness of the color, with 0 being black and 100 being the brightest.
|
|
3480
|
+
* @param props - The properties for the InputHsvField component.
|
|
3481
|
+
*/
|
|
3482
|
+
export var InputHsvField: React.FunctionComponent<InputHsvFieldProps>;
|
|
3483
|
+
|
|
3484
|
+
|
|
3485
|
+
|
|
3486
|
+
}
|
|
3487
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3488
|
+
|
|
3489
|
+
|
|
3490
|
+
}
|
|
3491
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3492
|
+
export type CheckboxProps = BABYLON.NodeRenderGraphEditor.SharedUIComponents.BaseComponentProps<boolean>;
|
|
3493
|
+
/**
|
|
3494
|
+
* This is a primitive fluent checkbox that can both read and write checked state
|
|
3495
|
+
* @param props
|
|
3496
|
+
* @returns Checkbox component
|
|
3497
|
+
*/
|
|
3498
|
+
export var Checkbox: React.FunctionComponent<CheckboxProps>;
|
|
3499
|
+
|
|
3500
|
+
|
|
3501
|
+
|
|
3502
|
+
}
|
|
3503
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3504
|
+
|
|
3505
|
+
|
|
3506
|
+
}
|
|
3507
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3508
|
+
export type AccordionSectionProps = {
|
|
3509
|
+
title: string;
|
|
3510
|
+
};
|
|
3511
|
+
export var AccordionSection: React.FunctionComponent<React.PropsWithChildren<AccordionSectionProps>>;
|
|
3512
|
+
export var Accordion: React.FunctionComponent<React.PropsWithChildren>;
|
|
3513
|
+
|
|
3514
|
+
|
|
3515
|
+
|
|
3516
|
+
}
|
|
3517
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3518
|
+
|
|
3519
|
+
|
|
3520
|
+
}
|
|
3521
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3522
|
+
export type VectorPropertyLineProps<V extends BABYLON.Vector3 | BABYLON.Vector4> = BABYLON.NodeRenderGraphEditor.SharedUIComponents.BaseComponentProps<V> & BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps & {
|
|
3523
|
+
/**
|
|
3524
|
+
* If passed, all sliders will use this for the min value
|
|
3525
|
+
*/
|
|
3526
|
+
min?: number;
|
|
3527
|
+
/**
|
|
3528
|
+
* If passed, all sliders will use this for the max value
|
|
3529
|
+
*/
|
|
3530
|
+
max?: number;
|
|
3531
|
+
/**
|
|
3532
|
+
* If passed, the UX will use the conversion functions to display/update values
|
|
3533
|
+
*/
|
|
3534
|
+
valueConverter?: {
|
|
3535
|
+
/**
|
|
3536
|
+
* Will call from(val) before displaying in the UX
|
|
3537
|
+
*/
|
|
3538
|
+
from: (val: number) => number;
|
|
3539
|
+
/**
|
|
3540
|
+
* Will call to(val) before calling onChange
|
|
3541
|
+
*/
|
|
3542
|
+
to: (val: number) => number;
|
|
3543
|
+
};
|
|
3544
|
+
};
|
|
3545
|
+
type RotationVectorPropertyLineProps = VectorPropertyLineProps<BABYLON.Vector3> & {
|
|
3546
|
+
/**
|
|
3547
|
+
* Display angles as degrees instead of radians
|
|
3548
|
+
*/
|
|
3549
|
+
useDegrees?: boolean;
|
|
3550
|
+
};
|
|
3551
|
+
export var RotationVectorPropertyLine: React.FunctionComponent<RotationVectorPropertyLineProps>;
|
|
3552
|
+
export var Vector3PropertyLine: React.FunctionComponent<VectorPropertyLineProps<BABYLON.Vector3>>;
|
|
3553
|
+
export var Vector4PropertyLine: React.FunctionComponent<VectorPropertyLineProps<BABYLON.Vector4>>;
|
|
3554
|
+
|
|
3555
|
+
|
|
3556
|
+
|
|
3557
|
+
}
|
|
3558
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3559
|
+
|
|
3560
|
+
|
|
3561
|
+
}
|
|
3562
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3563
|
+
type TextProps = {
|
|
3564
|
+
value: string;
|
|
3565
|
+
tooltip?: string;
|
|
3566
|
+
};
|
|
3567
|
+
/**
|
|
3568
|
+
* Wraps text in a property line
|
|
3569
|
+
* @param props - BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps and TextProps
|
|
3570
|
+
* @returns property-line wrapped text
|
|
3571
|
+
*/
|
|
3572
|
+
export var TextPropertyLine: React.FunctionComponent<BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps & TextProps>;
|
|
3573
|
+
|
|
3574
|
+
|
|
3575
|
+
|
|
3576
|
+
}
|
|
3577
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3578
|
+
|
|
3579
|
+
|
|
3580
|
+
}
|
|
3581
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3582
|
+
type SyncedSliderLineProps = BABYLON.NodeRenderGraphEditor.SharedUIComponents.SyncedSliderProps & BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps;
|
|
3583
|
+
/**
|
|
3584
|
+
* Renders a simple wrapper around the SyncedSliderInput
|
|
3585
|
+
* @param props
|
|
3586
|
+
* @returns
|
|
3587
|
+
*/
|
|
3588
|
+
export var SyncedSliderLine: React.FunctionComponent<SyncedSliderLineProps>;
|
|
3589
|
+
|
|
3590
|
+
|
|
3591
|
+
|
|
3592
|
+
}
|
|
3593
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3594
|
+
|
|
3595
|
+
|
|
3596
|
+
}
|
|
3597
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3598
|
+
/**
|
|
3599
|
+
* Wraps a switch in a property line
|
|
3600
|
+
* @param props - The properties for the switch and property line
|
|
3601
|
+
* @returns A React element representing the property line with a switch
|
|
3602
|
+
*/
|
|
3603
|
+
export var SwitchPropertyLine: React.FunctionComponent<BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps & BABYLON.NodeRenderGraphEditor.SharedUIComponents.SwitchProps>;
|
|
3604
|
+
|
|
3605
|
+
|
|
3606
|
+
|
|
3607
|
+
}
|
|
3608
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3609
|
+
|
|
3610
|
+
|
|
3611
|
+
}
|
|
3612
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3613
|
+
export type PropertyLineProps = {
|
|
3614
|
+
/**
|
|
3615
|
+
* The name of the property to display in the property line.
|
|
3616
|
+
*/
|
|
3617
|
+
label: string;
|
|
3618
|
+
/**
|
|
3619
|
+
* Optional description for the property, shown on hover of the info icon
|
|
3620
|
+
*/
|
|
3621
|
+
description?: string;
|
|
3622
|
+
/**
|
|
3623
|
+
* Optional function returning a string to copy to clipboard.
|
|
3624
|
+
*/
|
|
3625
|
+
onCopy?: () => string;
|
|
3626
|
+
/**
|
|
3627
|
+
* If supplied, an 'expand' icon will be shown which, when clicked, renders this component within the property line.
|
|
3628
|
+
*/
|
|
3629
|
+
expandedContent?: JSX.Element;
|
|
3630
|
+
/**
|
|
3631
|
+
* Link to the documentation for this property, available from the info icon either linked from the description (if provided) or defalt 'docs' text
|
|
3632
|
+
*/
|
|
3633
|
+
docLink?: string;
|
|
3634
|
+
};
|
|
3635
|
+
export var LineContainer: import("react").ForwardRefExoticComponent<{
|
|
3636
|
+
children?: import("react").ReactNode | undefined;
|
|
3637
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
3638
|
+
export type BaseComponentProps<T> = {
|
|
3639
|
+
/**
|
|
3640
|
+
* The value of the property to be displayed and modified.
|
|
3641
|
+
*/
|
|
3642
|
+
value: T;
|
|
3643
|
+
/**
|
|
3644
|
+
* Callback function to handle changes to the value
|
|
3645
|
+
*/
|
|
3646
|
+
onChange: (value: T) => void;
|
|
3647
|
+
/**
|
|
3648
|
+
* Optional flag to disable the component, preventing any interaction.
|
|
3649
|
+
*/
|
|
3650
|
+
disabled?: boolean;
|
|
3651
|
+
/**
|
|
3652
|
+
* Optional class name to apply custom styles to the component.
|
|
3653
|
+
*/
|
|
3654
|
+
className?: string;
|
|
3655
|
+
};
|
|
3656
|
+
/**
|
|
3657
|
+
* A reusable component that renders a property line with a label and child content, and an optional description, copy button, and expandable section.
|
|
3658
|
+
*
|
|
3659
|
+
* @param props - The properties for the PropertyLine component.
|
|
3660
|
+
* @returns A React element representing the property line.
|
|
3661
|
+
*
|
|
3662
|
+
*/
|
|
3663
|
+
export var PropertyLine: import("react").ForwardRefExoticComponent<PropertyLineProps & {
|
|
3664
|
+
children?: import("react").ReactNode | undefined;
|
|
3665
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
3666
|
+
export var PlaceholderPropertyLine: React.FunctionComponent<BaseComponentProps<any> & PropertyLineProps>;
|
|
3667
|
+
|
|
3668
|
+
|
|
3669
|
+
|
|
3670
|
+
}
|
|
3671
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3672
|
+
|
|
3673
|
+
|
|
3674
|
+
}
|
|
3675
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3676
|
+
type LinkProps = {
|
|
3677
|
+
value: string;
|
|
3678
|
+
tooltip?: string;
|
|
3679
|
+
onLink?: () => void;
|
|
3680
|
+
url?: string;
|
|
3681
|
+
};
|
|
3682
|
+
/**
|
|
3683
|
+
* Wraps a link in a property line
|
|
3684
|
+
* @param props - BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps and LinkProps
|
|
3685
|
+
* @returns property-line wrapped link
|
|
3686
|
+
*/
|
|
3687
|
+
export var LinkPropertyLine: React.FunctionComponent<BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps & LinkProps>;
|
|
3688
|
+
|
|
3689
|
+
|
|
3690
|
+
|
|
3691
|
+
}
|
|
3692
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3693
|
+
|
|
3694
|
+
|
|
3695
|
+
}
|
|
3696
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3697
|
+
export var TextInputPropertyLine: React.FunctionComponent<BABYLON.NodeRenderGraphEditor.SharedUIComponents.InputProps<string> & BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps>;
|
|
3698
|
+
export var FloatInputPropertyLine: React.FunctionComponent<BABYLON.NodeRenderGraphEditor.SharedUIComponents.InputProps<number> & BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps>;
|
|
3699
|
+
|
|
3700
|
+
|
|
3701
|
+
|
|
3702
|
+
}
|
|
3703
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3704
|
+
|
|
3705
|
+
|
|
3706
|
+
}
|
|
3707
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3708
|
+
/**
|
|
3709
|
+
* Wraps a hex input in a property line
|
|
3710
|
+
* @param props - BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps and BABYLON.NodeRenderGraphEditor.SharedUIComponents.InputHexProps
|
|
3711
|
+
* @returns property-line wrapped input hex component
|
|
3712
|
+
*/
|
|
3713
|
+
export var HexPropertyLine: React.FunctionComponent<BABYLON.NodeRenderGraphEditor.SharedUIComponents.InputHexProps & BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps>;
|
|
3714
|
+
|
|
3715
|
+
|
|
3716
|
+
|
|
3717
|
+
}
|
|
3718
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3719
|
+
|
|
3720
|
+
|
|
3721
|
+
}
|
|
3722
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3723
|
+
export type ToolHostProps = {
|
|
3724
|
+
/**
|
|
3725
|
+
* Allows host to pass in a theme
|
|
3726
|
+
*/
|
|
3727
|
+
customTheme?: any;
|
|
3728
|
+
/**
|
|
3729
|
+
* Can be set to true to disable the copy button in the tool's property lines. Default is false (copy enabled)
|
|
3730
|
+
*/
|
|
3731
|
+
disableCopy?: boolean;
|
|
3732
|
+
};
|
|
3733
|
+
export var ToolContext: import("react").Context<{
|
|
3734
|
+
readonly useFluent: boolean;
|
|
3735
|
+
readonly disableCopy: boolean;
|
|
3736
|
+
}>;
|
|
3737
|
+
/**
|
|
3738
|
+
* 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
|
|
3739
|
+
* Today we will only enable fluent if the URL has the `newUX` query parameter is truthy
|
|
3740
|
+
* @param props
|
|
3741
|
+
* @returns
|
|
3742
|
+
*/
|
|
3743
|
+
export var FluentToolWrapper: React.FunctionComponent<React.PropsWithChildren<ToolHostProps>>;
|
|
3744
|
+
|
|
3745
|
+
|
|
3746
|
+
|
|
3747
|
+
}
|
|
3748
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3749
|
+
|
|
3750
|
+
|
|
3751
|
+
}
|
|
3752
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3753
|
+
type FileUploadLineProps = Omit<BABYLON.NodeRenderGraphEditor.SharedUIComponents.ButtonLineProps, "onClick"> & {
|
|
3754
|
+
onClick: (file: File) => void;
|
|
3755
|
+
accept: string;
|
|
3756
|
+
};
|
|
3757
|
+
export var FileUploadLine: React.FunctionComponent<FileUploadLineProps>;
|
|
3758
|
+
|
|
3759
|
+
|
|
3760
|
+
|
|
3761
|
+
}
|
|
3762
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3763
|
+
|
|
3764
|
+
|
|
3765
|
+
}
|
|
3766
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3767
|
+
/**
|
|
3768
|
+
* Wraps a dropdown in a property line
|
|
3769
|
+
* @param props - BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps and BABYLON.NodeRenderGraphEditor.SharedUIComponents.DropdownProps
|
|
3770
|
+
* @returns property-line wrapped dropdown
|
|
3771
|
+
*/
|
|
3772
|
+
export var DropdownPropertyLine: React.FunctionComponent<BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps & BABYLON.NodeRenderGraphEditor.SharedUIComponents.DropdownProps>;
|
|
3773
|
+
|
|
3774
|
+
|
|
3775
|
+
|
|
3776
|
+
}
|
|
3777
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3778
|
+
|
|
3779
|
+
|
|
3780
|
+
}
|
|
3781
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3782
|
+
export type ColorPropertyLineProps = BABYLON.NodeRenderGraphEditor.SharedUIComponents.ColorPickerProps<BABYLON.Color3 | BABYLON.Color4> & BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps;
|
|
3783
|
+
export var Color3PropertyLine: React.FunctionComponent<BABYLON.NodeRenderGraphEditor.SharedUIComponents.ColorPickerProps<BABYLON.Color3> & BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps>;
|
|
3784
|
+
export var Color4PropertyLine: React.FunctionComponent<BABYLON.NodeRenderGraphEditor.SharedUIComponents.ColorPickerProps<BABYLON.Color4> & BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps>;
|
|
3785
|
+
|
|
3786
|
+
|
|
3787
|
+
|
|
3788
|
+
}
|
|
3789
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3790
|
+
|
|
3791
|
+
|
|
3792
|
+
}
|
|
3793
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3794
|
+
/**
|
|
3795
|
+
* Wraps a checkbox in a property line
|
|
3796
|
+
* @param props - BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps and BABYLON.NodeRenderGraphEditor.SharedUIComponents.CheckboxProps
|
|
3797
|
+
* @returns property-line wrapped checkbox
|
|
3798
|
+
*/
|
|
3799
|
+
export var CheckboxPropertyLine: React.FunctionComponent<BABYLON.NodeRenderGraphEditor.SharedUIComponents.PropertyLineProps & BABYLON.NodeRenderGraphEditor.SharedUIComponents.CheckboxProps>;
|
|
3800
|
+
|
|
3801
|
+
|
|
3802
|
+
|
|
3803
|
+
}
|
|
3804
|
+
declare module BABYLON.NodeRenderGraphEditor {
|
|
3805
|
+
|
|
3806
|
+
|
|
3807
|
+
}
|
|
3808
|
+
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
3809
|
+
export type ButtonLineProps = {
|
|
3810
|
+
label: string;
|
|
3811
|
+
onClick: () => void;
|
|
3812
|
+
disabled?: boolean;
|
|
3813
|
+
icon?: string;
|
|
3814
|
+
title?: string;
|
|
3815
|
+
};
|
|
3816
|
+
/**
|
|
3817
|
+
* Wraps a button with a label in a line container
|
|
3818
|
+
* @param props Button props plus a label
|
|
3819
|
+
* @returns A button inside a line
|
|
3820
|
+
*/
|
|
3821
|
+
export var ButtonLine: React.FunctionComponent<ButtonLineProps>;
|
|
3822
|
+
|
|
3823
|
+
|
|
3824
|
+
|
|
3299
3825
|
}
|
|
3300
3826
|
declare module BABYLON.NodeRenderGraphEditor {
|
|
3301
3827
|
|