babylonjs-node-editor 5.0.0-rc.9 → 5.0.0
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.nodeEditor.d.ts +2676 -0
- package/babylon.nodeEditor.js +1 -1
- package/babylon.nodeEditor.js.map +1 -1
- package/babylon.nodeEditor.max.js +2 -1
- package/babylon.nodeEditor.max.js.map +1 -1
- package/babylon.nodeEditor.module.d.ts +232 -202
- package/license.md +71 -0
- package/package.json +20 -4
|
@@ -1798,7 +1798,8 @@ export {};
|
|
|
1798
1798
|
}
|
|
1799
1799
|
declare module "babylonjs-node-editor/sharedComponents/matrixLineComponent" {
|
|
1800
1800
|
import * as React from "react";
|
|
1801
|
-
import { Vector3,
|
|
1801
|
+
import { Vector3, Vector4 } from "babylonjs/Maths/math.vector";
|
|
1802
|
+
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
1802
1803
|
import { Observable } from "babylonjs/Misc/observable";
|
|
1803
1804
|
import { PropertyChangedEvent } from "babylonjs-node-editor/sharedComponents/propertyChangedEvent";
|
|
1804
1805
|
import { GlobalState } from "babylonjs-node-editor/globalState";
|
|
@@ -2290,6 +2291,7 @@ export interface ICheckBoxLineComponentProps {
|
|
|
2290
2291
|
enabled: IconDefinition;
|
|
2291
2292
|
disabled: IconDefinition;
|
|
2292
2293
|
};
|
|
2294
|
+
large?: boolean;
|
|
2293
2295
|
}
|
|
2294
2296
|
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
|
2295
2297
|
isSelected: boolean;
|
|
@@ -2501,12 +2503,12 @@ interface IFloatLineComponentProps {
|
|
|
2501
2503
|
icon?: string;
|
|
2502
2504
|
iconLabel?: string;
|
|
2503
2505
|
defaultValue?: number;
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
unitLocked?: boolean;
|
|
2506
|
+
arrows?: boolean;
|
|
2507
|
+
unit?: React.ReactNode;
|
|
2507
2508
|
}
|
|
2508
2509
|
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
|
2509
2510
|
value: string;
|
|
2511
|
+
dragging: boolean;
|
|
2510
2512
|
}> {
|
|
2511
2513
|
private _localChange;
|
|
2512
2514
|
private _store;
|
|
@@ -2515,11 +2517,14 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
|
|
|
2515
2517
|
getValueString(value: any): string;
|
|
2516
2518
|
shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
|
|
2517
2519
|
value: string;
|
|
2520
|
+
dragging: boolean;
|
|
2518
2521
|
}): boolean;
|
|
2519
2522
|
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
|
2520
2523
|
updateValue(valueString: string): void;
|
|
2521
2524
|
lock(): void;
|
|
2522
2525
|
unlock(): void;
|
|
2526
|
+
incrementValue(amount: number): void;
|
|
2527
|
+
onKeyDown(event: React.KeyboardEvent): void;
|
|
2523
2528
|
render(): JSX.Element;
|
|
2524
2529
|
}
|
|
2525
2530
|
export {};
|
|
@@ -2623,6 +2628,7 @@ export class InputArrowsComponent extends React.Component<IInputArrowsComponentP
|
|
|
2623
2628
|
private _arrowsRef;
|
|
2624
2629
|
private _drag;
|
|
2625
2630
|
private _releaseListener;
|
|
2631
|
+
private _lockChangeListener;
|
|
2626
2632
|
render(): JSX.Element;
|
|
2627
2633
|
}
|
|
2628
2634
|
export {};
|
|
@@ -2808,6 +2814,7 @@ interface ISliderLineComponentProps {
|
|
|
2808
2814
|
icon?: string;
|
|
2809
2815
|
iconLabel?: string;
|
|
2810
2816
|
lockObject?: LockObject;
|
|
2817
|
+
unit?: React.ReactNode;
|
|
2811
2818
|
}
|
|
2812
2819
|
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
|
2813
2820
|
value: number;
|
|
@@ -2844,7 +2851,7 @@ import * as React from "react";
|
|
|
2844
2851
|
import { Observable } from "babylonjs/Misc/observable";
|
|
2845
2852
|
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
|
2846
2853
|
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
|
2847
|
-
interface ITextInputLineComponentProps {
|
|
2854
|
+
export interface ITextInputLineComponentProps {
|
|
2848
2855
|
label?: string;
|
|
2849
2856
|
lockObject?: LockObject;
|
|
2850
2857
|
target?: any;
|
|
@@ -2857,9 +2864,6 @@ interface ITextInputLineComponentProps {
|
|
|
2857
2864
|
noUnderline?: boolean;
|
|
2858
2865
|
numbersOnly?: boolean;
|
|
2859
2866
|
delayInput?: boolean;
|
|
2860
|
-
unit?: string;
|
|
2861
|
-
onUnitClicked?: (unit: string) => void;
|
|
2862
|
-
unitLocked?: boolean;
|
|
2863
2867
|
arrows?: boolean;
|
|
2864
2868
|
arrowsIncrement?: (amount: number) => void;
|
|
2865
2869
|
step?: number;
|
|
@@ -2868,6 +2872,7 @@ interface ITextInputLineComponentProps {
|
|
|
2868
2872
|
min?: number;
|
|
2869
2873
|
max?: number;
|
|
2870
2874
|
placeholder?: string;
|
|
2875
|
+
unit?: React.ReactNode;
|
|
2871
2876
|
}
|
|
2872
2877
|
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
|
|
2873
2878
|
value: string;
|
|
@@ -2881,12 +2886,12 @@ export class TextInputLineComponent extends React.Component<ITextInputLineCompon
|
|
|
2881
2886
|
dragging: boolean;
|
|
2882
2887
|
}): boolean;
|
|
2883
2888
|
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
|
2889
|
+
getCurrentNumericValue(value: string): number;
|
|
2884
2890
|
updateValue(value: string): void;
|
|
2885
2891
|
incrementValue(amount: number): void;
|
|
2886
2892
|
onKeyDown(event: React.KeyboardEvent): void;
|
|
2887
2893
|
render(): JSX.Element;
|
|
2888
2894
|
}
|
|
2889
|
-
export {};
|
|
2890
2895
|
|
|
2891
2896
|
}
|
|
2892
2897
|
declare module "shared-ui-components/lines/textLineComponent" {
|
|
@@ -2912,6 +2917,17 @@ export class TextLineComponent extends React.Component<ITextLineComponentProps>
|
|
|
2912
2917
|
}
|
|
2913
2918
|
export {};
|
|
2914
2919
|
|
|
2920
|
+
}
|
|
2921
|
+
declare module "shared-ui-components/lines/unitButton" {
|
|
2922
|
+
/// <reference types="react" />
|
|
2923
|
+
interface IUnitButtonProps {
|
|
2924
|
+
unit: string;
|
|
2925
|
+
locked?: boolean;
|
|
2926
|
+
onClick?: (unit: string) => void;
|
|
2927
|
+
}
|
|
2928
|
+
export function UnitButton(props: IUnitButtonProps): JSX.Element;
|
|
2929
|
+
export {};
|
|
2930
|
+
|
|
2915
2931
|
}
|
|
2916
2932
|
declare module "shared-ui-components/lines/valueLineComponent" {
|
|
2917
2933
|
import * as React from "react";
|
|
@@ -3388,8 +3404,8 @@ declare module "babylonjs-node-editor" {
|
|
|
3388
3404
|
|
|
3389
3405
|
|
|
3390
3406
|
declare module BABYLON.NodeEditor {
|
|
3391
|
-
|
|
3392
|
-
static GetBlockFromString(data: string, scene:
|
|
3407
|
+
export class BlockTools {
|
|
3408
|
+
static GetBlockFromString(data: string, scene: Scene, nodeMaterial: NodeMaterial): BABYLON.ElbowBlock | BABYLON.TwirlBlock | BABYLON.VoronoiNoiseBlock | BABYLON.ScreenSpaceBlock | BABYLON.CloudBlock | BABYLON.MatrixBuilderBlock | BABYLON.DesaturateBlock | BABYLON.RefractBlock | BABYLON.ReflectBlock | BABYLON.DerivativeBlock | BABYLON.Rotate2dBlock | BABYLON.NormalBlendBlock | BABYLON.WorleyNoise3DBlock | BABYLON.SimplexPerlin3DBlock | BABYLON.BonesBlock | BABYLON.InstancesBlock | BABYLON.MorphTargetsBlock | BABYLON.DiscardBlock | BABYLON.ImageProcessingBlock | BABYLON.ColorMergerBlock | BABYLON.VectorMergerBlock | BABYLON.ColorSplitterBlock | BABYLON.VectorSplitterBlock | BABYLON.TextureBlock | BABYLON.ReflectionTextureBlock | BABYLON.LightBlock | BABYLON.FogBlock | BABYLON.VertexOutputBlock | BABYLON.FragmentOutputBlock | BABYLON.AddBlock | BABYLON.ClampBlock | BABYLON.ScaleBlock | BABYLON.CrossBlock | BABYLON.DotBlock | BABYLON.PowBlock | BABYLON.MultiplyBlock | BABYLON.TransformBlock | BABYLON.TrigonometryBlock | BABYLON.RemapBlock | BABYLON.NormalizeBlock | BABYLON.FresnelBlock | BABYLON.LerpBlock | BABYLON.NLerpBlock | BABYLON.DivideBlock | BABYLON.SubtractBlock | BABYLON.ModBlock | BABYLON.StepBlock | BABYLON.SmoothStepBlock | BABYLON.OneMinusBlock | BABYLON.ReciprocalBlock | BABYLON.ViewDirectionBlock | BABYLON.LightInformationBlock | BABYLON.MaxBlock | BABYLON.MinBlock | BABYLON.LengthBlock | BABYLON.DistanceBlock | BABYLON.NegateBlock | BABYLON.PerturbNormalBlock | BABYLON.RandomNumberBlock | BABYLON.ReplaceColorBlock | BABYLON.PosterizeBlock | BABYLON.ArcTan2Block | BABYLON.GradientBlock | BABYLON.FrontFacingBlock | BABYLON.WaveBlock | BABYLON.InputBlock | BABYLON.PBRMetallicRoughnessBlock | BABYLON.SheenBlock | BABYLON.AnisotropyBlock | BABYLON.ReflectionBlock | BABYLON.ClearCoatBlock | BABYLON.RefractionBlock | BABYLON.SubSurfaceBlock | BABYLON.CurrentScreenBlock | BABYLON.ParticleTextureBlock | BABYLON.ParticleRampGradientBlock | BABYLON.ParticleBlendMultiplyBlock | BABYLON.FragCoordBlock | BABYLON.ScreenSizeBlock | BABYLON.SceneDepthBlock | BABYLON.ConditionalBlock | BABYLON.ImageSourceBlock | BABYLON.ClipPlanesBlock | null;
|
|
3393
3409
|
static GetColorFromConnectionNodeType(type: BABYLON.NodeMaterialBlockConnectionPointTypes): string;
|
|
3394
3410
|
static GetConnectionNodeTypeFromString(type: string): BABYLON.NodeMaterialBlockConnectionPointTypes.Float | BABYLON.NodeMaterialBlockConnectionPointTypes.Vector2 | BABYLON.NodeMaterialBlockConnectionPointTypes.Vector3 | BABYLON.NodeMaterialBlockConnectionPointTypes.Vector4 | BABYLON.NodeMaterialBlockConnectionPointTypes.Color3 | BABYLON.NodeMaterialBlockConnectionPointTypes.Color4 | BABYLON.NodeMaterialBlockConnectionPointTypes.Matrix | BABYLON.NodeMaterialBlockConnectionPointTypes.AutoDetect;
|
|
3395
3411
|
static GetStringFromConnectionNodeType(type: BABYLON.NodeMaterialBlockConnectionPointTypes): "" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix" | "Color3" | "Color4";
|
|
@@ -3527,19 +3543,19 @@ declare module BABYLON.NodeEditor {
|
|
|
3527
3543
|
|
|
3528
3544
|
interface IInputsPropertyTabComponentProps {
|
|
3529
3545
|
globalState: GlobalState;
|
|
3530
|
-
inputs:
|
|
3546
|
+
inputs: InputBlock[];
|
|
3531
3547
|
}
|
|
3532
3548
|
export class InputsPropertyTabComponent extends React.Component<IInputsPropertyTabComponentProps> {
|
|
3533
3549
|
constructor(props: IInputsPropertyTabComponentProps);
|
|
3534
|
-
processInputBlockUpdate(ib:
|
|
3535
|
-
renderInputBlock(block:
|
|
3550
|
+
processInputBlockUpdate(ib: InputBlock): void;
|
|
3551
|
+
renderInputBlock(block: InputBlock): JSX.Element | null;
|
|
3536
3552
|
render(): JSX.Element;
|
|
3537
3553
|
}
|
|
3538
3554
|
|
|
3539
3555
|
|
|
3540
3556
|
interface IColor3PropertyTabComponentProps {
|
|
3541
3557
|
globalState: GlobalState;
|
|
3542
|
-
inputBlock:
|
|
3558
|
+
inputBlock: InputBlock;
|
|
3543
3559
|
}
|
|
3544
3560
|
export class Color3PropertyTabComponent extends React.Component<IColor3PropertyTabComponentProps> {
|
|
3545
3561
|
render(): JSX.Element;
|
|
@@ -3548,7 +3564,7 @@ declare module BABYLON.NodeEditor {
|
|
|
3548
3564
|
|
|
3549
3565
|
interface IColor4PropertyTabComponentProps {
|
|
3550
3566
|
globalState: GlobalState;
|
|
3551
|
-
inputBlock:
|
|
3567
|
+
inputBlock: InputBlock;
|
|
3552
3568
|
}
|
|
3553
3569
|
export class Color4PropertyTabComponent extends React.Component<IColor4PropertyTabComponentProps> {
|
|
3554
3570
|
render(): JSX.Element;
|
|
@@ -3557,7 +3573,7 @@ declare module BABYLON.NodeEditor {
|
|
|
3557
3573
|
|
|
3558
3574
|
interface IFloatPropertyTabComponentProps {
|
|
3559
3575
|
globalState: GlobalState;
|
|
3560
|
-
inputBlock:
|
|
3576
|
+
inputBlock: InputBlock;
|
|
3561
3577
|
}
|
|
3562
3578
|
export class FloatPropertyTabComponent extends React.Component<IFloatPropertyTabComponentProps> {
|
|
3563
3579
|
render(): JSX.Element;
|
|
@@ -3566,7 +3582,7 @@ declare module BABYLON.NodeEditor {
|
|
|
3566
3582
|
|
|
3567
3583
|
interface IMatrixPropertyTabComponentProps {
|
|
3568
3584
|
globalState: GlobalState;
|
|
3569
|
-
inputBlock:
|
|
3585
|
+
inputBlock: InputBlock;
|
|
3570
3586
|
}
|
|
3571
3587
|
export class MatrixPropertyTabComponent extends React.Component<IMatrixPropertyTabComponentProps> {
|
|
3572
3588
|
render(): JSX.Element;
|
|
@@ -3575,7 +3591,7 @@ declare module BABYLON.NodeEditor {
|
|
|
3575
3591
|
|
|
3576
3592
|
interface IVector2PropertyTabComponentProps {
|
|
3577
3593
|
globalState: GlobalState;
|
|
3578
|
-
inputBlock:
|
|
3594
|
+
inputBlock: InputBlock;
|
|
3579
3595
|
}
|
|
3580
3596
|
export class Vector2PropertyTabComponent extends React.Component<IVector2PropertyTabComponentProps> {
|
|
3581
3597
|
render(): JSX.Element;
|
|
@@ -3584,7 +3600,7 @@ declare module BABYLON.NodeEditor {
|
|
|
3584
3600
|
|
|
3585
3601
|
interface IVector3PropertyTabComponentProps {
|
|
3586
3602
|
globalState: GlobalState;
|
|
3587
|
-
inputBlock:
|
|
3603
|
+
inputBlock: InputBlock;
|
|
3588
3604
|
}
|
|
3589
3605
|
export class Vector3PropertyTabComponent extends React.Component<IVector3PropertyTabComponentProps> {
|
|
3590
3606
|
render(): JSX.Element;
|
|
@@ -3593,7 +3609,7 @@ declare module BABYLON.NodeEditor {
|
|
|
3593
3609
|
|
|
3594
3610
|
interface IVector4PropertyTabComponentProps {
|
|
3595
3611
|
globalState: GlobalState;
|
|
3596
|
-
inputBlock:
|
|
3612
|
+
inputBlock: InputBlock;
|
|
3597
3613
|
}
|
|
3598
3614
|
export class Vector4PropertyTabComponent extends React.Component<IVector4PropertyTabComponentProps> {
|
|
3599
3615
|
render(): JSX.Element;
|
|
@@ -3604,10 +3620,10 @@ declare module BABYLON.NodeEditor {
|
|
|
3604
3620
|
globalState: GlobalState;
|
|
3605
3621
|
}
|
|
3606
3622
|
interface IPropertyTabComponentState {
|
|
3607
|
-
currentNode:
|
|
3608
|
-
currentFrame:
|
|
3609
|
-
currentFrameNodePort:
|
|
3610
|
-
currentNodePort:
|
|
3623
|
+
currentNode: Nullable<GraphNode>;
|
|
3624
|
+
currentFrame: Nullable<GraphFrame>;
|
|
3625
|
+
currentFrameNodePort: Nullable<FrameNodePort>;
|
|
3626
|
+
currentNodePort: Nullable<NodePort>;
|
|
3611
3627
|
uploadInProgress: boolean;
|
|
3612
3628
|
}
|
|
3613
3629
|
export class PropertyTabComponent extends React.Component<IPropertyTabComponentProps, IPropertyTabComponentState> {
|
|
@@ -3616,8 +3632,8 @@ declare module BABYLON.NodeEditor {
|
|
|
3616
3632
|
constructor(props: IPropertyTabComponentProps);
|
|
3617
3633
|
componentDidMount(): void;
|
|
3618
3634
|
componentWillUnmount(): void;
|
|
3619
|
-
processInputBlockUpdate(ib:
|
|
3620
|
-
renderInputBlock(block:
|
|
3635
|
+
processInputBlockUpdate(ib: InputBlock): void;
|
|
3636
|
+
renderInputBlock(block: InputBlock): JSX.Element | null;
|
|
3621
3637
|
load(file: File): void;
|
|
3622
3638
|
loadFrame(file: File): void;
|
|
3623
3639
|
save(): void;
|
|
@@ -3632,16 +3648,16 @@ declare module BABYLON.NodeEditor {
|
|
|
3632
3648
|
export class ClampDisplayManager implements IDisplayManager {
|
|
3633
3649
|
getHeaderClass(): string;
|
|
3634
3650
|
shouldDisplayPortLabels(): boolean;
|
|
3635
|
-
getHeaderText(block:
|
|
3651
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3636
3652
|
getBackgroundColor(): string;
|
|
3637
|
-
updatePreviewContent(block:
|
|
3653
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3638
3654
|
}
|
|
3639
3655
|
|
|
3640
3656
|
|
|
3641
3657
|
export class ConditionalDisplayManager implements IDisplayManager {
|
|
3642
3658
|
getHeaderClass(): string;
|
|
3643
3659
|
shouldDisplayPortLabels(): boolean;
|
|
3644
|
-
getHeaderText(block:
|
|
3660
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3645
3661
|
getBackgroundColor(): string;
|
|
3646
3662
|
updatePreviewContent(): void;
|
|
3647
3663
|
}
|
|
@@ -3650,36 +3666,36 @@ declare module BABYLON.NodeEditor {
|
|
|
3650
3666
|
export class DiscardDisplayManager implements IDisplayManager {
|
|
3651
3667
|
getHeaderClass(): string;
|
|
3652
3668
|
shouldDisplayPortLabels(): boolean;
|
|
3653
|
-
getHeaderText(block:
|
|
3669
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3654
3670
|
getBackgroundColor(): string;
|
|
3655
|
-
updatePreviewContent(block:
|
|
3671
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3656
3672
|
}
|
|
3657
3673
|
|
|
3658
3674
|
|
|
3659
3675
|
export interface IDisplayManager {
|
|
3660
|
-
getHeaderClass(block:
|
|
3661
|
-
shouldDisplayPortLabels(block:
|
|
3662
|
-
updatePreviewContent(block:
|
|
3663
|
-
getBackgroundColor(block:
|
|
3664
|
-
getHeaderText(block:
|
|
3676
|
+
getHeaderClass(block: NodeMaterialBlock): string;
|
|
3677
|
+
shouldDisplayPortLabels(block: NodeMaterialBlock): boolean;
|
|
3678
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3679
|
+
getBackgroundColor(block: NodeMaterialBlock): string;
|
|
3680
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3665
3681
|
}
|
|
3666
3682
|
|
|
3667
3683
|
|
|
3668
3684
|
export class ElbowDisplayManager implements IDisplayManager {
|
|
3669
3685
|
getHeaderClass(): string;
|
|
3670
3686
|
shouldDisplayPortLabels(): boolean;
|
|
3671
|
-
getHeaderText(block:
|
|
3672
|
-
getBackgroundColor(block:
|
|
3673
|
-
updatePreviewContent(block:
|
|
3687
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3688
|
+
getBackgroundColor(block: NodeMaterialBlock): string;
|
|
3689
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3674
3690
|
}
|
|
3675
3691
|
|
|
3676
3692
|
|
|
3677
3693
|
export class GradientDisplayManager implements IDisplayManager {
|
|
3678
3694
|
getHeaderClass(): string;
|
|
3679
3695
|
shouldDisplayPortLabels(): boolean;
|
|
3680
|
-
getHeaderText(block:
|
|
3681
|
-
getBackgroundColor(block:
|
|
3682
|
-
updatePreviewContent(block:
|
|
3696
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3697
|
+
getBackgroundColor(block: NodeMaterialBlock): string;
|
|
3698
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3683
3699
|
}
|
|
3684
3700
|
|
|
3685
3701
|
|
|
@@ -3688,47 +3704,47 @@ declare module BABYLON.NodeEditor {
|
|
|
3688
3704
|
private _previewImage;
|
|
3689
3705
|
getHeaderClass(): string;
|
|
3690
3706
|
shouldDisplayPortLabels(): boolean;
|
|
3691
|
-
getHeaderText(block:
|
|
3707
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3692
3708
|
getBackgroundColor(): string;
|
|
3693
|
-
updatePreviewContent(block:
|
|
3709
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3694
3710
|
}
|
|
3695
3711
|
|
|
3696
3712
|
|
|
3697
3713
|
export class InputDisplayManager implements IDisplayManager {
|
|
3698
|
-
getHeaderClass(block:
|
|
3714
|
+
getHeaderClass(block: NodeMaterialBlock): "" | "constant" | "inspector";
|
|
3699
3715
|
shouldDisplayPortLabels(): boolean;
|
|
3700
|
-
getHeaderText(block:
|
|
3716
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3701
3717
|
static GetBaseType(type: BABYLON.NodeMaterialBlockConnectionPointTypes): string;
|
|
3702
|
-
getBackgroundColor(block:
|
|
3703
|
-
updatePreviewContent(block:
|
|
3718
|
+
getBackgroundColor(block: NodeMaterialBlock): string;
|
|
3719
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3704
3720
|
}
|
|
3705
3721
|
|
|
3706
3722
|
|
|
3707
3723
|
export class OutputDisplayManager implements IDisplayManager {
|
|
3708
3724
|
getHeaderClass(): string;
|
|
3709
3725
|
shouldDisplayPortLabels(): boolean;
|
|
3710
|
-
getHeaderText(block:
|
|
3726
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3711
3727
|
getBackgroundColor(): string;
|
|
3712
|
-
updatePreviewContent(block:
|
|
3728
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3713
3729
|
}
|
|
3714
3730
|
|
|
3715
3731
|
|
|
3716
3732
|
export class PBRDisplayManager implements IDisplayManager {
|
|
3717
3733
|
getHeaderClass(): string;
|
|
3718
3734
|
shouldDisplayPortLabels(): boolean;
|
|
3719
|
-
getHeaderText(block:
|
|
3735
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3720
3736
|
getBackgroundColor(): string;
|
|
3721
|
-
updatePreviewContent(block:
|
|
3737
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3722
3738
|
}
|
|
3723
3739
|
|
|
3724
3740
|
|
|
3725
3741
|
export class RemapDisplayManager implements IDisplayManager {
|
|
3726
3742
|
getHeaderClass(): string;
|
|
3727
3743
|
shouldDisplayPortLabels(): boolean;
|
|
3728
|
-
getHeaderText(block:
|
|
3744
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3729
3745
|
getBackgroundColor(): string;
|
|
3730
3746
|
private _extractInputValue;
|
|
3731
|
-
updatePreviewContent(block:
|
|
3747
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3732
3748
|
}
|
|
3733
3749
|
|
|
3734
3750
|
|
|
@@ -3737,18 +3753,18 @@ declare module BABYLON.NodeEditor {
|
|
|
3737
3753
|
private _previewImage;
|
|
3738
3754
|
getHeaderClass(): string;
|
|
3739
3755
|
shouldDisplayPortLabels(): boolean;
|
|
3740
|
-
getHeaderText(block:
|
|
3741
|
-
getBackgroundColor(block:
|
|
3742
|
-
updatePreviewContent(block:
|
|
3756
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3757
|
+
getBackgroundColor(block: NodeMaterialBlock): string;
|
|
3758
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3743
3759
|
}
|
|
3744
3760
|
|
|
3745
3761
|
|
|
3746
3762
|
export class TrigonometryDisplayManager implements IDisplayManager {
|
|
3747
3763
|
getHeaderClass(): string;
|
|
3748
3764
|
shouldDisplayPortLabels(): boolean;
|
|
3749
|
-
getHeaderText(block:
|
|
3765
|
+
getHeaderText(block: NodeMaterialBlock): string;
|
|
3750
3766
|
getBackgroundColor(): string;
|
|
3751
|
-
updatePreviewContent(block:
|
|
3767
|
+
updatePreviewContent(block: NodeMaterialBlock, contentArea: HTMLDivElement): void;
|
|
3752
3768
|
}
|
|
3753
3769
|
|
|
3754
3770
|
|
|
@@ -3760,7 +3776,7 @@ declare module BABYLON.NodeEditor {
|
|
|
3760
3776
|
|
|
3761
3777
|
|
|
3762
3778
|
export class FrameNodePort extends NodePort {
|
|
3763
|
-
connectionPoint:
|
|
3779
|
+
connectionPoint: NodeMaterialConnectionPoint;
|
|
3764
3780
|
node: GraphNode;
|
|
3765
3781
|
private _parentFrameId;
|
|
3766
3782
|
private _isInput;
|
|
@@ -3773,14 +3789,14 @@ declare module BABYLON.NodeEditor {
|
|
|
3773
3789
|
get framePortId(): number;
|
|
3774
3790
|
get framePortPosition(): FramePortPosition;
|
|
3775
3791
|
set framePortPosition(position: FramePortPosition);
|
|
3776
|
-
constructor(portContainer: HTMLElement, connectionPoint:
|
|
3777
|
-
static CreateFrameNodePortElement(connectionPoint:
|
|
3792
|
+
constructor(portContainer: HTMLElement, connectionPoint: NodeMaterialConnectionPoint, node: GraphNode, globalState: GlobalState, isInput: boolean, framePortId: number, parentFrameId: number);
|
|
3793
|
+
static CreateFrameNodePortElement(connectionPoint: NodeMaterialConnectionPoint, node: GraphNode, root: HTMLElement, displayManager: Nullable<IDisplayManager>, globalState: GlobalState, isInput: boolean, framePortId: number, parentFrameId: number): FrameNodePort;
|
|
3778
3794
|
}
|
|
3779
3795
|
|
|
3780
3796
|
|
|
3781
3797
|
export interface IGraphCanvasComponentProps {
|
|
3782
3798
|
globalState: GlobalState;
|
|
3783
|
-
onEmitNewBlock: (block:
|
|
3799
|
+
onEmitNewBlock: (block: NodeMaterialBlock) => GraphNode;
|
|
3784
3800
|
}
|
|
3785
3801
|
export type FramePortData = {
|
|
3786
3802
|
frame: GraphFrame;
|
|
@@ -3836,9 +3852,9 @@ declare module BABYLON.NodeEditor {
|
|
|
3836
3852
|
get y(): number;
|
|
3837
3853
|
set y(value: number);
|
|
3838
3854
|
get selectedNodes(): GraphNode[];
|
|
3839
|
-
get selectedLink():
|
|
3855
|
+
get selectedLink(): Nullable<NodeLink>;
|
|
3840
3856
|
get selectedFrames(): GraphFrame[];
|
|
3841
|
-
get selectedPort():
|
|
3857
|
+
get selectedPort(): Nullable<NodePort>;
|
|
3842
3858
|
get canvasContainer(): HTMLDivElement;
|
|
3843
3859
|
get hostCanvas(): HTMLDivElement;
|
|
3844
3860
|
get svgCanvas(): HTMLElement;
|
|
@@ -3850,11 +3866,11 @@ declare module BABYLON.NodeEditor {
|
|
|
3850
3866
|
getGridPositionCeil(position: number): number;
|
|
3851
3867
|
updateTransform(): void;
|
|
3852
3868
|
onKeyUp(): void;
|
|
3853
|
-
findNodeFromBlock(block:
|
|
3869
|
+
findNodeFromBlock(block: NodeMaterialBlock): GraphNode;
|
|
3854
3870
|
reset(): void;
|
|
3855
|
-
connectPorts(pointA:
|
|
3871
|
+
connectPorts(pointA: NodeMaterialConnectionPoint, pointB: NodeMaterialConnectionPoint): void;
|
|
3856
3872
|
removeLink(link: NodeLink): void;
|
|
3857
|
-
appendBlock(block:
|
|
3873
|
+
appendBlock(block: NodeMaterialBlock): GraphNode;
|
|
3858
3874
|
distributeGraph(): void;
|
|
3859
3875
|
componentDidMount(): void;
|
|
3860
3876
|
onMove(evt: React.PointerEvent): void;
|
|
@@ -3863,7 +3879,7 @@ declare module BABYLON.NodeEditor {
|
|
|
3863
3879
|
onWheel(evt: React.WheelEvent): void;
|
|
3864
3880
|
zoomToFit(): void;
|
|
3865
3881
|
processCandidatePort(): void;
|
|
3866
|
-
connectNodes(nodeA: GraphNode, pointA:
|
|
3882
|
+
connectNodes(nodeA: GraphNode, pointA: NodeMaterialConnectionPoint, nodeB: GraphNode, pointB: NodeMaterialConnectionPoint): void;
|
|
3867
3883
|
processEditorData(editorData: IEditorData): void;
|
|
3868
3884
|
addFrame(frameData: IFrameData): void;
|
|
3869
3885
|
render(): JSX.Element;
|
|
@@ -3949,7 +3965,7 @@ declare module BABYLON.NodeEditor {
|
|
|
3949
3965
|
set height(value: number);
|
|
3950
3966
|
get comments(): string;
|
|
3951
3967
|
set comments(comments: string);
|
|
3952
|
-
constructor(candidate:
|
|
3968
|
+
constructor(candidate: Nullable<HTMLDivElement>, canvas: GraphCanvasComponent, doNotCaptureNodes?: boolean);
|
|
3953
3969
|
refresh(): void;
|
|
3954
3970
|
addNode(node: GraphNode): void;
|
|
3955
3971
|
removeNode(node: GraphNode): void;
|
|
@@ -4020,7 +4036,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4020
4036
|
|
|
4021
4037
|
/// <reference types="react" />
|
|
4022
4038
|
export class GraphNode {
|
|
4023
|
-
block:
|
|
4039
|
+
block: NodeMaterialBlock;
|
|
4024
4040
|
private _visual;
|
|
4025
4041
|
private _headerContainer;
|
|
4026
4042
|
private _promotionWarning;
|
|
@@ -4069,10 +4085,10 @@ declare module BABYLON.NodeEditor {
|
|
|
4069
4085
|
get enclosingFrameId(): number;
|
|
4070
4086
|
set enclosingFrameId(value: number);
|
|
4071
4087
|
set isSelected(value: boolean);
|
|
4072
|
-
constructor(block:
|
|
4088
|
+
constructor(block: NodeMaterialBlock, globalState: GlobalState);
|
|
4073
4089
|
isOverlappingFrame(frame: GraphFrame): boolean;
|
|
4074
|
-
getPortForConnectionPoint(point:
|
|
4075
|
-
getLinksForConnectionPoint(point:
|
|
4090
|
+
getPortForConnectionPoint(point: NodeMaterialConnectionPoint): NodePort | null;
|
|
4091
|
+
getLinksForConnectionPoint(point: NodeMaterialConnectionPoint): NodeLink[];
|
|
4076
4092
|
private _refreshFrames;
|
|
4077
4093
|
_refreshLinks(): void;
|
|
4078
4094
|
refresh(): void;
|
|
@@ -4080,7 +4096,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4080
4096
|
cleanAccumulation(useCeil?: boolean): void;
|
|
4081
4097
|
private _onUp;
|
|
4082
4098
|
private _onMove;
|
|
4083
|
-
renderProperties():
|
|
4099
|
+
renderProperties(): Nullable<JSX.Element>;
|
|
4084
4100
|
appendVisual(root: HTMLDivElement, owner: GraphCanvasComponent): void;
|
|
4085
4101
|
dispose(): void;
|
|
4086
4102
|
}
|
|
@@ -4111,16 +4127,16 @@ declare module BABYLON.NodeEditor {
|
|
|
4111
4127
|
|
|
4112
4128
|
|
|
4113
4129
|
export class NodePort {
|
|
4114
|
-
connectionPoint:
|
|
4130
|
+
connectionPoint: NodeMaterialConnectionPoint;
|
|
4115
4131
|
node: GraphNode;
|
|
4116
4132
|
protected _element: HTMLDivElement;
|
|
4117
4133
|
protected _img: HTMLImageElement;
|
|
4118
4134
|
protected _globalState: GlobalState;
|
|
4119
4135
|
protected _portLabelElement: Element;
|
|
4120
|
-
protected _onCandidateLinkMovedObserver:
|
|
4121
|
-
protected _onSelectionChangedObserver:
|
|
4136
|
+
protected _onCandidateLinkMovedObserver: Nullable<Observer<Nullable<Vector2>>>;
|
|
4137
|
+
protected _onSelectionChangedObserver: Nullable<Observer<Nullable<ISelectionChangedOptions>>>;
|
|
4122
4138
|
protected _exposedOnFrame: boolean;
|
|
4123
|
-
delegatedPort:
|
|
4139
|
+
delegatedPort: Nullable<FrameNodePort>;
|
|
4124
4140
|
get element(): HTMLDivElement;
|
|
4125
4141
|
get portName(): string;
|
|
4126
4142
|
set portName(newName: string);
|
|
@@ -4132,9 +4148,9 @@ declare module BABYLON.NodeEditor {
|
|
|
4132
4148
|
set exposedPortPosition(value: number);
|
|
4133
4149
|
private _isConnectedToNodeOutsideOfFrame;
|
|
4134
4150
|
refresh(): void;
|
|
4135
|
-
constructor(portContainer: HTMLElement, connectionPoint:
|
|
4151
|
+
constructor(portContainer: HTMLElement, connectionPoint: NodeMaterialConnectionPoint, node: GraphNode, globalState: GlobalState);
|
|
4136
4152
|
dispose(): void;
|
|
4137
|
-
static CreatePortElement(connectionPoint:
|
|
4153
|
+
static CreatePortElement(connectionPoint: NodeMaterialConnectionPoint, node: GraphNode, root: HTMLElement, displayManager: Nullable<IDisplayManager>, globalState: GlobalState): NodePort;
|
|
4138
4154
|
}
|
|
4139
4155
|
|
|
4140
4156
|
|
|
@@ -4193,7 +4209,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4193
4209
|
rebuild?: boolean;
|
|
4194
4210
|
update?: boolean;
|
|
4195
4211
|
activatePreviewCommand?: boolean;
|
|
4196
|
-
callback?: (scene:
|
|
4212
|
+
callback?: (scene: Scene) => void;
|
|
4197
4213
|
}): void;
|
|
4198
4214
|
render(): JSX.Element;
|
|
4199
4215
|
}
|
|
@@ -4215,7 +4231,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4215
4231
|
|
|
4216
4232
|
interface IGradientStepComponentProps {
|
|
4217
4233
|
globalState: GlobalState;
|
|
4218
|
-
step:
|
|
4234
|
+
step: GradientBlockColorStep;
|
|
4219
4235
|
lineIndex: number;
|
|
4220
4236
|
onDelete: () => void;
|
|
4221
4237
|
onUpdateStep: () => void;
|
|
@@ -4236,7 +4252,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4236
4252
|
export class ImageSourcePropertyTabComponent extends React.Component<IPropertyComponentProps, {
|
|
4237
4253
|
isEmbedded: boolean;
|
|
4238
4254
|
}> {
|
|
4239
|
-
get imageSourceBlock():
|
|
4255
|
+
get imageSourceBlock(): ImageSourceBlock;
|
|
4240
4256
|
constructor(props: IPropertyComponentProps);
|
|
4241
4257
|
UNSAFE_componentWillUpdate(nextProps: IPropertyComponentProps, nextState: {
|
|
4242
4258
|
isEmbedded: boolean;
|
|
@@ -4292,12 +4308,12 @@ declare module BABYLON.NodeEditor {
|
|
|
4292
4308
|
|
|
4293
4309
|
export interface IPropertyComponentProps {
|
|
4294
4310
|
globalState: GlobalState;
|
|
4295
|
-
block:
|
|
4311
|
+
block: NodeMaterialBlock;
|
|
4296
4312
|
}
|
|
4297
4313
|
|
|
4298
4314
|
|
|
4299
4315
|
type ReflectionTexture = BABYLON.ReflectionTextureBlock | BABYLON.ReflectionBlock | BABYLON.RefractionBlock;
|
|
4300
|
-
type AnyTexture =
|
|
4316
|
+
type AnyTexture = TextureBlock | ReflectionTexture | BABYLON.CurrentScreenBlock | BABYLON.ParticleTextureBlock;
|
|
4301
4317
|
export class TexturePropertyTabComponent extends React.Component<IPropertyComponentProps, {
|
|
4302
4318
|
isEmbedded: boolean;
|
|
4303
4319
|
loadAsCubeTexture: boolean;
|
|
@@ -4349,20 +4365,20 @@ declare module BABYLON.NodeEditor {
|
|
|
4349
4365
|
|
|
4350
4366
|
|
|
4351
4367
|
export class ISelectionChangedOptions {
|
|
4352
|
-
selection:
|
|
4368
|
+
selection: Nullable<GraphNode | NodeLink | GraphFrame | NodePort | FramePortData>;
|
|
4353
4369
|
forceKeepSelection?: boolean;
|
|
4354
4370
|
}
|
|
4355
4371
|
export class GlobalState {
|
|
4356
|
-
nodeMaterial:
|
|
4372
|
+
nodeMaterial: NodeMaterial;
|
|
4357
4373
|
hostElement: HTMLElement;
|
|
4358
4374
|
hostDocument: HTMLDocument;
|
|
4359
4375
|
hostWindow: Window;
|
|
4360
4376
|
onNewNodeCreatedObservable: BABYLON.Observable<GraphNode>;
|
|
4361
|
-
onSelectionChangedObservable: BABYLON.Observable<
|
|
4377
|
+
onSelectionChangedObservable: BABYLON.Observable<Nullable<ISelectionChangedOptions>>;
|
|
4362
4378
|
onRebuildRequiredObservable: BABYLON.Observable<boolean>;
|
|
4363
4379
|
onBuiltObservable: BABYLON.Observable<void>;
|
|
4364
4380
|
onResetRequiredObservable: BABYLON.Observable<void>;
|
|
4365
|
-
onUpdateRequiredObservable: BABYLON.Observable<
|
|
4381
|
+
onUpdateRequiredObservable: BABYLON.Observable<Nullable<NodeMaterialBlock>>;
|
|
4366
4382
|
onZoomToFitRequiredObservable: BABYLON.Observable<void>;
|
|
4367
4383
|
onReOrganizedRequiredObservable: BABYLON.Observable<void>;
|
|
4368
4384
|
onLogRequiredObservable: BABYLON.Observable<LogEntry>;
|
|
@@ -4374,10 +4390,10 @@ declare module BABYLON.NodeEditor {
|
|
|
4374
4390
|
onBackFaceCullingChanged: BABYLON.Observable<void>;
|
|
4375
4391
|
onDepthPrePassChanged: BABYLON.Observable<void>;
|
|
4376
4392
|
onAnimationCommandActivated: BABYLON.Observable<void>;
|
|
4377
|
-
onCandidateLinkMoved: BABYLON.Observable<
|
|
4393
|
+
onCandidateLinkMoved: BABYLON.Observable<Nullable<Vector2>>;
|
|
4378
4394
|
onSelectionBoxMoved: BABYLON.Observable<ClientRect | DOMRect>;
|
|
4379
4395
|
onFrameCreatedObservable: BABYLON.Observable<GraphFrame>;
|
|
4380
|
-
onCandidatePortSelectedObservable: BABYLON.Observable<
|
|
4396
|
+
onCandidatePortSelectedObservable: BABYLON.Observable<Nullable<NodePort | FrameNodePort>>;
|
|
4381
4397
|
onImportFrameObservable: BABYLON.Observable<any>;
|
|
4382
4398
|
onGraphNodeRemovalObservable: BABYLON.Observable<GraphNode>;
|
|
4383
4399
|
onPopupClosedObservable: BABYLON.Observable<void>;
|
|
@@ -4387,7 +4403,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4387
4403
|
targetY: number;
|
|
4388
4404
|
needRepositioning?: boolean | undefined;
|
|
4389
4405
|
}>;
|
|
4390
|
-
onGetNodeFromBlock: (block:
|
|
4406
|
+
onGetNodeFromBlock: (block: NodeMaterialBlock) => GraphNode;
|
|
4391
4407
|
onGridSizeChanged: BABYLON.Observable<void>;
|
|
4392
4408
|
onExposePortOnFrameObservable: BABYLON.Observable<GraphNode>;
|
|
4393
4409
|
previewType: PreviewType;
|
|
@@ -4403,7 +4419,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4403
4419
|
directionalLight0: boolean;
|
|
4404
4420
|
directionalLight1: boolean;
|
|
4405
4421
|
controlCamera: boolean;
|
|
4406
|
-
storeEditorData: (serializationObject: any, frame?:
|
|
4422
|
+
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
|
4407
4423
|
_mode: BABYLON.NodeMaterialModes;
|
|
4408
4424
|
/** Gets the mode */
|
|
4409
4425
|
get mode(): BABYLON.NodeMaterialModes;
|
|
@@ -4423,7 +4439,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4423
4439
|
interface IGraphEditorState {
|
|
4424
4440
|
showPreviewPopUp: boolean;
|
|
4425
4441
|
}
|
|
4426
|
-
interface IInternalPreviewAreaOptions extends
|
|
4442
|
+
interface IInternalPreviewAreaOptions extends IInspectorOptions {
|
|
4427
4443
|
popup: boolean;
|
|
4428
4444
|
original: boolean;
|
|
4429
4445
|
explorerWidth?: string;
|
|
@@ -4454,7 +4470,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4454
4470
|
* @param block
|
|
4455
4471
|
* @param recursion
|
|
4456
4472
|
*/
|
|
4457
|
-
createNodeFromObject(block:
|
|
4473
|
+
createNodeFromObject(block: NodeMaterialBlock, recursion?: boolean): GraphNode;
|
|
4458
4474
|
addValueNode(type: string): GraphNode;
|
|
4459
4475
|
componentDidMount(): void;
|
|
4460
4476
|
componentWillUnmount(): void;
|
|
@@ -4467,7 +4483,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4467
4483
|
loadGraph(): void;
|
|
4468
4484
|
showWaitScreen(): void;
|
|
4469
4485
|
hideWaitScreen(): void;
|
|
4470
|
-
reOrganize(editorData?:
|
|
4486
|
+
reOrganize(editorData?: Nullable<IEditorData>, isImportingAFrame?: boolean): void;
|
|
4471
4487
|
onPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
4472
4488
|
onPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
4473
4489
|
resizeColumns(evt: React.PointerEvent<HTMLDivElement>, forLeft?: boolean): void;
|
|
@@ -4479,8 +4495,8 @@ declare module BABYLON.NodeEditor {
|
|
|
4479
4495
|
initiatePreviewArea: (canvas?: HTMLCanvasElement) => void;
|
|
4480
4496
|
createPopUp: () => void;
|
|
4481
4497
|
createPopupWindow: (title: string, windowVariableName: string, width?: number, height?: number) => Window | null;
|
|
4482
|
-
createPreviewMeshControlHost: (options: IInternalPreviewAreaOptions, parentControl:
|
|
4483
|
-
createPreviewHost: (options: IInternalPreviewAreaOptions, parentControl:
|
|
4498
|
+
createPreviewMeshControlHost: (options: IInternalPreviewAreaOptions, parentControl: Nullable<HTMLElement>) => void;
|
|
4499
|
+
createPreviewHost: (options: IInternalPreviewAreaOptions, parentControl: Nullable<HTMLElement>) => void;
|
|
4484
4500
|
fixPopUpStyles: (document: Document) => void;
|
|
4485
4501
|
render(): JSX.Element;
|
|
4486
4502
|
}
|
|
@@ -4492,13 +4508,13 @@ declare module BABYLON.NodeEditor {
|
|
|
4492
4508
|
* Interface used to specify creation options for the node editor
|
|
4493
4509
|
*/
|
|
4494
4510
|
export interface INodeEditorOptions {
|
|
4495
|
-
nodeMaterial:
|
|
4511
|
+
nodeMaterial: NodeMaterial;
|
|
4496
4512
|
hostElement?: HTMLElement;
|
|
4497
4513
|
customSave?: {
|
|
4498
4514
|
label: string;
|
|
4499
4515
|
action: (data: string) => Promise<void>;
|
|
4500
4516
|
};
|
|
4501
|
-
customLoadObservable?:
|
|
4517
|
+
customLoadObservable?: Observable<any>;
|
|
4502
4518
|
}
|
|
4503
4519
|
/**
|
|
4504
4520
|
* Class used to create a node editor
|
|
@@ -4550,10 +4566,10 @@ declare module BABYLON.NodeEditor {
|
|
|
4550
4566
|
|
|
4551
4567
|
|
|
4552
4568
|
export class SerializationTools {
|
|
4553
|
-
static UpdateLocations(material:
|
|
4554
|
-
static Serialize(material:
|
|
4569
|
+
static UpdateLocations(material: NodeMaterial, globalState: GlobalState, frame?: Nullable<GraphFrame>): void;
|
|
4570
|
+
static Serialize(material: NodeMaterial, globalState: GlobalState, frame?: Nullable<GraphFrame>): string;
|
|
4555
4571
|
static Deserialize(serializationObject: any, globalState: GlobalState): void;
|
|
4556
|
-
static AddFrameToMaterial(serializationObject: any, globalState: GlobalState, currentMaterial:
|
|
4572
|
+
static AddFrameToMaterial(serializationObject: any, globalState: GlobalState, currentMaterial: NodeMaterial): void;
|
|
4557
4573
|
}
|
|
4558
4574
|
|
|
4559
4575
|
|
|
@@ -4575,7 +4591,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4575
4591
|
isSelected?: () => boolean;
|
|
4576
4592
|
onSelect?: (value: boolean) => void;
|
|
4577
4593
|
onValueChanged?: () => void;
|
|
4578
|
-
onPropertyChangedObservable?:
|
|
4594
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
4579
4595
|
disabled?: boolean;
|
|
4580
4596
|
}
|
|
4581
4597
|
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
|
@@ -4599,7 +4615,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4599
4615
|
label: string;
|
|
4600
4616
|
target: any;
|
|
4601
4617
|
propertyName: string;
|
|
4602
|
-
onPropertyChangedObservable?:
|
|
4618
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
4603
4619
|
onChange?: () => void;
|
|
4604
4620
|
globalState: GlobalState;
|
|
4605
4621
|
}
|
|
@@ -4622,7 +4638,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4622
4638
|
label: string;
|
|
4623
4639
|
target: any;
|
|
4624
4640
|
propertyName: string;
|
|
4625
|
-
onPropertyChangedObservable?:
|
|
4641
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
4626
4642
|
onChange?: () => void;
|
|
4627
4643
|
globalState: GlobalState;
|
|
4628
4644
|
}
|
|
@@ -4641,13 +4657,13 @@ declare module BABYLON.NodeEditor {
|
|
|
4641
4657
|
|
|
4642
4658
|
|
|
4643
4659
|
export interface IColorPickerComponentProps {
|
|
4644
|
-
value:
|
|
4660
|
+
value: Color4 | Color3;
|
|
4645
4661
|
onColorChanged: (newOne: string) => void;
|
|
4646
4662
|
globalState: GlobalState;
|
|
4647
4663
|
}
|
|
4648
4664
|
interface IColorPickerComponentState {
|
|
4649
4665
|
pickerEnabled: boolean;
|
|
4650
|
-
color:
|
|
4666
|
+
color: Color3 | Color4;
|
|
4651
4667
|
hex: string;
|
|
4652
4668
|
}
|
|
4653
4669
|
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
@@ -4707,7 +4723,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4707
4723
|
propertyName: string;
|
|
4708
4724
|
onChange?: (newValue: number) => void;
|
|
4709
4725
|
isInteger?: boolean;
|
|
4710
|
-
onPropertyChangedObservable?:
|
|
4726
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
4711
4727
|
additionalClass?: string;
|
|
4712
4728
|
step?: string;
|
|
4713
4729
|
digits?: number;
|
|
@@ -4777,7 +4793,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4777
4793
|
step?: number;
|
|
4778
4794
|
onChange?: (newValue: BABYLON.Matrix) => void;
|
|
4779
4795
|
onModeChange?: (mode: number) => void;
|
|
4780
|
-
onPropertyChangedObservable?:
|
|
4796
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
4781
4797
|
mode?: number;
|
|
4782
4798
|
globalState: GlobalState;
|
|
4783
4799
|
}
|
|
@@ -4793,9 +4809,9 @@ declare module BABYLON.NodeEditor {
|
|
|
4793
4809
|
mode: number;
|
|
4794
4810
|
angle: number;
|
|
4795
4811
|
}): boolean;
|
|
4796
|
-
raiseOnPropertyChanged(previousValue:
|
|
4812
|
+
raiseOnPropertyChanged(previousValue: Vector3): void;
|
|
4797
4813
|
updateMatrix(): void;
|
|
4798
|
-
updateRow(value:
|
|
4814
|
+
updateRow(value: Vector4, row: number): void;
|
|
4799
4815
|
updateBasedOnMode(value: number): void;
|
|
4800
4816
|
render(): JSX.Element;
|
|
4801
4817
|
}
|
|
@@ -4841,10 +4857,10 @@ declare module BABYLON.NodeEditor {
|
|
|
4841
4857
|
target: any;
|
|
4842
4858
|
className?: string;
|
|
4843
4859
|
propertyName?: string;
|
|
4844
|
-
options:
|
|
4860
|
+
options: IInspectableOptions[];
|
|
4845
4861
|
noDirectUpdate?: boolean;
|
|
4846
4862
|
onSelect?: (value: number | string) => void;
|
|
4847
|
-
onPropertyChangedObservable?:
|
|
4863
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
4848
4864
|
valuesAreStrings?: boolean;
|
|
4849
4865
|
defaultIfNull?: number;
|
|
4850
4866
|
getSelection?: (target: any) => number;
|
|
@@ -4890,7 +4906,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4890
4906
|
useEuler?: boolean;
|
|
4891
4907
|
onChange?: (value: number) => void;
|
|
4892
4908
|
onInput?: (value: number) => void;
|
|
4893
|
-
onPropertyChangedObservable?:
|
|
4909
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
4894
4910
|
decimalCount?: number;
|
|
4895
4911
|
globalState: GlobalState;
|
|
4896
4912
|
}
|
|
@@ -4918,7 +4934,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4918
4934
|
multilines?: boolean;
|
|
4919
4935
|
onChange?: (value: string) => void;
|
|
4920
4936
|
validator?: (value: string) => boolean;
|
|
4921
|
-
onPropertyChangedObservable?:
|
|
4937
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
4922
4938
|
}
|
|
4923
4939
|
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
|
|
4924
4940
|
value: string;
|
|
@@ -4952,7 +4968,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4952
4968
|
|
|
4953
4969
|
|
|
4954
4970
|
interface ITextureLineComponentProps {
|
|
4955
|
-
texture:
|
|
4971
|
+
texture: BaseTexture;
|
|
4956
4972
|
width: number;
|
|
4957
4973
|
height: number;
|
|
4958
4974
|
globalState?: any;
|
|
@@ -4972,7 +4988,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4972
4988
|
componentDidMount(): void;
|
|
4973
4989
|
componentDidUpdate(): void;
|
|
4974
4990
|
updatePreview(): void;
|
|
4975
|
-
static UpdatePreview(previewCanvas: HTMLCanvasElement, texture:
|
|
4991
|
+
static UpdatePreview(previewCanvas: HTMLCanvasElement, texture: BaseTexture, width: number, options: ITextureLineComponentState, onReady?: () => void, globalState?: any): Promise<void>;
|
|
4976
4992
|
render(): JSX.Element;
|
|
4977
4993
|
}
|
|
4978
4994
|
|
|
@@ -4982,13 +4998,13 @@ declare module BABYLON.NodeEditor {
|
|
|
4982
4998
|
target: any;
|
|
4983
4999
|
propertyName: string;
|
|
4984
5000
|
step?: number;
|
|
4985
|
-
onChange?: (newvalue:
|
|
4986
|
-
onPropertyChangedObservable?:
|
|
5001
|
+
onChange?: (newvalue: Vector2) => void;
|
|
5002
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
4987
5003
|
globalState: GlobalState;
|
|
4988
5004
|
}
|
|
4989
5005
|
export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
|
|
4990
5006
|
isExpanded: boolean;
|
|
4991
|
-
value:
|
|
5007
|
+
value: Vector2;
|
|
4992
5008
|
}> {
|
|
4993
5009
|
static defaultProps: {
|
|
4994
5010
|
step: number;
|
|
@@ -4997,10 +5013,10 @@ declare module BABYLON.NodeEditor {
|
|
|
4997
5013
|
constructor(props: IVector2LineComponentProps);
|
|
4998
5014
|
shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
|
|
4999
5015
|
isExpanded: boolean;
|
|
5000
|
-
value:
|
|
5016
|
+
value: Vector2;
|
|
5001
5017
|
}): boolean;
|
|
5002
5018
|
switchExpandState(): void;
|
|
5003
|
-
raiseOnPropertyChanged(previousValue:
|
|
5019
|
+
raiseOnPropertyChanged(previousValue: Vector2): void;
|
|
5004
5020
|
updateStateX(value: number): void;
|
|
5005
5021
|
updateStateY(value: number): void;
|
|
5006
5022
|
render(): JSX.Element;
|
|
@@ -5012,13 +5028,13 @@ declare module BABYLON.NodeEditor {
|
|
|
5012
5028
|
target: any;
|
|
5013
5029
|
propertyName: string;
|
|
5014
5030
|
step?: number;
|
|
5015
|
-
onChange?: (newvalue:
|
|
5016
|
-
onPropertyChangedObservable?:
|
|
5031
|
+
onChange?: (newvalue: Vector3) => void;
|
|
5032
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5017
5033
|
globalState: GlobalState;
|
|
5018
5034
|
}
|
|
5019
5035
|
export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
|
|
5020
5036
|
isExpanded: boolean;
|
|
5021
|
-
value:
|
|
5037
|
+
value: Vector3;
|
|
5022
5038
|
}> {
|
|
5023
5039
|
static defaultProps: {
|
|
5024
5040
|
step: number;
|
|
@@ -5027,10 +5043,10 @@ declare module BABYLON.NodeEditor {
|
|
|
5027
5043
|
constructor(props: IVector3LineComponentProps);
|
|
5028
5044
|
shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
|
|
5029
5045
|
isExpanded: boolean;
|
|
5030
|
-
value:
|
|
5046
|
+
value: Vector3;
|
|
5031
5047
|
}): boolean;
|
|
5032
5048
|
switchExpandState(): void;
|
|
5033
|
-
raiseOnPropertyChanged(previousValue:
|
|
5049
|
+
raiseOnPropertyChanged(previousValue: Vector3): void;
|
|
5034
5050
|
updateVector3(): void;
|
|
5035
5051
|
updateStateX(value: number): void;
|
|
5036
5052
|
updateStateY(value: number): void;
|
|
@@ -5043,15 +5059,15 @@ declare module BABYLON.NodeEditor {
|
|
|
5043
5059
|
label: string;
|
|
5044
5060
|
target?: any;
|
|
5045
5061
|
propertyName?: string;
|
|
5046
|
-
value?:
|
|
5062
|
+
value?: Vector4;
|
|
5047
5063
|
step?: number;
|
|
5048
|
-
onChange?: (newvalue:
|
|
5049
|
-
onPropertyChangedObservable?:
|
|
5064
|
+
onChange?: (newvalue: Vector4) => void;
|
|
5065
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5050
5066
|
globalState: GlobalState;
|
|
5051
5067
|
}
|
|
5052
5068
|
export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
|
|
5053
5069
|
isExpanded: boolean;
|
|
5054
|
-
value:
|
|
5070
|
+
value: Vector4;
|
|
5055
5071
|
}> {
|
|
5056
5072
|
static defaultProps: {
|
|
5057
5073
|
step: number;
|
|
@@ -5060,10 +5076,10 @@ declare module BABYLON.NodeEditor {
|
|
|
5060
5076
|
constructor(props: IVector4LineComponentProps);
|
|
5061
5077
|
shouldComponentUpdate(nextProps: IVector4LineComponentProps, nextState: {
|
|
5062
5078
|
isExpanded: boolean;
|
|
5063
|
-
value:
|
|
5079
|
+
value: Vector4;
|
|
5064
5080
|
}): boolean;
|
|
5065
5081
|
switchExpandState(): void;
|
|
5066
|
-
raiseOnPropertyChanged(previousValue:
|
|
5082
|
+
raiseOnPropertyChanged(previousValue: Vector4): void;
|
|
5067
5083
|
updateVector4(): void;
|
|
5068
5084
|
updateStateX(value: number): void;
|
|
5069
5085
|
updateStateY(value: number): void;
|
|
@@ -5176,7 +5192,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5176
5192
|
isSelected?: () => boolean;
|
|
5177
5193
|
onSelect?: (value: boolean) => void;
|
|
5178
5194
|
onValueChanged?: () => void;
|
|
5179
|
-
onPropertyChangedObservable?:
|
|
5195
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5180
5196
|
disabled?: boolean;
|
|
5181
5197
|
icon?: string;
|
|
5182
5198
|
iconLabel?: string;
|
|
@@ -5184,6 +5200,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5184
5200
|
enabled: IconDefinition;
|
|
5185
5201
|
disabled: IconDefinition;
|
|
5186
5202
|
};
|
|
5203
|
+
large?: boolean;
|
|
5187
5204
|
}
|
|
5188
5205
|
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
|
5189
5206
|
isSelected: boolean;
|
|
@@ -5206,7 +5223,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5206
5223
|
label: string;
|
|
5207
5224
|
target: any;
|
|
5208
5225
|
propertyName: string;
|
|
5209
|
-
onPropertyChangedObservable?:
|
|
5226
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5210
5227
|
isLinear?: boolean;
|
|
5211
5228
|
icon?: string;
|
|
5212
5229
|
lockObject?: LockObject;
|
|
@@ -5222,7 +5239,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5222
5239
|
label: string;
|
|
5223
5240
|
target?: any;
|
|
5224
5241
|
propertyName: string;
|
|
5225
|
-
onPropertyChangedObservable?:
|
|
5242
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5226
5243
|
onChange?: () => void;
|
|
5227
5244
|
isLinear?: boolean;
|
|
5228
5245
|
icon?: string;
|
|
@@ -5238,7 +5255,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5238
5255
|
label: string;
|
|
5239
5256
|
target?: any;
|
|
5240
5257
|
propertyName: string;
|
|
5241
|
-
onPropertyChangedObservable?:
|
|
5258
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5242
5259
|
onChange?: () => void;
|
|
5243
5260
|
isLinear?: boolean;
|
|
5244
5261
|
icon?: string;
|
|
@@ -5271,7 +5288,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5271
5288
|
|
|
5272
5289
|
|
|
5273
5290
|
export interface IColorPickerComponentProps {
|
|
5274
|
-
value:
|
|
5291
|
+
value: Color4 | Color3;
|
|
5275
5292
|
linearHint?: boolean;
|
|
5276
5293
|
onColorChanged: (newOne: string) => void;
|
|
5277
5294
|
icon?: string;
|
|
@@ -5280,7 +5297,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5280
5297
|
}
|
|
5281
5298
|
interface IColorPickerComponentState {
|
|
5282
5299
|
pickerEnabled: boolean;
|
|
5283
|
-
color:
|
|
5300
|
+
color: Color3 | Color4;
|
|
5284
5301
|
hex: string;
|
|
5285
5302
|
}
|
|
5286
5303
|
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
@@ -5349,7 +5366,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5349
5366
|
lockObject?: LockObject;
|
|
5350
5367
|
onChange?: (newValue: number) => void;
|
|
5351
5368
|
isInteger?: boolean;
|
|
5352
|
-
onPropertyChangedObservable?:
|
|
5369
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5353
5370
|
additionalClass?: string;
|
|
5354
5371
|
step?: string;
|
|
5355
5372
|
digits?: number;
|
|
@@ -5361,12 +5378,12 @@ declare module BABYLON.NodeEditor {
|
|
|
5361
5378
|
icon?: string;
|
|
5362
5379
|
iconLabel?: string;
|
|
5363
5380
|
defaultValue?: number;
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
unitLocked?: boolean;
|
|
5381
|
+
arrows?: boolean;
|
|
5382
|
+
unit?: React.ReactNode;
|
|
5367
5383
|
}
|
|
5368
5384
|
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
|
5369
5385
|
value: string;
|
|
5386
|
+
dragging: boolean;
|
|
5370
5387
|
}> {
|
|
5371
5388
|
private _localChange;
|
|
5372
5389
|
private _store;
|
|
@@ -5375,11 +5392,14 @@ declare module BABYLON.NodeEditor {
|
|
|
5375
5392
|
getValueString(value: any): string;
|
|
5376
5393
|
shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
|
|
5377
5394
|
value: string;
|
|
5395
|
+
dragging: boolean;
|
|
5378
5396
|
}): boolean;
|
|
5379
5397
|
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
|
5380
5398
|
updateValue(valueString: string): void;
|
|
5381
5399
|
lock(): void;
|
|
5382
5400
|
unlock(): void;
|
|
5401
|
+
incrementValue(amount: number): void;
|
|
5402
|
+
onKeyDown(event: React.KeyboardEvent): void;
|
|
5383
5403
|
render(): JSX.Element;
|
|
5384
5404
|
}
|
|
5385
5405
|
|
|
@@ -5392,7 +5412,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5392
5412
|
onChange?: (newValue: number) => void;
|
|
5393
5413
|
isInteger?: boolean;
|
|
5394
5414
|
replaySourceReplacement?: string;
|
|
5395
|
-
onPropertyChangedObservable?:
|
|
5415
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5396
5416
|
additionalClass?: string;
|
|
5397
5417
|
step?: string;
|
|
5398
5418
|
digits?: number;
|
|
@@ -5466,6 +5486,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5466
5486
|
private _arrowsRef;
|
|
5467
5487
|
private _drag;
|
|
5468
5488
|
private _releaseListener;
|
|
5489
|
+
private _lockChangeListener;
|
|
5469
5490
|
render(): JSX.Element;
|
|
5470
5491
|
}
|
|
5471
5492
|
|
|
@@ -5551,11 +5572,11 @@ declare module BABYLON.NodeEditor {
|
|
|
5551
5572
|
label: string;
|
|
5552
5573
|
target: any;
|
|
5553
5574
|
propertyName: string;
|
|
5554
|
-
options:
|
|
5575
|
+
options: IInspectableOptions[];
|
|
5555
5576
|
noDirectUpdate?: boolean;
|
|
5556
5577
|
onSelect?: (value: number) => void;
|
|
5557
5578
|
extractValue?: () => number;
|
|
5558
|
-
onPropertyChangedObservable?:
|
|
5579
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5559
5580
|
allowNullValue?: boolean;
|
|
5560
5581
|
icon?: string;
|
|
5561
5582
|
iconLabel?: string;
|
|
@@ -5583,7 +5604,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5583
5604
|
|
|
5584
5605
|
|
|
5585
5606
|
interface IRadioButtonLineComponentProps {
|
|
5586
|
-
onSelectionChangedObservable:
|
|
5607
|
+
onSelectionChangedObservable: Observable<RadioButtonLineComponent>;
|
|
5587
5608
|
label: string;
|
|
5588
5609
|
isSelected: () => boolean;
|
|
5589
5610
|
onSelect: () => void;
|
|
@@ -5613,12 +5634,13 @@ declare module BABYLON.NodeEditor {
|
|
|
5613
5634
|
useEuler?: boolean;
|
|
5614
5635
|
onChange?: (value: number) => void;
|
|
5615
5636
|
onInput?: (value: number) => void;
|
|
5616
|
-
onPropertyChangedObservable?:
|
|
5637
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5617
5638
|
decimalCount?: number;
|
|
5618
5639
|
margin?: boolean;
|
|
5619
5640
|
icon?: string;
|
|
5620
5641
|
iconLabel?: string;
|
|
5621
5642
|
lockObject?: LockObject;
|
|
5643
|
+
unit?: React.ReactNode;
|
|
5622
5644
|
}
|
|
5623
5645
|
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
|
5624
5646
|
value: number;
|
|
@@ -5643,25 +5665,22 @@ declare module BABYLON.NodeEditor {
|
|
|
5643
5665
|
* @param getProperty
|
|
5644
5666
|
* @returns a proxy object that can be passed as a target into the input
|
|
5645
5667
|
*/
|
|
5646
|
-
export function makeTargetsProxy<Type>(targets: Type[], onPropertyChangedObservable?:
|
|
5668
|
+
export function makeTargetsProxy<Type>(targets: Type[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>, getProperty?: (target: Type, property: keyof Type) => any): any;
|
|
5647
5669
|
|
|
5648
5670
|
|
|
5649
|
-
interface ITextInputLineComponentProps {
|
|
5671
|
+
export interface ITextInputLineComponentProps {
|
|
5650
5672
|
label?: string;
|
|
5651
5673
|
lockObject?: LockObject;
|
|
5652
5674
|
target?: any;
|
|
5653
5675
|
propertyName?: string;
|
|
5654
5676
|
value?: string;
|
|
5655
5677
|
onChange?: (value: string) => void;
|
|
5656
|
-
onPropertyChangedObservable?:
|
|
5678
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5657
5679
|
icon?: string;
|
|
5658
5680
|
iconLabel?: string;
|
|
5659
5681
|
noUnderline?: boolean;
|
|
5660
5682
|
numbersOnly?: boolean;
|
|
5661
5683
|
delayInput?: boolean;
|
|
5662
|
-
unit?: string;
|
|
5663
|
-
onUnitClicked?: (unit: string) => void;
|
|
5664
|
-
unitLocked?: boolean;
|
|
5665
5684
|
arrows?: boolean;
|
|
5666
5685
|
arrowsIncrement?: (amount: number) => void;
|
|
5667
5686
|
step?: number;
|
|
@@ -5670,6 +5689,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5670
5689
|
min?: number;
|
|
5671
5690
|
max?: number;
|
|
5672
5691
|
placeholder?: string;
|
|
5692
|
+
unit?: React.ReactNode;
|
|
5673
5693
|
}
|
|
5674
5694
|
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
|
|
5675
5695
|
value: string;
|
|
@@ -5683,6 +5703,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5683
5703
|
dragging: boolean;
|
|
5684
5704
|
}): boolean;
|
|
5685
5705
|
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
|
5706
|
+
getCurrentNumericValue(value: string): number;
|
|
5686
5707
|
updateValue(value: string): void;
|
|
5687
5708
|
incrementValue(amount: number): void;
|
|
5688
5709
|
onKeyDown(event: React.KeyboardEvent): void;
|
|
@@ -5711,6 +5732,15 @@ declare module BABYLON.NodeEditor {
|
|
|
5711
5732
|
}
|
|
5712
5733
|
|
|
5713
5734
|
|
|
5735
|
+
/// <reference types="react" />
|
|
5736
|
+
interface IUnitButtonProps {
|
|
5737
|
+
unit: string;
|
|
5738
|
+
locked?: boolean;
|
|
5739
|
+
onClick?: (unit: string) => void;
|
|
5740
|
+
}
|
|
5741
|
+
export function UnitButton(props: IUnitButtonProps): JSX.Element;
|
|
5742
|
+
|
|
5743
|
+
|
|
5714
5744
|
interface IValueLineComponentProps {
|
|
5715
5745
|
label: string;
|
|
5716
5746
|
value: number;
|
|
@@ -5731,14 +5761,14 @@ declare module BABYLON.NodeEditor {
|
|
|
5731
5761
|
target: any;
|
|
5732
5762
|
propertyName: string;
|
|
5733
5763
|
step?: number;
|
|
5734
|
-
onChange?: (newvalue:
|
|
5735
|
-
onPropertyChangedObservable?:
|
|
5764
|
+
onChange?: (newvalue: Vector2) => void;
|
|
5765
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5736
5766
|
icon?: string;
|
|
5737
5767
|
iconLabel?: string;
|
|
5738
5768
|
}
|
|
5739
5769
|
export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
|
|
5740
5770
|
isExpanded: boolean;
|
|
5741
|
-
value:
|
|
5771
|
+
value: Vector2;
|
|
5742
5772
|
}> {
|
|
5743
5773
|
static defaultProps: {
|
|
5744
5774
|
step: number;
|
|
@@ -5747,10 +5777,10 @@ declare module BABYLON.NodeEditor {
|
|
|
5747
5777
|
constructor(props: IVector2LineComponentProps);
|
|
5748
5778
|
shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
|
|
5749
5779
|
isExpanded: boolean;
|
|
5750
|
-
value:
|
|
5780
|
+
value: Vector2;
|
|
5751
5781
|
}): boolean;
|
|
5752
5782
|
switchExpandState(): void;
|
|
5753
|
-
raiseOnPropertyChanged(previousValue:
|
|
5783
|
+
raiseOnPropertyChanged(previousValue: Vector2): void;
|
|
5754
5784
|
updateStateX(value: number): void;
|
|
5755
5785
|
updateStateY(value: number): void;
|
|
5756
5786
|
render(): JSX.Element;
|
|
@@ -5762,16 +5792,16 @@ declare module BABYLON.NodeEditor {
|
|
|
5762
5792
|
target: any;
|
|
5763
5793
|
propertyName: string;
|
|
5764
5794
|
step?: number;
|
|
5765
|
-
onChange?: (newvalue:
|
|
5795
|
+
onChange?: (newvalue: Vector3) => void;
|
|
5766
5796
|
useEuler?: boolean;
|
|
5767
|
-
onPropertyChangedObservable?:
|
|
5797
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5768
5798
|
noSlider?: boolean;
|
|
5769
5799
|
icon?: string;
|
|
5770
5800
|
iconLabel?: string;
|
|
5771
5801
|
}
|
|
5772
5802
|
export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
|
|
5773
5803
|
isExpanded: boolean;
|
|
5774
|
-
value:
|
|
5804
|
+
value: Vector3;
|
|
5775
5805
|
}> {
|
|
5776
5806
|
static defaultProps: {
|
|
5777
5807
|
step: number;
|
|
@@ -5781,10 +5811,10 @@ declare module BABYLON.NodeEditor {
|
|
|
5781
5811
|
getCurrentValue(): any;
|
|
5782
5812
|
shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
|
|
5783
5813
|
isExpanded: boolean;
|
|
5784
|
-
value:
|
|
5814
|
+
value: Vector3;
|
|
5785
5815
|
}): boolean;
|
|
5786
5816
|
switchExpandState(): void;
|
|
5787
|
-
raiseOnPropertyChanged(previousValue:
|
|
5817
|
+
raiseOnPropertyChanged(previousValue: Vector3): void;
|
|
5788
5818
|
updateVector3(): void;
|
|
5789
5819
|
updateStateX(value: number): void;
|
|
5790
5820
|
updateStateY(value: number): void;
|
|
@@ -5798,15 +5828,15 @@ declare module BABYLON.NodeEditor {
|
|
|
5798
5828
|
target: any;
|
|
5799
5829
|
propertyName: string;
|
|
5800
5830
|
step?: number;
|
|
5801
|
-
onChange?: (newvalue:
|
|
5831
|
+
onChange?: (newvalue: Vector4) => void;
|
|
5802
5832
|
useEuler?: boolean;
|
|
5803
|
-
onPropertyChangedObservable?:
|
|
5833
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5804
5834
|
icon?: string;
|
|
5805
5835
|
iconLabel?: string;
|
|
5806
5836
|
}
|
|
5807
5837
|
export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
|
|
5808
5838
|
isExpanded: boolean;
|
|
5809
|
-
value:
|
|
5839
|
+
value: Vector4;
|
|
5810
5840
|
}> {
|
|
5811
5841
|
static defaultProps: {
|
|
5812
5842
|
step: number;
|
|
@@ -5816,10 +5846,10 @@ declare module BABYLON.NodeEditor {
|
|
|
5816
5846
|
getCurrentValue(): any;
|
|
5817
5847
|
shouldComponentUpdate(nextProps: IVector4LineComponentProps, nextState: {
|
|
5818
5848
|
isExpanded: boolean;
|
|
5819
|
-
value:
|
|
5849
|
+
value: Vector4;
|
|
5820
5850
|
}): boolean;
|
|
5821
5851
|
switchExpandState(): void;
|
|
5822
|
-
raiseOnPropertyChanged(previousValue:
|
|
5852
|
+
raiseOnPropertyChanged(previousValue: Vector4): void;
|
|
5823
5853
|
updateVector4(): void;
|
|
5824
5854
|
updateStateX(value: number): void;
|
|
5825
5855
|
updateStateY(value: number): void;
|
|
@@ -5852,9 +5882,9 @@ declare module BABYLON.NodeEditor {
|
|
|
5852
5882
|
|
|
5853
5883
|
|
|
5854
5884
|
interface ICheckboxPropertyGridComponentProps {
|
|
5855
|
-
checkbox:
|
|
5885
|
+
checkbox: Checkbox;
|
|
5856
5886
|
lockObject: LockObject;
|
|
5857
|
-
onPropertyChangedObservable?:
|
|
5887
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5858
5888
|
}
|
|
5859
5889
|
export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
|
|
5860
5890
|
constructor(props: ICheckboxPropertyGridComponentProps);
|
|
@@ -5863,9 +5893,9 @@ declare module BABYLON.NodeEditor {
|
|
|
5863
5893
|
|
|
5864
5894
|
|
|
5865
5895
|
interface IColorPickerPropertyGridComponentProps {
|
|
5866
|
-
colorPicker:
|
|
5896
|
+
colorPicker: ColorPicker;
|
|
5867
5897
|
lockObject: LockObject;
|
|
5868
|
-
onPropertyChangedObservable?:
|
|
5898
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5869
5899
|
}
|
|
5870
5900
|
export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
|
|
5871
5901
|
constructor(props: IColorPickerPropertyGridComponentProps);
|
|
@@ -5877,7 +5907,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5877
5907
|
controls?: BABYLON.GUI.Control[];
|
|
5878
5908
|
control?: BABYLON.GUI.Control;
|
|
5879
5909
|
lockObject: LockObject;
|
|
5880
|
-
onPropertyChangedObservable?:
|
|
5910
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5881
5911
|
}
|
|
5882
5912
|
export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
|
|
5883
5913
|
constructor(props: ICommonControlPropertyGridComponentProps);
|
|
@@ -5887,9 +5917,9 @@ declare module BABYLON.NodeEditor {
|
|
|
5887
5917
|
|
|
5888
5918
|
|
|
5889
5919
|
interface IControlPropertyGridComponentProps {
|
|
5890
|
-
control:
|
|
5920
|
+
control: Control;
|
|
5891
5921
|
lockObject: LockObject;
|
|
5892
|
-
onPropertyChangedObservable?:
|
|
5922
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5893
5923
|
}
|
|
5894
5924
|
export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
|
|
5895
5925
|
constructor(props: IControlPropertyGridComponentProps);
|
|
@@ -5898,9 +5928,9 @@ declare module BABYLON.NodeEditor {
|
|
|
5898
5928
|
|
|
5899
5929
|
|
|
5900
5930
|
interface IEllipsePropertyGridComponentProps {
|
|
5901
|
-
ellipse:
|
|
5931
|
+
ellipse: Ellipse;
|
|
5902
5932
|
lockObject: LockObject;
|
|
5903
|
-
onPropertyChangedObservable?:
|
|
5933
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5904
5934
|
}
|
|
5905
5935
|
export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
|
|
5906
5936
|
constructor(props: IEllipsePropertyGridComponentProps);
|
|
@@ -5909,9 +5939,9 @@ declare module BABYLON.NodeEditor {
|
|
|
5909
5939
|
|
|
5910
5940
|
|
|
5911
5941
|
interface IGridPropertyGridComponentProps {
|
|
5912
|
-
grid:
|
|
5942
|
+
grid: Grid;
|
|
5913
5943
|
lockObject: LockObject;
|
|
5914
|
-
onPropertyChangedObservable?:
|
|
5944
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5915
5945
|
}
|
|
5916
5946
|
export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
|
|
5917
5947
|
constructor(props: IGridPropertyGridComponentProps);
|
|
@@ -5922,9 +5952,9 @@ declare module BABYLON.NodeEditor {
|
|
|
5922
5952
|
|
|
5923
5953
|
|
|
5924
5954
|
interface IImageBasedSliderPropertyGridComponentProps {
|
|
5925
|
-
imageBasedSlider:
|
|
5955
|
+
imageBasedSlider: ImageBasedSlider;
|
|
5926
5956
|
lockObject: LockObject;
|
|
5927
|
-
onPropertyChangedObservable?:
|
|
5957
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5928
5958
|
}
|
|
5929
5959
|
export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
|
|
5930
5960
|
constructor(props: IImageBasedSliderPropertyGridComponentProps);
|
|
@@ -5935,7 +5965,7 @@ declare module BABYLON.NodeEditor {
|
|
|
5935
5965
|
interface IImagePropertyGridComponentProps {
|
|
5936
5966
|
image: BABYLON.GUI.Image;
|
|
5937
5967
|
lockObject: LockObject;
|
|
5938
|
-
onPropertyChangedObservable?:
|
|
5968
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5939
5969
|
}
|
|
5940
5970
|
export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
|
|
5941
5971
|
constructor(props: IImagePropertyGridComponentProps);
|
|
@@ -5944,9 +5974,9 @@ declare module BABYLON.NodeEditor {
|
|
|
5944
5974
|
|
|
5945
5975
|
|
|
5946
5976
|
interface IInputTextPropertyGridComponentProps {
|
|
5947
|
-
inputText:
|
|
5977
|
+
inputText: InputText;
|
|
5948
5978
|
lockObject: LockObject;
|
|
5949
|
-
onPropertyChangedObservable?:
|
|
5979
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5950
5980
|
}
|
|
5951
5981
|
export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
|
|
5952
5982
|
constructor(props: IInputTextPropertyGridComponentProps);
|
|
@@ -5955,9 +5985,9 @@ declare module BABYLON.NodeEditor {
|
|
|
5955
5985
|
|
|
5956
5986
|
|
|
5957
5987
|
interface ILinePropertyGridComponentProps {
|
|
5958
|
-
line:
|
|
5988
|
+
line: Line;
|
|
5959
5989
|
lockObject: LockObject;
|
|
5960
|
-
onPropertyChangedObservable?:
|
|
5990
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5961
5991
|
}
|
|
5962
5992
|
export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
|
|
5963
5993
|
constructor(props: ILinePropertyGridComponentProps);
|
|
@@ -5967,9 +5997,9 @@ declare module BABYLON.NodeEditor {
|
|
|
5967
5997
|
|
|
5968
5998
|
|
|
5969
5999
|
interface IRadioButtonPropertyGridComponentProps {
|
|
5970
|
-
radioButtons:
|
|
6000
|
+
radioButtons: RadioButton[];
|
|
5971
6001
|
lockObject: LockObject;
|
|
5972
|
-
onPropertyChangedObservable?:
|
|
6002
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5973
6003
|
}
|
|
5974
6004
|
export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
|
|
5975
6005
|
constructor(props: IRadioButtonPropertyGridComponentProps);
|
|
@@ -5978,9 +6008,9 @@ declare module BABYLON.NodeEditor {
|
|
|
5978
6008
|
|
|
5979
6009
|
|
|
5980
6010
|
interface IRectanglePropertyGridComponentProps {
|
|
5981
|
-
rectangle:
|
|
6011
|
+
rectangle: Rectangle;
|
|
5982
6012
|
lockObject: LockObject;
|
|
5983
|
-
onPropertyChangedObservable?:
|
|
6013
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5984
6014
|
}
|
|
5985
6015
|
export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
|
|
5986
6016
|
constructor(props: IRectanglePropertyGridComponentProps);
|
|
@@ -5989,9 +6019,9 @@ declare module BABYLON.NodeEditor {
|
|
|
5989
6019
|
|
|
5990
6020
|
|
|
5991
6021
|
interface IScrollViewerPropertyGridComponentProps {
|
|
5992
|
-
scrollViewer:
|
|
6022
|
+
scrollViewer: ScrollViewer;
|
|
5993
6023
|
lockObject: LockObject;
|
|
5994
|
-
onPropertyChangedObservable?:
|
|
6024
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
5995
6025
|
}
|
|
5996
6026
|
export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
|
|
5997
6027
|
constructor(props: IScrollViewerPropertyGridComponentProps);
|
|
@@ -6000,9 +6030,9 @@ declare module BABYLON.NodeEditor {
|
|
|
6000
6030
|
|
|
6001
6031
|
|
|
6002
6032
|
interface ISliderPropertyGridComponentProps {
|
|
6003
|
-
slider:
|
|
6033
|
+
slider: Slider;
|
|
6004
6034
|
lockObject: LockObject;
|
|
6005
|
-
onPropertyChangedObservable?:
|
|
6035
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
6006
6036
|
}
|
|
6007
6037
|
export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
|
|
6008
6038
|
constructor(props: ISliderPropertyGridComponentProps);
|
|
@@ -6011,9 +6041,9 @@ declare module BABYLON.NodeEditor {
|
|
|
6011
6041
|
|
|
6012
6042
|
|
|
6013
6043
|
interface IStackPanelPropertyGridComponentProps {
|
|
6014
|
-
stackPanel:
|
|
6044
|
+
stackPanel: StackPanel;
|
|
6015
6045
|
lockObject: LockObject;
|
|
6016
|
-
onPropertyChangedObservable?:
|
|
6046
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
6017
6047
|
}
|
|
6018
6048
|
export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
|
|
6019
6049
|
constructor(props: IStackPanelPropertyGridComponentProps);
|
|
@@ -6022,9 +6052,9 @@ declare module BABYLON.NodeEditor {
|
|
|
6022
6052
|
|
|
6023
6053
|
|
|
6024
6054
|
interface ITextBlockPropertyGridComponentProps {
|
|
6025
|
-
textBlock:
|
|
6055
|
+
textBlock: TextBlock;
|
|
6026
6056
|
lockObject: LockObject;
|
|
6027
|
-
onPropertyChangedObservable?:
|
|
6057
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
6028
6058
|
}
|
|
6029
6059
|
export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
|
|
6030
6060
|
constructor(props: ITextBlockPropertyGridComponentProps);
|