source: imaps-frontend/node_modules/html2canvas/dist/lib/css/property-descriptors/background-repeat.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.backgroundRepeat = void 0;
4var parser_1 = require("../syntax/parser");
5exports.backgroundRepeat = {
6 name: 'background-repeat',
7 initialValue: 'repeat',
8 prefix: false,
9 type: 1 /* LIST */,
10 parse: function (_context, tokens) {
11 return parser_1.parseFunctionArgs(tokens)
12 .map(function (values) {
13 return values
14 .filter(parser_1.isIdentToken)
15 .map(function (token) { return token.value; })
16 .join(' ');
17 })
18 .map(parseBackgroundRepeat);
19 }
20};
21var parseBackgroundRepeat = function (value) {
22 switch (value) {
23 case 'no-repeat':
24 return 1 /* NO_REPEAT */;
25 case 'repeat-x':
26 case 'repeat no-repeat':
27 return 2 /* REPEAT_X */;
28 case 'repeat-y':
29 case 'no-repeat repeat':
30 return 3 /* REPEAT_Y */;
31 case 'repeat':
32 default:
33 return 0 /* REPEAT */;
34 }
35};
36//# sourceMappingURL=background-repeat.js.map
Note: See TracBrowser for help on using the repository browser.