Skip to content

Commit

Permalink
Dump 3.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Apr 21, 2016
1 parent 08dba72 commit 9229312
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
21 changes: 15 additions & 6 deletions build/zrender.js
Original file line number Diff line number Diff line change
Expand Up @@ -1698,13 +1698,13 @@ define('zrender/Handler',['require','./core/env','./core/event','./core/util','.

function isHover(displayable, x, y) {
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;
}
return true;
}
Expand Down Expand Up @@ -4775,6 +4775,14 @@ define('zrender/container/Group',['require','../core/util','../Element','../core
*/
type: 'group',

/**
* 所有子孙元素是否响应鼠标事件
* @name module:/zrender/container/Group#silent
* @type {boolean}
* @default false
*/
silent: false,

/**
* @return {Array.<module:zrender/Element>}
*/
Expand Down Expand Up @@ -7742,7 +7750,7 @@ define('zrender/zrender',['require','./core/guid','./core/env','./Handler','./St
/**
* @type {string}
*/
zrender.version = '3.0.7';
zrender.version = '3.0.8';

/**
* Initializing a zrender instance
Expand Down Expand Up @@ -12083,6 +12091,7 @@ if (!require('../core/env').canvasSupported) {
if (this.__dirtyPath) {
path.beginPath();
this.buildPath(path, this.shape);
path.toStatic();
this.__dirtyPath = false;
}

Expand Down
6 changes: 3 additions & 3 deletions build/zrender.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zrender",
"version": "3.0.7",
"version": "3.0.8",
"description": "A lightweight canvas library.",
"keywords": [
"canvas",
Expand Down
2 changes: 1 addition & 1 deletion src/zrender.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define(function(require) {
/**
* @type {string}
*/
zrender.version = '3.0.7';
zrender.version = '3.0.8';

/**
* Initializing a zrender instance
Expand Down

0 comments on commit 9229312

Please sign in to comment.