liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
1
2
3
4
5
6
7
8
9
10
11
12
13
// 由于大多数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);
    };
});