babylonjs-gui-editor 7.25.2 → 7.26.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.
package/babylon.guiEditor.d.ts
CHANGED
|
@@ -1217,8 +1217,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1217
1217
|
* Class handling undo / redo operations
|
|
1218
1218
|
*/
|
|
1219
1219
|
export class HistoryStack implements IDisposable {
|
|
1220
|
-
private
|
|
1220
|
+
private _historyStack;
|
|
1221
1221
|
private _redoStack;
|
|
1222
|
+
private _activeData;
|
|
1222
1223
|
private readonly _maxHistoryLength;
|
|
1223
1224
|
private _locked;
|
|
1224
1225
|
private _dataProvider;
|
|
@@ -1229,13 +1230,19 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1229
1230
|
* @param applyUpdate defines the code to execute when undo/redo operation is required
|
|
1230
1231
|
*/
|
|
1231
1232
|
constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
|
|
1233
|
+
/**
|
|
1234
|
+
* Process key event to handle undo / redo
|
|
1235
|
+
* @param evt defines the keyboard event to process
|
|
1236
|
+
* @returns true if the event was processed
|
|
1237
|
+
*/
|
|
1238
|
+
processKeyEvent(evt: KeyboardEvent): boolean;
|
|
1232
1239
|
/**
|
|
1233
1240
|
* Resets the stack
|
|
1234
1241
|
*/
|
|
1235
1242
|
reset(): void;
|
|
1236
1243
|
private _generateJSONDiff;
|
|
1237
1244
|
private _applyJSONDiff;
|
|
1238
|
-
private
|
|
1245
|
+
private _copy;
|
|
1239
1246
|
/**
|
|
1240
1247
|
* Stores the current state
|
|
1241
1248
|
*/
|