source: imaps-frontend/node_modules/html2canvas/dist/lib/css/property-descriptors/font-weight.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: 718 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.fontWeight = void 0;
4var parser_1 = require("../syntax/parser");
5exports.fontWeight = {
6 name: 'font-weight',
7 initialValue: 'normal',
8 type: 0 /* VALUE */,
9 prefix: false,
10 parse: function (_context, token) {
11 if (parser_1.isNumberToken(token)) {
12 return token.number;
13 }
14 if (parser_1.isIdentToken(token)) {
15 switch (token.value) {
16 case 'bold':
17 return 700;
18 case 'normal':
19 default:
20 return 400;
21 }
22 }
23 return 400;
24 }
25};
26//# sourceMappingURL=font-weight.js.map
Note: See TracBrowser for help on using the repository browser.