You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
425 B
13 lines
425 B
// 由于大多数shape默认的isCover都是相同的逻辑
|
|
// 所以在echarts里临时抽象一个module,用于isCover method
|
|
// TODO: 对zrender的isCover和getRect方法进行抽象,重新整理该逻辑
|
|
|
|
define(function () {
|
|
return function (x, y) {
|
|
var originPos = this.transformCoordToLocal(x, y);
|
|
x = originPos[0];
|
|
y = originPos[1];
|
|
|
|
return this.isCoverRect(x, y);
|
|
};
|
|
});
|
|
|