babylonjs-node-editor 7.5.0 → 7.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babylon.nodeEditor.d.ts +53 -35
- package/babylon.nodeEditor.js +1 -1
- package/babylon.nodeEditor.js.map +1 -1
- package/babylon.nodeEditor.max.js +274 -93
- package/babylon.nodeEditor.module.d.ts +102 -70
- package/package.json +2 -2
|
@@ -606,6 +606,7 @@ import { NodeMaterialBlock } from "babylonjs/Materials/Node/nodeMaterialBlock";
|
|
|
606
606
|
import { INodeContainer } from "babylonjs-node-editor/nodeGraphSystem/interfaces/nodeContainer";
|
|
607
607
|
import { INodeData } from "babylonjs-node-editor/nodeGraphSystem/interfaces/nodeData";
|
|
608
608
|
import { IPortData } from "babylonjs-node-editor/nodeGraphSystem/interfaces/portData";
|
|
609
|
+
import { NodeMaterialTeleportOutBlock } from "babylonjs/Materials/Node/Blocks/Teleport/teleportOutBlock";
|
|
609
610
|
export class BlockNodeData implements INodeData {
|
|
610
611
|
data: NodeMaterialBlock;
|
|
611
612
|
private _inputs;
|
|
@@ -621,7 +622,7 @@ export class BlockNodeData implements INodeData {
|
|
|
621
622
|
getPortByName(name: string): IPortData | null;
|
|
622
623
|
dispose(): void;
|
|
623
624
|
prepareHeaderIcon(iconDiv: HTMLDivElement, img: HTMLImageElement): void;
|
|
624
|
-
get invisibleEndpoints():
|
|
625
|
+
get invisibleEndpoints(): NodeMaterialTeleportOutBlock[] | null;
|
|
625
626
|
constructor(data: NodeMaterialBlock, nodeContainer: INodeContainer);
|
|
626
627
|
}
|
|
627
628
|
|
|
@@ -1593,7 +1594,7 @@ export interface IColorComponentEntryProps {
|
|
|
1593
1594
|
disabled?: boolean;
|
|
1594
1595
|
lockObject: LockObject;
|
|
1595
1596
|
}
|
|
1596
|
-
export class
|
|
1597
|
+
export class ColorComponentComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
1597
1598
|
constructor(props: IColorComponentEntryProps);
|
|
1598
1599
|
updateValue(valueString: string): void;
|
|
1599
1600
|
lock(): void;
|
|
@@ -1609,7 +1610,7 @@ import { LockObject } from "babylonjs-node-editor/tabs/propertyGrids/lockObject"
|
|
|
1609
1610
|
/**
|
|
1610
1611
|
* Interface used to specify creation options for color picker
|
|
1611
1612
|
*/
|
|
1612
|
-
export interface
|
|
1613
|
+
export interface IColorPickerComponentProps {
|
|
1613
1614
|
color: Color3 | Color4;
|
|
1614
1615
|
linearhint?: boolean;
|
|
1615
1616
|
debugMode?: boolean;
|
|
@@ -1627,13 +1628,13 @@ export interface IColorPickerState {
|
|
|
1627
1628
|
/**
|
|
1628
1629
|
* Class used to create a color picker
|
|
1629
1630
|
*/
|
|
1630
|
-
export class
|
|
1631
|
+
export class ColorPickerComponent extends React.Component<IColorPickerComponentProps, IColorPickerState> {
|
|
1631
1632
|
private _saturationRef;
|
|
1632
1633
|
private _hueRef;
|
|
1633
1634
|
private _isSaturationPointerDown;
|
|
1634
1635
|
private _isHuePointerDown;
|
|
1635
|
-
constructor(props:
|
|
1636
|
-
shouldComponentUpdate(nextProps:
|
|
1636
|
+
constructor(props: IColorPickerComponentProps);
|
|
1637
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerState): boolean;
|
|
1637
1638
|
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1638
1639
|
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1639
1640
|
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
@@ -1657,7 +1658,7 @@ export interface IHexColorProps {
|
|
|
1657
1658
|
onChange: (value: string) => void;
|
|
1658
1659
|
lockObject: LockObject;
|
|
1659
1660
|
}
|
|
1660
|
-
export class
|
|
1661
|
+
export class HexColorComponent extends React.Component<IHexColorProps, {
|
|
1661
1662
|
hex: string;
|
|
1662
1663
|
}> {
|
|
1663
1664
|
constructor(props: IHexColorProps);
|
|
@@ -2116,7 +2117,7 @@ declare module "babylonjs-node-editor/components/lines/ColorPickerLineComponent"
|
|
|
2116
2117
|
import * as React from "react";
|
|
2117
2118
|
import { Color4, Color3 } from "babylonjs/Maths/math.color";
|
|
2118
2119
|
import { LockObject } from "babylonjs-node-editor/tabs/propertyGrids/lockObject";
|
|
2119
|
-
export interface
|
|
2120
|
+
export interface IColorPickerLineComponentProps {
|
|
2120
2121
|
value: Color4 | Color3;
|
|
2121
2122
|
linearHint?: boolean;
|
|
2122
2123
|
onColorChanged: (newOne: string) => void;
|
|
@@ -2131,14 +2132,14 @@ interface IColorPickerComponentState {
|
|
|
2131
2132
|
color: Color3 | Color4;
|
|
2132
2133
|
hex: string;
|
|
2133
2134
|
}
|
|
2134
|
-
export class ColorPickerLineComponent extends React.Component<
|
|
2135
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerLineComponentProps, IColorPickerComponentState> {
|
|
2135
2136
|
private _floatRef;
|
|
2136
2137
|
private _floatHostRef;
|
|
2137
2138
|
private _coverRef;
|
|
2138
|
-
constructor(props:
|
|
2139
|
+
constructor(props: IColorPickerLineComponentProps);
|
|
2139
2140
|
syncPositions(): void;
|
|
2140
|
-
shouldComponentUpdate(nextProps:
|
|
2141
|
-
getHexString(props?: Readonly<
|
|
2141
|
+
shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
2142
|
+
getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
|
|
2142
2143
|
children?: React.ReactNode;
|
|
2143
2144
|
}>): string;
|
|
2144
2145
|
componentDidUpdate(): void;
|
|
@@ -2383,7 +2384,7 @@ export interface IGraphNodeProps {
|
|
|
2383
2384
|
highlighted?: boolean;
|
|
2384
2385
|
parentContainerId: string;
|
|
2385
2386
|
}
|
|
2386
|
-
export const
|
|
2387
|
+
export const SingleGraphNode: FC<IGraphNodeProps>;
|
|
2387
2388
|
|
|
2388
2389
|
}
|
|
2389
2390
|
declare module "babylonjs-node-editor/components/reactGraphSystem/GraphNodesContainer" {
|
|
@@ -2506,6 +2507,14 @@ export type ToggleProps = {
|
|
|
2506
2507
|
};
|
|
2507
2508
|
export const Toggle: React.FC<ToggleProps>;
|
|
2508
2509
|
|
|
2510
|
+
}
|
|
2511
|
+
declare module "babylonjs-node-editor/copyCommandToClipboard" {
|
|
2512
|
+
export function copyCommandToClipboard(strCommand: string): void;
|
|
2513
|
+
export function getClassNameWithNamespace(obj: any): {
|
|
2514
|
+
className: string;
|
|
2515
|
+
babylonNamespace: string;
|
|
2516
|
+
};
|
|
2517
|
+
|
|
2509
2518
|
}
|
|
2510
2519
|
declare module "babylonjs-node-editor/lines/booleanLineComponent" {
|
|
2511
2520
|
import * as React from "react";
|
|
@@ -2571,6 +2580,7 @@ export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponen
|
|
|
2571
2580
|
isConflict: boolean;
|
|
2572
2581
|
}): boolean;
|
|
2573
2582
|
onChange(): void;
|
|
2583
|
+
onCopyClick(): void;
|
|
2574
2584
|
|
|
2575
2585
|
}
|
|
2576
2586
|
|
|
@@ -2623,7 +2633,7 @@ import { Observable } from "babylonjs/Misc/observable";
|
|
|
2623
2633
|
import { Color4 } from "babylonjs/Maths/math.color";
|
|
2624
2634
|
import { PropertyChangedEvent } from "babylonjs-node-editor/propertyChangedEvent";
|
|
2625
2635
|
import { LockObject } from "babylonjs-node-editor/tabs/propertyGrids/lockObject";
|
|
2626
|
-
export interface
|
|
2636
|
+
export interface IColorLineProps {
|
|
2627
2637
|
label: string;
|
|
2628
2638
|
target?: any;
|
|
2629
2639
|
propertyName: string;
|
|
@@ -2639,10 +2649,10 @@ interface IColorLineComponentState {
|
|
|
2639
2649
|
isExpanded: boolean;
|
|
2640
2650
|
color: Color4;
|
|
2641
2651
|
}
|
|
2642
|
-
export class
|
|
2643
|
-
constructor(props:
|
|
2644
|
-
shouldComponentUpdate(nextProps:
|
|
2645
|
-
getValue(props?: Readonly<
|
|
2652
|
+
export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
|
|
2653
|
+
constructor(props: IColorLineProps);
|
|
2654
|
+
shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
|
|
2655
|
+
getValue(props?: Readonly<IColorLineProps> & Readonly<{
|
|
2646
2656
|
children?: React.ReactNode;
|
|
2647
2657
|
}>): Color4;
|
|
2648
2658
|
setColorFromString(colorString: string): void;
|
|
@@ -2652,9 +2662,9 @@ export class ColorLineComponent extends React.Component<IColorLineComponentProps
|
|
|
2652
2662
|
updateStateG(value: number): void;
|
|
2653
2663
|
updateStateB(value: number): void;
|
|
2654
2664
|
updateStateA(value: number): void;
|
|
2655
|
-
copyToClipboard(): void;
|
|
2656
2665
|
private _convertToColor;
|
|
2657
2666
|
private _toColor3;
|
|
2667
|
+
onCopyClick(): void;
|
|
2658
2668
|
|
|
2659
2669
|
}
|
|
2660
2670
|
export {};
|
|
@@ -2664,7 +2674,7 @@ declare module "babylonjs-node-editor/lines/colorPickerComponent" {
|
|
|
2664
2674
|
import * as React from "react";
|
|
2665
2675
|
import { Color4, Color3 } from "babylonjs/Maths/math.color";
|
|
2666
2676
|
import { LockObject } from "babylonjs-node-editor/tabs/propertyGrids/lockObject";
|
|
2667
|
-
export interface
|
|
2677
|
+
export interface IColorPickerLineProps {
|
|
2668
2678
|
value: Color4 | Color3;
|
|
2669
2679
|
linearHint?: boolean;
|
|
2670
2680
|
onColorChanged: (newOne: string) => void;
|
|
@@ -2678,13 +2688,13 @@ interface IColorPickerComponentState {
|
|
|
2678
2688
|
color: Color3 | Color4;
|
|
2679
2689
|
hex: string;
|
|
2680
2690
|
}
|
|
2681
|
-
export class
|
|
2691
|
+
export class ColorPickerLine extends React.Component<IColorPickerLineProps, IColorPickerComponentState> {
|
|
2682
2692
|
private _floatRef;
|
|
2683
2693
|
private _floatHostRef;
|
|
2684
|
-
constructor(props:
|
|
2694
|
+
constructor(props: IColorPickerLineProps);
|
|
2685
2695
|
syncPositions(): void;
|
|
2686
|
-
shouldComponentUpdate(nextProps:
|
|
2687
|
-
getHexString(props?: Readonly<
|
|
2696
|
+
shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
|
|
2697
|
+
getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
|
|
2688
2698
|
children?: React.ReactNode;
|
|
2689
2699
|
}>): string;
|
|
2690
2700
|
componentDidUpdate(): void;
|
|
@@ -2708,18 +2718,18 @@ export class DraggableLineComponent extends React.Component<IButtonLineComponent
|
|
|
2708
2718
|
}
|
|
2709
2719
|
declare module "babylonjs-node-editor/lines/fileButtonLineComponent" {
|
|
2710
2720
|
import * as React from "react";
|
|
2711
|
-
interface
|
|
2721
|
+
interface IFileButtonLineProps {
|
|
2712
2722
|
label: string;
|
|
2713
2723
|
onClick: (file: File) => void;
|
|
2714
2724
|
accept: string;
|
|
2715
2725
|
icon?: string;
|
|
2716
2726
|
iconLabel?: string;
|
|
2717
2727
|
}
|
|
2718
|
-
export class
|
|
2728
|
+
export class FileButtonLine extends React.Component<IFileButtonLineProps> {
|
|
2719
2729
|
private static _IDGenerator;
|
|
2720
2730
|
private _id;
|
|
2721
2731
|
private _uploadInputRef;
|
|
2722
|
-
constructor(props:
|
|
2732
|
+
constructor(props: IFileButtonLineProps);
|
|
2723
2733
|
onChange(evt: any): void;
|
|
2724
2734
|
|
|
2725
2735
|
}
|
|
@@ -2795,6 +2805,7 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
|
|
|
2795
2805
|
unlock(): void;
|
|
2796
2806
|
incrementValue(amount: number, processStep?: boolean): void;
|
|
2797
2807
|
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
|
2808
|
+
onCopyClick(): void;
|
|
2798
2809
|
|
|
2799
2810
|
}
|
|
2800
2811
|
export {};
|
|
@@ -3009,7 +3020,7 @@ export {};
|
|
|
3009
3020
|
declare module "babylonjs-node-editor/lines/numericInputComponent" {
|
|
3010
3021
|
import * as React from "react";
|
|
3011
3022
|
import { LockObject } from "babylonjs-node-editor/tabs/propertyGrids/lockObject";
|
|
3012
|
-
interface
|
|
3023
|
+
interface INumericInputProps {
|
|
3013
3024
|
label: string;
|
|
3014
3025
|
value: number;
|
|
3015
3026
|
step?: number;
|
|
@@ -3019,16 +3030,16 @@ interface INumericInputComponentProps {
|
|
|
3019
3030
|
iconLabel?: string;
|
|
3020
3031
|
lockObject: LockObject;
|
|
3021
3032
|
}
|
|
3022
|
-
export class
|
|
3033
|
+
export class NumericInput extends React.Component<INumericInputProps, {
|
|
3023
3034
|
value: string;
|
|
3024
3035
|
}> {
|
|
3025
3036
|
static defaultProps: {
|
|
3026
3037
|
step: number;
|
|
3027
3038
|
};
|
|
3028
3039
|
private _localChange;
|
|
3029
|
-
constructor(props:
|
|
3040
|
+
constructor(props: INumericInputProps);
|
|
3030
3041
|
componentWillUnmount(): void;
|
|
3031
|
-
shouldComponentUpdate(nextProps:
|
|
3042
|
+
shouldComponentUpdate(nextProps: INumericInputProps, nextState: {
|
|
3032
3043
|
value: string;
|
|
3033
3044
|
}): boolean;
|
|
3034
3045
|
updateValue(valueString: string): void;
|
|
@@ -3046,7 +3057,7 @@ import { Observable } from "babylonjs/Misc/observable";
|
|
|
3046
3057
|
import { PropertyChangedEvent } from "babylonjs-node-editor/propertyChangedEvent";
|
|
3047
3058
|
import { IInspectableOptions } from "babylonjs/Misc/iInspectable";
|
|
3048
3059
|
export const Null_Value: number;
|
|
3049
|
-
export interface
|
|
3060
|
+
export interface IOptionsLineProps {
|
|
3050
3061
|
label: string;
|
|
3051
3062
|
target: any;
|
|
3052
3063
|
propertyName: string;
|
|
@@ -3062,20 +3073,21 @@ export interface IOptionsLineComponentProps {
|
|
|
3062
3073
|
valuesAreStrings?: boolean;
|
|
3063
3074
|
defaultIfNull?: number;
|
|
3064
3075
|
}
|
|
3065
|
-
export class
|
|
3076
|
+
export class OptionsLine extends React.Component<IOptionsLineProps, {
|
|
3066
3077
|
value: number | string;
|
|
3067
3078
|
}> {
|
|
3068
3079
|
private _localChange;
|
|
3069
3080
|
private _remapValueIn;
|
|
3070
3081
|
private _remapValueOut;
|
|
3071
3082
|
private _getValue;
|
|
3072
|
-
constructor(props:
|
|
3073
|
-
shouldComponentUpdate(nextProps:
|
|
3083
|
+
constructor(props: IOptionsLineProps);
|
|
3084
|
+
shouldComponentUpdate(nextProps: IOptionsLineProps, nextState: {
|
|
3074
3085
|
value: number;
|
|
3075
3086
|
}): boolean;
|
|
3076
3087
|
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
|
3077
3088
|
setValue(value: string | number): void;
|
|
3078
3089
|
updateValue(valueString: string): void;
|
|
3090
|
+
onCopyClick(): void;
|
|
3079
3091
|
|
|
3080
3092
|
}
|
|
3081
3093
|
|
|
@@ -3146,6 +3158,7 @@ export class SliderLineComponent extends React.Component<ISliderLineComponentPro
|
|
|
3146
3158
|
onChange(newValueString: any): void;
|
|
3147
3159
|
onInput(newValueString: any): void;
|
|
3148
3160
|
prepareDataToRead(value: number): number;
|
|
3161
|
+
onCopyClick(): void;
|
|
3149
3162
|
|
|
3150
3163
|
}
|
|
3151
3164
|
export {};
|
|
@@ -3348,6 +3361,7 @@ export class Vector3LineComponent extends React.Component<IVector3LineComponentP
|
|
|
3348
3361
|
updateStateX(value: number): void;
|
|
3349
3362
|
updateStateY(value: number): void;
|
|
3350
3363
|
updateStateZ(value: number): void;
|
|
3364
|
+
onCopyClick(): void;
|
|
3351
3365
|
|
|
3352
3366
|
}
|
|
3353
3367
|
export {};
|
|
@@ -4884,7 +4898,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4884
4898
|
getPortByName(name: string): BABYLON.NodeEditor.SharedUIComponents.IPortData | null;
|
|
4885
4899
|
dispose(): void;
|
|
4886
4900
|
prepareHeaderIcon(iconDiv: HTMLDivElement, img: HTMLImageElement): void;
|
|
4887
|
-
get invisibleEndpoints():
|
|
4901
|
+
get invisibleEndpoints(): BABYLON.NodeMaterialTeleportOutBlock[] | null;
|
|
4888
4902
|
constructor(data: BABYLON.NodeMaterialBlock, nodeContainer: BABYLON.NodeEditor.SharedUIComponents.INodeContainer);
|
|
4889
4903
|
}
|
|
4890
4904
|
|
|
@@ -5695,7 +5709,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5695
5709
|
disabled?: boolean;
|
|
5696
5710
|
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
5697
5711
|
}
|
|
5698
|
-
export class
|
|
5712
|
+
export class ColorComponentComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
5699
5713
|
constructor(props: IColorComponentEntryProps);
|
|
5700
5714
|
updateValue(valueString: string): void;
|
|
5701
5715
|
lock(): void;
|
|
@@ -5713,7 +5727,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5713
5727
|
/**
|
|
5714
5728
|
* Interface used to specify creation options for color picker
|
|
5715
5729
|
*/
|
|
5716
|
-
export interface
|
|
5730
|
+
export interface IColorPickerComponentProps {
|
|
5717
5731
|
color: BABYLON.Color3 | BABYLON.Color4;
|
|
5718
5732
|
linearhint?: boolean;
|
|
5719
5733
|
debugMode?: boolean;
|
|
@@ -5731,13 +5745,13 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5731
5745
|
/**
|
|
5732
5746
|
* Class used to create a color picker
|
|
5733
5747
|
*/
|
|
5734
|
-
export class
|
|
5748
|
+
export class ColorPickerComponent extends React.Component<IColorPickerComponentProps, IColorPickerState> {
|
|
5735
5749
|
private _saturationRef;
|
|
5736
5750
|
private _hueRef;
|
|
5737
5751
|
private _isSaturationPointerDown;
|
|
5738
5752
|
private _isHuePointerDown;
|
|
5739
|
-
constructor(props:
|
|
5740
|
-
shouldComponentUpdate(nextProps:
|
|
5753
|
+
constructor(props: IColorPickerComponentProps);
|
|
5754
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerState): boolean;
|
|
5741
5755
|
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
5742
5756
|
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
5743
5757
|
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
@@ -5764,7 +5778,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
5764
5778
|
onChange: (value: string) => void;
|
|
5765
5779
|
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
5766
5780
|
}
|
|
5767
|
-
export class
|
|
5781
|
+
export class HexColorComponent extends React.Component<IHexColorProps, {
|
|
5768
5782
|
hex: string;
|
|
5769
5783
|
}> {
|
|
5770
5784
|
constructor(props: IHexColorProps);
|
|
@@ -6276,7 +6290,7 @@ declare module BABYLON.NodeEditor {
|
|
|
6276
6290
|
|
|
6277
6291
|
}
|
|
6278
6292
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
6279
|
-
export interface
|
|
6293
|
+
export interface IColorPickerLineComponentProps {
|
|
6280
6294
|
value: BABYLON.Color4 | BABYLON.Color3;
|
|
6281
6295
|
linearHint?: boolean;
|
|
6282
6296
|
onColorChanged: (newOne: string) => void;
|
|
@@ -6291,14 +6305,14 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6291
6305
|
color: BABYLON.Color3 | BABYLON.Color4;
|
|
6292
6306
|
hex: string;
|
|
6293
6307
|
}
|
|
6294
|
-
export class ColorPickerLineComponent extends React.Component<
|
|
6308
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerLineComponentProps, IColorPickerComponentState> {
|
|
6295
6309
|
private _floatRef;
|
|
6296
6310
|
private _floatHostRef;
|
|
6297
6311
|
private _coverRef;
|
|
6298
|
-
constructor(props:
|
|
6312
|
+
constructor(props: IColorPickerLineComponentProps);
|
|
6299
6313
|
syncPositions(): void;
|
|
6300
|
-
shouldComponentUpdate(nextProps:
|
|
6301
|
-
getHexString(props?: Readonly<
|
|
6314
|
+
shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
6315
|
+
getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
|
|
6302
6316
|
children?: React.ReactNode;
|
|
6303
6317
|
}>): string;
|
|
6304
6318
|
componentDidUpdate(): void;
|
|
@@ -6582,7 +6596,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6582
6596
|
highlighted?: boolean;
|
|
6583
6597
|
parentContainerId: string;
|
|
6584
6598
|
}
|
|
6585
|
-
export var
|
|
6599
|
+
export var SingleGraphNode: React.FC<IGraphNodeProps>;
|
|
6586
6600
|
|
|
6587
6601
|
|
|
6588
6602
|
|
|
@@ -6729,6 +6743,19 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6729
6743
|
|
|
6730
6744
|
|
|
6731
6745
|
|
|
6746
|
+
}
|
|
6747
|
+
declare module BABYLON.NodeEditor {
|
|
6748
|
+
|
|
6749
|
+
}
|
|
6750
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
6751
|
+
export function copyCommandToClipboard(strCommand: string): void;
|
|
6752
|
+
export function getClassNameWithNamespace(obj: any): {
|
|
6753
|
+
className: string;
|
|
6754
|
+
babylonNamespace: string;
|
|
6755
|
+
};
|
|
6756
|
+
|
|
6757
|
+
|
|
6758
|
+
|
|
6732
6759
|
}
|
|
6733
6760
|
declare module BABYLON.NodeEditor {
|
|
6734
6761
|
|
|
@@ -6801,6 +6828,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6801
6828
|
isConflict: boolean;
|
|
6802
6829
|
}): boolean;
|
|
6803
6830
|
onChange(): void;
|
|
6831
|
+
onCopyClick(): void;
|
|
6804
6832
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
6805
6833
|
}
|
|
6806
6834
|
|
|
@@ -6855,7 +6883,7 @@ declare module BABYLON.NodeEditor {
|
|
|
6855
6883
|
|
|
6856
6884
|
}
|
|
6857
6885
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
6858
|
-
export interface
|
|
6886
|
+
export interface IColorLineProps {
|
|
6859
6887
|
label: string;
|
|
6860
6888
|
target?: any;
|
|
6861
6889
|
propertyName: string;
|
|
@@ -6871,10 +6899,10 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6871
6899
|
isExpanded: boolean;
|
|
6872
6900
|
color: BABYLON.Color4;
|
|
6873
6901
|
}
|
|
6874
|
-
export class
|
|
6875
|
-
constructor(props:
|
|
6876
|
-
shouldComponentUpdate(nextProps:
|
|
6877
|
-
getValue(props?: Readonly<
|
|
6902
|
+
export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
|
|
6903
|
+
constructor(props: IColorLineProps);
|
|
6904
|
+
shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
|
|
6905
|
+
getValue(props?: Readonly<IColorLineProps> & Readonly<{
|
|
6878
6906
|
children?: React.ReactNode;
|
|
6879
6907
|
}>): BABYLON.Color4;
|
|
6880
6908
|
setColorFromString(colorString: string): void;
|
|
@@ -6884,9 +6912,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6884
6912
|
updateStateG(value: number): void;
|
|
6885
6913
|
updateStateB(value: number): void;
|
|
6886
6914
|
updateStateA(value: number): void;
|
|
6887
|
-
copyToClipboard(): void;
|
|
6888
6915
|
private _convertToColor;
|
|
6889
6916
|
private _toColor3;
|
|
6917
|
+
onCopyClick(): void;
|
|
6890
6918
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
6891
6919
|
}
|
|
6892
6920
|
|
|
@@ -6897,7 +6925,7 @@ declare module BABYLON.NodeEditor {
|
|
|
6897
6925
|
|
|
6898
6926
|
}
|
|
6899
6927
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
6900
|
-
export interface
|
|
6928
|
+
export interface IColorPickerLineProps {
|
|
6901
6929
|
value: BABYLON.Color4 | BABYLON.Color3;
|
|
6902
6930
|
linearHint?: boolean;
|
|
6903
6931
|
onColorChanged: (newOne: string) => void;
|
|
@@ -6911,13 +6939,13 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6911
6939
|
color: BABYLON.Color3 | BABYLON.Color4;
|
|
6912
6940
|
hex: string;
|
|
6913
6941
|
}
|
|
6914
|
-
export class
|
|
6942
|
+
export class ColorPickerLine extends React.Component<IColorPickerLineProps, IColorPickerComponentState> {
|
|
6915
6943
|
private _floatRef;
|
|
6916
6944
|
private _floatHostRef;
|
|
6917
|
-
constructor(props:
|
|
6945
|
+
constructor(props: IColorPickerLineProps);
|
|
6918
6946
|
syncPositions(): void;
|
|
6919
|
-
shouldComponentUpdate(nextProps:
|
|
6920
|
-
getHexString(props?: Readonly<
|
|
6947
|
+
shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
|
|
6948
|
+
getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
|
|
6921
6949
|
children?: React.ReactNode;
|
|
6922
6950
|
}>): string;
|
|
6923
6951
|
componentDidUpdate(): void;
|
|
@@ -6948,18 +6976,18 @@ declare module BABYLON.NodeEditor {
|
|
|
6948
6976
|
|
|
6949
6977
|
}
|
|
6950
6978
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
6951
|
-
interface
|
|
6979
|
+
interface IFileButtonLineProps {
|
|
6952
6980
|
label: string;
|
|
6953
6981
|
onClick: (file: File) => void;
|
|
6954
6982
|
accept: string;
|
|
6955
6983
|
icon?: string;
|
|
6956
6984
|
iconLabel?: string;
|
|
6957
6985
|
}
|
|
6958
|
-
export class
|
|
6986
|
+
export class FileButtonLine extends React.Component<IFileButtonLineProps> {
|
|
6959
6987
|
private static _IDGenerator;
|
|
6960
6988
|
private _id;
|
|
6961
6989
|
private _uploadInputRef;
|
|
6962
|
-
constructor(props:
|
|
6990
|
+
constructor(props: IFileButtonLineProps);
|
|
6963
6991
|
onChange(evt: any): void;
|
|
6964
6992
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
6965
6993
|
}
|
|
@@ -7038,6 +7066,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
7038
7066
|
unlock(): void;
|
|
7039
7067
|
incrementValue(amount: number, processStep?: boolean): void;
|
|
7040
7068
|
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
|
7069
|
+
onCopyClick(): void;
|
|
7041
7070
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
7042
7071
|
}
|
|
7043
7072
|
|
|
@@ -7276,7 +7305,7 @@ declare module BABYLON.NodeEditor {
|
|
|
7276
7305
|
|
|
7277
7306
|
}
|
|
7278
7307
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
7279
|
-
interface
|
|
7308
|
+
interface INumericInputProps {
|
|
7280
7309
|
label: string;
|
|
7281
7310
|
value: number;
|
|
7282
7311
|
step?: number;
|
|
@@ -7286,16 +7315,16 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
7286
7315
|
iconLabel?: string;
|
|
7287
7316
|
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
7288
7317
|
}
|
|
7289
|
-
export class
|
|
7318
|
+
export class NumericInput extends React.Component<INumericInputProps, {
|
|
7290
7319
|
value: string;
|
|
7291
7320
|
}> {
|
|
7292
7321
|
static defaultProps: {
|
|
7293
7322
|
step: number;
|
|
7294
7323
|
};
|
|
7295
7324
|
private _localChange;
|
|
7296
|
-
constructor(props:
|
|
7325
|
+
constructor(props: INumericInputProps);
|
|
7297
7326
|
componentWillUnmount(): void;
|
|
7298
|
-
shouldComponentUpdate(nextProps:
|
|
7327
|
+
shouldComponentUpdate(nextProps: INumericInputProps, nextState: {
|
|
7299
7328
|
value: string;
|
|
7300
7329
|
}): boolean;
|
|
7301
7330
|
updateValue(valueString: string): void;
|
|
@@ -7313,7 +7342,7 @@ declare module BABYLON.NodeEditor {
|
|
|
7313
7342
|
}
|
|
7314
7343
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
7315
7344
|
export var Null_Value: number;
|
|
7316
|
-
export interface
|
|
7345
|
+
export interface IOptionsLineProps {
|
|
7317
7346
|
label: string;
|
|
7318
7347
|
target: any;
|
|
7319
7348
|
propertyName: string;
|
|
@@ -7329,20 +7358,21 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
7329
7358
|
valuesAreStrings?: boolean;
|
|
7330
7359
|
defaultIfNull?: number;
|
|
7331
7360
|
}
|
|
7332
|
-
export class
|
|
7361
|
+
export class OptionsLine extends React.Component<IOptionsLineProps, {
|
|
7333
7362
|
value: number | string;
|
|
7334
7363
|
}> {
|
|
7335
7364
|
private _localChange;
|
|
7336
7365
|
private _remapValueIn;
|
|
7337
7366
|
private _remapValueOut;
|
|
7338
7367
|
private _getValue;
|
|
7339
|
-
constructor(props:
|
|
7340
|
-
shouldComponentUpdate(nextProps:
|
|
7368
|
+
constructor(props: IOptionsLineProps);
|
|
7369
|
+
shouldComponentUpdate(nextProps: IOptionsLineProps, nextState: {
|
|
7341
7370
|
value: number;
|
|
7342
7371
|
}): boolean;
|
|
7343
7372
|
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
|
7344
7373
|
setValue(value: string | number): void;
|
|
7345
7374
|
updateValue(valueString: string): void;
|
|
7375
|
+
onCopyClick(): void;
|
|
7346
7376
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
7347
7377
|
}
|
|
7348
7378
|
|
|
@@ -7421,6 +7451,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
7421
7451
|
onChange(newValueString: any): void;
|
|
7422
7452
|
onInput(newValueString: any): void;
|
|
7423
7453
|
prepareDataToRead(value: number): number;
|
|
7454
|
+
onCopyClick(): void;
|
|
7424
7455
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
7425
7456
|
}
|
|
7426
7457
|
|
|
@@ -7635,6 +7666,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
7635
7666
|
updateStateX(value: number): void;
|
|
7636
7667
|
updateStateY(value: number): void;
|
|
7637
7668
|
updateStateZ(value: number): void;
|
|
7669
|
+
onCopyClick(): void;
|
|
7638
7670
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
7639
7671
|
}
|
|
7640
7672
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.1",
|
|
4
4
|
"main": "babylon.nodeEditor.js",
|
|
5
5
|
"types": "babylon.nodeEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^7.
|
|
17
|
+
"babylonjs": "^7.6.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|