source: imaps-frontend/node_modules/html2canvas/dist/lib/css/property-descriptors/font-family.js

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

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.1 KB
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.fontFamily = void 0;
4exports.fontFamily = {
5 name: "font-family",
6 initialValue: '',
7 prefix: false,
8 type: 1 /* LIST */,
9 parse: function (_context, tokens) {
10 var accumulator = [];
11 var results = [];
12 tokens.forEach(function (token) {
13 switch (token.type) {
14 case 20 /* IDENT_TOKEN */:
15 case 0 /* STRING_TOKEN */:
16 accumulator.push(token.value);
17 break;
18 case 17 /* NUMBER_TOKEN */:
19 accumulator.push(token.number.toString());
20 break;
21 case 4 /* COMMA_TOKEN */:
22 results.push(accumulator.join(' '));
23 accumulator.length = 0;
24 break;
25 }
26 });
27 if (accumulator.length) {
28 results.push(accumulator.join(' '));
29 }
30 return results.map(function (result) { return (result.indexOf(' ') === -1 ? result : "'" + result + "'"); });
31 }
32};
33//# sourceMappingURL=font-family.js.map
Note: See TracBrowser for help on using the repository browser.