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

Function prepareLayer

InteractiveHtmlBom/web/render.js:605–610  ·  view source on GitHub ↗
(canvasdict)

Source from the content-addressed store, hash-verified

603}
604
605function prepareLayer(canvasdict) {
606 var flip = (canvasdict.layer === "B");
607 for (var c of ["bg", "fab", "silk", "highlight"]) {
608 prepareCanvas(canvasdict[c], flip, canvasdict.transform);
609 }
610}
611
612function rotateVector(v, angle) {
613 angle = deg2rad(angle);

Callers 2

saveImageFunction · 0.85
redrawCanvasFunction · 0.85

Calls 1

prepareCanvasFunction · 0.85

Tested by

no test coverage detected