border-style.js 1018 B

1234567891011121314151617181920212223242526
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
  4. var BORDER_STYLE;
  5. (function (BORDER_STYLE) {
  6. BORDER_STYLE[BORDER_STYLE["NONE"] = 0] = "NONE";
  7. BORDER_STYLE[BORDER_STYLE["SOLID"] = 1] = "SOLID";
  8. })(BORDER_STYLE = exports.BORDER_STYLE || (exports.BORDER_STYLE = {}));
  9. var borderStyleForSide = function (side) { return ({
  10. name: "border-" + side + "-style",
  11. initialValue: 'solid',
  12. prefix: false,
  13. type: IPropertyDescriptor_1.PropertyDescriptorParsingType.IDENT_VALUE,
  14. parse: function (style) {
  15. switch (style) {
  16. case 'none':
  17. return BORDER_STYLE.NONE;
  18. }
  19. return BORDER_STYLE.SOLID;
  20. }
  21. }); };
  22. exports.borderTopStyle = borderStyleForSide('top');
  23. exports.borderRightStyle = borderStyleForSide('right');
  24. exports.borderBottomStyle = borderStyleForSide('bottom');
  25. exports.borderLeftStyle = borderStyleForSide('left');
  26. //# sourceMappingURL=border-style.js.map