first commit
This commit is contained in:
commit
eb2f504652
32490 changed files with 5731109 additions and 0 deletions
36
node_modules/html2canvas/dist/lib/css/property-descriptors/background-repeat.js
generated
vendored
Normal file
36
node_modules/html2canvas/dist/lib/css/property-descriptors/background-repeat.js
generated
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.backgroundRepeat = void 0;
|
||||
var parser_1 = require("../syntax/parser");
|
||||
exports.backgroundRepeat = {
|
||||
name: 'background-repeat',
|
||||
initialValue: 'repeat',
|
||||
prefix: false,
|
||||
type: 1 /* LIST */,
|
||||
parse: function (_context, tokens) {
|
||||
return parser_1.parseFunctionArgs(tokens)
|
||||
.map(function (values) {
|
||||
return values
|
||||
.filter(parser_1.isIdentToken)
|
||||
.map(function (token) { return token.value; })
|
||||
.join(' ');
|
||||
})
|
||||
.map(parseBackgroundRepeat);
|
||||
}
|
||||
};
|
||||
var parseBackgroundRepeat = function (value) {
|
||||
switch (value) {
|
||||
case 'no-repeat':
|
||||
return 1 /* NO_REPEAT */;
|
||||
case 'repeat-x':
|
||||
case 'repeat no-repeat':
|
||||
return 2 /* REPEAT_X */;
|
||||
case 'repeat-y':
|
||||
case 'no-repeat repeat':
|
||||
return 3 /* REPEAT_Y */;
|
||||
case 'repeat':
|
||||
default:
|
||||
return 0 /* REPEAT */;
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=background-repeat.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue