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.
package/babylon.guiEditor.d.ts
CHANGED
|
@@ -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
|
|
|
@@ -1580,6 +1629,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1580
1629
|
onCandidatePortSelectedObservable: Observable<Nullable<BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort>>;
|
|
1581
1630
|
onNewNodeCreatedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
|
|
1582
1631
|
onRebuildRequiredObservable: Observable<void>;
|
|
1632
|
+
onNodeMovedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
|
|
1583
1633
|
onErrorMessageDialogRequiredObservable: Observable<string>;
|
|
1584
1634
|
onExposePortOnFrameObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
|
|
1585
1635
|
onGridSizeChanged: Observable<void>;
|