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/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;
@@ -4951,6 +4995,55 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
4951
4995
 
4952
4996
 
4953
4997
 
4998
+ }
4999
+ declare module BABYLON.NodeGeometryEditor {
5000
+
5001
+
5002
+ }
5003
+ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
5004
+ /**
5005
+ * Class handling undo / redo operations
5006
+ */
5007
+ export class HistoryStack implements BABYLON.IDisposable {
5008
+ private _history;
5009
+ private _redoStack;
5010
+ private readonly _maxHistoryLength;
5011
+ private _locked;
5012
+ private _dataProvider;
5013
+ private _applyUpdate;
5014
+ /**
5015
+ * Constructor
5016
+ * @param dataProvider defines the data provider function
5017
+ * @param applyUpdate defines the code to execute when undo/redo operation is required
5018
+ */
5019
+ constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
5020
+ /**
5021
+ * Resets the stack
5022
+ */
5023
+ reset(): void;
5024
+ private _generateJSONDiff;
5025
+ private _applyJSONDiff;
5026
+ private _rebuildState;
5027
+ /**
5028
+ * Stores the current state
5029
+ */
5030
+ store(): void;
5031
+ /**
5032
+ * Undo the latest operation
5033
+ */
5034
+ undo(): void;
5035
+ /**
5036
+ * Redo the latest undo operation
5037
+ */
5038
+ redo(): void;
5039
+ /**
5040
+ * Disposes the stack
5041
+ */
5042
+ dispose(): void;
5043
+ }
5044
+
5045
+
5046
+
4954
5047
  }
4955
5048
  declare module BABYLON.NodeGeometryEditor {
4956
5049
 
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": "babylon.nodeGeometryEditor.js",
5
5
  "types": "babylon.nodeGeometryEditor.module.d.ts",
6
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.25.0"
17
+ "babylonjs": "^7.25.2"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",