UNPKG

html2canvas-pro

Version:

Screenshots with JavaScript. Next generation!

29 lines 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.textDecorationLine = void 0; const parser_1 = require("../syntax/parser"); exports.textDecorationLine = { name: 'text-decoration-line', initialValue: 'none', prefix: false, type: 1 /* PropertyDescriptorParsingType.LIST */, parse: (_context, tokens) => { return tokens .filter(parser_1.isIdentToken) .map((token) => { switch (token.value) { case 'underline': return 1 /* TEXT_DECORATION_LINE.UNDERLINE */; case 'overline': return 2 /* TEXT_DECORATION_LINE.OVERLINE */; case 'line-through': return 3 /* TEXT_DECORATION_LINE.LINE_THROUGH */; case 'none': return 4 /* TEXT_DECORATION_LINE.BLINK */; } return 0 /* TEXT_DECORATION_LINE.NONE */; }) .filter((line) => line !== 0 /* TEXT_DECORATION_LINE.NONE */); } }; //# sourceMappingURL=text-decoration-line.js.map