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
package/babylon.nodeEditor.d.ts
CHANGED
|
@@ -408,7 +408,7 @@ declare module BABYLON.NodeEditor {
|
|
|
408
408
|
getPortByName(name: string): BABYLON.NodeEditor.SharedUIComponents.IPortData | null;
|
|
409
409
|
dispose(): void;
|
|
410
410
|
prepareHeaderIcon(iconDiv: HTMLDivElement, img: HTMLImageElement): void;
|
|
411
|
-
get invisibleEndpoints():
|
|
411
|
+
get invisibleEndpoints(): BABYLON.NodeMaterialTeleportOutBlock[] | null;
|
|
412
412
|
constructor(data: BABYLON.NodeMaterialBlock, nodeContainer: BABYLON.NodeEditor.SharedUIComponents.INodeContainer);
|
|
413
413
|
}
|
|
414
414
|
|
|
@@ -1219,7 +1219,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1219
1219
|
disabled?: boolean;
|
|
1220
1220
|
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1221
1221
|
}
|
|
1222
|
-
export class
|
|
1222
|
+
export class ColorComponentComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
1223
1223
|
constructor(props: IColorComponentEntryProps);
|
|
1224
1224
|
updateValue(valueString: string): void;
|
|
1225
1225
|
lock(): void;
|
|
@@ -1237,7 +1237,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1237
1237
|
/**
|
|
1238
1238
|
* Interface used to specify creation options for color picker
|
|
1239
1239
|
*/
|
|
1240
|
-
export interface
|
|
1240
|
+
export interface IColorPickerComponentProps {
|
|
1241
1241
|
color: BABYLON.Color3 | BABYLON.Color4;
|
|
1242
1242
|
linearhint?: boolean;
|
|
1243
1243
|
debugMode?: boolean;
|
|
@@ -1255,13 +1255,13 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Class used to create a color picker
|
|
1257
1257
|
*/
|
|
1258
|
-
export class
|
|
1258
|
+
export class ColorPickerComponent extends React.Component<IColorPickerComponentProps, IColorPickerState> {
|
|
1259
1259
|
private _saturationRef;
|
|
1260
1260
|
private _hueRef;
|
|
1261
1261
|
private _isSaturationPointerDown;
|
|
1262
1262
|
private _isHuePointerDown;
|
|
1263
|
-
constructor(props:
|
|
1264
|
-
shouldComponentUpdate(nextProps:
|
|
1263
|
+
constructor(props: IColorPickerComponentProps);
|
|
1264
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerState): boolean;
|
|
1265
1265
|
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1266
1266
|
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1267
1267
|
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
@@ -1288,7 +1288,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1288
1288
|
onChange: (value: string) => void;
|
|
1289
1289
|
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1290
1290
|
}
|
|
1291
|
-
export class
|
|
1291
|
+
export class HexColorComponent extends React.Component<IHexColorProps, {
|
|
1292
1292
|
hex: string;
|
|
1293
1293
|
}> {
|
|
1294
1294
|
constructor(props: IHexColorProps);
|
|
@@ -1800,7 +1800,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1800
1800
|
|
|
1801
1801
|
}
|
|
1802
1802
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1803
|
-
export interface
|
|
1803
|
+
export interface IColorPickerLineComponentProps {
|
|
1804
1804
|
value: BABYLON.Color4 | BABYLON.Color3;
|
|
1805
1805
|
linearHint?: boolean;
|
|
1806
1806
|
onColorChanged: (newOne: string) => void;
|
|
@@ -1815,14 +1815,14 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1815
1815
|
color: BABYLON.Color3 | BABYLON.Color4;
|
|
1816
1816
|
hex: string;
|
|
1817
1817
|
}
|
|
1818
|
-
export class ColorPickerLineComponent extends React.Component<
|
|
1818
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerLineComponentProps, IColorPickerComponentState> {
|
|
1819
1819
|
private _floatRef;
|
|
1820
1820
|
private _floatHostRef;
|
|
1821
1821
|
private _coverRef;
|
|
1822
|
-
constructor(props:
|
|
1822
|
+
constructor(props: IColorPickerLineComponentProps);
|
|
1823
1823
|
syncPositions(): void;
|
|
1824
|
-
shouldComponentUpdate(nextProps:
|
|
1825
|
-
getHexString(props?: Readonly<
|
|
1824
|
+
shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
1825
|
+
getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
|
|
1826
1826
|
children?: React.ReactNode;
|
|
1827
1827
|
}>): string;
|
|
1828
1828
|
componentDidUpdate(): void;
|
|
@@ -2106,7 +2106,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2106
2106
|
highlighted?: boolean;
|
|
2107
2107
|
parentContainerId: string;
|
|
2108
2108
|
}
|
|
2109
|
-
export var
|
|
2109
|
+
export var SingleGraphNode: React.FC<IGraphNodeProps>;
|
|
2110
2110
|
|
|
2111
2111
|
|
|
2112
2112
|
|
|
@@ -2253,6 +2253,19 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2253
2253
|
|
|
2254
2254
|
|
|
2255
2255
|
|
|
2256
|
+
}
|
|
2257
|
+
declare module BABYLON.NodeEditor {
|
|
2258
|
+
|
|
2259
|
+
}
|
|
2260
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2261
|
+
export function copyCommandToClipboard(strCommand: string): void;
|
|
2262
|
+
export function getClassNameWithNamespace(obj: any): {
|
|
2263
|
+
className: string;
|
|
2264
|
+
babylonNamespace: string;
|
|
2265
|
+
};
|
|
2266
|
+
|
|
2267
|
+
|
|
2268
|
+
|
|
2256
2269
|
}
|
|
2257
2270
|
declare module BABYLON.NodeEditor {
|
|
2258
2271
|
|
|
@@ -2325,6 +2338,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2325
2338
|
isConflict: boolean;
|
|
2326
2339
|
}): boolean;
|
|
2327
2340
|
onChange(): void;
|
|
2341
|
+
onCopyClick(): void;
|
|
2328
2342
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
2329
2343
|
}
|
|
2330
2344
|
|
|
@@ -2379,7 +2393,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2379
2393
|
|
|
2380
2394
|
}
|
|
2381
2395
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2382
|
-
export interface
|
|
2396
|
+
export interface IColorLineProps {
|
|
2383
2397
|
label: string;
|
|
2384
2398
|
target?: any;
|
|
2385
2399
|
propertyName: string;
|
|
@@ -2395,10 +2409,10 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2395
2409
|
isExpanded: boolean;
|
|
2396
2410
|
color: BABYLON.Color4;
|
|
2397
2411
|
}
|
|
2398
|
-
export class
|
|
2399
|
-
constructor(props:
|
|
2400
|
-
shouldComponentUpdate(nextProps:
|
|
2401
|
-
getValue(props?: Readonly<
|
|
2412
|
+
export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
|
|
2413
|
+
constructor(props: IColorLineProps);
|
|
2414
|
+
shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
|
|
2415
|
+
getValue(props?: Readonly<IColorLineProps> & Readonly<{
|
|
2402
2416
|
children?: React.ReactNode;
|
|
2403
2417
|
}>): BABYLON.Color4;
|
|
2404
2418
|
setColorFromString(colorString: string): void;
|
|
@@ -2408,9 +2422,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2408
2422
|
updateStateG(value: number): void;
|
|
2409
2423
|
updateStateB(value: number): void;
|
|
2410
2424
|
updateStateA(value: number): void;
|
|
2411
|
-
copyToClipboard(): void;
|
|
2412
2425
|
private _convertToColor;
|
|
2413
2426
|
private _toColor3;
|
|
2427
|
+
onCopyClick(): void;
|
|
2414
2428
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
2415
2429
|
}
|
|
2416
2430
|
|
|
@@ -2421,7 +2435,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2421
2435
|
|
|
2422
2436
|
}
|
|
2423
2437
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2424
|
-
export interface
|
|
2438
|
+
export interface IColorPickerLineProps {
|
|
2425
2439
|
value: BABYLON.Color4 | BABYLON.Color3;
|
|
2426
2440
|
linearHint?: boolean;
|
|
2427
2441
|
onColorChanged: (newOne: string) => void;
|
|
@@ -2435,13 +2449,13 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2435
2449
|
color: BABYLON.Color3 | BABYLON.Color4;
|
|
2436
2450
|
hex: string;
|
|
2437
2451
|
}
|
|
2438
|
-
export class
|
|
2452
|
+
export class ColorPickerLine extends React.Component<IColorPickerLineProps, IColorPickerComponentState> {
|
|
2439
2453
|
private _floatRef;
|
|
2440
2454
|
private _floatHostRef;
|
|
2441
|
-
constructor(props:
|
|
2455
|
+
constructor(props: IColorPickerLineProps);
|
|
2442
2456
|
syncPositions(): void;
|
|
2443
|
-
shouldComponentUpdate(nextProps:
|
|
2444
|
-
getHexString(props?: Readonly<
|
|
2457
|
+
shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
|
|
2458
|
+
getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
|
|
2445
2459
|
children?: React.ReactNode;
|
|
2446
2460
|
}>): string;
|
|
2447
2461
|
componentDidUpdate(): void;
|
|
@@ -2472,18 +2486,18 @@ declare module BABYLON.NodeEditor {
|
|
|
2472
2486
|
|
|
2473
2487
|
}
|
|
2474
2488
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2475
|
-
interface
|
|
2489
|
+
interface IFileButtonLineProps {
|
|
2476
2490
|
label: string;
|
|
2477
2491
|
onClick: (file: File) => void;
|
|
2478
2492
|
accept: string;
|
|
2479
2493
|
icon?: string;
|
|
2480
2494
|
iconLabel?: string;
|
|
2481
2495
|
}
|
|
2482
|
-
export class
|
|
2496
|
+
export class FileButtonLine extends React.Component<IFileButtonLineProps> {
|
|
2483
2497
|
private static _IDGenerator;
|
|
2484
2498
|
private _id;
|
|
2485
2499
|
private _uploadInputRef;
|
|
2486
|
-
constructor(props:
|
|
2500
|
+
constructor(props: IFileButtonLineProps);
|
|
2487
2501
|
onChange(evt: any): void;
|
|
2488
2502
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
2489
2503
|
}
|
|
@@ -2562,6 +2576,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2562
2576
|
unlock(): void;
|
|
2563
2577
|
incrementValue(amount: number, processStep?: boolean): void;
|
|
2564
2578
|
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
|
2579
|
+
onCopyClick(): void;
|
|
2565
2580
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
2566
2581
|
}
|
|
2567
2582
|
|
|
@@ -2800,7 +2815,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2800
2815
|
|
|
2801
2816
|
}
|
|
2802
2817
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2803
|
-
interface
|
|
2818
|
+
interface INumericInputProps {
|
|
2804
2819
|
label: string;
|
|
2805
2820
|
value: number;
|
|
2806
2821
|
step?: number;
|
|
@@ -2810,16 +2825,16 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2810
2825
|
iconLabel?: string;
|
|
2811
2826
|
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
2812
2827
|
}
|
|
2813
|
-
export class
|
|
2828
|
+
export class NumericInput extends React.Component<INumericInputProps, {
|
|
2814
2829
|
value: string;
|
|
2815
2830
|
}> {
|
|
2816
2831
|
static defaultProps: {
|
|
2817
2832
|
step: number;
|
|
2818
2833
|
};
|
|
2819
2834
|
private _localChange;
|
|
2820
|
-
constructor(props:
|
|
2835
|
+
constructor(props: INumericInputProps);
|
|
2821
2836
|
componentWillUnmount(): void;
|
|
2822
|
-
shouldComponentUpdate(nextProps:
|
|
2837
|
+
shouldComponentUpdate(nextProps: INumericInputProps, nextState: {
|
|
2823
2838
|
value: string;
|
|
2824
2839
|
}): boolean;
|
|
2825
2840
|
updateValue(valueString: string): void;
|
|
@@ -2837,7 +2852,7 @@ declare module BABYLON.NodeEditor {
|
|
|
2837
2852
|
}
|
|
2838
2853
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2839
2854
|
export var Null_Value: number;
|
|
2840
|
-
export interface
|
|
2855
|
+
export interface IOptionsLineProps {
|
|
2841
2856
|
label: string;
|
|
2842
2857
|
target: any;
|
|
2843
2858
|
propertyName: string;
|
|
@@ -2853,20 +2868,21 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2853
2868
|
valuesAreStrings?: boolean;
|
|
2854
2869
|
defaultIfNull?: number;
|
|
2855
2870
|
}
|
|
2856
|
-
export class
|
|
2871
|
+
export class OptionsLine extends React.Component<IOptionsLineProps, {
|
|
2857
2872
|
value: number | string;
|
|
2858
2873
|
}> {
|
|
2859
2874
|
private _localChange;
|
|
2860
2875
|
private _remapValueIn;
|
|
2861
2876
|
private _remapValueOut;
|
|
2862
2877
|
private _getValue;
|
|
2863
|
-
constructor(props:
|
|
2864
|
-
shouldComponentUpdate(nextProps:
|
|
2878
|
+
constructor(props: IOptionsLineProps);
|
|
2879
|
+
shouldComponentUpdate(nextProps: IOptionsLineProps, nextState: {
|
|
2865
2880
|
value: number;
|
|
2866
2881
|
}): boolean;
|
|
2867
2882
|
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
|
2868
2883
|
setValue(value: string | number): void;
|
|
2869
2884
|
updateValue(valueString: string): void;
|
|
2885
|
+
onCopyClick(): void;
|
|
2870
2886
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
2871
2887
|
}
|
|
2872
2888
|
|
|
@@ -2945,6 +2961,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2945
2961
|
onChange(newValueString: any): void;
|
|
2946
2962
|
onInput(newValueString: any): void;
|
|
2947
2963
|
prepareDataToRead(value: number): number;
|
|
2964
|
+
onCopyClick(): void;
|
|
2948
2965
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
2949
2966
|
}
|
|
2950
2967
|
|
|
@@ -3159,6 +3176,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
3159
3176
|
updateStateX(value: number): void;
|
|
3160
3177
|
updateStateY(value: number): void;
|
|
3161
3178
|
updateStateZ(value: number): void;
|
|
3179
|
+
onCopyClick(): void;
|
|
3162
3180
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
3163
3181
|
}
|
|
3164
3182
|
|