mirror of
https://github.com/mathuo/dockview
synced 2025-01-22 17:35:57 +00:00
chore: remove method
This commit is contained in:
parent
6c39c448bb
commit
77bccb3f69
@ -14,7 +14,6 @@ describe('watermark', () => {
|
|||||||
const group = jest.fn() as any;
|
const group = jest.fn() as any;
|
||||||
|
|
||||||
cut.init({ containerApi: api });
|
cut.init({ containerApi: api });
|
||||||
cut.updateParentGroup(group, true);
|
|
||||||
|
|
||||||
const closeEl = cut.element.querySelector('.close-action')!;
|
const closeEl = cut.element.querySelector('.close-action')!;
|
||||||
|
|
||||||
|
@ -116,10 +116,6 @@ class Watermark implements IWatermarkRenderer {
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
updateParentGroup() {
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
dispose() {
|
dispose() {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
@ -78,10 +78,7 @@ export class Watermark
|
|||||||
this.render();
|
this.render();
|
||||||
}
|
}
|
||||||
|
|
||||||
updateParentGroup(group: DockviewGroupPanel, _visible: boolean): void {
|
|
||||||
this._group = group;
|
|
||||||
this.render();
|
|
||||||
}
|
|
||||||
|
|
||||||
dispose(): void {
|
dispose(): void {
|
||||||
super.dispose();
|
super.dispose();
|
||||||
|
@ -972,8 +972,6 @@ export class DockviewGroupPanelModel
|
|||||||
|
|
||||||
this.tabsContainer.hide();
|
this.tabsContainer.hide();
|
||||||
this.contentContainer.element.appendChild(this.watermark.element);
|
this.contentContainer.element.appendChild(this.watermark.element);
|
||||||
|
|
||||||
this.watermark.updateParentGroup(this.groupPanel, true);
|
|
||||||
}
|
}
|
||||||
if (!this.isEmpty && this.watermark) {
|
if (!this.isEmpty && this.watermark) {
|
||||||
this.watermark.element.remove();
|
this.watermark.element.remove();
|
||||||
|
@ -32,7 +32,6 @@ export interface IWatermarkRenderer
|
|||||||
extends Optional<Omit<IPanel, 'id' | 'init'>, RendererMethodOptionalList> {
|
extends Optional<Omit<IPanel, 'id' | 'init'>, RendererMethodOptionalList> {
|
||||||
readonly element: HTMLElement;
|
readonly element: HTMLElement;
|
||||||
init: (params: WatermarkRendererInitParameters) => void;
|
init: (params: WatermarkRendererInitParameters) => void;
|
||||||
updateParentGroup(group: DockviewGroupPanel, visible: boolean): void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ITabRenderer
|
export interface ITabRenderer
|
||||||
|
@ -183,10 +183,6 @@ export class VueWatermarkRenderer
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateParentGroup(group: DockviewGroupPanel, visible: boolean): void {
|
|
||||||
// TODO: make optional on interface
|
|
||||||
}
|
|
||||||
|
|
||||||
update(event: PanelUpdateEvent<Parameters>): void {
|
update(event: PanelUpdateEvent<Parameters>): void {
|
||||||
// noop
|
// noop
|
||||||
}
|
}
|
||||||
|
@ -57,13 +57,6 @@ export class ReactWatermarkPart implements IWatermarkRenderer {
|
|||||||
// noop - retrieval from api
|
// noop - retrieval from api
|
||||||
}
|
}
|
||||||
|
|
||||||
updateParentGroup(
|
|
||||||
_group: DockviewGroupPanel,
|
|
||||||
_isPanelVisible: boolean
|
|
||||||
): void {
|
|
||||||
// noop
|
|
||||||
}
|
|
||||||
|
|
||||||
dispose(): void {
|
dispose(): void {
|
||||||
this.part?.dispose();
|
this.part?.dispose();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user