UNPKG

html2canvas-pro

Version:

Screenshots with JavaScript. Next generation!

18 lines 957 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.borderBottomLeftRadius = exports.borderBottomRightRadius = exports.borderTopRightRadius = exports.borderTopLeftRadius = void 0; var length_percentage_1 = require("../types/length-percentage"); var borderRadiusForSide = function (side) { return ({ name: "border-radius-".concat(side), initialValue: '0 0', prefix: false, type: 1 /* PropertyDescriptorParsingType.LIST */, parse: function (_context, tokens) { return (0, length_percentage_1.parseLengthPercentageTuple)(tokens.filter(length_percentage_1.isLengthPercentage)); } }); }; exports.borderTopLeftRadius = borderRadiusForSide('top-left'); exports.borderTopRightRadius = borderRadiusForSide('top-right'); exports.borderBottomRightRadius = borderRadiusForSide('bottom-right'); exports.borderBottomLeftRadius = borderRadiusForSide('bottom-left'); //# sourceMappingURL=border-radius.js.map