babylonjs-gui-editor 7.24.0 → 7.25.1
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.
|
@@ -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;
|
|
@@ -1887,6 +1931,7 @@ export class StateManager {
|
|
|
1887
1931
|
onCandidatePortSelectedObservable: Observable<Nullable<FrameNodePort | NodePort>>;
|
|
1888
1932
|
onNewNodeCreatedObservable: Observable<GraphNode>;
|
|
1889
1933
|
onRebuildRequiredObservable: Observable<void>;
|
|
1934
|
+
onNodeMovedObservable: Observable<GraphNode>;
|
|
1890
1935
|
onErrorMessageDialogRequiredObservable: Observable<string>;
|
|
1891
1936
|
onExposePortOnFrameObservable: Observable<GraphNode>;
|
|
1892
1937
|
onGridSizeChanged: Observable<void>;
|
|
@@ -5788,6 +5833,55 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
5788
5833
|
|
|
5789
5834
|
|
|
5790
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
|
+
|
|
5791
5885
|
}
|
|
5792
5886
|
declare module BABYLON {
|
|
5793
5887
|
|
|
@@ -6161,6 +6255,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6161
6255
|
onCandidatePortSelectedObservable: Observable<Nullable<BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort>>;
|
|
6162
6256
|
onNewNodeCreatedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
|
|
6163
6257
|
onRebuildRequiredObservable: Observable<void>;
|
|
6258
|
+
onNodeMovedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
|
|
6164
6259
|
onErrorMessageDialogRequiredObservable: Observable<string>;
|
|
6165
6260
|
onExposePortOnFrameObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
|
|
6166
6261
|
onGridSizeChanged: Observable<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.25.1",
|
|
4
4
|
"main": "babylon.guiEditor.max.js",
|
|
5
5
|
"types": "babylon.guiEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"build:dev": "webpack --env development",
|
|
12
12
|
"build:prod": "webpack --env production",
|
|
13
13
|
"build:declaration": "build-tools -c pud --config ./config.json",
|
|
14
|
-
"clean": "rimraf dist && rimraf babylon*.*"
|
|
14
|
+
"clean": "rimraf dist && rimraf babylon*.* -g"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^7.
|
|
18
|
-
"babylonjs-gui": "^7.
|
|
17
|
+
"babylonjs": "^7.25.1",
|
|
18
|
+
"babylonjs-gui": "^7.25.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|