Sha256: 0e89e6a4c37afa6cffd1db34285f4eea8876364e02e3e25c1bb81b62c42c704d
Contents?: true
Size: 441 Bytes
Versions: 9
Compression:
Stored size: 441 Bytes
Contents
/* * Extends L.Circle with Canvas-specific code. */ L.Circle.include(!L.Path.CANVAS ? {} : { _drawPath: function () { var p = this._point; this._ctx.beginPath(); this._ctx.arc(p.x, p.y, this._radius, 0, Math.PI * 2, false); }, _containsPoint: function (p) { var center = this._point, w2 = this.options.stroke ? this.options.weight / 2 : 0; return (p.distanceTo(center) <= this._radius + w2); } });
Version data entries
9 entries across 9 versions & 1 rubygems