@antv/g-canvas
Advanced tools
Comparing version 0.4.8 to 0.4.9
@@ -22,3 +22,3 @@ import { isAllowCapture } from '@antv/g-base/lib/util/util'; | ||
// @ts-ignore | ||
if (element.isGroup() && element.isCanvas()) { | ||
if (element.isCanvas && element.isCanvas()) { | ||
return true; | ||
@@ -39,3 +39,6 @@ } | ||
// @ts-ignore ,这个地方调用过于频繁 | ||
var bbox = element.cfg.cacheCanvasBBox || element.getCanvasBBox(); | ||
var bbox = element.cfg.cacheCanvasBBox; | ||
if (!bbox) { | ||
bbox = element.getCanvasBBox(); | ||
} | ||
if (!(x >= bbox.minX && x <= bbox.maxX && y >= bbox.minY && y <= bbox.maxY)) { | ||
@@ -42,0 +45,0 @@ return false; |
@@ -24,3 +24,3 @@ "use strict"; | ||
// @ts-ignore | ||
if (element.isGroup() && element.isCanvas()) { | ||
if (element.isCanvas && element.isCanvas()) { | ||
return true; | ||
@@ -41,3 +41,6 @@ } | ||
// @ts-ignore ,这个地方调用过于频繁 | ||
var bbox = element.cfg.cacheCanvasBBox || element.getCanvasBBox(); | ||
var bbox = element.cfg.cacheCanvasBBox; | ||
if (!bbox) { | ||
bbox = element.getCanvasBBox(); | ||
} | ||
if (!(x >= bbox.minX && x <= bbox.maxX && y >= bbox.minY && y <= bbox.maxY)) { | ||
@@ -44,0 +47,0 @@ return false; |
{ | ||
"name": "@antv/g-canvas", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"description": "A canvas library which providing 2d", | ||
@@ -65,3 +65,3 @@ "main": "lib/index.js", | ||
"__npminstall_done": false, | ||
"gitHead": "c809a87a65d3cf6f1f54db1c6653f474fdfe74bd" | ||
"gitHead": "d98ccb0270244714f172c73672231f91d64333b5" | ||
} |
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
1394374
7450