@babylonjs/node-geometry-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.
@@ -1091,6 +1091,50 @@ export class PropertyChangedEvent {
1091
1091
  allowNullValue?: boolean;
1092
1092
  }
1093
1093
 
1094
+ }
1095
+ declare module "@babylonjs/node-geometry-editor/historyStack" {
1096
+ import { IDisposable } from "@babylonjs/core/scene";
1097
+ /**
1098
+ * Class handling undo / redo operations
1099
+ */
1100
+ export class HistoryStack implements IDisposable {
1101
+ private _history;
1102
+ private _redoStack;
1103
+ private readonly _maxHistoryLength;
1104
+ private _locked;
1105
+ private _dataProvider;
1106
+ private _applyUpdate;
1107
+ /**
1108
+ * Constructor
1109
+ * @param dataProvider defines the data provider function
1110
+ * @param applyUpdate defines the code to execute when undo/redo operation is required
1111
+ */
1112
+ constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
1113
+ /**
1114
+ * Resets the stack
1115
+ */
1116
+ reset(): void;
1117
+ private _generateJSONDiff;
1118
+ private _applyJSONDiff;
1119
+ private _rebuildState;
1120
+ /**
1121
+ * Stores the current state
1122
+ */
1123
+ store(): void;
1124
+ /**
1125
+ * Undo the latest operation
1126
+ */
1127
+ undo(): void;
1128
+ /**
1129
+ * Redo the latest undo operation
1130
+ */
1131
+ redo(): void;
1132
+ /**
1133
+ * Disposes the stack
1134
+ */
1135
+ dispose(): void;
1136
+ }
1137
+
1094
1138
  }
1095
1139
  declare module "@babylonjs/node-geometry-editor/copyCommandToClipboard" {
1096
1140
  export function copyCommandToClipboard(strCommand: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-geometry-editor",
3
- "version": "7.25.0",
3
+ "version": "7.25.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.25.0",
26
+ "@babylonjs/core": "^7.25.2",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },