MCPcopy Create free account
hub / github.com/breck7/scroll / draw

Function draw

external/.d3.js:18294–18304  ·  view source on GitHub ↗
(context, size)

Source from the content-addressed store, hash-verified

18292
18293var asterisk = {
18294 draw(context, size) {
18295 const r = sqrt(size + min(size / 28, 0.75)) * 0.59436;
18296 const t = r / 2;
18297 const u = t * sqrt3$2;
18298 context.moveTo(0, r);
18299 context.lineTo(0, -r);
18300 context.moveTo(-u, -t);
18301 context.lineTo(u, t);
18302 context.moveTo(-u, t);
18303 context.lineTo(u, -t);
18304 }
18305};
18306
18307var circle = {

Callers

nothing calls this directly

Calls 5

arcMethod · 0.80
rectMethod · 0.80
moveToMethod · 0.45
lineToMethod · 0.45
closePathMethod · 0.45

Tested by

no test coverage detected