source: imaps-frontend/node_modules/html2canvas/dist/lib/css/property-descriptors/paint-order.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.paintOrder = void 0;
4var parser_1 = require("../syntax/parser");
5exports.paintOrder = {
6 name: 'paint-order',
7 initialValue: 'normal',
8 prefix: false,
9 type: 1 /* LIST */,
10 parse: function (_context, tokens) {
11 var DEFAULT_VALUE = [0 /* FILL */, 1 /* STROKE */, 2 /* MARKERS */];
12 var layers = [];
13 tokens.filter(parser_1.isIdentToken).forEach(function (token) {
14 switch (token.value) {
15 case 'stroke':
16 layers.push(1 /* STROKE */);
17 break;
18 case 'fill':
19 layers.push(0 /* FILL */);
20 break;
21 case 'markers':
22 layers.push(2 /* MARKERS */);
23 break;
24 }
25 });
26 DEFAULT_VALUE.forEach(function (value) {
27 if (layers.indexOf(value) === -1) {
28 layers.push(value);
29 }
30 });
31 return layers;
32 }
33};
34//# sourceMappingURL=paint-order.js.map
Note: See TracBrowser for help on using the repository browser.