Comparing version 3.0.7 to 3.0.8
@@ -58,2 +58,10 @@ /** | ||
/** | ||
* 所有子孙元素是否响应鼠标事件 | ||
* @name module:/zrender/container/Group#silent | ||
* @type {boolean} | ||
* @default false | ||
*/ | ||
silent: false, | ||
/** | ||
* @return {Array.<module:zrender/Element>} | ||
@@ -60,0 +68,0 @@ */ |
@@ -466,9 +466,9 @@ 'use strict'; | ||
if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) { | ||
var p = displayable.parent; | ||
while (p) { | ||
if (p.clipPath && !p.clipPath.contain(x, y)) { | ||
// Clipped by parents | ||
var el = displayable; | ||
while (el) { | ||
// If ancestor is silent or clipped by ancestor | ||
if (el.silent || (el.clipPath && !el.clipPath.contain(x, y))) { | ||
return false; | ||
} | ||
p = p.parent; | ||
el = el.parent; | ||
} | ||
@@ -475,0 +475,0 @@ return true; |
@@ -467,2 +467,3 @@ // http://www.w3.org/TR/NOTE-VML | ||
this.buildPath(path, this.shape); | ||
path.toStatic(); | ||
this.__dirtyPath = false; | ||
@@ -469,0 +470,0 @@ } |
@@ -31,3 +31,3 @@ /*! | ||
*/ | ||
zrender.version = '3.0.7'; | ||
zrender.version = '3.0.8'; | ||
@@ -34,0 +34,0 @@ /** |
{ | ||
"name": "zrender", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "A lightweight canvas library.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -58,2 +58,10 @@ /** | ||
/** | ||
* 所有子孙元素是否响应鼠标事件 | ||
* @name module:/zrender/container/Group#silent | ||
* @type {boolean} | ||
* @default false | ||
*/ | ||
silent: false, | ||
/** | ||
* @return {Array.<module:zrender/Element>} | ||
@@ -60,0 +68,0 @@ */ |
@@ -467,9 +467,9 @@ /** | ||
if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) { | ||
var p = displayable.parent; | ||
while (p) { | ||
if (p.clipPath && !p.clipPath.contain(x, y)) { | ||
// Clipped by parents | ||
var el = displayable; | ||
while (el) { | ||
// If ancestor is silent or clipped by ancestor | ||
if (el.silent || (el.clipPath && !el.clipPath.contain(x, y))) { | ||
return false; | ||
} | ||
p = p.parent; | ||
el = el.parent; | ||
} | ||
@@ -476,0 +476,0 @@ return true; |
@@ -467,2 +467,3 @@ // http://www.w3.org/TR/NOTE-VML | ||
this.buildPath(path, this.shape); | ||
path.toStatic(); | ||
this.__dirtyPath = false; | ||
@@ -469,0 +470,0 @@ } |
@@ -31,3 +31,3 @@ /*! | ||
*/ | ||
zrender.version = '3.0.7'; | ||
zrender.version = '3.0.8'; | ||
@@ -34,0 +34,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
874654
25647