Sha256: cd39df52f06a17848428c601b78242cbf68fb11e79c8a94259eb7ef288c8c84c
Contents?: true
Size: 425 Bytes
Versions: 3
Compression:
Stored size: 425 Bytes
Contents
/* * Circle canvas specific drawing parts. */ 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); }, _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
3 entries across 3 versions & 1 rubygems