mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
21 lines
877 B
JavaScript
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
|