build dist

This commit is contained in:
Pawel Bokota
2021-04-23 19:08:34 -04:00
parent 58cd4e3058
commit ea5e3db648
472 changed files with 25268 additions and 1 deletions

21
dist/lib/dom/element-container.js vendored Normal file
View File

@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../css/index");
var bounds_1 = require("../css/layout/bounds");
var node_parser_1 = require("./node-parser");
var ElementContainer = /** @class */ (function () {
function ElementContainer(element) {
this.styles = new index_1.CSSParsedDeclaration(window.getComputedStyle(element, null));
this.textNodes = [];
this.elements = [];
if (this.styles.transform !== null && node_parser_1.isHTMLElementNode(element)) {
// getBoundingClientRect takes transforms into account
element.style.transform = 'none';
}
this.bounds = bounds_1.parseBounds(element);
this.flags = 0;
}
return ElementContainer;
}());
exports.ElementContainer = ElementContainer;
//# sourceMappingURL=element-container.js.map