@babylonjs/node-geometry-editor 7.6.0 → 7.6.2
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" {
|
|
@@ -2289,7 +2290,7 @@ import { Observable } from "@babylonjs/core/Misc/observable";
|
|
|
2289
2290
|
import { Color4 } from "@babylonjs/core/Maths/math.color";
|
|
2290
2291
|
import { PropertyChangedEvent } from "@babylonjs/node-geometry-editor/propertyChangedEvent";
|
|
2291
2292
|
import { LockObject } from "@babylonjs/node-geometry-editor/tabs/propertyGrids/lockObject";
|
|
2292
|
-
export interface
|
|
2293
|
+
export interface IColorLineProps {
|
|
2293
2294
|
label: string;
|
|
2294
2295
|
target?: any;
|
|
2295
2296
|
propertyName: string;
|
|
@@ -2305,10 +2306,10 @@ interface IColorLineComponentState {
|
|
|
2305
2306
|
isExpanded: boolean;
|
|
2306
2307
|
color: Color4;
|
|
2307
2308
|
}
|
|
2308
|
-
export class
|
|
2309
|
-
constructor(props:
|
|
2310
|
-
shouldComponentUpdate(nextProps:
|
|
2311
|
-
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<{
|
|
2312
2313
|
children?: React.ReactNode;
|
|
2313
2314
|
}>): Color4;
|
|
2314
2315
|
setColorFromString(colorString: string): void;
|
|
@@ -2330,7 +2331,7 @@ declare module "@babylonjs/node-geometry-editor/lines/colorPickerComponent" {
|
|
|
2330
2331
|
import * as React from "react";
|
|
2331
2332
|
import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
|
|
2332
2333
|
import { LockObject } from "@babylonjs/node-geometry-editor/tabs/propertyGrids/lockObject";
|
|
2333
|
-
export interface
|
|
2334
|
+
export interface IColorPickerLineProps {
|
|
2334
2335
|
value: Color4 | Color3;
|
|
2335
2336
|
linearHint?: boolean;
|
|
2336
2337
|
onColorChanged: (newOne: string) => void;
|
|
@@ -2344,13 +2345,13 @@ interface IColorPickerComponentState {
|
|
|
2344
2345
|
color: Color3 | Color4;
|
|
2345
2346
|
hex: string;
|
|
2346
2347
|
}
|
|
2347
|
-
export class
|
|
2348
|
+
export class ColorPickerLine extends React.Component<IColorPickerLineProps, IColorPickerComponentState> {
|
|
2348
2349
|
private _floatRef;
|
|
2349
2350
|
private _floatHostRef;
|
|
2350
|
-
constructor(props:
|
|
2351
|
+
constructor(props: IColorPickerLineProps);
|
|
2351
2352
|
syncPositions(): void;
|
|
2352
|
-
shouldComponentUpdate(nextProps:
|
|
2353
|
-
getHexString(props?: Readonly<
|
|
2353
|
+
shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
|
|
2354
|
+
getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
|
|
2354
2355
|
children?: React.ReactNode;
|
|
2355
2356
|
}>): string;
|
|
2356
2357
|
componentDidUpdate(): void;
|
|
@@ -2374,18 +2375,18 @@ export class DraggableLineComponent extends React.Component<IButtonLineComponent
|
|
|
2374
2375
|
}
|
|
2375
2376
|
declare module "@babylonjs/node-geometry-editor/lines/fileButtonLineComponent" {
|
|
2376
2377
|
import * as React from "react";
|
|
2377
|
-
interface
|
|
2378
|
+
interface IFileButtonLineProps {
|
|
2378
2379
|
label: string;
|
|
2379
2380
|
onClick: (file: File) => void;
|
|
2380
2381
|
accept: string;
|
|
2381
2382
|
icon?: string;
|
|
2382
2383
|
iconLabel?: string;
|
|
2383
2384
|
}
|
|
2384
|
-
export class
|
|
2385
|
+
export class FileButtonLine extends React.Component<IFileButtonLineProps> {
|
|
2385
2386
|
private static _IDGenerator;
|
|
2386
2387
|
private _id;
|
|
2387
2388
|
private _uploadInputRef;
|
|
2388
|
-
constructor(props:
|
|
2389
|
+
constructor(props: IFileButtonLineProps);
|
|
2389
2390
|
onChange(evt: any): void;
|
|
2390
2391
|
|
|
2391
2392
|
}
|
|
@@ -2676,7 +2677,7 @@ export {};
|
|
|
2676
2677
|
declare module "@babylonjs/node-geometry-editor/lines/numericInputComponent" {
|
|
2677
2678
|
import * as React from "react";
|
|
2678
2679
|
import { LockObject } from "@babylonjs/node-geometry-editor/tabs/propertyGrids/lockObject";
|
|
2679
|
-
interface
|
|
2680
|
+
interface INumericInputProps {
|
|
2680
2681
|
label: string;
|
|
2681
2682
|
value: number;
|
|
2682
2683
|
step?: number;
|
|
@@ -2686,16 +2687,16 @@ interface INumericInputComponentProps {
|
|
|
2686
2687
|
iconLabel?: string;
|
|
2687
2688
|
lockObject: LockObject;
|
|
2688
2689
|
}
|
|
2689
|
-
export class
|
|
2690
|
+
export class NumericInput extends React.Component<INumericInputProps, {
|
|
2690
2691
|
value: string;
|
|
2691
2692
|
}> {
|
|
2692
2693
|
static defaultProps: {
|
|
2693
2694
|
step: number;
|
|
2694
2695
|
};
|
|
2695
2696
|
private _localChange;
|
|
2696
|
-
constructor(props:
|
|
2697
|
+
constructor(props: INumericInputProps);
|
|
2697
2698
|
componentWillUnmount(): void;
|
|
2698
|
-
shouldComponentUpdate(nextProps:
|
|
2699
|
+
shouldComponentUpdate(nextProps: INumericInputProps, nextState: {
|
|
2699
2700
|
value: string;
|
|
2700
2701
|
}): boolean;
|
|
2701
2702
|
updateValue(valueString: string): void;
|
|
@@ -2713,7 +2714,7 @@ import { Observable } from "@babylonjs/core/Misc/observable";
|
|
|
2713
2714
|
import { PropertyChangedEvent } from "@babylonjs/node-geometry-editor/propertyChangedEvent";
|
|
2714
2715
|
import { IInspectableOptions } from "@babylonjs/core/Misc/iInspectable";
|
|
2715
2716
|
export const Null_Value: number;
|
|
2716
|
-
export interface
|
|
2717
|
+
export interface IOptionsLineProps {
|
|
2717
2718
|
label: string;
|
|
2718
2719
|
target: any;
|
|
2719
2720
|
propertyName: string;
|
|
@@ -2729,15 +2730,15 @@ export interface IOptionsLineComponentProps {
|
|
|
2729
2730
|
valuesAreStrings?: boolean;
|
|
2730
2731
|
defaultIfNull?: number;
|
|
2731
2732
|
}
|
|
2732
|
-
export class
|
|
2733
|
+
export class OptionsLine extends React.Component<IOptionsLineProps, {
|
|
2733
2734
|
value: number | string;
|
|
2734
2735
|
}> {
|
|
2735
2736
|
private _localChange;
|
|
2736
2737
|
private _remapValueIn;
|
|
2737
2738
|
private _remapValueOut;
|
|
2738
2739
|
private _getValue;
|
|
2739
|
-
constructor(props:
|
|
2740
|
-
shouldComponentUpdate(nextProps:
|
|
2740
|
+
constructor(props: IOptionsLineProps);
|
|
2741
|
+
shouldComponentUpdate(nextProps: IOptionsLineProps, nextState: {
|
|
2741
2742
|
value: number;
|
|
2742
2743
|
}): boolean;
|
|
2743
2744
|
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-geometry-editor",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.2",
|
|
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.6.
|
|
26
|
+
"@babylonjs/core": "^7.6.2",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2"
|
|
29
29
|
},
|