babylonjs-gui-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.
@@ -1207,6 +1207,55 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1207
1207
 
1208
1208
 
1209
1209
 
1210
+ }
1211
+ declare module BABYLON {
1212
+
1213
+
1214
+ }
1215
+ declare module BABYLON.GuiEditor.SharedUIComponents {
1216
+ /**
1217
+ * Class handling undo / redo operations
1218
+ */
1219
+ export class HistoryStack implements IDisposable {
1220
+ private _history;
1221
+ private _redoStack;
1222
+ private readonly _maxHistoryLength;
1223
+ private _locked;
1224
+ private _dataProvider;
1225
+ private _applyUpdate;
1226
+ /**
1227
+ * Constructor
1228
+ * @param dataProvider defines the data provider function
1229
+ * @param applyUpdate defines the code to execute when undo/redo operation is required
1230
+ */
1231
+ constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
1232
+ /**
1233
+ * Resets the stack
1234
+ */
1235
+ reset(): void;
1236
+ private _generateJSONDiff;
1237
+ private _applyJSONDiff;
1238
+ private _rebuildState;
1239
+ /**
1240
+ * Stores the current state
1241
+ */
1242
+ store(): void;
1243
+ /**
1244
+ * Undo the latest operation
1245
+ */
1246
+ undo(): void;
1247
+ /**
1248
+ * Redo the latest undo operation
1249
+ */
1250
+ redo(): void;
1251
+ /**
1252
+ * Disposes the stack
1253
+ */
1254
+ dispose(): void;
1255
+ }
1256
+
1257
+
1258
+
1210
1259
  }
1211
1260
  declare module BABYLON {
1212
1261
 
@@ -1523,6 +1523,50 @@ export class PropertyChangedEvent {
1523
1523
  allowNullValue?: boolean;
1524
1524
  }
1525
1525
 
1526
+ }
1527
+ declare module "babylonjs-gui-editor/historyStack" {
1528
+ import { IDisposable } from "babylonjs/scene";
1529
+ /**
1530
+ * Class handling undo / redo operations
1531
+ */
1532
+ export class HistoryStack implements IDisposable {
1533
+ private _history;
1534
+ private _redoStack;
1535
+ private readonly _maxHistoryLength;
1536
+ private _locked;
1537
+ private _dataProvider;
1538
+ private _applyUpdate;
1539
+ /**
1540
+ * Constructor
1541
+ * @param dataProvider defines the data provider function
1542
+ * @param applyUpdate defines the code to execute when undo/redo operation is required
1543
+ */
1544
+ constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
1545
+ /**
1546
+ * Resets the stack
1547
+ */
1548
+ reset(): void;
1549
+ private _generateJSONDiff;
1550
+ private _applyJSONDiff;
1551
+ private _rebuildState;
1552
+ /**
1553
+ * Stores the current state
1554
+ */
1555
+ store(): void;
1556
+ /**
1557
+ * Undo the latest operation
1558
+ */
1559
+ undo(): void;
1560
+ /**
1561
+ * Redo the latest undo operation
1562
+ */
1563
+ redo(): void;
1564
+ /**
1565
+ * Disposes the stack
1566
+ */
1567
+ dispose(): void;
1568
+ }
1569
+
1526
1570
  }
1527
1571
  declare module "babylonjs-gui-editor/copyCommandToClipboard" {
1528
1572
  export function copyCommandToClipboard(strCommand: string): void;
@@ -5789,6 +5833,55 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
5789
5833
 
5790
5834
 
5791
5835
 
5836
+ }
5837
+ declare module BABYLON {
5838
+
5839
+
5840
+ }
5841
+ declare module BABYLON.GuiEditor.SharedUIComponents {
5842
+ /**
5843
+ * Class handling undo / redo operations
5844
+ */
5845
+ export class HistoryStack implements IDisposable {
5846
+ private _history;
5847
+ private _redoStack;
5848
+ private readonly _maxHistoryLength;
5849
+ private _locked;
5850
+ private _dataProvider;
5851
+ private _applyUpdate;
5852
+ /**
5853
+ * Constructor
5854
+ * @param dataProvider defines the data provider function
5855
+ * @param applyUpdate defines the code to execute when undo/redo operation is required
5856
+ */
5857
+ constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
5858
+ /**
5859
+ * Resets the stack
5860
+ */
5861
+ reset(): void;
5862
+ private _generateJSONDiff;
5863
+ private _applyJSONDiff;
5864
+ private _rebuildState;
5865
+ /**
5866
+ * Stores the current state
5867
+ */
5868
+ store(): void;
5869
+ /**
5870
+ * Undo the latest operation
5871
+ */
5872
+ undo(): void;
5873
+ /**
5874
+ * Redo the latest undo operation
5875
+ */
5876
+ redo(): void;
5877
+ /**
5878
+ * Disposes the stack
5879
+ */
5880
+ dispose(): void;
5881
+ }
5882
+
5883
+
5884
+
5792
5885
  }
5793
5886
  declare module BABYLON {
5794
5887
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui-editor",
3
- "version": "7.25.0",
3
+ "version": "7.25.2",
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.0",
18
- "babylonjs-gui": "^7.25.0"
17
+ "babylonjs": "^7.25.2",
18
+ "babylonjs-gui": "^7.25.2"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",