mirror of
https://github.com/mathuo/dockview
synced 2025-08-17 14:46:01 +00:00
feat: export options as public interface
This commit is contained in:
parent
9de0a6185a
commit
fa38d227b5
@ -199,6 +199,14 @@ export type DockviewGroupLocation =
|
||||
| { type: 'floating' }
|
||||
| { type: 'popout'; getWindow: () => Window; popoutUrl?: string };
|
||||
|
||||
export interface WillShowOverlayLocationEventOptions {
|
||||
readonly kind: DockviewGroupDropLocation;
|
||||
readonly panel: IDockviewPanel | undefined;
|
||||
readonly api: DockviewApi;
|
||||
readonly group: DockviewGroupPanel | undefined;
|
||||
getData: () => PanelTransfer | undefined;
|
||||
}
|
||||
|
||||
export class WillShowOverlayLocationEvent implements IDockviewEvent {
|
||||
get kind(): DockviewGroupDropLocation {
|
||||
return this.options.kind;
|
||||
@ -238,13 +246,7 @@ export class WillShowOverlayLocationEvent implements IDockviewEvent {
|
||||
|
||||
constructor(
|
||||
private readonly event: WillShowOverlayEvent,
|
||||
private readonly options: {
|
||||
kind: DockviewGroupDropLocation;
|
||||
panel: IDockviewPanel | undefined;
|
||||
api: DockviewApi;
|
||||
group: DockviewGroupPanel | undefined;
|
||||
getData: () => PanelTransfer | undefined;
|
||||
}
|
||||
readonly options: WillShowOverlayLocationEventOptions
|
||||
) {}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user