@babylonjs/node-editor 7.25.0 → 7.25.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -57,54 +57,6 @@ export class NodeEditor {
|
|
57
57
|
declare module "@babylonjs/node-editor/index" {
|
58
58
|
export * from "@babylonjs/node-editor/nodeEditor";
|
59
59
|
|
60
|
-
}
|
61
|
-
declare module "@babylonjs/node-editor/historyStack" {
|
62
|
-
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
63
|
-
import { IDisposable } from "@babylonjs/core/scene";
|
64
|
-
/**
|
65
|
-
* Class handling undo / redo operations
|
66
|
-
*/
|
67
|
-
export class HistoryStack implements IDisposable {
|
68
|
-
/**
|
69
|
-
* Url to use to load the fflate library (for zip decompression)
|
70
|
-
*/
|
71
|
-
private _onUpdateRequiredObserver;
|
72
|
-
private _onClearUndoStackObserver;
|
73
|
-
private _onRebuildRequiredObserver;
|
74
|
-
private _onNodeMovedObserver;
|
75
|
-
private _onNodeAddedObserver;
|
76
|
-
private _globalState;
|
77
|
-
private _nodeMaterial;
|
78
|
-
private _history;
|
79
|
-
private _redoStack;
|
80
|
-
private readonly _maxHistoryLength;
|
81
|
-
private _locked;
|
82
|
-
/**
|
83
|
-
* Constructor
|
84
|
-
* @param globalState defines the hosting global state
|
85
|
-
*/
|
86
|
-
constructor(globalState: GlobalState);
|
87
|
-
/**
|
88
|
-
* Resets the stack
|
89
|
-
*/
|
90
|
-
reset(): void;
|
91
|
-
private _compress;
|
92
|
-
private _decompress;
|
93
|
-
private _store;
|
94
|
-
/**
|
95
|
-
* Undo the latest operation
|
96
|
-
*/
|
97
|
-
undo(): void;
|
98
|
-
/**
|
99
|
-
* Redo the latest undo operation
|
100
|
-
*/
|
101
|
-
redo(): void;
|
102
|
-
/**
|
103
|
-
* Disposes the stack
|
104
|
-
*/
|
105
|
-
dispose(): void;
|
106
|
-
}
|
107
|
-
|
108
60
|
}
|
109
61
|
declare module "@babylonjs/node-editor/graphEditor" {
|
110
62
|
import * as React from "react";
|
@@ -149,6 +101,7 @@ export class GraphEditor extends React.Component<IGraphEditorProps, IGraphEditor
|
|
149
101
|
private _popUpWindow;
|
150
102
|
appendBlock(dataToAppend: NodeMaterialBlock | INodeData, recursion?: boolean): GraphNode;
|
151
103
|
addValueNode(type: string): GraphNode;
|
104
|
+
prepareHistoryStack(): void;
|
152
105
|
componentDidMount(): void;
|
153
106
|
componentWillUnmount(): void;
|
154
107
|
constructor(props: IGraphEditorProps);
|
@@ -1498,6 +1451,50 @@ export class PropertyChangedEvent {
|
|
1498
1451
|
allowNullValue?: boolean;
|
1499
1452
|
}
|
1500
1453
|
|
1454
|
+
}
|
1455
|
+
declare module "@babylonjs/node-editor/historyStack" {
|
1456
|
+
import { IDisposable } from "@babylonjs/core/scene";
|
1457
|
+
/**
|
1458
|
+
* Class handling undo / redo operations
|
1459
|
+
*/
|
1460
|
+
export class HistoryStack implements IDisposable {
|
1461
|
+
private _history;
|
1462
|
+
private _redoStack;
|
1463
|
+
private readonly _maxHistoryLength;
|
1464
|
+
private _locked;
|
1465
|
+
private _dataProvider;
|
1466
|
+
private _applyUpdate;
|
1467
|
+
/**
|
1468
|
+
* Constructor
|
1469
|
+
* @param dataProvider defines the data provider function
|
1470
|
+
* @param applyUpdate defines the code to execute when undo/redo operation is required
|
1471
|
+
*/
|
1472
|
+
constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
|
1473
|
+
/**
|
1474
|
+
* Resets the stack
|
1475
|
+
*/
|
1476
|
+
reset(): void;
|
1477
|
+
private _generateJSONDiff;
|
1478
|
+
private _applyJSONDiff;
|
1479
|
+
private _rebuildState;
|
1480
|
+
/**
|
1481
|
+
* Stores the current state
|
1482
|
+
*/
|
1483
|
+
store(): void;
|
1484
|
+
/**
|
1485
|
+
* Undo the latest operation
|
1486
|
+
*/
|
1487
|
+
undo(): void;
|
1488
|
+
/**
|
1489
|
+
* Redo the latest undo operation
|
1490
|
+
*/
|
1491
|
+
redo(): void;
|
1492
|
+
/**
|
1493
|
+
* Disposes the stack
|
1494
|
+
*/
|
1495
|
+
dispose(): void;
|
1496
|
+
}
|
1497
|
+
|
1501
1498
|
}
|
1502
1499
|
declare module "@babylonjs/node-editor/copyCommandToClipboard" {
|
1503
1500
|
export function copyCommandToClipboard(strCommand: string): void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/node-editor",
|
3
|
-
"version": "7.25.
|
3
|
+
"version": "7.25.2",
|
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": "^7.25.
|
26
|
+
"@babylonjs/core": "^7.25.2",
|
27
27
|
"react": "^17.0.2",
|
28
28
|
"react-dom": "^17.0.2"
|
29
29
|
},
|