code: function (x, y) {
          var coord = this.transformCoordToLocal(x, y);
          var rect = this.getBoundingRect();
          return rect.contain(coord[0], coord[1]);
      }
docs: 判断坐标 x, y 是否在图形的包围盒上
  If bounding rect of element contain coord x, y
  @param  {number} x
  @param  {number} y
  @return {boolean}