We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2629dc2 commit 1555744Copy full SHA for 1555744
InteractiveHtmlBom/render.js
@@ -284,8 +284,8 @@ function prepareLayer(canvasdict) {
284
285
function recalcLayerScale(canvasdict) {
286
canvasdivid = { "F": "frontcanvas", "B": "backcanvas"}[canvasdict.layer];
287
- var width = document.getElementById(canvasdivid).clientWidth * 2 - 10;
288
- var height = document.getElementById(canvasdivid).clientHeight * 2 - 10;
+ var width = document.getElementById(canvasdivid).clientWidth * 2;
+ var height = document.getElementById(canvasdivid).clientHeight * 2;
289
var [minx, maxx, miny, maxy] = getEdgesBoundaries(pcbdata.edges);
290
var scalefactor = Math.min(
291
width * 0.98 / (maxx - minx),
0 commit comments