@babylonjs/node-geometry-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.
|
@@ -47,7 +47,7 @@ import { MapRangeBlock } from "@babylonjs/core/Meshes/Node/Blocks/mapRangeBlock"
|
|
|
47
47
|
import { GeometryOptimizeBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryOptimizeBlock";
|
|
48
48
|
import { IntFloatConverterBlock } from "@babylonjs/core/Meshes/Node/Blocks/intFloatConverterBlock";
|
|
49
49
|
import { ConditionBlock } from "@babylonjs/core/Meshes/Node/Blocks/conditionBlock";
|
|
50
|
-
import { InstantiateLinearBlock } from "@babylonjs/core/Meshes/Node/Blocks
|
|
50
|
+
import { InstantiateLinearBlock } from "@babylonjs/core/Meshes/Node/Blocks/Instances/instantiateLinearBlock";
|
|
51
51
|
import { InstantiateRadialBlock } from "@babylonjs/core/Meshes/Node/Blocks/Instances/instantiateRadialBlock";
|
|
52
52
|
import { GeometryCollectionBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryCollectionBlock";
|
|
53
53
|
import { GeometryInfoBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryInfoBlock";
|
|
@@ -477,6 +477,7 @@ import { INodeContainer } from "@babylonjs/node-geometry-editor/nodeGraphSystem/
|
|
|
477
477
|
import { INodeData } from "@babylonjs/node-geometry-editor/nodeGraphSystem/interfaces/nodeData";
|
|
478
478
|
import { IPortData } from "@babylonjs/node-geometry-editor/nodeGraphSystem/interfaces/portData";
|
|
479
479
|
import { NodeGeometryBlock } from "@babylonjs/core/Meshes/Node/nodeGeometryBlock";
|
|
480
|
+
import { TeleportOutBlock } from "@babylonjs/core/Meshes/Node/Blocks/Teleport/teleportOutBlock";
|
|
480
481
|
export class BlockNodeData implements INodeData {
|
|
481
482
|
data: NodeGeometryBlock;
|
|
482
483
|
private _inputs;
|
|
@@ -499,7 +500,7 @@ export class BlockNodeData implements INodeData {
|
|
|
499
500
|
isConnectedToOutput(): boolean;
|
|
500
501
|
dispose(): void;
|
|
501
502
|
prepareHeaderIcon(iconDiv: HTMLDivElement, img: HTMLImageElement): void;
|
|
502
|
-
get invisibleEndpoints():
|
|
503
|
+
get invisibleEndpoints(): TeleportOutBlock[] | null;
|
|
503
504
|
constructor(data: NodeGeometryBlock, nodeContainer: INodeContainer);
|
|
504
505
|
}
|
|
505
506
|
|
|
@@ -1250,7 +1251,7 @@ export interface IColorComponentEntryProps {
|
|
|
1250
1251
|
disabled?: boolean;
|
|
1251
1252
|
lockObject: LockObject;
|
|
1252
1253
|
}
|
|
1253
|
-
export class
|
|
1254
|
+
export class ColorComponentComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
1254
1255
|
constructor(props: IColorComponentEntryProps);
|
|
1255
1256
|
updateValue(valueString: string): void;
|
|
1256
1257
|
lock(): void;
|
|
@@ -1266,7 +1267,7 @@ import { LockObject } from "@babylonjs/node-geometry-editor/tabs/propertyGrids/l
|
|
|
1266
1267
|
/**
|
|
1267
1268
|
* Interface used to specify creation options for color picker
|
|
1268
1269
|
*/
|
|
1269
|
-
export interface
|
|
1270
|
+
export interface IColorPickerComponentProps {
|
|
1270
1271
|
color: Color3 | Color4;
|
|
1271
1272
|
linearhint?: boolean;
|
|
1272
1273
|
debugMode?: boolean;
|
|
@@ -1284,13 +1285,13 @@ export interface IColorPickerState {
|
|
|
1284
1285
|
/**
|
|
1285
1286
|
* Class used to create a color picker
|
|
1286
1287
|
*/
|
|
1287
|
-
export class
|
|
1288
|
+
export class ColorPickerComponent extends React.Component<IColorPickerComponentProps, IColorPickerState> {
|
|
1288
1289
|
private _saturationRef;
|
|
1289
1290
|
private _hueRef;
|
|
1290
1291
|
private _isSaturationPointerDown;
|
|
1291
1292
|
private _isHuePointerDown;
|
|
1292
|
-
constructor(props:
|
|
1293
|
-
shouldComponentUpdate(nextProps:
|
|
1293
|
+
constructor(props: IColorPickerComponentProps);
|
|
1294
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerState): boolean;
|
|
1294
1295
|
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1295
1296
|
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1296
1297
|
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
@@ -1314,7 +1315,7 @@ export interface IHexColorProps {
|
|
|
1314
1315
|
onChange: (value: string) => void;
|
|
1315
1316
|
lockObject: LockObject;
|
|
1316
1317
|
}
|
|
1317
|
-
export class
|
|
1318
|
+
export class HexColorComponent extends React.Component<IHexColorProps, {
|
|
1318
1319
|
hex: string;
|
|
1319
1320
|
}> {
|
|
1320
1321
|
constructor(props: IHexColorProps);
|
|
@@ -1773,7 +1774,7 @@ declare module "@babylonjs/node-geometry-editor/components/lines/ColorPickerLine
|
|
|
1773
1774
|
import * as React from "react";
|
|
1774
1775
|
import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
|
|
1775
1776
|
import { LockObject } from "@babylonjs/node-geometry-editor/tabs/propertyGrids/lockObject";
|
|
1776
|
-
export interface
|
|
1777
|
+
export interface IColorPickerLineComponentProps {
|
|
1777
1778
|
value: Color4 | Color3;
|
|
1778
1779
|
linearHint?: boolean;
|
|
1779
1780
|
onColorChanged: (newOne: string) => void;
|
|
@@ -1788,14 +1789,14 @@ interface IColorPickerComponentState {
|
|
|
1788
1789
|
color: Color3 | Color4;
|
|
1789
1790
|
hex: string;
|
|
1790
1791
|
}
|
|
1791
|
-
export class ColorPickerLineComponent extends React.Component<
|
|
1792
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerLineComponentProps, IColorPickerComponentState> {
|
|
1792
1793
|
private _floatRef;
|
|
1793
1794
|
private _floatHostRef;
|
|
1794
1795
|
private _coverRef;
|
|
1795
|
-
constructor(props:
|
|
1796
|
+
constructor(props: IColorPickerLineComponentProps);
|
|
1796
1797
|
syncPositions(): void;
|
|
1797
|
-
shouldComponentUpdate(nextProps:
|
|
1798
|
-
getHexString(props?: Readonly<
|
|
1798
|
+
shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
1799
|
+
getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
|
|
1799
1800
|
children?: React.ReactNode;
|
|
1800
1801
|
}>): string;
|
|
1801
1802
|
componentDidUpdate(): void;
|
|
@@ -2040,7 +2041,7 @@ export interface IGraphNodeProps {
|
|
|
2040
2041
|
highlighted?: boolean;
|
|
2041
2042
|
parentContainerId: string;
|
|
2042
2043
|
}
|
|
2043
|
-
export const
|
|
2044
|
+
export const SingleGraphNode: FC<IGraphNodeProps>;
|
|
2044
2045
|
|
|
2045
2046
|
}
|
|
2046
2047
|
declare module "@babylonjs/node-geometry-editor/components/reactGraphSystem/GraphNodesContainer" {
|
|
@@ -2163,6 +2164,14 @@ export type ToggleProps = {
|
|
|
2163
2164
|
};
|
|
2164
2165
|
export const Toggle: React.FC<ToggleProps>;
|
|
2165
2166
|
|
|
2167
|
+
}
|
|
2168
|
+
declare module "@babylonjs/node-geometry-editor/copyCommandToClipboard" {
|
|
2169
|
+
export function copyCommandToClipboard(strCommand: string): void;
|
|
2170
|
+
export function getClassNameWithNamespace(obj: any): {
|
|
2171
|
+
className: string;
|
|
2172
|
+
babylonNamespace: string;
|
|
2173
|
+
};
|
|
2174
|
+
|
|
2166
2175
|
}
|
|
2167
2176
|
declare module "@babylonjs/node-geometry-editor/lines/booleanLineComponent" {
|
|
2168
2177
|
import * as React from "react";
|
|
@@ -2228,6 +2237,7 @@ export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponen
|
|
|
2228
2237
|
isConflict: boolean;
|
|
2229
2238
|
}): boolean;
|
|
2230
2239
|
onChange(): void;
|
|
2240
|
+
onCopyClick(): void;
|
|
2231
2241
|
|
|
2232
2242
|
}
|
|
2233
2243
|
|
|
@@ -2280,7 +2290,7 @@ import { Observable } from "@babylonjs/core/Misc/observable";
|
|
|
2280
2290
|
import { Color4 } from "@babylonjs/core/Maths/math.color";
|
|
2281
2291
|
import { PropertyChangedEvent } from "@babylonjs/node-geometry-editor/propertyChangedEvent";
|
|
2282
2292
|
import { LockObject } from "@babylonjs/node-geometry-editor/tabs/propertyGrids/lockObject";
|
|
2283
|
-
export interface
|
|
2293
|
+
export interface IColorLineProps {
|
|
2284
2294
|
label: string;
|
|
2285
2295
|
target?: any;
|
|
2286
2296
|
propertyName: string;
|
|
@@ -2296,10 +2306,10 @@ interface IColorLineComponentState {
|
|
|
2296
2306
|
isExpanded: boolean;
|
|
2297
2307
|
color: Color4;
|
|
2298
2308
|
}
|
|
2299
|
-
export class
|
|
2300
|
-
constructor(props:
|
|
2301
|
-
shouldComponentUpdate(nextProps:
|
|
2302
|
-
getValue(props?: Readonly<
|
|
2309
|
+
export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
|
|
2310
|
+
constructor(props: IColorLineProps);
|
|
2311
|
+
shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
|
|
2312
|
+
getValue(props?: Readonly<IColorLineProps> & Readonly<{
|
|
2303
2313
|
children?: React.ReactNode;
|
|
2304
2314
|
}>): Color4;
|
|
2305
2315
|
setColorFromString(colorString: string): void;
|
|
@@ -2309,9 +2319,9 @@ export class ColorLineComponent extends React.Component<IColorLineComponentProps
|
|
|
2309
2319
|
updateStateG(value: number): void;
|
|
2310
2320
|
updateStateB(value: number): void;
|
|
2311
2321
|
updateStateA(value: number): void;
|
|
2312
|
-
copyToClipboard(): void;
|
|
2313
2322
|
private _convertToColor;
|
|
2314
2323
|
private _toColor3;
|
|
2324
|
+
onCopyClick(): void;
|
|
2315
2325
|
|
|
2316
2326
|
}
|
|
2317
2327
|
export {};
|
|
@@ -2321,7 +2331,7 @@ declare module "@babylonjs/node-geometry-editor/lines/colorPickerComponent" {
|
|
|
2321
2331
|
import * as React from "react";
|
|
2322
2332
|
import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
|
|
2323
2333
|
import { LockObject } from "@babylonjs/node-geometry-editor/tabs/propertyGrids/lockObject";
|
|
2324
|
-
export interface
|
|
2334
|
+
export interface IColorPickerLineProps {
|
|
2325
2335
|
value: Color4 | Color3;
|
|
2326
2336
|
linearHint?: boolean;
|
|
2327
2337
|
onColorChanged: (newOne: string) => void;
|
|
@@ -2335,13 +2345,13 @@ interface IColorPickerComponentState {
|
|
|
2335
2345
|
color: Color3 | Color4;
|
|
2336
2346
|
hex: string;
|
|
2337
2347
|
}
|
|
2338
|
-
export class
|
|
2348
|
+
export class ColorPickerLine extends React.Component<IColorPickerLineProps, IColorPickerComponentState> {
|
|
2339
2349
|
private _floatRef;
|
|
2340
2350
|
private _floatHostRef;
|
|
2341
|
-
constructor(props:
|
|
2351
|
+
constructor(props: IColorPickerLineProps);
|
|
2342
2352
|
syncPositions(): void;
|
|
2343
|
-
shouldComponentUpdate(nextProps:
|
|
2344
|
-
getHexString(props?: Readonly<
|
|
2353
|
+
shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
|
|
2354
|
+
getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
|
|
2345
2355
|
children?: React.ReactNode;
|
|
2346
2356
|
}>): string;
|
|
2347
2357
|
componentDidUpdate(): void;
|
|
@@ -2365,18 +2375,18 @@ export class DraggableLineComponent extends React.Component<IButtonLineComponent
|
|
|
2365
2375
|
}
|
|
2366
2376
|
declare module "@babylonjs/node-geometry-editor/lines/fileButtonLineComponent" {
|
|
2367
2377
|
import * as React from "react";
|
|
2368
|
-
interface
|
|
2378
|
+
interface IFileButtonLineProps {
|
|
2369
2379
|
label: string;
|
|
2370
2380
|
onClick: (file: File) => void;
|
|
2371
2381
|
accept: string;
|
|
2372
2382
|
icon?: string;
|
|
2373
2383
|
iconLabel?: string;
|
|
2374
2384
|
}
|
|
2375
|
-
export class
|
|
2385
|
+
export class FileButtonLine extends React.Component<IFileButtonLineProps> {
|
|
2376
2386
|
private static _IDGenerator;
|
|
2377
2387
|
private _id;
|
|
2378
2388
|
private _uploadInputRef;
|
|
2379
|
-
constructor(props:
|
|
2389
|
+
constructor(props: IFileButtonLineProps);
|
|
2380
2390
|
onChange(evt: any): void;
|
|
2381
2391
|
|
|
2382
2392
|
}
|
|
@@ -2452,6 +2462,7 @@ export class FloatLineComponent extends React.Component<IFloatLineComponentProps
|
|
|
2452
2462
|
unlock(): void;
|
|
2453
2463
|
incrementValue(amount: number, processStep?: boolean): void;
|
|
2454
2464
|
onKeyDown(event: React.KeyboardEvent<HTMLInputElement>): void;
|
|
2465
|
+
onCopyClick(): void;
|
|
2455
2466
|
|
|
2456
2467
|
}
|
|
2457
2468
|
export {};
|
|
@@ -2666,7 +2677,7 @@ export {};
|
|
|
2666
2677
|
declare module "@babylonjs/node-geometry-editor/lines/numericInputComponent" {
|
|
2667
2678
|
import * as React from "react";
|
|
2668
2679
|
import { LockObject } from "@babylonjs/node-geometry-editor/tabs/propertyGrids/lockObject";
|
|
2669
|
-
interface
|
|
2680
|
+
interface INumericInputProps {
|
|
2670
2681
|
label: string;
|
|
2671
2682
|
value: number;
|
|
2672
2683
|
step?: number;
|
|
@@ -2676,16 +2687,16 @@ interface INumericInputComponentProps {
|
|
|
2676
2687
|
iconLabel?: string;
|
|
2677
2688
|
lockObject: LockObject;
|
|
2678
2689
|
}
|
|
2679
|
-
export class
|
|
2690
|
+
export class NumericInput extends React.Component<INumericInputProps, {
|
|
2680
2691
|
value: string;
|
|
2681
2692
|
}> {
|
|
2682
2693
|
static defaultProps: {
|
|
2683
2694
|
step: number;
|
|
2684
2695
|
};
|
|
2685
2696
|
private _localChange;
|
|
2686
|
-
constructor(props:
|
|
2697
|
+
constructor(props: INumericInputProps);
|
|
2687
2698
|
componentWillUnmount(): void;
|
|
2688
|
-
shouldComponentUpdate(nextProps:
|
|
2699
|
+
shouldComponentUpdate(nextProps: INumericInputProps, nextState: {
|
|
2689
2700
|
value: string;
|
|
2690
2701
|
}): boolean;
|
|
2691
2702
|
updateValue(valueString: string): void;
|
|
@@ -2703,7 +2714,7 @@ import { Observable } from "@babylonjs/core/Misc/observable";
|
|
|
2703
2714
|
import { PropertyChangedEvent } from "@babylonjs/node-geometry-editor/propertyChangedEvent";
|
|
2704
2715
|
import { IInspectableOptions } from "@babylonjs/core/Misc/iInspectable";
|
|
2705
2716
|
export const Null_Value: number;
|
|
2706
|
-
export interface
|
|
2717
|
+
export interface IOptionsLineProps {
|
|
2707
2718
|
label: string;
|
|
2708
2719
|
target: any;
|
|
2709
2720
|
propertyName: string;
|
|
@@ -2719,20 +2730,21 @@ export interface IOptionsLineComponentProps {
|
|
|
2719
2730
|
valuesAreStrings?: boolean;
|
|
2720
2731
|
defaultIfNull?: number;
|
|
2721
2732
|
}
|
|
2722
|
-
export class
|
|
2733
|
+
export class OptionsLine extends React.Component<IOptionsLineProps, {
|
|
2723
2734
|
value: number | string;
|
|
2724
2735
|
}> {
|
|
2725
2736
|
private _localChange;
|
|
2726
2737
|
private _remapValueIn;
|
|
2727
2738
|
private _remapValueOut;
|
|
2728
2739
|
private _getValue;
|
|
2729
|
-
constructor(props:
|
|
2730
|
-
shouldComponentUpdate(nextProps:
|
|
2740
|
+
constructor(props: IOptionsLineProps);
|
|
2741
|
+
shouldComponentUpdate(nextProps: IOptionsLineProps, nextState: {
|
|
2731
2742
|
value: number;
|
|
2732
2743
|
}): boolean;
|
|
2733
2744
|
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
|
2734
2745
|
setValue(value: string | number): void;
|
|
2735
2746
|
updateValue(valueString: string): void;
|
|
2747
|
+
onCopyClick(): void;
|
|
2736
2748
|
|
|
2737
2749
|
}
|
|
2738
2750
|
|
|
@@ -2803,6 +2815,7 @@ export class SliderLineComponent extends React.Component<ISliderLineComponentPro
|
|
|
2803
2815
|
onChange(newValueString: any): void;
|
|
2804
2816
|
onInput(newValueString: any): void;
|
|
2805
2817
|
prepareDataToRead(value: number): number;
|
|
2818
|
+
onCopyClick(): void;
|
|
2806
2819
|
|
|
2807
2820
|
}
|
|
2808
2821
|
export {};
|
|
@@ -3005,6 +3018,7 @@ export class Vector3LineComponent extends React.Component<IVector3LineComponentP
|
|
|
3005
3018
|
updateStateX(value: number): void;
|
|
3006
3019
|
updateStateY(value: number): void;
|
|
3007
3020
|
updateStateZ(value: number): void;
|
|
3021
|
+
onCopyClick(): void;
|
|
3008
3022
|
|
|
3009
3023
|
}
|
|
3010
3024
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-geometry-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.1",
|
|
4
4
|
"main": "dist/babylon.nodeGeometryEditor.max.js",
|
|
5
5
|
"module": "dist/babylon.nodeGeometryEditor.max.js",
|
|
6
6
|
"esnext": "dist/babylon.nodeGeometryEditor.max.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@babylonjs/core": "^7.
|
|
26
|
+
"@babylonjs/core": "^7.6.1",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2"
|
|
29
29
|
},
|