babylonjs-node-editor 7.25.0 → 7.25.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.
@@ -44,51 +44,6 @@ declare module BABYLON.NodeEditor {
44
44
 
45
45
 
46
46
 
47
- /**
48
- * Class handling undo / redo operations
49
- */
50
- export class HistoryStack implements BABYLON.IDisposable {
51
- /**
52
- * Url to use to load the fflate library (for zip decompression)
53
- */
54
- private _onUpdateRequiredObserver;
55
- private _onClearUndoStackObserver;
56
- private _onRebuildRequiredObserver;
57
- private _onNodeMovedObserver;
58
- private _onNodeAddedObserver;
59
- private _globalState;
60
- private _nodeMaterial;
61
- private _history;
62
- private _redoStack;
63
- private readonly _maxHistoryLength;
64
- private _locked;
65
- /**
66
- * Constructor
67
- * @param globalState defines the hosting global state
68
- */
69
- constructor(globalState: GlobalState);
70
- /**
71
- * Resets the stack
72
- */
73
- reset(): void;
74
- private _compress;
75
- private _decompress;
76
- private _store;
77
- /**
78
- * Undo the latest operation
79
- */
80
- undo(): void;
81
- /**
82
- * Redo the latest undo operation
83
- */
84
- redo(): void;
85
- /**
86
- * Disposes the stack
87
- */
88
- dispose(): void;
89
- }
90
-
91
-
92
47
  interface IGraphEditorProps {
93
48
  globalState: GlobalState;
94
49
  }
@@ -122,6 +77,7 @@ declare module BABYLON.NodeEditor {
122
77
  private _popUpWindow;
123
78
  appendBlock(dataToAppend: BABYLON.NodeMaterialBlock | BABYLON.NodeEditor.SharedUIComponents.INodeData, recursion?: boolean): BABYLON.NodeEditor.SharedUIComponents.GraphNode;
124
79
  addValueNode(type: string): BABYLON.NodeEditor.SharedUIComponents.GraphNode;
80
+ prepareHistoryStack(): void;
125
81
  componentDidMount(): void;
126
82
  componentWillUnmount(): void;
127
83
  constructor(props: IGraphEditorProps);
@@ -1102,6 +1058,55 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1102
1058
 
1103
1059
 
1104
1060
 
1061
+ }
1062
+ declare module BABYLON.NodeEditor {
1063
+
1064
+
1065
+ }
1066
+ declare module BABYLON.NodeEditor.SharedUIComponents {
1067
+ /**
1068
+ * Class handling undo / redo operations
1069
+ */
1070
+ export class HistoryStack implements BABYLON.IDisposable {
1071
+ private _history;
1072
+ private _redoStack;
1073
+ private readonly _maxHistoryLength;
1074
+ private _locked;
1075
+ private _dataProvider;
1076
+ private _applyUpdate;
1077
+ /**
1078
+ * Constructor
1079
+ * @param dataProvider defines the data provider function
1080
+ * @param applyUpdate defines the code to execute when undo/redo operation is required
1081
+ */
1082
+ constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
1083
+ /**
1084
+ * Resets the stack
1085
+ */
1086
+ reset(): void;
1087
+ private _generateJSONDiff;
1088
+ private _applyJSONDiff;
1089
+ private _rebuildState;
1090
+ /**
1091
+ * Stores the current state
1092
+ */
1093
+ store(): void;
1094
+ /**
1095
+ * Undo the latest operation
1096
+ */
1097
+ undo(): void;
1098
+ /**
1099
+ * Redo the latest undo operation
1100
+ */
1101
+ redo(): void;
1102
+ /**
1103
+ * Disposes the stack
1104
+ */
1105
+ dispose(): void;
1106
+ }
1107
+
1108
+
1109
+
1105
1110
  }
1106
1111
  declare module BABYLON.NodeEditor {
1107
1112