@babylonjs/gui-editor 7.25.1 → 7.26.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1530,8 +1530,9 @@ import { IDisposable } from "@babylonjs/core/scene";
|
|
1530
1530
|
* Class handling undo / redo operations
|
1531
1531
|
*/
|
1532
1532
|
export class HistoryStack implements IDisposable {
|
1533
|
-
private
|
1533
|
+
private _historyStack;
|
1534
1534
|
private _redoStack;
|
1535
|
+
private _activeData;
|
1535
1536
|
private readonly _maxHistoryLength;
|
1536
1537
|
private _locked;
|
1537
1538
|
private _dataProvider;
|
@@ -1542,13 +1543,19 @@ export class HistoryStack implements IDisposable {
|
|
1542
1543
|
* @param applyUpdate defines the code to execute when undo/redo operation is required
|
1543
1544
|
*/
|
1544
1545
|
constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
|
1546
|
+
/**
|
1547
|
+
* Process key event to handle undo / redo
|
1548
|
+
* @param evt defines the keyboard event to process
|
1549
|
+
* @returns true if the event was processed
|
1550
|
+
*/
|
1551
|
+
processKeyEvent(evt: KeyboardEvent): boolean;
|
1545
1552
|
/**
|
1546
1553
|
* Resets the stack
|
1547
1554
|
*/
|
1548
1555
|
reset(): void;
|
1549
1556
|
private _generateJSONDiff;
|
1550
1557
|
private _applyJSONDiff;
|
1551
|
-
private
|
1558
|
+
private _copy;
|
1552
1559
|
/**
|
1553
1560
|
* Stores the current state
|
1554
1561
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/gui-editor",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.26.0",
|
4
4
|
"main": "dist/babylon.guiEditor.max.js",
|
5
5
|
"module": "dist/babylon.guiEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.guiEditor.max.js",
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"@types/react-dom": ">=16.0.9"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
|
-
"@babylonjs/core": "^7.
|
28
|
-
"@babylonjs/gui": "^7.
|
27
|
+
"@babylonjs/core": "^7.26.0",
|
28
|
+
"@babylonjs/gui": "^7.26.0",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2"
|
31
31
|
},
|