@babylonjs/node-editor 5.13.1 → 5.14.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.
|
@@ -252,9 +252,11 @@ import * as React from "react";
|
|
|
252
252
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
253
253
|
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
254
254
|
import "@babylonjs/node-editor/components/propertyTab/propertyTab.scss";
|
|
255
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
255
256
|
interface IInputsPropertyTabComponentProps {
|
|
256
257
|
globalState: GlobalState;
|
|
257
258
|
inputs: InputBlock[];
|
|
259
|
+
lockObject: LockObject;
|
|
258
260
|
}
|
|
259
261
|
export class InputsPropertyTabComponent extends React.Component<IInputsPropertyTabComponentProps> {
|
|
260
262
|
constructor(props: IInputsPropertyTabComponentProps);
|
|
@@ -269,9 +271,11 @@ declare module "@babylonjs/node-editor/components/propertyTab/properties/color3P
|
|
|
269
271
|
import * as React from "react";
|
|
270
272
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
271
273
|
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
274
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
272
275
|
interface IColor3PropertyTabComponentProps {
|
|
273
276
|
globalState: GlobalState;
|
|
274
277
|
inputBlock: InputBlock;
|
|
278
|
+
lockObject: LockObject;
|
|
275
279
|
}
|
|
276
280
|
export class Color3PropertyTabComponent extends React.Component<IColor3PropertyTabComponentProps> {
|
|
277
281
|
render(): JSX.Element;
|
|
@@ -283,9 +287,11 @@ declare module "@babylonjs/node-editor/components/propertyTab/properties/color4P
|
|
|
283
287
|
import * as React from "react";
|
|
284
288
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
285
289
|
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
290
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
286
291
|
interface IColor4PropertyTabComponentProps {
|
|
287
292
|
globalState: GlobalState;
|
|
288
293
|
inputBlock: InputBlock;
|
|
294
|
+
lockObject: LockObject;
|
|
289
295
|
}
|
|
290
296
|
export class Color4PropertyTabComponent extends React.Component<IColor4PropertyTabComponentProps> {
|
|
291
297
|
render(): JSX.Element;
|
|
@@ -311,9 +317,11 @@ declare module "@babylonjs/node-editor/components/propertyTab/properties/matrixP
|
|
|
311
317
|
import * as React from "react";
|
|
312
318
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
313
319
|
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
320
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
314
321
|
interface IMatrixPropertyTabComponentProps {
|
|
315
322
|
globalState: GlobalState;
|
|
316
323
|
inputBlock: InputBlock;
|
|
324
|
+
lockObject: LockObject;
|
|
317
325
|
}
|
|
318
326
|
export class MatrixPropertyTabComponent extends React.Component<IMatrixPropertyTabComponentProps> {
|
|
319
327
|
render(): JSX.Element;
|
|
@@ -325,9 +333,11 @@ declare module "@babylonjs/node-editor/components/propertyTab/properties/vector2
|
|
|
325
333
|
import * as React from "react";
|
|
326
334
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
327
335
|
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
336
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
328
337
|
interface IVector2PropertyTabComponentProps {
|
|
329
338
|
globalState: GlobalState;
|
|
330
339
|
inputBlock: InputBlock;
|
|
340
|
+
lockObject: LockObject;
|
|
331
341
|
}
|
|
332
342
|
export class Vector2PropertyTabComponent extends React.Component<IVector2PropertyTabComponentProps> {
|
|
333
343
|
render(): JSX.Element;
|
|
@@ -339,9 +349,11 @@ declare module "@babylonjs/node-editor/components/propertyTab/properties/vector3
|
|
|
339
349
|
import * as React from "react";
|
|
340
350
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
341
351
|
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
352
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
342
353
|
interface IVector3PropertyTabComponentProps {
|
|
343
354
|
globalState: GlobalState;
|
|
344
355
|
inputBlock: InputBlock;
|
|
356
|
+
lockObject: LockObject;
|
|
345
357
|
}
|
|
346
358
|
export class Vector3PropertyTabComponent extends React.Component<IVector3PropertyTabComponentProps> {
|
|
347
359
|
render(): JSX.Element;
|
|
@@ -353,9 +365,11 @@ declare module "@babylonjs/node-editor/components/propertyTab/properties/vector4
|
|
|
353
365
|
import * as React from "react";
|
|
354
366
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
355
367
|
import { InputBlock } from "@babylonjs/core/Materials/Node/Blocks/Input/inputBlock";
|
|
368
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
356
369
|
interface IVector4PropertyTabComponentProps {
|
|
357
370
|
globalState: GlobalState;
|
|
358
371
|
inputBlock: InputBlock;
|
|
372
|
+
lockObject: LockObject;
|
|
359
373
|
}
|
|
360
374
|
export class Vector4PropertyTabComponent extends React.Component<IVector4PropertyTabComponentProps> {
|
|
361
375
|
render(): JSX.Element;
|
|
@@ -373,8 +387,10 @@ import { GraphNode } from "@babylonjs/node-editor/nodeGraphSystem/graphNode";
|
|
|
373
387
|
import { GraphFrame } from "@babylonjs/node-editor/nodeGraphSystem/graphFrame";
|
|
374
388
|
import { NodePort } from "@babylonjs/node-editor/nodeGraphSystem/nodePort";
|
|
375
389
|
import { FrameNodePort } from "@babylonjs/node-editor/nodeGraphSystem/frameNodePort";
|
|
390
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
376
391
|
interface IPropertyTabComponentProps {
|
|
377
392
|
globalState: GlobalState;
|
|
393
|
+
lockObject: LockObject;
|
|
378
394
|
}
|
|
379
395
|
interface IPropertyTabComponentState {
|
|
380
396
|
currentNode: Nullable<GraphNode>;
|
|
@@ -488,7 +504,6 @@ interface IInternalPreviewAreaOptions extends IInspectorOptions {
|
|
|
488
504
|
embedHostWidth?: string;
|
|
489
505
|
}
|
|
490
506
|
export class GraphEditor extends React.Component<IGraphEditorProps, IGraphEditorState> {
|
|
491
|
-
static readonly NodeWidth: number;
|
|
492
507
|
private _graphCanvasRef;
|
|
493
508
|
private _diagramContainerRef;
|
|
494
509
|
private _graphCanvas;
|
|
@@ -498,8 +513,6 @@ export class GraphEditor extends React.Component<IGraphEditorProps, IGraphEditor
|
|
|
498
513
|
private _leftWidth;
|
|
499
514
|
private _rightWidth;
|
|
500
515
|
private _previewManager;
|
|
501
|
-
private _copiedNodes;
|
|
502
|
-
private _copiedFrames;
|
|
503
516
|
private _mouseLocationX;
|
|
504
517
|
private _mouseLocationY;
|
|
505
518
|
private _onWidgetKeyUpPointer;
|
|
@@ -510,8 +523,6 @@ export class GraphEditor extends React.Component<IGraphEditorProps, IGraphEditor
|
|
|
510
523
|
componentDidMount(): void;
|
|
511
524
|
componentWillUnmount(): void;
|
|
512
525
|
constructor(props: IGraphEditorProps);
|
|
513
|
-
reconnectNewNodes(nodeIndex: number, newNodes: GraphNode[], sourceNodes: GraphNode[], done: boolean[]): void;
|
|
514
|
-
pasteSelection(copiedNodes: GraphNode[], currentX: number, currentY: number, selectNew?: boolean): GraphNode[] | undefined;
|
|
515
526
|
zoomToFit(): void;
|
|
516
527
|
buildMaterial(autoConfigure?: boolean): void;
|
|
517
528
|
build(ignoreEditorData?: boolean): void;
|
|
@@ -1109,7 +1120,7 @@ export class SerializationTools {
|
|
|
1109
1120
|
declare module "@babylonjs/node-editor/sharedComponents/checkBoxLineComponent" {
|
|
1110
1121
|
import * as React from "react";
|
|
1111
1122
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
1112
|
-
import { PropertyChangedEvent } from "@babylonjs/node-editor/
|
|
1123
|
+
import { PropertyChangedEvent } from "@babylonjs/node-editor/propertyChangedEvent";
|
|
1113
1124
|
export interface ICheckBoxLineComponentProps {
|
|
1114
1125
|
label: string;
|
|
1115
1126
|
target?: any;
|
|
@@ -1209,46 +1220,6 @@ export class FileButtonLineComponent extends React.Component<IFileButtonLineComp
|
|
|
1209
1220
|
}
|
|
1210
1221
|
export {};
|
|
1211
1222
|
|
|
1212
|
-
}
|
|
1213
|
-
declare module "@babylonjs/node-editor/sharedComponents/floatLineComponent" {
|
|
1214
|
-
import * as React from "react";
|
|
1215
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
1216
|
-
import { PropertyChangedEvent } from "@babylonjs/node-editor/sharedComponents/propertyChangedEvent";
|
|
1217
|
-
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
1218
|
-
interface IFloatLineComponentProps {
|
|
1219
|
-
label: string;
|
|
1220
|
-
target: any;
|
|
1221
|
-
propertyName: string;
|
|
1222
|
-
onChange?: (newValue: number) => void;
|
|
1223
|
-
isInteger?: boolean;
|
|
1224
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1225
|
-
additionalClass?: string;
|
|
1226
|
-
step?: string;
|
|
1227
|
-
digits?: number;
|
|
1228
|
-
globalState: GlobalState;
|
|
1229
|
-
min?: number;
|
|
1230
|
-
max?: number;
|
|
1231
|
-
smallUI?: boolean;
|
|
1232
|
-
onEnter?: (newValue: number) => void;
|
|
1233
|
-
}
|
|
1234
|
-
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
|
1235
|
-
value: string;
|
|
1236
|
-
}> {
|
|
1237
|
-
private _localChange;
|
|
1238
|
-
private _store;
|
|
1239
|
-
private _regExp;
|
|
1240
|
-
private _onFocus;
|
|
1241
|
-
constructor(props: IFloatLineComponentProps);
|
|
1242
|
-
shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
|
|
1243
|
-
value: string;
|
|
1244
|
-
}): boolean;
|
|
1245
|
-
componentWillUnmount(): void;
|
|
1246
|
-
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
|
1247
|
-
updateValue(valueString: string): void;
|
|
1248
|
-
render(): JSX.Element;
|
|
1249
|
-
}
|
|
1250
|
-
export {};
|
|
1251
|
-
|
|
1252
1223
|
}
|
|
1253
1224
|
declare module "@babylonjs/node-editor/sharedComponents/lineContainerComponent" {
|
|
1254
1225
|
import * as React from "react";
|
|
@@ -1340,69 +1311,6 @@ export class Popup {
|
|
|
1340
1311
|
static _CopyStyles(sourceDoc: HTMLDocument, targetDoc: HTMLDocument): void;
|
|
1341
1312
|
}
|
|
1342
1313
|
|
|
1343
|
-
}
|
|
1344
|
-
declare module "@babylonjs/node-editor/sharedComponents/propertyChangedEvent" {
|
|
1345
|
-
export class PropertyChangedEvent {
|
|
1346
|
-
object: any;
|
|
1347
|
-
property: string;
|
|
1348
|
-
value: any;
|
|
1349
|
-
initialValue: any;
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
}
|
|
1353
|
-
declare module "@babylonjs/node-editor/sharedComponents/sliderLineComponent" {
|
|
1354
|
-
import * as React from "react";
|
|
1355
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
1356
|
-
import { PropertyChangedEvent } from "@babylonjs/node-editor/sharedComponents/propertyChangedEvent";
|
|
1357
|
-
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
|
1358
|
-
interface ISliderLineComponentProps {
|
|
1359
|
-
label: string;
|
|
1360
|
-
target?: any;
|
|
1361
|
-
propertyName?: string;
|
|
1362
|
-
minimum: number;
|
|
1363
|
-
maximum: number;
|
|
1364
|
-
step: number;
|
|
1365
|
-
directValue?: number;
|
|
1366
|
-
useEuler?: boolean;
|
|
1367
|
-
onChange?: (value: number) => void;
|
|
1368
|
-
onInput?: (value: number) => void;
|
|
1369
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1370
|
-
decimalCount?: number;
|
|
1371
|
-
globalState: GlobalState;
|
|
1372
|
-
}
|
|
1373
|
-
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
|
1374
|
-
value: number;
|
|
1375
|
-
}> {
|
|
1376
|
-
private _localChange;
|
|
1377
|
-
constructor(props: ISliderLineComponentProps);
|
|
1378
|
-
shouldComponentUpdate(nextProps: ISliderLineComponentProps, nextState: {
|
|
1379
|
-
value: number;
|
|
1380
|
-
}): boolean;
|
|
1381
|
-
onChange(newValueString: any): void;
|
|
1382
|
-
onInput(newValueString: any): void;
|
|
1383
|
-
prepareDataToRead(value: number): number;
|
|
1384
|
-
render(): JSX.Element;
|
|
1385
|
-
}
|
|
1386
|
-
export {};
|
|
1387
|
-
|
|
1388
|
-
}
|
|
1389
|
-
declare module "@babylonjs/node-editor/sharedComponents/textLineComponent" {
|
|
1390
|
-
import * as React from "react";
|
|
1391
|
-
interface ITextLineComponentProps {
|
|
1392
|
-
label: string;
|
|
1393
|
-
value: string;
|
|
1394
|
-
color?: string;
|
|
1395
|
-
underline?: boolean;
|
|
1396
|
-
onLink?: () => void;
|
|
1397
|
-
}
|
|
1398
|
-
export class TextLineComponent extends React.Component<ITextLineComponentProps> {
|
|
1399
|
-
constructor(props: ITextLineComponentProps);
|
|
1400
|
-
onLink(): void;
|
|
1401
|
-
renderContent(): JSX.Element;
|
|
1402
|
-
render(): JSX.Element;
|
|
1403
|
-
}
|
|
1404
|
-
export {};
|
|
1405
|
-
|
|
1406
1314
|
}
|
|
1407
1315
|
declare module "@babylonjs/node-editor/sharedComponents/textureLineComponent" {
|
|
1408
1316
|
import * as React from "react";
|
|
@@ -1436,6 +1344,7 @@ export {};
|
|
|
1436
1344
|
}
|
|
1437
1345
|
declare module "@babylonjs/node-editor/colorPicker/colorComponentEntry" {
|
|
1438
1346
|
import * as React from "react";
|
|
1347
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
1439
1348
|
export interface IColorComponentEntryProps {
|
|
1440
1349
|
value: number;
|
|
1441
1350
|
label: string;
|
|
@@ -1443,10 +1352,13 @@ export interface IColorComponentEntryProps {
|
|
|
1443
1352
|
min?: number;
|
|
1444
1353
|
onChange: (value: number) => void;
|
|
1445
1354
|
disabled?: boolean;
|
|
1355
|
+
lockObject: LockObject;
|
|
1446
1356
|
}
|
|
1447
1357
|
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
1448
1358
|
constructor(props: IColorComponentEntryProps);
|
|
1449
1359
|
updateValue(valueString: string): void;
|
|
1360
|
+
lock(): void;
|
|
1361
|
+
unlock(): void;
|
|
1450
1362
|
render(): JSX.Element;
|
|
1451
1363
|
}
|
|
1452
1364
|
|
|
@@ -1454,6 +1366,7 @@ export class ColorComponentEntry extends React.Component<IColorComponentEntryPro
|
|
|
1454
1366
|
declare module "@babylonjs/node-editor/colorPicker/colorPicker" {
|
|
1455
1367
|
import * as React from "react";
|
|
1456
1368
|
import { Color3, Color4 } from "@babylonjs/core/Maths/math.color";
|
|
1369
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
1457
1370
|
import "@babylonjs/node-editor/colorPicker/colorPicker.scss";
|
|
1458
1371
|
/**
|
|
1459
1372
|
* Interface used to specify creation options for color picker
|
|
@@ -1463,6 +1376,7 @@ export interface IColorPickerProps {
|
|
|
1463
1376
|
linearhint?: boolean;
|
|
1464
1377
|
debugMode?: boolean;
|
|
1465
1378
|
onColorChanged?: (color: Color3 | Color4) => void;
|
|
1379
|
+
lockObject: LockObject;
|
|
1466
1380
|
}
|
|
1467
1381
|
/**
|
|
1468
1382
|
* Interface used to specify creation options for color picker
|
|
@@ -1497,10 +1411,12 @@ export class ColorPicker extends React.Component<IColorPickerProps, IColorPicker
|
|
|
1497
1411
|
}
|
|
1498
1412
|
declare module "@babylonjs/node-editor/colorPicker/hexColor" {
|
|
1499
1413
|
import * as React from "react";
|
|
1414
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
1500
1415
|
export interface IHexColorProps {
|
|
1501
1416
|
value: string;
|
|
1502
1417
|
expectedLength: number;
|
|
1503
1418
|
onChange: (value: string) => void;
|
|
1419
|
+
lockObject: LockObject;
|
|
1504
1420
|
}
|
|
1505
1421
|
export class HexColor extends React.Component<IHexColorProps, {
|
|
1506
1422
|
hex: string;
|
|
@@ -1509,6 +1425,8 @@ export class HexColor extends React.Component<IHexColorProps, {
|
|
|
1509
1425
|
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
|
1510
1426
|
hex: string;
|
|
1511
1427
|
}): boolean;
|
|
1428
|
+
lock(): void;
|
|
1429
|
+
unlock(): void;
|
|
1512
1430
|
updateHexValue(valueString: string): void;
|
|
1513
1431
|
render(): JSX.Element;
|
|
1514
1432
|
}
|
|
@@ -1641,7 +1559,7 @@ export interface IColor3LineComponentProps {
|
|
|
1641
1559
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
1642
1560
|
isLinear?: boolean;
|
|
1643
1561
|
icon?: string;
|
|
1644
|
-
lockObject
|
|
1562
|
+
lockObject: LockObject;
|
|
1645
1563
|
iconLabel?: string;
|
|
1646
1564
|
onChange?: () => void;
|
|
1647
1565
|
}
|
|
@@ -1664,7 +1582,7 @@ export interface IColor4LineComponentProps {
|
|
|
1664
1582
|
isLinear?: boolean;
|
|
1665
1583
|
icon?: string;
|
|
1666
1584
|
iconLabel?: string;
|
|
1667
|
-
lockObject
|
|
1585
|
+
lockObject: LockObject;
|
|
1668
1586
|
}
|
|
1669
1587
|
export class Color4LineComponent extends React.Component<IColor4LineComponentProps> {
|
|
1670
1588
|
render(): JSX.Element;
|
|
@@ -1686,8 +1604,8 @@ export interface IColorLineComponentProps {
|
|
|
1686
1604
|
isLinear?: boolean;
|
|
1687
1605
|
icon?: string;
|
|
1688
1606
|
iconLabel?: string;
|
|
1689
|
-
lockObject?: LockObject;
|
|
1690
1607
|
disableAlpha?: boolean;
|
|
1608
|
+
lockObject: LockObject;
|
|
1691
1609
|
}
|
|
1692
1610
|
interface IColorLineComponentState {
|
|
1693
1611
|
isExpanded: boolean;
|
|
@@ -1717,6 +1635,7 @@ export {};
|
|
|
1717
1635
|
declare module "@babylonjs/node-editor/lines/colorPickerComponent" {
|
|
1718
1636
|
import * as React from "react";
|
|
1719
1637
|
import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
|
|
1638
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
1720
1639
|
export interface IColorPickerComponentProps {
|
|
1721
1640
|
value: Color4 | Color3;
|
|
1722
1641
|
linearHint?: boolean;
|
|
@@ -1724,6 +1643,7 @@ export interface IColorPickerComponentProps {
|
|
|
1724
1643
|
icon?: string;
|
|
1725
1644
|
iconLabel?: string;
|
|
1726
1645
|
shouldPopRight?: boolean;
|
|
1646
|
+
lockObject?: LockObject;
|
|
1727
1647
|
}
|
|
1728
1648
|
interface IColorPickerComponentState {
|
|
1729
1649
|
pickerEnabled: boolean;
|
|
@@ -2009,6 +1929,7 @@ import { Vector3, Vector4 } from "@babylonjs/core/Maths/math.vector";
|
|
|
2009
1929
|
import { Matrix } from "@babylonjs/core/Maths/math.vector";
|
|
2010
1930
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
2011
1931
|
import { PropertyChangedEvent } from "@babylonjs/node-editor/propertyChangedEvent";
|
|
1932
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
2012
1933
|
interface IMatrixLineComponentProps {
|
|
2013
1934
|
label: string;
|
|
2014
1935
|
target: any;
|
|
@@ -2018,6 +1939,7 @@ interface IMatrixLineComponentProps {
|
|
|
2018
1939
|
onModeChange?: (mode: number) => void;
|
|
2019
1940
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2020
1941
|
mode?: number;
|
|
1942
|
+
lockObject: LockObject;
|
|
2021
1943
|
}
|
|
2022
1944
|
export class MatrixLineComponent extends React.Component<IMatrixLineComponentProps, {
|
|
2023
1945
|
value: Matrix;
|
|
@@ -2057,6 +1979,7 @@ export {};
|
|
|
2057
1979
|
}
|
|
2058
1980
|
declare module "@babylonjs/node-editor/lines/numericInputComponent" {
|
|
2059
1981
|
import * as React from "react";
|
|
1982
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
2060
1983
|
interface INumericInputComponentProps {
|
|
2061
1984
|
label: string;
|
|
2062
1985
|
value: number;
|
|
@@ -2065,6 +1988,7 @@ interface INumericInputComponentProps {
|
|
|
2065
1988
|
precision?: number;
|
|
2066
1989
|
icon?: string;
|
|
2067
1990
|
iconLabel?: string;
|
|
1991
|
+
lockObject: LockObject;
|
|
2068
1992
|
}
|
|
2069
1993
|
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
2070
1994
|
value: string;
|
|
@@ -2074,6 +1998,7 @@ export class NumericInputComponent extends React.Component<INumericInputComponen
|
|
|
2074
1998
|
};
|
|
2075
1999
|
private _localChange;
|
|
2076
2000
|
constructor(props: INumericInputComponentProps);
|
|
2001
|
+
componentWillUnmount(): void;
|
|
2077
2002
|
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
2078
2003
|
value: string;
|
|
2079
2004
|
}): boolean;
|
|
@@ -2317,6 +2242,7 @@ import * as React from "react";
|
|
|
2317
2242
|
import { Vector2 } from "@babylonjs/core/Maths/math.vector";
|
|
2318
2243
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
2319
2244
|
import { PropertyChangedEvent } from "@babylonjs/node-editor/propertyChangedEvent";
|
|
2245
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
2320
2246
|
interface IVector2LineComponentProps {
|
|
2321
2247
|
label: string;
|
|
2322
2248
|
target: any;
|
|
@@ -2326,6 +2252,7 @@ interface IVector2LineComponentProps {
|
|
|
2326
2252
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2327
2253
|
icon?: string;
|
|
2328
2254
|
iconLabel?: string;
|
|
2255
|
+
lockObject: LockObject;
|
|
2329
2256
|
}
|
|
2330
2257
|
export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
|
|
2331
2258
|
isExpanded: boolean;
|
|
@@ -2354,6 +2281,7 @@ import * as React from "react";
|
|
|
2354
2281
|
import { Vector3 } from "@babylonjs/core/Maths/math.vector";
|
|
2355
2282
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
2356
2283
|
import { PropertyChangedEvent } from "@babylonjs/node-editor/propertyChangedEvent";
|
|
2284
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
2357
2285
|
interface IVector3LineComponentProps {
|
|
2358
2286
|
label: string;
|
|
2359
2287
|
target: any;
|
|
@@ -2365,6 +2293,7 @@ interface IVector3LineComponentProps {
|
|
|
2365
2293
|
noSlider?: boolean;
|
|
2366
2294
|
icon?: string;
|
|
2367
2295
|
iconLabel?: string;
|
|
2296
|
+
lockObject: LockObject;
|
|
2368
2297
|
}
|
|
2369
2298
|
export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
|
|
2370
2299
|
isExpanded: boolean;
|
|
@@ -2396,6 +2325,7 @@ import * as React from "react";
|
|
|
2396
2325
|
import { Vector4 } from "@babylonjs/core/Maths/math.vector";
|
|
2397
2326
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
2398
2327
|
import { PropertyChangedEvent } from "@babylonjs/node-editor/propertyChangedEvent";
|
|
2328
|
+
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
2399
2329
|
interface IVector4LineComponentProps {
|
|
2400
2330
|
label: string;
|
|
2401
2331
|
target?: any;
|
|
@@ -2407,6 +2337,7 @@ interface IVector4LineComponentProps {
|
|
|
2407
2337
|
icon?: string;
|
|
2408
2338
|
iconLabel?: string;
|
|
2409
2339
|
value?: Vector4;
|
|
2340
|
+
lockObject: LockObject;
|
|
2410
2341
|
}
|
|
2411
2342
|
export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
|
|
2412
2343
|
isExpanded: boolean;
|
|
@@ -2488,6 +2419,7 @@ export interface IGraphCanvasComponentProps {
|
|
|
2488
2419
|
onEmitNewNode: (nodeData: INodeData) => GraphNode;
|
|
2489
2420
|
}
|
|
2490
2421
|
export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentProps> implements INodeContainer {
|
|
2422
|
+
static readonly NodeWidth: number;
|
|
2491
2423
|
private readonly _minZoom;
|
|
2492
2424
|
private readonly _maxZoom;
|
|
2493
2425
|
private _hostCanvas;
|
|
@@ -2524,6 +2456,8 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2524
2456
|
private _oldY;
|
|
2525
2457
|
_frameIsMoving: boolean;
|
|
2526
2458
|
_isLoading: boolean;
|
|
2459
|
+
private _copiedNodes;
|
|
2460
|
+
private _copiedFrames;
|
|
2527
2461
|
get gridSize(): number;
|
|
2528
2462
|
set gridSize(value: number);
|
|
2529
2463
|
get stateManager(): StateManager;
|
|
@@ -2547,6 +2481,9 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2547
2481
|
get frameContainer(): HTMLDivElement;
|
|
2548
2482
|
private _selectedFrameAndNodesConflict;
|
|
2549
2483
|
constructor(props: IGraphCanvasComponentProps);
|
|
2484
|
+
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: INodeData) => any, rootElement: HTMLDivElement): void;
|
|
2485
|
+
pasteSelection(copiedNodes: GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: INodeData) => any, selectNew?: boolean): GraphNode[];
|
|
2486
|
+
reconnectNewNodes(nodeIndex: number, newNodes: GraphNode[], sourceNodes: GraphNode[], done: boolean[]): void;
|
|
2550
2487
|
getCachedData(): any[];
|
|
2551
2488
|
removeDataFromCache(data: any): void;
|
|
2552
2489
|
createNodeFromObject(nodeData: INodeData, onNodeCreated: (data: any) => void, recursion?: boolean): GraphNode;
|
|
@@ -2568,6 +2505,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2568
2505
|
zoomToFit(): void;
|
|
2569
2506
|
processCandidatePort(): void;
|
|
2570
2507
|
connectNodes(nodeA: GraphNode, pointA: IPortData, nodeB: GraphNode, pointB: IPortData): void;
|
|
2508
|
+
drop(newNode: GraphNode, targetX: number, targetY: number, offsetX: number, offsetY: number): void;
|
|
2571
2509
|
processEditorData(editorData: IEditorData): void;
|
|
2572
2510
|
reOrganize(editorData?: Nullable<IEditorData>, isImportingAFrame?: boolean): void;
|
|
2573
2511
|
addFrame(frameData: IFrameData): void;
|
|
@@ -2951,8 +2889,8 @@ export class NodeLink {
|
|
|
2951
2889
|
onDisposedObservable: Observable<NodeLink>;
|
|
2952
2890
|
get isVisible(): boolean;
|
|
2953
2891
|
set isVisible(value: boolean);
|
|
2954
|
-
get portA():
|
|
2955
|
-
get portB():
|
|
2892
|
+
get portA(): FrameNodePort | NodePort;
|
|
2893
|
+
get portB(): FrameNodePort | NodePort | undefined;
|
|
2956
2894
|
get nodeA(): GraphNode;
|
|
2957
2895
|
get nodeB(): GraphNode | undefined;
|
|
2958
2896
|
update(endX?: number, endY?: number, straight?: boolean): void;
|
|
@@ -3033,7 +2971,7 @@ export class StateManager {
|
|
|
3033
2971
|
onGraphNodeRemovalObservable: Observable<GraphNode>;
|
|
3034
2972
|
onSelectionBoxMoved: Observable<ClientRect | DOMRect>;
|
|
3035
2973
|
onCandidateLinkMoved: Observable<Nullable<Vector2>>;
|
|
3036
|
-
onCandidatePortSelectedObservable: Observable<Nullable<
|
|
2974
|
+
onCandidatePortSelectedObservable: Observable<Nullable<FrameNodePort | NodePort>>;
|
|
3037
2975
|
onNewNodeCreatedObservable: Observable<GraphNode>;
|
|
3038
2976
|
onRebuildRequiredObservable: Observable<boolean>;
|
|
3039
2977
|
onErrorMessageDialogRequiredObservable: Observable<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.14.0",
|
|
4
4
|
"main": "dist/babylon.nodeEditor.max.js",
|
|
5
5
|
"module": "dist/babylon.nodeEditor.max.js",
|
|
6
6
|
"esnext": "dist/babylon.nodeEditor.max.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@babylonjs/core": "^5.
|
|
26
|
+
"@babylonjs/core": "^5.14.0",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2",
|
|
29
29
|
"rimraf": "^3.0.2",
|