opacity.js 516 B

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