source: imaps-frontend/node_modules/html2canvas/dist/lib/render/box-sizing.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[79a0317]1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.contentBox = exports.paddingBox = void 0;
4var length_percentage_1 = require("../css/types/length-percentage");
5var paddingBox = function (element) {
6 var bounds = element.bounds;
7 var styles = element.styles;
8 return bounds.add(styles.borderLeftWidth, styles.borderTopWidth, -(styles.borderRightWidth + styles.borderLeftWidth), -(styles.borderTopWidth + styles.borderBottomWidth));
9};
10exports.paddingBox = paddingBox;
11var contentBox = function (element) {
12 var styles = element.styles;
13 var bounds = element.bounds;
14 var paddingLeft = length_percentage_1.getAbsoluteValue(styles.paddingLeft, bounds.width);
15 var paddingRight = length_percentage_1.getAbsoluteValue(styles.paddingRight, bounds.width);
16 var paddingTop = length_percentage_1.getAbsoluteValue(styles.paddingTop, bounds.width);
17 var paddingBottom = length_percentage_1.getAbsoluteValue(styles.paddingBottom, bounds.width);
18 return bounds.add(paddingLeft + styles.borderLeftWidth, paddingTop + styles.borderTopWidth, -(styles.borderRightWidth + styles.borderLeftWidth + paddingLeft + paddingRight), -(styles.borderTopWidth + styles.borderBottomWidth + paddingTop + paddingBottom));
19};
20exports.contentBox = contentBox;
21//# sourceMappingURL=box-sizing.js.map
Note: See TracBrowser for help on using the repository browser.