visibility.js 932 B

123456789101112131415161718192021222324252627
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
  4. var VISIBILITY;
  5. (function (VISIBILITY) {
  6. VISIBILITY[VISIBILITY["VISIBLE"] = 0] = "VISIBLE";
  7. VISIBILITY[VISIBILITY["HIDDEN"] = 1] = "HIDDEN";
  8. VISIBILITY[VISIBILITY["COLLAPSE"] = 2] = "COLLAPSE";
  9. })(VISIBILITY = exports.VISIBILITY || (exports.VISIBILITY = {}));
  10. exports.visibility = {
  11. name: 'visible',
  12. initialValue: 'none',
  13. prefix: false,
  14. type: IPropertyDescriptor_1.PropertyDescriptorParsingType.IDENT_VALUE,
  15. parse: function (visibility) {
  16. switch (visibility) {
  17. case 'hidden':
  18. return VISIBILITY.HIDDEN;
  19. case 'collapse':
  20. return VISIBILITY.COLLAPSE;
  21. case 'visible':
  22. default:
  23. return VISIBILITY.VISIBLE;
  24. }
  25. }
  26. };
  27. //# sourceMappingURL=visibility.js.map