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:
978 bytes
|
Rev | Line | |
---|
[d565449] | 1 | interface DOMRectReadOnly {
|
---|
| 2 | readonly x: number;
|
---|
| 3 | readonly y: number;
|
---|
| 4 | readonly width: number;
|
---|
| 5 | readonly height: number;
|
---|
| 6 | readonly top: number;
|
---|
| 7 | readonly right: number;
|
---|
| 8 | readonly bottom: number;
|
---|
| 9 | readonly left: number;
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | declare global {
|
---|
| 13 | interface ResizeObserverCallback {
|
---|
| 14 | (entries: ResizeObserverEntry[], observer: ResizeObserver): void
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | interface ResizeObserverEntry {
|
---|
| 18 | readonly target: Element;
|
---|
| 19 | readonly contentRect: DOMRectReadOnly;
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | interface ResizeObserver {
|
---|
| 23 | observe(target: Element): void;
|
---|
| 24 | unobserve(target: Element): void;
|
---|
| 25 | disconnect(): void;
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 | declare var ResizeObserver: {
|
---|
| 30 | prototype: ResizeObserver;
|
---|
| 31 | new(callback: ResizeObserverCallback): ResizeObserver;
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | interface ResizeObserver {
|
---|
| 35 | observe(target: Element): void;
|
---|
| 36 | unobserve(target: Element): void;
|
---|
| 37 | disconnect(): void;
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | export default ResizeObserver;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.