@kieler/klighd-core
Version:
Core KLighD diagram visualization with Sprotty
21 lines • 834 B
TypeScript
import { ICommand } from 'sprotty';
import { Action } from 'sprotty-protocol';
import { Registry } from '../base/registry';
import { ISidebarPanel } from './sidebar-panel';
/**
* {@link Registry} that stores all sidebar panels which are resolved by the DI container.
* At most one panel is considered active. The state (which panel is active) can
* be changed with a {@link ToggleSidebarPanelAction}.
*/
export declare class SidebarPanelRegistry extends Registry {
private _panels;
private _currentPanelID;
private storage;
constructor(panels?: ISidebarPanel[]);
init(): void;
handle(action: Action): void | Action | ICommand;
get allPanels(): ISidebarPanel[];
get currentPanel(): ISidebarPanel | null;
get currentPanelID(): string | null;
}
//# sourceMappingURL=sidebar-panel-registry.d.ts.map