opacity.js 445 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.opacity = void 0;
  4. var parser_1 = require("../syntax/parser");
  5. exports.opacity = {
  6. name: 'opacity',
  7. initialValue: '1',
  8. type: 0 /* VALUE */,
  9. prefix: false,
  10. parse: function (_context, token) {
  11. if (parser_1.isNumberToken(token)) {
  12. return token.number;
  13. }
  14. return 1;
  15. }
  16. };
  17. //# sourceMappingURL=opacity.js.map