@babylonjs/inspector 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.
@@ -4686,8 +4686,9 @@ import { IDisposable } from "@babylonjs/core/scene";
|
|
4686
4686
|
* Class handling undo / redo operations
|
4687
4687
|
*/
|
4688
4688
|
export class HistoryStack implements IDisposable {
|
4689
|
-
private
|
4689
|
+
private _historyStack;
|
4690
4690
|
private _redoStack;
|
4691
|
+
private _activeData;
|
4691
4692
|
private readonly _maxHistoryLength;
|
4692
4693
|
private _locked;
|
4693
4694
|
private _dataProvider;
|
@@ -4698,13 +4699,19 @@ export class HistoryStack implements IDisposable {
|
|
4698
4699
|
* @param applyUpdate defines the code to execute when undo/redo operation is required
|
4699
4700
|
*/
|
4700
4701
|
constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
|
4702
|
+
/**
|
4703
|
+
* Process key event to handle undo / redo
|
4704
|
+
* @param evt defines the keyboard event to process
|
4705
|
+
* @returns true if the event was processed
|
4706
|
+
*/
|
4707
|
+
processKeyEvent(evt: KeyboardEvent): boolean;
|
4701
4708
|
/**
|
4702
4709
|
* Resets the stack
|
4703
4710
|
*/
|
4704
4711
|
reset(): void;
|
4705
4712
|
private _generateJSONDiff;
|
4706
4713
|
private _applyJSONDiff;
|
4707
|
-
private
|
4714
|
+
private _copy;
|
4708
4715
|
/**
|
4709
4716
|
* Stores the current state
|
4710
4717
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/inspector",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.26.0",
|
4
4
|
"module": "dist/babylon.inspector.bundle.max.js",
|
5
5
|
"main": "dist/babylon.inspector.bundle.max.js",
|
6
6
|
"typings": "dist/babylon.inspector.module.d.ts",
|
@@ -32,12 +32,12 @@
|
|
32
32
|
"@types/react-dom": ">=16.0.9"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
|
-
"@babylonjs/core": "^7.
|
36
|
-
"@babylonjs/gui": "^7.
|
37
|
-
"@babylonjs/gui-editor": "^7.
|
38
|
-
"@babylonjs/loaders": "^7.
|
39
|
-
"@babylonjs/materials": "^7.
|
40
|
-
"@babylonjs/serializers": "^7.
|
35
|
+
"@babylonjs/core": "^7.26.0",
|
36
|
+
"@babylonjs/gui": "^7.26.0",
|
37
|
+
"@babylonjs/gui-editor": "^7.26.0",
|
38
|
+
"@babylonjs/loaders": "^7.26.0",
|
39
|
+
"@babylonjs/materials": "^7.26.0",
|
40
|
+
"@babylonjs/serializers": "^7.26.0",
|
41
41
|
"@lts/gui": "1.0.0",
|
42
42
|
"react": "^17.0.2",
|
43
43
|
"react-dom": "^17.0.2"
|