2021-04-23 19:08:34 -04:00

27 lines
932 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
var VISIBILITY;
(function (VISIBILITY) {
VISIBILITY[VISIBILITY["VISIBLE"] = 0] = "VISIBLE";
VISIBILITY[VISIBILITY["HIDDEN"] = 1] = "HIDDEN";
VISIBILITY[VISIBILITY["COLLAPSE"] = 2] = "COLLAPSE";
})(VISIBILITY = exports.VISIBILITY || (exports.VISIBILITY = {}));
exports.visibility = {
name: 'visible',
initialValue: 'none',
prefix: false,
type: IPropertyDescriptor_1.PropertyDescriptorParsingType.IDENT_VALUE,
parse: function (visibility) {
switch (visibility) {
case 'hidden':
return VISIBILITY.HIDDEN;
case 'collapse':
return VISIBILITY.COLLAPSE;
case 'visible':
default:
return VISIBILITY.VISIBLE;
}
}
};
//# sourceMappingURL=visibility.js.map