mirror of
https://github.com/konvajs/konva.git
synced 2025-12-17 09:54:56 +08:00
made some caching fixes
This commit is contained in:
34
src/Node.js
34
src/Node.js
@@ -763,24 +763,24 @@
|
||||
}
|
||||
},
|
||||
/**
|
||||
* determine if node is visible by taking into account ancestors.
|
||||
*
|
||||
* Parent | Self | isVisible
|
||||
* visible | visible |
|
||||
* ----------+-----------+------------
|
||||
* T | T | T
|
||||
* T | F | F
|
||||
* F | T | T
|
||||
* F | F | F
|
||||
* ----------+-----------+------------
|
||||
* T | I | T
|
||||
* F | I | F
|
||||
* I | I | T
|
||||
* determine if node is visible by taking into account ancestors.
|
||||
*
|
||||
* Parent | Self | isVisible
|
||||
* visible | visible |
|
||||
* ----------+-----------+------------
|
||||
* T | T | T
|
||||
* T | F | F
|
||||
* F | T | T
|
||||
* F | F | F
|
||||
* ----------+-----------+------------
|
||||
* T | I | T
|
||||
* F | I | F
|
||||
* I | I | T
|
||||
|
||||
* @method
|
||||
* @memberof Konva.Node.prototype
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
* @method
|
||||
* @memberof Konva.Node.prototype
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
isVisible: function() {
|
||||
return this._getCache(VISIBLE, this._isVisible);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user