main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
688 bytes
|
Line | |
---|
1 | // @flow
|
---|
2 |
|
---|
3 | class DOMRectReadOnly {
|
---|
4 | +x: number;
|
---|
5 | +y: number;
|
---|
6 | +width: number;
|
---|
7 | +height: number;
|
---|
8 | +top: number;
|
---|
9 | +right: number;
|
---|
10 | +bottom: number;
|
---|
11 | +left: number;
|
---|
12 | }
|
---|
13 |
|
---|
14 | class ResizeObserverEntry {
|
---|
15 | +target: Element;
|
---|
16 | +contentRect: DOMRectReadOnly;
|
---|
17 | }
|
---|
18 |
|
---|
19 | type Entries = $ReadOnlyArray<ResizeObserverEntry>;
|
---|
20 |
|
---|
21 | type ResizeObserverCallback = {
|
---|
22 | (entries: Entries, observer: ResizeObserver): void
|
---|
23 | };
|
---|
24 |
|
---|
25 | declare class ResizeObserver {
|
---|
26 | constructor(ResizeObserverCallback): ResizeObserver;
|
---|
27 | observe(target: Element): void;
|
---|
28 | unobserve(target: Element): void;
|
---|
29 | disconnect(): void;
|
---|
30 | };
|
---|
31 |
|
---|
32 | declare export default typeof ResizeObserver;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.