duration.js 507 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.duration = void 0;
  4. var parser_1 = require("../syntax/parser");
  5. var time_1 = require("../types/time");
  6. exports.duration = {
  7. name: 'duration',
  8. initialValue: '0s',
  9. prefix: false,
  10. type: 1 /* LIST */,
  11. parse: function (context, tokens) {
  12. return tokens.filter(parser_1.isDimensionToken).map(function (token) { return time_1.time.parse(context, token); });
  13. }
  14. };
  15. //# sourceMappingURL=duration.js.map