mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Merge branch 'master' of github.com:konvajs/konva
This commit is contained in:
commit
3a89a7a0c1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user