mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
27 lines
932 B
JavaScript
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
|