float.js 1008 B

12345678910111213141516171819202122232425262728293031
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
  4. var FLOAT;
  5. (function (FLOAT) {
  6. FLOAT[FLOAT["NONE"] = 0] = "NONE";
  7. FLOAT[FLOAT["LEFT"] = 1] = "LEFT";
  8. FLOAT[FLOAT["RIGHT"] = 2] = "RIGHT";
  9. FLOAT[FLOAT["INLINE_START"] = 3] = "INLINE_START";
  10. FLOAT[FLOAT["INLINE_END"] = 4] = "INLINE_END";
  11. })(FLOAT = exports.FLOAT || (exports.FLOAT = {}));
  12. exports.float = {
  13. name: 'float',
  14. initialValue: 'none',
  15. prefix: false,
  16. type: IPropertyDescriptor_1.PropertyDescriptorParsingType.IDENT_VALUE,
  17. parse: function (float) {
  18. switch (float) {
  19. case 'left':
  20. return FLOAT.LEFT;
  21. case 'right':
  22. return FLOAT.RIGHT;
  23. case 'inline-start':
  24. return FLOAT.INLINE_START;
  25. case 'inline-end':
  26. return FLOAT.INLINE_END;
  27. }
  28. return FLOAT.NONE;
  29. }
  30. };
  31. //# sourceMappingURL=float.js.map