@docsvision/webclient
Version:
Type definitions for DocsVision WebClient scripts and extensions.
28 lines (27 loc) • 1.04 kB
TypeScript
import { GenModels } from '@docsvision/webclient/Generated/DocsVision.WebClient.Models';
import { Store, Event } from 'effector';
export declare enum LayoutBackgroundStyle {
Tile = "repeat",
Stretch = "cover"
}
export interface ILayoutBackground {
/** Источник фона */
source: string;
/** Режим отображения фона */
type: GenModels.BackgroundType;
/** Стиль отображения фона */
style: GenModels.BackgroundStyle;
/** Видимость */
visibility?: boolean;
}
/** Реализация {@link ILayoutBackgroundService} */
export interface ILayoutBackgroundService {
readonly $webFrame: Store<ILayoutBackground>;
readonly $layout: Store<ILayoutBackground>;
setWebFrame: Event<ILayoutBackground>;
setLayout: Event<ILayoutBackground>;
}
export declare type $LayoutBackground = {
layoutBackground: ILayoutBackgroundService;
};
export declare const $LayoutBackground: string | ((model?: $LayoutBackground) => ILayoutBackgroundService);