@babylonjs/gui-editor 7.25.0 → 7.25.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -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/core/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;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/gui-editor",
|
3
|
-
"version": "7.25.
|
3
|
+
"version": "7.25.2",
|
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.25.
|
28
|
-
"@babylonjs/gui": "^7.25.
|
27
|
+
"@babylonjs/core": "^7.25.2",
|
28
|
+
"@babylonjs/gui": "^7.25.2",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2"
|
31
31
|
},
|