Files
html2canvas/dist/lib/dom/element-container.js
Pawel Bokota ea5e3db648 build dist
2021-04-23 19:08:34 -04:00

21 lines
877 B
JavaScript

"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