14 lines
532 B
JavaScript
14 lines
532 B
JavaScript
|
import { calculateBoxSizes } from './algorithms/calculateBoxSize';
|
||
|
var ResizeObserverEntry = (function () {
|
||
|
function ResizeObserverEntry(target) {
|
||
|
var boxes = calculateBoxSizes(target);
|
||
|
this.target = target;
|
||
|
this.contentRect = boxes.contentRect;
|
||
|
this.borderBoxSize = [boxes.borderBoxSize];
|
||
|
this.contentBoxSize = [boxes.contentBoxSize];
|
||
|
this.devicePixelContentBoxSize = [boxes.devicePixelContentBoxSize];
|
||
|
}
|
||
|
return ResizeObserverEntry;
|
||
|
}());
|
||
|
export { ResizeObserverEntry };
|