| 1234567891011121314151617181920 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.visibility = exports.hide = exports.show = void 0;
- var traverse_1 = require("./traverse");
- function show(element) {
- visibility(element, true);
- }
- exports.show = show;
- function hide(element) {
- visibility(element, false);
- }
- exports.hide = hide;
- function visibility(element, visiable) {
- var value = visiable ? 'visible' : 'hidden';
- (0, traverse_1.traverse)(element, function (node) {
- node.attr('visibility', value);
- });
- }
- exports.visibility = visibility;
- //# sourceMappingURL=visibility.js.map
|