Skip to content

Commit de84bca

Browse files
committed
feat: experimental work
1 parent 25489bf commit de84bca

File tree

6 files changed

+192
-68
lines changed

6 files changed

+192
-68
lines changed

packages/dockview-core/src/__tests__/dockview/dockviewGroupPanelModel.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ export class TestPanel implements IDockviewPanel {
209209
});
210210
}
211211

212+
updateFromStateModel(state: GroupviewPanelState): void {
213+
//
214+
}
215+
212216
init(params: IGroupPanelInitParameters) {
213217
this._params = params;
214218
}

packages/dockview-core/src/api/component.api.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,8 +854,11 @@ export class DockviewApi implements CommonApi<SerializedDockview> {
854854
/**
855855
* Create a component from a serialized object.
856856
*/
857-
fromJSON(data: SerializedDockview): void {
858-
this.component.fromJSON(data);
857+
fromJSON(
858+
data: SerializedDockview,
859+
options?: { keepExistingPanels: boolean }
860+
): void {
861+
this.component.fromJSON(data, options);
859862
}
860863

861864
/**

0 commit comments

Comments
 (0)