Merge branch 'master' of github.com:konvajs/konva

This commit is contained in:
Anton Lavrenov 2019-01-21 19:30:54 -05:00
commit 3a89a7a0c1

View File

@ -866,15 +866,10 @@ export abstract class Node {
var visible = this.visible(),
parent = this.getParent();
if (relativeTo === parent && visible === 'inherit') {
return true;
} else if (relativeTo === parent) {
return visible;
}
// the following conditions are a simplification of the truth table above.
// please modify carefully
if (visible === 'inherit') {
if (parent) {
if (parent && parent !== relativeTo) {
return parent._isVisible(relativeTo);
} else {
return true;