wishthis/node_modules/html2canvas/dist/lib/css/property-descriptors/letter-spacing.js

22 lines
643 B
JavaScript
Raw Normal View History

2022-11-19 15:34:10 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.letterSpacing = void 0;
exports.letterSpacing = {
name: 'letter-spacing',
initialValue: '0',
prefix: false,
type: 0 /* VALUE */,
parse: function (_context, token) {
if (token.type === 20 /* IDENT_TOKEN */ && token.value === 'normal') {
return 0;
}
if (token.type === 17 /* NUMBER_TOKEN */) {
return token.number;
}
if (token.type === 15 /* DIMENSION_TOKEN */) {
return token.number;
}
return 0;
}
};
//# sourceMappingURL=letter-spacing.js.map