mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
build dist
This commit is contained in:
21
dist/lib/dom/element-container.js
vendored
Normal file
21
dist/lib/dom/element-container.js
vendored
Normal 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
|
||||
Reference in New Issue
Block a user