1 | import { Emitter } from '@mantou/gem/lib/decorators';
|
2 | import { GemElement } from '@mantou/gem/lib/element';
|
3 | import './reflect';
|
4 | declare type SelectionMode = 'new' | 'append' | 'delete';
|
5 | declare type State = {
|
6 | start?: [number, number];
|
7 | stop?: [number, number];
|
8 | rect: SelectionRect;
|
9 | mode: SelectionMode;
|
10 | };
|
11 | declare type SelectionRect = {
|
12 | left: number;
|
13 | right: number;
|
14 | bottom: number;
|
15 | top: number;
|
16 | width: number;
|
17 | height: number;
|
18 | };
|
19 | export declare type SelectionChange = {
|
20 | rect: SelectionRect;
|
21 | mode: SelectionMode;
|
22 | };
|
23 |
|
24 |
|
25 |
|
26 | export 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 |
|
36 |
|
37 | export declare class DuoyunSelectionBoxMaskElement extends GemElement {
|
38 | }
|
39 | export {};
|
40 |
|
\ | No newline at end of file |