babylonjs-node-geometry-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.
@@ -801,6 +801,55 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
801
801
 
802
802
 
803
803
 
804
+ }
805
+ declare module BABYLON.NodeGeometryEditor {
806
+
807
+
808
+ }
809
+ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
810
+ /**
811
+ * Class handling undo / redo operations
812
+ */
813
+ export class HistoryStack implements BABYLON.IDisposable {
814
+ private _history;
815
+ private _redoStack;
816
+ private readonly _maxHistoryLength;
817
+ private _locked;
818
+ private _dataProvider;
819
+ private _applyUpdate;
820
+ /**
821
+ * Constructor
822
+ * @param dataProvider defines the data provider function
823
+ * @param applyUpdate defines the code to execute when undo/redo operation is required
824
+ */
825
+ constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
826
+ /**
827
+ * Resets the stack
828
+ */
829
+ reset(): void;
830
+ private _generateJSONDiff;
831
+ private _applyJSONDiff;
832
+ private _rebuildState;
833
+ /**
834
+ * Stores the current state
835
+ */
836
+ store(): void;
837
+ /**
838
+ * Undo the latest operation
839
+ */
840
+ undo(): void;
841
+ /**
842
+ * Redo the latest undo operation
843
+ */
844
+ redo(): void;
845
+ /**
846
+ * Disposes the stack
847
+ */
848
+ dispose(): void;
849
+ }
850
+
851
+
852
+
804
853
  }
805
854
  declare module BABYLON.NodeGeometryEditor {
806
855
 
@@ -1174,6 +1223,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
1174
1223
  onCandidatePortSelectedObservable: BABYLON.Observable<BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeGeometryEditor.SharedUIComponents.NodePort>>;
1175
1224
  onNewNodeCreatedObservable: BABYLON.Observable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode>;
1176
1225
  onRebuildRequiredObservable: BABYLON.Observable<void>;
1226
+ onNodeMovedObservable: BABYLON.Observable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode>;
1177
1227
  onErrorMessageDialogRequiredObservable: BABYLON.Observable<string>;
1178
1228
  onExposePortOnFrameObservable: BABYLON.Observable<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode>;
1179
1229
  onGridSizeChanged: BABYLON.Observable<void>;