mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
21 lines
799 B
JavaScript
21 lines
799 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
|
|
var parser_1 = require("../syntax/parser");
|
|
var borderWidthForSide = function (side) { return ({
|
|
name: "border-" + side + "-width",
|
|
initialValue: '0',
|
|
type: IPropertyDescriptor_1.PropertyDescriptorParsingType.VALUE,
|
|
prefix: false,
|
|
parse: function (token) {
|
|
if (parser_1.isDimensionToken(token)) {
|
|
return token.number;
|
|
}
|
|
return 0;
|
|
}
|
|
}); };
|
|
exports.borderTopWidth = borderWidthForSide('top');
|
|
exports.borderRightWidth = borderWidthForSide('right');
|
|
exports.borderBottomWidth = borderWidthForSide('bottom');
|
|
exports.borderLeftWidth = borderWidthForSide('left');
|
|
//# sourceMappingURL=border-width.js.map
|