You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
393 B
14 lines
393 B
import { traverse } from './traverse';
|
|
export function show(element) {
|
|
visibility(element, true);
|
|
}
|
|
export function hide(element) {
|
|
visibility(element, false);
|
|
}
|
|
export function visibility(element, visible) {
|
|
var value = visible ? 'visible' : 'hidden';
|
|
traverse(element, function (node) {
|
|
node.attr('visibility', value);
|
|
});
|
|
}
|
|
//# sourceMappingURL=visibility.js.map
|