UNPKG

1.05 kBTypeScriptView Raw
1import { Emitter } from '@mantou/gem/lib/decorators';
2import { GemElement } from '@mantou/gem/lib/element';
3import './reflect';
4declare type SelectionMode = 'new' | 'append' | 'delete';
5declare type State = {
6 start?: [number, number];
7 stop?: [number, number];
8 rect: SelectionRect;
9 mode: SelectionMode;
10};
11declare type SelectionRect = {
12 left: number;
13 right: number;
14 bottom: number;
15 top: number;
16 width: number;
17 height: number;
18};
19export declare type SelectionChange = {
20 rect: SelectionRect;
21 mode: SelectionMode;
22};
23/**
24 * @customElement dy-selection-box
25 */
26export declare class DuoyunSelectionBoxElement extends GemElement<State> {
27 #private;
28 change: Emitter<SelectionChange>;
29 selecting: boolean;
30 state: State;
31 mounted: () => () => void;
32 render: () => import("lit-html/lib/template-result").TemplateResult;
33}
34/**
35 * @customElement dy-selection-box-mask
36 */
37export declare class DuoyunSelectionBoxMaskElement extends GemElement {
38}
39export {};
40//# sourceMappingURL=selection-box.d.ts.map
\No newline at end of file