@antv/g-canvas
Advanced tools
Comparing version 0.5.0-beta.3 to 0.5.0-beta.4
@@ -91,3 +91,8 @@ import { each, isArray } from '@antv/util'; | ||
// 这个分支说明此次局部刷新,所有的节点和父元素没有发生变化,仅需要检查包围盒(缓存)是否相交即可 | ||
child.cfg.refresh = checkElementRefresh(child, region); | ||
var refresh = checkElementRefresh(child, region); | ||
child.cfg.refresh = refresh; | ||
if (refresh && child.isGroup()) { | ||
// 如果需要刷新,说明子元素也需要刷新,继续进行判定 | ||
checkChildrenRefresh(child.cfg.children, region); | ||
} | ||
} | ||
@@ -94,0 +99,0 @@ } |
@@ -97,3 +97,8 @@ "use strict"; | ||
// 这个分支说明此次局部刷新,所有的节点和父元素没有发生变化,仅需要检查包围盒(缓存)是否相交即可 | ||
child.cfg.refresh = checkElementRefresh(child, region); | ||
var refresh = checkElementRefresh(child, region); | ||
child.cfg.refresh = refresh; | ||
if (refresh && child.isGroup()) { | ||
// 如果需要刷新,说明子元素也需要刷新,继续进行判定 | ||
checkChildrenRefresh(child.cfg.children, region); | ||
} | ||
} | ||
@@ -100,0 +105,0 @@ } |
{ | ||
"name": "@antv/g-canvas", | ||
"version": "0.5.0-beta.3", | ||
"version": "0.5.0-beta.4", | ||
"description": "A canvas library which providing 2d", | ||
@@ -27,3 +27,3 @@ "main": "lib/index.js", | ||
"test": "torch --renderer --compile --opts tests/mocha.opts", | ||
"test-live": "torch --compile --interactive tests/unit/", | ||
"test-live": "torch --compile --interactive tests/unit", | ||
"tsc": "tsc --noEmit", | ||
@@ -30,0 +30,0 @@ "typecheck": "tsc --noEmit", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1422187
7897