babylonjs-node-geometry-editor 7.25.2 → 7.26.0
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.
|
@@ -66,6 +66,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
66
66
|
private _diagramContainerRef;
|
|
67
67
|
private _graphCanvas;
|
|
68
68
|
private _diagramContainer;
|
|
69
|
+
private _historyStack;
|
|
69
70
|
private _startX;
|
|
70
71
|
private _moveInProgress;
|
|
71
72
|
private _leftWidth;
|
|
@@ -78,6 +79,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
78
79
|
private _popUpWindow;
|
|
79
80
|
appendBlock(dataToAppend: BABYLON.NodeGeometryBlock | BABYLON.NodeGeometryEditor.SharedUIComponents.INodeData, recursion?: boolean): BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode;
|
|
80
81
|
addValueNode(type: string): BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode;
|
|
82
|
+
prepareHistoryStack(): void;
|
|
81
83
|
componentDidMount(): void;
|
|
82
84
|
componentWillUnmount(): void;
|
|
83
85
|
constructor(props: IGraphEditorProps);
|
|
@@ -116,6 +118,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
116
118
|
stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager;
|
|
117
119
|
onBuiltObservable: BABYLON.Observable<void>;
|
|
118
120
|
onResetRequiredObservable: BABYLON.Observable<boolean>;
|
|
121
|
+
onClearUndoStack: BABYLON.Observable<void>;
|
|
119
122
|
onZoomToFitRequiredObservable: BABYLON.Observable<void>;
|
|
120
123
|
onReOrganizedRequiredObservable: BABYLON.Observable<void>;
|
|
121
124
|
onPreviewModeChanged: BABYLON.Observable<void>;
|
|
@@ -811,8 +814,9 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
811
814
|
* Class handling undo / redo operations
|
|
812
815
|
*/
|
|
813
816
|
export class HistoryStack implements BABYLON.IDisposable {
|
|
814
|
-
private
|
|
817
|
+
private _historyStack;
|
|
815
818
|
private _redoStack;
|
|
819
|
+
private _activeData;
|
|
816
820
|
private readonly _maxHistoryLength;
|
|
817
821
|
private _locked;
|
|
818
822
|
private _dataProvider;
|
|
@@ -823,13 +827,19 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
823
827
|
* @param applyUpdate defines the code to execute when undo/redo operation is required
|
|
824
828
|
*/
|
|
825
829
|
constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
|
|
830
|
+
/**
|
|
831
|
+
* Process key event to handle undo / redo
|
|
832
|
+
* @param evt defines the keyboard event to process
|
|
833
|
+
* @returns true if the event was processed
|
|
834
|
+
*/
|
|
835
|
+
processKeyEvent(evt: KeyboardEvent): boolean;
|
|
826
836
|
/**
|
|
827
837
|
* Resets the stack
|
|
828
838
|
*/
|
|
829
839
|
reset(): void;
|
|
830
840
|
private _generateJSONDiff;
|
|
831
841
|
private _applyJSONDiff;
|
|
832
|
-
private
|
|
842
|
+
private _copy;
|
|
833
843
|
/**
|
|
834
844
|
* Stores the current state
|
|
835
845
|
*/
|