MCPcopy Create free account
hub / github.com/openscopeproject/InteractiveHtmlBom / drawEdgeCuts

Function drawEdgeCuts

InteractiveHtmlBom/web/render.js:369–375  ·  view source on GitHub ↗
(canvas, scalefactor)

Source from the content-addressed store, hash-verified

367}
368
369function drawEdgeCuts(canvas, scalefactor) {
370 var ctx = canvas.getContext("2d");
371 var edgecolor = getComputedStyle(topmostdiv).getPropertyValue('--pcb-edge-color');
372 for (var edge of pcbdata.edges) {
373 drawDrawing(ctx, scalefactor, edge, edgecolor);
374 }
375}
376
377function drawFootprints(canvas, layer, scalefactor, highlight) {
378 var ctx = canvas.getContext("2d");

Callers 1

drawBackgroundFunction · 0.85

Calls 1

drawDrawingFunction · 0.85

Tested by

no test coverage detected