mirror of
https://github.com/konvajs/konva.git
synced 2025-12-21 19:27:08 +08:00
fixed stage.hide() bug, created new isVisible() method, and moved visible check to container
This commit is contained in:
@@ -174,6 +174,12 @@ Kinetic.Node.prototype = {
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
* determine if shape is visible or not
|
||||
*/
|
||||
isVisible: function() {
|
||||
return this.attrs.visible;
|
||||
},
|
||||
/**
|
||||
* show node
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user