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.
@@ -1530,8 +1530,9 @@ import { IDisposable } from "babylonjs/scene";
1530
1530
  * Class handling undo / redo operations
1531
1531
  */
1532
1532
  export class HistoryStack implements IDisposable {
1533
- private _history;
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 _rebuildState;
1558
+ private _copy;
1552
1559
  /**
1553
1560
  * Stores the current state
1554
1561
  */
@@ -5843,8 +5850,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
5843
5850
  * Class handling undo / redo operations
5844
5851
  */
5845
5852
  export class HistoryStack implements IDisposable {
5846
- private _history;
5853
+ private _historyStack;
5847
5854
  private _redoStack;
5855
+ private _activeData;
5848
5856
  private readonly _maxHistoryLength;
5849
5857
  private _locked;
5850
5858
  private _dataProvider;
@@ -5855,13 +5863,19 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
5855
5863
  * @param applyUpdate defines the code to execute when undo/redo operation is required
5856
5864
  */
5857
5865
  constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
5866
+ /**
5867
+ * Process key event to handle undo / redo
5868
+ * @param evt defines the keyboard event to process
5869
+ * @returns true if the event was processed
5870
+ */
5871
+ processKeyEvent(evt: KeyboardEvent): boolean;
5858
5872
  /**
5859
5873
  * Resets the stack
5860
5874
  */
5861
5875
  reset(): void;
5862
5876
  private _generateJSONDiff;
5863
5877
  private _applyJSONDiff;
5864
- private _rebuildState;
5878
+ private _copy;
5865
5879
  /**
5866
5880
  * Stores the current state
5867
5881
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui-editor",
3
- "version": "7.25.2",
3
+ "version": "7.26.0",
4
4
  "main": "babylon.guiEditor.max.js",
5
5
  "types": "babylon.guiEditor.module.d.ts",
6
6
  "files": [
@@ -14,8 +14,8 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.25.2",
18
- "babylonjs-gui": "^7.25.2"
17
+ "babylonjs": "^7.26.0",
18
+ "babylonjs-gui": "^7.26.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",