K2
[bort-board.git] / bom / ibom.html
1 <!DOCTYPE html>
2 <html lang="en">
3
4 <head>
5 <meta charset="UTF-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <title>Interactive BOM for KiCAD</title>
8 <style type="text/css">
9 :root {
10 --pcb-edge-color: black;
11 --pad-color: #878787;
12 --pad-color-highlight: #D04040;
13 --pin1-outline-color: #ffb629;
14 --pin1-outline-color-highlight: #b4ff03;
15 }
16
17 html, body {
18 margin: 0px;
19 height: 100%;
20 font-family: Verdana, sans-serif;
21 }
22
23 .dark {
24 --pcb-edge-color: #eee;
25 --pad-color: #808080;
26 --pin1-outline-color: #ffa800;
27 --pin1-outline-color-highlight: #ccff00;
28 background-color: #252c30;
29 color: #eee;
30 }
31
32 button {
33 background-color: #eee;
34 border: 1px solid #888;
35 color: black;
36 height: 44px;
37 width: 44px;
38 text-align: center;
39 text-decoration: none;
40 display: inline-block;
41 font-size: 14px;
42 font-weight: bolder;
43 }
44
45 .dark button {
46 /* This will be inverted */
47 background-color: #c3b7b5;
48 }
49
50 button.depressed {
51 background-color: #0a0;
52 color: white;
53 }
54
55 .dark button.depressed {
56 /* This will be inverted */
57 background-color: #b3b;
58 }
59
60 button:focus {
61 outline: 0;
62 }
63
64 button#tb-btn {
65 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.47 8.47'%3E%3Crect transform='translate(0 -288.53)' ry='1.17' y='288.8' x='.27' height='7.94' width='7.94' fill='%23f9f9f9'/%3E%3Cg transform='translate(0 -288.53)'%3E%3Crect width='7.94' height='7.94' x='.27' y='288.8' ry='1.17' fill='none' stroke='%23000' stroke-width='.4' stroke-linejoin='round'/%3E%3Cpath d='M1.32 290.12h5.82M1.32 291.45h5.82' fill='none' stroke='%23000' stroke-width='.4'/%3E%3Cpath d='M4.37 292.5v4.23M.26 292.63H8.2' fill='none' stroke='%23000' stroke-width='.3'/%3E%3Ctext font-weight='700' font-size='3.17' font-family='sans-serif'%3E%3Ctspan x='1.35' y='295.73'%3EF%3C/tspan%3E%3Ctspan x='5.03' y='295.68'%3EB%3C/tspan%3E%3C/text%3E%3C/g%3E%3C/svg%3E%0A");
66 background-size: 32px 32px;
67 background-position: 5px 5px;
68 background-repeat: no-repeat;
69 }
70
71 button#lr-btn {
72 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.47 8.47'%3E%3Crect transform='translate(0 -288.53)' ry='1.17' y='288.8' x='.27' height='7.94' width='7.94' fill='%23f9f9f9'/%3E%3Cg transform='translate(0 -288.53)'%3E%3Crect width='7.94' height='7.94' x='.27' y='288.8' ry='1.17' fill='none' stroke='%23000' stroke-width='.4' stroke-linejoin='round'/%3E%3Cpath d='M1.06 290.12H3.7m-2.64 1.33H3.7m-2.64 1.32H3.7m-2.64 1.3H3.7m-2.64 1.33H3.7' fill='none' stroke='%23000' stroke-width='.4'/%3E%3Cpath d='M4.37 288.8v7.94m0-4.11h3.96' fill='none' stroke='%23000' stroke-width='.3'/%3E%3Ctext font-weight='700' font-size='3.17' font-family='sans-serif'%3E%3Ctspan x='5.11' y='291.96'%3EF%3C/tspan%3E%3Ctspan x='5.03' y='295.68'%3EB%3C/tspan%3E%3C/text%3E%3C/g%3E%3C/svg%3E%0A");
73 background-size: 32px 32px;
74 background-position: 5px 5px;
75 background-repeat: no-repeat;
76 }
77
78 button#bom-btn {
79 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.47 8.47'%3E%3Crect transform='translate(0 -288.53)' ry='1.17' y='288.8' x='.27' height='7.94' width='7.94' fill='%23f9f9f9'/%3E%3Cg transform='translate(0 -288.53)' fill='none' stroke='%23000' stroke-width='.4'%3E%3Crect width='7.94' height='7.94' x='.27' y='288.8' ry='1.17' stroke-linejoin='round'/%3E%3Cpath d='M1.59 290.12h5.29M1.59 291.45h5.33M1.59 292.75h5.33M1.59 294.09h5.33M1.59 295.41h5.33'/%3E%3C/g%3E%3C/svg%3E");
80 background-size: 32px 32px;
81 background-position: 5px 5px;
82 background-repeat: no-repeat;
83 }
84
85 button#copy {
86 background-image: url("data:image/svg+xml,%3Csvg height='48' viewBox='0 0 48 48' width='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h48v48h-48z' fill='none'/%3E%3Cpath d='M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z'/%3E%3C/svg%3E");
87 background-position: 6px 6px;
88 background-repeat: no-repeat;
89 background-size: 26px 26px;
90 border-radius: 6px;
91 height: 40px;
92 width: 40px;
93 margin: 10px 5px;
94 }
95
96 button#copy:active {
97 box-shadow: inset 0px 0px 5px #6c6c6c;
98 }
99
100 textarea.clipboard-temp {
101 position: fixed;
102 top: 0;
103 left: 0;
104 width: 2em;
105 height: 2em;
106 padding: 0;
107 border: None;
108 outline: None;
109 box-shadow: None;
110 background: transparent;
111 }
112
113 .left-most-button {
114 border-right: 0;
115 border-top-left-radius: 6px;
116 border-bottom-left-radius: 6px;
117 }
118
119 .middle-button {
120 border-right: 0;
121 }
122
123 .right-most-button {
124 border-top-right-radius: 6px;
125 border-bottom-right-radius: 6px;
126 }
127
128 .button-container {
129 font-size: 0;
130 }
131
132 .dark .button-container {
133 filter: invert(1);
134 }
135
136 @media print {
137 .hideonprint {
138 display: none;
139 }
140 }
141
142 canvas {
143 cursor: crosshair;
144 }
145
146 canvas:active {
147 cursor: grabbing;
148 }
149
150 .fileinfo {
151 width: 100%;
152 max-width: 1000px;
153 border: none;
154 padding: 5px;
155 }
156
157 .fileinfo .title {
158 font-size: 20pt;
159 font-weight: bold;
160 }
161
162 .fileinfo td {
163 overflow: hidden;
164 white-space: nowrap;
165 max-width: 1px;
166 width: 50%;
167 text-overflow: ellipsis;
168 }
169
170 .bom {
171 border-collapse: collapse;
172 font-family: Consolas, "DejaVu Sans Mono", Monaco, monospace;
173 font-size: 10pt;
174 table-layout: fixed;
175 width: 100%;
176 margin-top: 1px;
177 }
178
179 .bom th, .bom td {
180 border: 1px solid black;
181 padding: 5px;
182 word-wrap: break-word;
183 text-align: center;
184 position: relative;
185 }
186
187 .dark .bom th, .dark .bom td {
188 border: 1px solid #777;
189 }
190
191 .bom th {
192 background-color: #CCCCCC;
193 background-clip: padding-box;
194 }
195
196 .dark .bom th {
197 background-color: #3b4749;
198 }
199
200 .bom tr.highlighted:nth-child(n) {
201 background-color: #cfc;
202 }
203
204 .dark .bom tr.highlighted:nth-child(n) {
205 background-color: #226022;
206 }
207
208 .bom tr:nth-child(even) {
209 background-color: #f2f2f2;
210 }
211
212 .dark .bom tr:nth-child(even) {
213 background-color: #313b40;
214 }
215
216 .bom tr {
217 transition: background-color 0.2s;
218 }
219
220 .bom .numCol {
221 width: 25px;
222 }
223
224 .bom .Description {
225 width: 10%;
226 }
227
228 .bom .Part {
229 width: 10%;
230 }
231
232 .bom .Value {
233 width: 15%;
234 }
235
236 .bom .Quantity {
237 width: 65px;
238 }
239
240 .bom th .sortmark {
241 position: absolute;
242 right: 1px;
243 top: 1px;
244 margin-top: -5px;
245 border-width: 5px;
246 border-style: solid;
247 border-color: transparent transparent #221 transparent;
248 transform-origin: 50% 85%;
249 transition: opacity 0.2s, transform 0.4s;
250 }
251
252 .dark .bom th .sortmark {
253 filter: invert(1);
254 }
255
256 .bom th .sortmark.none {
257 opacity: 0;
258 }
259
260 .bom th .sortmark.desc {
261 transform: rotate(180deg);
262 }
263
264 .bom th:hover .sortmark.none {
265 opacity: 0.5;
266 }
267
268 .bom .bom-checkbox {
269 width: 30px;
270 position: relative;
271 user-select: none;
272 -moz-user-select: none;
273 }
274
275 .bom .bom-checkbox:before {
276 content: "";
277 position: absolute;
278 border-width: 15px;
279 border-style: solid;
280 border-color: #51829f transparent transparent transparent;
281 visibility: hidden;
282 top: -15px;
283 }
284
285 .bom .bom-checkbox:after {
286 content: "Double click to set/unset all";
287 position: absolute;
288 color: white;
289 top: -35px;
290 left: -26px;
291 background: #51829f;
292 padding: 5px 15px;
293 border-radius: 8px;
294 white-space: nowrap;
295 visibility: hidden;
296 }
297
298 .bom .bom-checkbox:hover:before, .bom .bom-checkbox:hover:after {
299 visibility: visible;
300 transition: visibility 0.2s linear 1s;
301 }
302
303 .split {
304 -webkit-box-sizing: border-box;
305 -moz-box-sizing: border-box;
306 box-sizing: border-box;
307 overflow-y: auto;
308 overflow-x: hidden;
309 background-color: inherit;
310 }
311
312 .split.split-horizontal, .gutter.gutter-horizontal {
313 height: 100%;
314 float: left;
315 }
316
317 .gutter {
318 background-color: #ddd;
319 background-repeat: no-repeat;
320 background-position: 50%;
321 transition: background-color 0.3s;
322 }
323
324 .dark .gutter {
325 background-color: #777;
326 }
327
328 .gutter.gutter-horizontal {
329 background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
330 cursor: ew-resize;
331 width: 5px;
332 }
333
334 .gutter.gutter-vertical {
335 background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');
336 cursor: ns-resize;
337 height: 5px;
338 }
339
340 .searchbox {
341 float: left;
342 height: 40px;
343 margin: 10px 5px;
344 padding: 12px 32px;
345 font-family: Consolas, "DejaVu Sans Mono", Monaco, monospace;
346 font-size: 18px;
347 box-sizing: border-box;
348 border: 1px solid #888;
349 border-radius: 6px;
350 outline: none;
351 background-color: #eee;
352 transition: background-color 0.2s, border 0.2s;
353 background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABNklEQVQ4T8XSMUvDQBQH8P/LElFa/AIZHcTBQSz0I/gFstTBRR2KUC4ldDxw7h0Bl3RRUATxi4iiODgoiLNrbQYp5J6cpJJqomkX33Z37/14d/dIa33MzDuYI4johOI4XhyNRteO46zNYjDzAxE1yBZprVeZ+QbAUhXEGJMA2Ox2u4+fQIa0mPmsCgCgJYQ4t7lfgF0opQYAdv9ABkKI/UnOFCClXKjX61cA1osQY8x9kiRNKeV7IWA3oyhaSdP0FkAtjxhj3hzH2RBCPOf3pzqYHCilfAAX+URm9oMguPzeWSGQvUcMYC8rOBJCHBRdqxTo9/vbRHRqi8bj8XKv1xvODbiuW2u32/bvf0SlDv4XYOY7z/Mavu+nM1+BmQ+NMc0wDF/LprP0DbTWW0T00ul0nn4b7Q87+X4Qmfiq2wAAAABJRU5ErkJggg==');
354 background-position: 10px 10px;
355 background-repeat: no-repeat;
356 }
357
358 .dark .searchbox {
359 background-color: #111;
360 color: #eee;
361 }
362
363 .searchbox::placeholder {
364 color: #ccc;
365 }
366
367 .dark .searchbox::placeholder {
368 color: #666;
369 }
370
371 .filter {
372 width: calc(60% - 64px);
373 }
374
375 .reflookup {
376 width: calc(40% - 10px);
377 }
378
379 input[type=text]:focus {
380 background-color: white;
381 border: 1px solid #333;
382 }
383
384 .dark input[type=text]:focus {
385 background-color: #333;
386 border: 1px solid #ccc;
387 }
388
389 mark.highlight {
390 background-color: #5050ff;
391 color: #fff;
392 padding: 2px;
393 border-radius: 6px;
394 }
395
396 .dark mark.highlight {
397 background-color: #76a6da;
398 color: #111;
399 }
400
401 .menubtn {
402 background-color: white;
403 font-size: 16px;
404 border: none;
405 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 20 20'%3E%3Cpath fill='none' d='M0 0h20v20H0V0z'/%3E%3Cpath d='M15.95 10.78c.03-.25.05-.51.05-.78s-.02-.53-.06-.78l1.69-1.32c.15-.12.19-.34.1-.51l-1.6-2.77c-.1-.18-.31-.24-.49-.18l-1.99.8c-.42-.32-.86-.58-1.35-.78L12 2.34c-.03-.2-.2-.34-.4-.34H8.4c-.2 0-.36.14-.39.34l-.3 2.12c-.49.2-.94.47-1.35.78l-1.99-.8c-.18-.07-.39 0-.49.18l-1.6 2.77c-.1.18-.06.39.1.51l1.69 1.32c-.04.25-.07.52-.07.78s.02.53.06.78L2.37 12.1c-.15.12-.19.34-.1.51l1.6 2.77c.1.18.31.24.49.18l1.99-.8c.42.32.86.58 1.35.78l.3 2.12c.04.2.2.34.4.34h3.2c.2 0 .37-.14.39-.34l.3-2.12c.49-.2.94-.47 1.35-.78l1.99.8c.18.07.39 0 .49-.18l1.6-2.77c.1-.18.06-.39-.1-.51l-1.67-1.32zM10 13c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z'/%3E%3C/svg%3E%0A");
406 background-position: center;
407 background-repeat: no-repeat;
408 }
409
410 .dark .menubtn {
411 filter: invert(1);
412 }
413
414 .menu {
415 position: relative;
416 display: inline-block;
417 }
418
419 .menu-content {
420 display: none;
421 position: absolute;
422 background-color: white;
423 right: 0;
424 min-width: 300px;
425 box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
426 z-index: 100;
427 padding: 8px;
428 }
429
430 .dark .menu-content {
431 background-color: #111;
432 }
433
434 .menu:hover .menu-content {
435 display: block;
436 }
437
438 .menu:hover .menubtn {
439 background-color: #eee;
440 }
441
442 .dark .menu:hover .menubtn {}
443
444 .menu-label {
445 display: inline-block;
446 padding: 8px;
447 border: 1px solid #ccc;
448 border-top: 0;
449 width: calc(100% - 18px);
450 }
451
452 .menu-label-top {
453 border-top: 1px solid #ccc;
454 }
455
456 .menu-textbox {
457 float: left;
458 height: 24px;
459 margin: 10px 5px;
460 padding: 5px 5px;
461 font-family: Consolas, "DejaVu Sans Mono", Monaco, monospace;
462 font-size: 14px;
463 box-sizing: border-box;
464 border: 1px solid #888;
465 border-radius: 4px;
466 outline: none;
467 background-color: #eee;
468 transition: background-color 0.2s, border 0.2s;
469 width: calc(100% - 10px);
470 }
471
472 .dark .menu-textbox {
473 background-color: #222;
474 color: #eee;
475 }
476
477 #topmostdiv {
478 transition: background-color 0.3s;
479 }
480
481 #top {
482 height: 78px;
483 border-bottom: 2px solid black;
484 }
485
486 .dark #top {
487 border-bottom: 2px solid #ccc;
488 }
489
490 #dbg {
491 display: block;
492 }
493
494 ::-webkit-scrollbar {
495 width: 8px;
496 }
497
498 ::-webkit-scrollbar-track {
499 background: #aaa;
500 }
501
502 ::-webkit-scrollbar-thumb {
503 background: #666;
504 border-radius: 3px;
505 }
506
507 ::-webkit-scrollbar-thumb:hover {
508 background: #555;
509 }
510
511 .slider {
512 -webkit-appearance: none;
513 width: 100%;
514 margin: 3px 0;
515 padding: 0;
516 outline: none;
517 opacity: 0.7;
518 -webkit-transition: .2s;
519 transition: opacity .2s;
520 border-radius: 3px;
521 }
522
523 .slider:hover {
524 opacity: 1;
525 }
526
527 .slider:focus {
528 outline: none;
529 }
530
531 .slider::-webkit-slider-runnable-track {
532 -webkit-appearance: none;
533 width: 100%;
534 height: 8px;
535 background: #d3d3d3;
536 border-radius: 3px;
537 border: none;
538 }
539
540 .slider::-webkit-slider-thumb {
541 -webkit-appearance: none;
542 width: 15px;
543 height: 15px;
544 border-radius: 50%;
545 background: #0a0;
546 cursor: pointer;
547 margin-top: -4px;
548 }
549
550 .dark .slider::-webkit-slider-thumb {
551 background: #3d3;
552 }
553
554 .slider::-moz-range-thumb {
555 width: 15px;
556 height: 15px;
557 border-radius: 50%;
558 background: #0a0;
559 cursor: pointer;
560 }
561
562 .slider::-moz-range-track {
563 height: 8px;
564 background: #d3d3d3;
565 border-radius: 3px;
566 }
567
568 .dark .slider::-moz-range-thumb {
569 background: #3d3;
570 }
571
572 .slider::-ms-track {
573 width: 100%;
574 height: 8px;
575 border-width: 3px 0;
576 background: transparent;
577 border-color: transparent;
578 color: transparent;
579 transition: opacity .2s;
580 }
581
582 .slider::-ms-fill-lower {
583 background: #d3d3d3;
584 border: none;
585 border-radius: 3px;
586 }
587
588 .slider::-ms-fill-upper {
589 background: #d3d3d3;
590 border: none;
591 border-radius: 3px;
592 }
593
594 .slider::-ms-thumb {
595 width: 15px;
596 height: 15px;
597 border-radius: 50%;
598 background: #0a0;
599 cursor: pointer;
600 margin: 0;
601 }
602
603 .shameless-plug {
604 font-size: 0.8em;
605 text-align: center;
606 display: block;
607 }
608
609 .shameless-plug a {
610 color: #0278a4;
611 }
612
613 .dark .shameless-plug a {
614 color: #00b9fd;
615 }
616
617 </style>
618 <script type="text/javascript" >
619 ///////////////////////////////////////////////
620 /*
621 Split.js - v1.3.5
622 MIT License
623 https://github.com/nathancahill/Split.js
624 */
625 !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Split=t()}(this,function(){"use strict";var e=window,t=e.document,n="addEventListener",i="removeEventListener",r="getBoundingClientRect",s=function(){return!1},o=e.attachEvent&&!e[n],a=["","-webkit-","-moz-","-o-"].filter(function(e){var n=t.createElement("div");return n.style.cssText="width:"+e+"calc(9px)",!!n.style.length}).shift()+"calc",l=function(e){return"string"==typeof e||e instanceof String?t.querySelector(e):e};return function(u,c){function z(e,t,n){var i=A(y,t,n);Object.keys(i).forEach(function(t){return e.style[t]=i[t]})}function h(e,t){var n=B(y,t);Object.keys(n).forEach(function(t){return e.style[t]=n[t]})}function f(e){var t=E[this.a],n=E[this.b],i=t.size+n.size;t.size=e/this.size*i,n.size=i-e/this.size*i,z(t.element,t.size,this.aGutterSize),z(n.element,n.size,this.bGutterSize)}function m(e){var t;this.dragging&&((t="touches"in e?e.touches[0][b]-this.start:e[b]-this.start)<=E[this.a].minSize+M+this.aGutterSize?t=E[this.a].minSize+this.aGutterSize:t>=this.size-(E[this.b].minSize+M+this.bGutterSize)&&(t=this.size-(E[this.b].minSize+this.bGutterSize)),f.call(this,t),c.onDrag&&c.onDrag())}function g(){var e=E[this.a].element,t=E[this.b].element;this.size=e[r]()[y]+t[r]()[y]+this.aGutterSize+this.bGutterSize,this.start=e[r]()[G]}function d(){var t=this,n=E[t.a].element,r=E[t.b].element;t.dragging&&c.onDragEnd&&c.onDragEnd(),t.dragging=!1,e[i]("mouseup",t.stop),e[i]("touchend",t.stop),e[i]("touchcancel",t.stop),t.parent[i]("mousemove",t.move),t.parent[i]("touchmove",t.move),delete t.stop,delete t.move,n[i]("selectstart",s),n[i]("dragstart",s),r[i]("selectstart",s),r[i]("dragstart",s),n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",r.style.userSelect="",r.style.webkitUserSelect="",r.style.MozUserSelect="",r.style.pointerEvents="",t.gutter.style.cursor="",t.parent.style.cursor=""}function S(t){var i=this,r=E[i.a].element,o=E[i.b].element;!i.dragging&&c.onDragStart&&c.onDragStart(),t.preventDefault(),i.dragging=!0,i.move=m.bind(i),i.stop=d.bind(i),e[n]("mouseup",i.stop),e[n]("touchend",i.stop),e[n]("touchcancel",i.stop),i.parent[n]("mousemove",i.move),i.parent[n]("touchmove",i.move),r[n]("selectstart",s),r[n]("dragstart",s),o[n]("selectstart",s),o[n]("dragstart",s),r.style.userSelect="none",r.style.webkitUserSelect="none",r.style.MozUserSelect="none",r.style.pointerEvents="none",o.style.userSelect="none",o.style.webkitUserSelect="none",o.style.MozUserSelect="none",o.style.pointerEvents="none",i.gutter.style.cursor=j,i.parent.style.cursor=j,g.call(i)}function v(e){e.forEach(function(t,n){if(n>0){var i=F[n-1],r=E[i.a],s=E[i.b];r.size=e[n-1],s.size=t,z(r.element,r.size,i.aGutterSize),z(s.element,s.size,i.bGutterSize)}})}function p(){F.forEach(function(e){e.parent.removeChild(e.gutter),E[e.a].element.style[y]="",E[e.b].element.style[y]=""})}void 0===c&&(c={});var y,b,G,E,w=l(u[0]).parentNode,D=e.getComputedStyle(w).flexDirection,U=c.sizes||u.map(function(){return 100/u.length}),k=void 0!==c.minSize?c.minSize:100,x=Array.isArray(k)?k:u.map(function(){return k}),L=void 0!==c.gutterSize?c.gutterSize:10,M=void 0!==c.snapOffset?c.snapOffset:30,O=c.direction||"horizontal",j=c.cursor||("horizontal"===O?"ew-resize":"ns-resize"),C=c.gutter||function(e,n){var i=t.createElement("div");return i.className="gutter gutter-"+n,i},A=c.elementStyle||function(e,t,n){var i={};return"string"==typeof t||t instanceof String?i[e]=t:i[e]=o?t+"%":a+"("+t+"% - "+n+"px)",i},B=c.gutterStyle||function(e,t){return n={},n[e]=t+"px",n;var n};"horizontal"===O?(y="width","clientWidth",b="clientX",G="left","paddingLeft"):"vertical"===O&&(y="height","clientHeight",b="clientY",G="top","paddingTop");var F=[];return E=u.map(function(e,t){var i,s={element:l(e),size:U[t],minSize:x[t]};if(t>0&&(i={a:t-1,b:t,dragging:!1,isFirst:1===t,isLast:t===u.length-1,direction:O,parent:w},i.aGutterSize=L,i.bGutterSize=L,i.isFirst&&(i.aGutterSize=L/2),i.isLast&&(i.bGutterSize=L/2),"row-reverse"===D||"column-reverse"===D)){var a=i.a;i.a=i.b,i.b=a}if(!o&&t>0){var c=C(t,O);h(c,L),c[n]("mousedown",S.bind(i)),c[n]("touchstart",S.bind(i)),w.insertBefore(c,s.element),i.gutter=c}0===t||t===u.length-1?z(s.element,s.size,L/2):z(s.element,s.size,L);var f=s.element[r]()[y];return f<s.minSize&&(s.minSize=f),t>0&&F.push(i),s}),o?{setSizes:v,destroy:p}:{setSizes:v,getSizes:function(){return E.map(function(e){return e.size})},collapse:function(e){if(e===F.length){var t=F[e-1];g.call(t),o||f.call(t,t.size-t.bGutterSize)}else{var n=F[e];g.call(n),o||f.call(n,n.aGutterSize)}},destroy:p}}});
626
627 ///////////////////////////////////////////////
628
629 ///////////////////////////////////////////////
630 var config = {"redraw_on_drag": true, "highlight_pin1": false, "extra_fields": [], "dark_mode": false, "bom_view": "left-right", "board_rotation": 0, "checkboxes": "Sourced,Placed", "show_silkscreen": true, "layer_view": "FB"}
631 ///////////////////////////////////////////////
632
633 ///////////////////////////////////////////////
634 var pcbdata = {"font_data": {"J": {"l": [[[0.5238095238095237, -1.0476190476190474], [0.5238095238095237, -0.3333333333333333], [0.47619047619047616, -0.19047619047619047], [0.38095238095238093, -0.09523809523809523], [0.23809523809523808, -0.047619047619047616], [0.14285714285714285, -0.047619047619047616]]], "w": 0.7619047619047619}, "*": {"l": [[[0.38095238095238093, -1.0476190476190474], [0.38095238095238093, -0.8095238095238095]], [[0.14285714285714285, -0.9047619047619047], [0.38095238095238093, -0.8095238095238095], [0.6190476190476191, -0.9047619047619047]], [[0.23809523809523808, -0.6190476190476191], [0.38095238095238093, -0.8095238095238095], [0.5238095238095237, -0.6190476190476191]]], "w": 0.7619047619047619}, "N": {"l": [[[0.23809523809523803, -0.047619047619047616], [0.23809523809523803, -1.0476190476190474], [0.8095238095238094, -0.047619047619047616], [0.8095238095238094, -1.0476190476190474]]], "w": 1.0476190476190474}, "1": {"l": [[[0.7619047619047619, -0.047619047619047616], [0.19047619047619047, -0.047619047619047616]], [[0.47619047619047616, -0.047619047619047616], [0.47619047619047616, -1.0476190476190474], [0.38095238095238093, -0.9047619047619047], [0.2857142857142857, -0.8095238095238095], [0.19047619047619047, -0.7619047619047619]]], "w": 0.9523809523809523}, "P": {"l": [[[0.23809523809523803, -0.047619047619047616], [0.23809523809523803, -1.0476190476190474], [0.619047619047619, -1.0476190476190474], [0.7142857142857142, -1.0], [0.7619047619047619, -0.9523809523809523], [0.8095238095238094, -0.8571428571428571], [0.8095238095238094, -0.7142857142857142], [0.7619047619047619, -0.6190476190476191], [0.7142857142857142, -0.5714285714285714], [0.619047619047619, -0.5238095238095237], [0.23809523809523803, -0.5238095238095237]]], "w": 1.0}, "3": {"l": [[[0.14285714285714285, -1.0476190476190474], [0.7619047619047619, -1.0476190476190474], [0.42857142857142855, -0.6666666666666666], [0.5714285714285714, -0.6666666666666666], [0.6666666666666666, -0.6190476190476191], [0.7142857142857142, -0.5714285714285714], [0.7619047619047619, -0.47619047619047616], [0.7619047619047619, -0.23809523809523808], [0.7142857142857142, -0.14285714285714285], [0.6666666666666666, -0.09523809523809523], [0.5714285714285714, -0.047619047619047616], [0.2857142857142857, -0.047619047619047616], [0.19047619047619047, -0.09523809523809523], [0.14285714285714285, -0.14285714285714285]]], "w": 0.9523809523809523}, "2": {"l": [[[0.19047619047619047, -0.9523809523809523], [0.23809523809523808, -1.0], [0.3333333333333333, -1.0476190476190474], [0.5714285714285714, -1.0476190476190474], [0.6666666666666666, -1.0], [0.7142857142857142, -0.9523809523809523], [0.7619047619047619, -0.8571428571428571], [0.7619047619047619, -0.7619047619047619], [0.7142857142857142, -0.6190476190476191], [0.14285714285714285, -0.047619047619047616], [0.7619047619047619, -0.047619047619047616]]], "w": 0.9523809523809523}, "5": {"l": [[[0.7142857142857142, -1.0476190476190474], [0.23809523809523808, -1.0476190476190474], [0.19047619047619047, -0.5714285714285714], [0.23809523809523808, -0.6190476190476191], [0.3333333333333333, -0.6666666666666666], [0.5714285714285714, -0.6666666666666666], [0.6666666666666666, -0.6190476190476191], [0.7142857142857142, -0.5714285714285714], [0.7619047619047619, -0.47619047619047616], [0.7619047619047619, -0.23809523809523808], [0.7142857142857142, -0.14285714285714285], [0.6666666666666666, -0.09523809523809523], [0.5714285714285714, -0.047619047619047616], [0.3333333333333333, -0.047619047619047616], [0.23809523809523808, -0.09523809523809523], [0.19047619047619047, -0.14285714285714285]]], "w": 0.9523809523809523}, "4": {"l": [[[0.6666666666666666, -0.7142857142857142], [0.6666666666666666, -0.047619047619047616]], [[0.42857142857142855, -1.0952380952380951], [0.19047619047619047, -0.38095238095238093], [0.8095238095238095, -0.38095238095238093]]], "w": 0.9523809523809523}, "7": {"l": [[[0.14285714285714285, -1.0476190476190474], [0.8095238095238095, -1.0476190476190474], [0.38095238095238093, -0.047619047619047616]]], "w": 0.9523809523809523}, "6": {"l": [[[0.6666666666666666, -1.0476190476190474], [0.47619047619047616, -1.0476190476190474], [0.38095238095238093, -1.0], [0.3333333333333333, -0.9523809523809523], [0.23809523809523808, -0.8095238095238095], [0.19047619047619047, -0.6190476190476191], [0.19047619047619047, -0.23809523809523808], [0.23809523809523808, -0.14285714285714285], [0.2857142857142857, -0.09523809523809523], [0.38095238095238093, -0.047619047619047616], [0.5714285714285714, -0.047619047619047616], [0.6666666666666666, -0.09523809523809523], [0.7142857142857142, -0.14285714285714285], [0.7619047619047619, -0.23809523809523808], [0.7619047619047619, -0.47619047619047616], [0.7142857142857142, -0.5714285714285714], [0.6666666666666666, -0.6190476190476191], [0.5714285714285714, -0.6666666666666666], [0.38095238095238093, -0.6666666666666666], [0.2857142857142857, -0.6190476190476191], [0.23809523809523808, -0.5714285714285714], [0.19047619047619047, -0.47619047619047616]]], "w": 0.9523809523809523}, "9": {"l": [[[0.2857142857142857, -0.047619047619047616], [0.47619047619047616, -0.047619047619047616], [0.5714285714285714, -0.09523809523809523], [0.6190476190476191, -0.14285714285714285], [0.7142857142857142, -0.2857142857142857], [0.7619047619047619, -0.47619047619047616], [0.7619047619047619, -0.8571428571428571], [0.7142857142857142, -0.9523809523809523], [0.6666666666666666, -1.0], [0.5714285714285714, -1.0476190476190474], [0.38095238095238093, -1.0476190476190474], [0.2857142857142857, -1.0], [0.23809523809523808, -0.9523809523809523], [0.19047619047619047, -0.8571428571428571], [0.19047619047619047, -0.6190476190476191], [0.23809523809523808, -0.5238095238095237], [0.2857142857142857, -0.47619047619047616], [0.38095238095238093, -0.42857142857142855], [0.5714285714285714, -0.42857142857142855], [0.6666666666666666, -0.47619047619047616], [0.7142857142857142, -0.5238095238095237], [0.7619047619047619, -0.6190476190476191]]], "w": 0.9523809523809523}, "8": {"l": [[[0.38095238095238093, -0.6190476190476191], [0.2857142857142857, -0.6666666666666666], [0.23809523809523808, -0.7142857142857142], [0.19047619047619047, -0.8095238095238095], [0.19047619047619047, -0.8571428571428571], [0.23809523809523808, -0.9523809523809523], [0.2857142857142857, -1.0], [0.38095238095238093, -1.0476190476190474], [0.5714285714285714, -1.0476190476190474], [0.6666666666666666, -1.0], [0.7142857142857142, -0.9523809523809523], [0.7619047619047619, -0.8571428571428571], [0.7619047619047619, -0.8095238095238095], [0.7142857142857142, -0.7142857142857142], [0.6666666666666666, -0.6666666666666666], [0.5714285714285714, -0.6190476190476191], [0.38095238095238093, -0.6190476190476191], [0.2857142857142857, -0.5714285714285714], [0.23809523809523808, -0.5238095238095237], [0.19047619047619047, -0.42857142857142855], [0.19047619047619047, -0.23809523809523808], [0.23809523809523808, -0.14285714285714285], [0.2857142857142857, -0.09523809523809523], [0.38095238095238093, -0.047619047619047616], [0.5714285714285714, -0.047619047619047616], [0.6666666666666666, -0.09523809523809523], [0.7142857142857142, -0.14285714285714285], [0.7619047619047619, -0.23809523809523808], [0.7619047619047619, -0.42857142857142855], [0.7142857142857142, -0.5238095238095237], [0.6666666666666666, -0.5714285714285714], [0.5714285714285714, -0.6190476190476191]]], "w": 0.9523809523809523}, "R": {"l": [[[0.8095238095238094, -0.047619047619047616], [0.4761904761904761, -0.5238095238095237]], [[0.23809523809523803, -0.047619047619047616], [0.23809523809523803, -1.0476190476190474], [0.619047619047619, -1.0476190476190474], [0.7142857142857142, -1.0], [0.7619047619047619, -0.9523809523809523], [0.8095238095238094, -0.8571428571428571], [0.8095238095238094, -0.7142857142857142], [0.7619047619047619, -0.6190476190476191], [0.7142857142857142, -0.5714285714285714], [0.619047619047619, -0.5238095238095237], [0.23809523809523803, -0.5238095238095237]]], "w": 1.0}, "U": {"l": [[[0.23809523809523803, -1.0476190476190474], [0.23809523809523803, -0.23809523809523808], [0.28571428571428564, -0.14285714285714285], [0.33333333333333326, -0.09523809523809523], [0.4285714285714285, -0.047619047619047616], [0.619047619047619, -0.047619047619047616], [0.7142857142857142, -0.09523809523809523], [0.7619047619047619, -0.14285714285714285], [0.8095238095238094, -0.23809523809523808], [0.8095238095238094, -1.0476190476190474]]], "w": 1.0476190476190474}}, "modules": [{"layer": "F", "center": [94.726, 64.5], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [94.726, 64.5], "drillsize": [2.1999999999999997, 2.1999999999999997], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [2.1999999999999997, 2.1999999999999997]}], "drawings": [], "ref": "H1", "bbox": {"pos": [92.250999, 62.024998999999994], "size": [4.950002, 4.950002]}}, {"layer": "F", "center": [94.726, 144.00199999999998], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [94.726, 144.00199999999998], "drillsize": [2.1999999999999997, 2.1999999999999997], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [2.1999999999999997, 2.1999999999999997]}], "drawings": [], "ref": "H2", "bbox": {"pos": [92.250999, 141.526999], "size": [4.950002, 4.950002]}}, {"layer": "F", "center": [179.054, 144.00199999999998], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [179.054, 144.00199999999998], "drillsize": [2.1999999999999997, 2.1999999999999997], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [2.1999999999999997, 2.1999999999999997]}], "drawings": [], "ref": "H3", "bbox": {"pos": [176.57899899999998, 141.526999], "size": [4.950002, 4.950002]}}, {"layer": "F", "center": [179.054, 64.5], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [179.054, 64.5], "drillsize": [2.1999999999999997, 2.1999999999999997], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [2.1999999999999997, 2.1999999999999997]}], "drawings": [], "ref": "H4", "bbox": {"pos": [176.57899899999998, 62.024998999999994], "size": [4.950002, 4.950002]}}, {"layer": "F", "center": [99.298, 112.252], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 94.472], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 97.012], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 99.55199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 102.092], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 104.63199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 107.172], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 109.71199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 112.252], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}], "drawings": [], "ref": "J1", "bbox": {"pos": [95.66579899999999, 91.982799], "size": [6.375401999999999, 21.869401999999997]}}, {"layer": "F", "center": [175.244, 137.652], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 119.872], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 122.41199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 124.952], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 127.49199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 130.03199999999998], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 132.572], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 135.112], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 137.652], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}], "drawings": [], "ref": "J2", "bbox": {"pos": [171.611799, 117.38279899999999], "size": [6.375401999999999, 21.869401999999997]}}, {"layer": "F", "center": [99.298, 86.85199999999999], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 69.072], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 71.612], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 74.152], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 76.692], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 79.232], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 81.77199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 84.312], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 86.85199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}], "drawings": [], "ref": "J3", "bbox": {"pos": [95.66579899999999, 66.582799], "size": [6.375401999999999, 21.869401999999997]}}, {"layer": "F", "center": [175.244, 86.85199999999999], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 69.072], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 71.612], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 74.152], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 76.692], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 79.232], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 81.77199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 84.312], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 86.85199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}], "drawings": [], "ref": "J4", "bbox": {"pos": [171.611799, 66.582799], "size": [6.375401999999999, 21.869401999999997]}}, {"layer": "F", "center": [99.298, 137.652], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 119.872], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 122.41199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 124.952], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 127.49199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 130.03199999999998], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 132.572], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 135.112], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [99.298, 137.652], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}], "drawings": [], "ref": "J5", "bbox": {"pos": [95.66579899999999, 117.38279899999999], "size": [6.375401999999999, 21.869401999999997]}}, {"layer": "F", "center": [175.244, 112.252], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 94.472], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 97.012], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 99.55199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 102.092], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 104.63199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 107.172], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 109.71199999999999], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [175.244, 112.252], "drillsize": [1.016, 1.016], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.524, 1.524]}], "drawings": [], "ref": "J6", "bbox": {"pos": [171.611799, 91.982799], "size": [6.375401999999999, 21.869401999999997]}}, {"layer": "F", "center": [134.477, 139.684], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [139.477, 139.684], "drillsize": [1.524, 1.524], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [2.032, 2.032]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [134.477, 139.684], "drillsize": [1.524, 1.524], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [2.032, 2.032]}], "drawings": [], "ref": "J7", "bbox": {"pos": [130.753999, 134.857999], "size": [11.557001999999999, 9.652002]}}, {"layer": "F", "center": [115.93499999999999, 141.081], "pads": [{"layers": ["F", "B"], "angle": -180.0, "pos": [115.93499999999999, 141.081], "drillsize": [1.02, 1.02], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.53, 1.53]}, {"layers": ["F", "B"], "angle": -180.0, "pos": [118.475, 141.081], "drillsize": [1.02, 1.02], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.53, 1.53]}], "drawings": [], "ref": "J8", "bbox": {"pos": [114.38999899999999, 137.630999], "size": [5.630002, 6.905002]}}, {"layer": "F", "center": [111.23599999999999, 69.326], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 125.20599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 125.20599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 122.666], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 122.666], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 120.12599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 120.12599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 117.586], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 117.586], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 115.04599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 115.04599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 112.506], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 112.506], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 109.966], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 109.966], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 107.426], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 107.426], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 104.886], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 104.886], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 102.34599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 102.34599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 99.806], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 99.806], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 97.26599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 97.26599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 94.726], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 94.726], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 92.18599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 92.18599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 89.646], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 89.646], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 87.106], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 87.106], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 84.566], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 84.566], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 82.026], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 82.026], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 79.48599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 79.48599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 76.946], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 76.946], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 74.40599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 74.40599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 71.866], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 71.866], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [113.776, 69.326], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [111.23599999999999, 69.326], "drillsize": [1.016, 1.016], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}], "drawings": [], "ref": "P8", "bbox": {"pos": [109.460999, 67.55099899999999], "size": [6.100002, 59.450002]}}, {"layer": "F", "center": [159.75, 69.326], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 125.20599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 125.20599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 122.666], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 122.666], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 120.12599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 120.12599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 117.586], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 117.586], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 115.04599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 115.04599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 112.506], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 112.506], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 109.966], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 109.966], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 107.426], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 107.426], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 104.886], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 104.886], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 102.34599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 102.34599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 99.806], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 99.806], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 97.26599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 97.26599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 94.726], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 94.726], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 92.18599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 92.18599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 89.646], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 89.646], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 87.106], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 87.106], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 84.566], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 84.566], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 82.026], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 82.026], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 79.48599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 79.48599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 76.946], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 76.946], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 74.40599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 74.40599999999999], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 71.866], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 71.866], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [162.29, 69.326], "drillsize": [1.016, 1.016], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [159.75, 69.326], "drillsize": [1.016, 1.016], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.7271999999999998, 1.7271999999999998]}], "drawings": [], "ref": "P9", "bbox": {"pos": [157.974999, 67.55099899999999], "size": [6.100002, 59.450002]}}, {"layer": "F", "center": [105.648, 114.792], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 94.472], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 97.012], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 99.55199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 102.092], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 104.63199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 107.172], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 109.71199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 112.252], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 114.792], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}], "drawings": [], "ref": "RN1", "bbox": {"pos": [104.122999, 92.94699899999999], "size": [3.0500019999999997, 23.360001999999998]}}, {"layer": "F", "center": [167.624, 89.392], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 69.072], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 71.612], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 74.152], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 76.692], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 79.232], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 81.77199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 84.312], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 86.85199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 89.392], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}], "drawings": [], "ref": "RN2", "bbox": {"pos": [166.098999, 67.546999], "size": [3.0500019999999997, 23.360001999999998]}}, {"layer": "F", "center": [167.878, 140.192], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [167.878, 119.872], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.878, 122.41199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.878, 124.952], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.878, 127.49199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.878, 130.03199999999998], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.878, 132.572], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.878, 135.112], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.878, 137.652], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.878, 140.192], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}], "drawings": [], "ref": "RN3", "bbox": {"pos": [166.35299899999998, 118.346999], "size": [3.0500019999999997, 23.360001999999998]}}, {"layer": "F", "center": [105.648, 140.192], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 119.872], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 122.41199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 124.952], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 127.49199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 130.03199999999998], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 132.572], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 135.112], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 137.652], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 140.192], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}], "drawings": [], "ref": "RN4", "bbox": {"pos": [104.122999, 118.346999], "size": [3.0500019999999997, 23.360001999999998]}}, {"layer": "F", "center": [105.648, 89.392], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 69.072], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 71.612], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 74.152], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 76.692], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 79.232], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 81.77199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 84.312], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 86.85199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [105.648, 89.392], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}], "drawings": [], "ref": "RN5", "bbox": {"pos": [104.122999, 67.546999], "size": [3.0500019999999997, 23.360001999999998]}}, {"layer": "F", "center": [167.624, 114.792], "pads": [{"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 94.472], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 97.012], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 99.55199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 102.092], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 104.63199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 107.172], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 109.71199999999999], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 112.252], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}, {"layers": ["F", "B"], "angle": -90.0, "pos": [167.624, 114.792], "drillsize": [0.8099999999999999, 0.8099999999999999], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.8099999999999998, 1.8099999999999998]}], "drawings": [], "ref": "RN6", "bbox": {"pos": [166.098999, 92.94699899999999], "size": [3.0500019999999997, 23.360001999999998]}}, {"layer": "F", "center": [140.7, 108.94999999999999], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 91.17], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 93.71], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 96.25], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 98.78999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 101.33], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 103.86999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 106.41], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 108.94999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 108.94999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 106.41], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 103.86999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 101.33], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 98.78999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 96.25], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 93.71], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 91.17], "drillsize": [1.1176, 1.1176], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.6764, 1.6764]}], "drawings": [], "ref": "U1", "bbox": {"pos": [132.24179999999998, 90.128599], "size": [9.2964, 19.862802]}}, {"layer": "F", "center": [140.7, 86.08999999999999], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 68.31], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 70.85], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 73.39], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 75.92999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 78.47], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 81.00999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 83.55], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [140.7, 86.08999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 86.08999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 83.55], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 81.00999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 78.47], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 75.92999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 73.39], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 70.85], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [133.07999999999998, 68.31], "drillsize": [1.1176, 1.1176], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.6764, 1.6764]}], "drawings": [], "ref": "U2", "bbox": {"pos": [132.24179999999998, 67.268599], "size": [9.2964, 19.862802]}}, {"layer": "F", "center": [128.0, 131.81], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 114.03], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 116.57], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 119.11], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 121.64999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 124.19], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 126.72999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 129.26999999999998], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 131.81], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 131.81], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 129.26999999999998], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 126.72999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 124.19], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 121.64999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 119.11], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 116.57], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 114.03], "drillsize": [1.1176, 1.1176], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.6764, 1.6764]}], "drawings": [], "ref": "U3", "bbox": {"pos": [119.5418, 112.988599], "size": [9.2964, 19.862802]}}, {"layer": "F", "center": [128.0, 108.94999999999999], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 91.17], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 93.71], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 96.25], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 98.78999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 101.33], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 103.86999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 106.41], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 108.94999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 108.94999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 106.41], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 103.86999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 101.33], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 98.78999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 96.25], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 93.71], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 91.17], "drillsize": [1.1176, 1.1176], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.6764, 1.6764]}], "drawings": [], "ref": "U4", "bbox": {"pos": [119.5418, 90.128599], "size": [9.2964, 19.862802]}}, {"layer": "F", "center": [153.13, 131.81], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [153.13, 114.03], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.13, 116.57], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.13, 119.11], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.13, 121.64999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.13, 124.19], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.13, 126.72999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.13, 129.26999999999998], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.13, 131.81], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.51, 131.81], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.51, 129.26999999999998], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.51, 126.72999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.51, 124.19], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.51, 121.64999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.51, 119.11], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.51, 116.57], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.51, 114.03], "drillsize": [1.1176, 1.1176], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.6764, 1.6764]}], "drawings": [], "ref": "U5", "bbox": {"pos": [144.6718, 112.988599], "size": [9.2964, 19.862802]}}, {"layer": "F", "center": [128.0, 86.08999999999999], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 68.31], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 70.85], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 73.39], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 75.92999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 78.47], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 81.00999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 83.55], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [128.0, 86.08999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 86.08999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 83.55], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 81.00999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 78.47], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 75.92999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 73.39], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 70.85], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [120.38, 68.31], "drillsize": [1.1176, 1.1176], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.6764, 1.6764]}], "drawings": [], "ref": "U6", "bbox": {"pos": [119.5418, 67.268599], "size": [9.2964, 19.862802]}}, {"layer": "F", "center": [153.4, 86.08999999999999], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 68.31], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 70.85], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 73.39], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 75.92999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 78.47], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 81.00999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 83.55], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 86.08999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 86.08999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 83.55], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 81.00999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 78.47], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 75.92999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 73.39], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 70.85], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 68.31], "drillsize": [1.1176, 1.1176], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.6764, 1.6764]}], "drawings": [], "ref": "U7", "bbox": {"pos": [144.9418, 67.268599], "size": [9.2964, 19.862802]}}, {"layer": "F", "center": [153.4, 108.94999999999999], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 91.17], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 93.71], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 96.25], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 98.78999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 101.33], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 103.86999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 106.41], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [153.4, 108.94999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 108.94999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 106.41], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 103.86999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 101.33], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 98.78999999999999], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 96.25], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 93.71], "drillsize": [1.1176, 1.1176], "shape": "circle", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.6764, 1.6764]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [145.78, 91.17], "drillsize": [1.1176, 1.1176], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.6764, 1.6764]}], "drawings": [], "ref": "U8", "bbox": {"pos": [144.9418, 90.128599], "size": [9.2964, 19.862802]}}], "edges": [{"start": [182.60999999999999, 60.943999999999996], "end": [182.60999999999999, 147.558], "type": "segment", "width": 0.0025399999999999997}, {"start": [91.17, 60.943999999999996], "end": [182.60999999999999, 60.943999999999996], "type": "segment", "width": 0.0025399999999999997}, {"start": [91.17, 147.558], "end": [182.60999999999999, 147.558], "type": "segment", "width": 0.0025399999999999997}, {"start": [91.17, 60.943999999999996], "end": [91.17, 147.558], "type": "segment", "width": 0.0025399999999999997}], "bom": {"both": [[6, "74166", "NEW-DIP254P762X508-16", [["U3", 22], ["U4", 23], ["U5", 24], ["U6", 25], ["U7", 26], ["U8", 27]], []], [2, "4504", "NEW-DIP254P762X508-16", [["U1", 20], ["U2", 21]], []], [6, "4609X-101-103LF", "USE-SIP-9_P2.54mm", [["RN1", 14], ["RN2", 15], ["RN3", 16], ["RN4", 17], ["RN5", 18], ["RN6", 19]], []], [6, "CONN8_640456-8", "640456-8", [["J1", 4], ["J2", 5], ["J3", 6], ["J4", 7], ["J5", 8], ["J6", 9]], []], [1, "CON2_P5MM_VER_STERM-BLK", "796683-2", [["J7", 10]], []], [1, "640456-2", "TE_640456-2", [["J8", 11]], []], [2, "BeagleBone_Black_Header", "Socket_BeagleBone_Black", [["P8", 12], ["P9", 13]], []]], "B": [], "F": [[6, "74166", "NEW-DIP254P762X508-16", [["U3", 22], ["U4", 23], ["U5", 24], ["U6", 25], ["U7", 26], ["U8", 27]], []], [2, "4504", "NEW-DIP254P762X508-16", [["U1", 20], ["U2", 21]], []], [6, "4609X-101-103LF", "USE-SIP-9_P2.54mm", [["RN1", 14], ["RN2", 15], ["RN3", 16], ["RN4", 17], ["RN5", 18], ["RN6", 19]], []], [6, "CONN8_640456-8", "640456-8", [["J1", 4], ["J2", 5], ["J3", 6], ["J4", 7], ["J5", 8], ["J6", 9]], []], [1, "CON2_P5MM_VER_STERM-BLK", "796683-2", [["J7", 10]], []], [1, "640456-2", "TE_640456-2", [["J8", 11]], []], [2, "BeagleBone_Black_Header", "Socket_BeagleBone_Black", [["P8", 12], ["P9", 13]], []]]}, "silkscreen": {"B": [{"start": [99.298, 92.44], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"start": [175.244, 117.83999999999999], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"start": [99.298, 67.03999999999999], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"start": [175.244, 67.03999999999999], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"start": [99.298, 117.83999999999999], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"start": [175.244, 92.44], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"start": [131.2112, 139.684], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}], "F": [{"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "J1", "thickness": 0.15, "pos": [96.50399999999999, 114.538], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "*", "thickness": 0.15, "pos": [99.298, 112.252], "height": 1.0}, {"start": [101.838, 113.649], "end": [101.838, 93.075], "type": "segment", "width": 0.15239999999999998}, {"start": [101.838, 93.075], "end": [95.869, 93.075], "type": "segment", "width": 0.15239999999999998}, {"start": [95.869, 93.075], "end": [95.869, 113.649], "type": "segment", "width": 0.15239999999999998}, {"start": [95.869, 113.649], "end": [101.838, 113.649], "type": "segment", "width": 0.15239999999999998}, {"start": [99.298, 92.44], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "J2", "thickness": 0.15, "pos": [177.27599999999998, 140.192], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "*", "thickness": 0.15, "pos": [175.244, 137.652], "height": 1.0}, {"start": [177.784, 139.049], "end": [177.784, 118.475], "type": "segment", "width": 0.15239999999999998}, {"start": [177.784, 118.475], "end": [171.815, 118.475], "type": "segment", "width": 0.15239999999999998}, {"start": [171.815, 118.475], "end": [171.815, 139.049], "type": "segment", "width": 0.15239999999999998}, {"start": [171.815, 139.049], "end": [177.784, 139.049], "type": "segment", "width": 0.15239999999999998}, {"start": [175.244, 117.83999999999999], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "J3", "thickness": 0.15, "pos": [96.25, 89.13799999999999], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "*", "thickness": 0.15, "pos": [99.298, 86.85199999999999], "height": 1.0}, {"start": [101.838, 88.249], "end": [101.838, 67.675], "type": "segment", "width": 0.15239999999999998}, {"start": [101.838, 67.675], "end": [95.869, 67.675], "type": "segment", "width": 0.15239999999999998}, {"start": [95.869, 67.675], "end": [95.869, 88.249], "type": "segment", "width": 0.15239999999999998}, {"start": [95.869, 88.249], "end": [101.838, 88.249], "type": "segment", "width": 0.15239999999999998}, {"start": [99.298, 67.03999999999999], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "J4", "thickness": 0.15, "pos": [177.27599999999998, 89.392], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "*", "thickness": 0.15, "pos": [175.244, 86.85199999999999], "height": 1.0}, {"start": [177.784, 88.249], "end": [177.784, 67.675], "type": "segment", "width": 0.15239999999999998}, {"start": [177.784, 67.675], "end": [171.815, 67.675], "type": "segment", "width": 0.15239999999999998}, {"start": [171.815, 67.675], "end": [171.815, 88.249], "type": "segment", "width": 0.15239999999999998}, {"start": [171.815, 88.249], "end": [177.784, 88.249], "type": "segment", "width": 0.15239999999999998}, {"start": [175.244, 67.03999999999999], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "J5", "thickness": 0.15, "pos": [96.50399999999999, 140.192], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "*", "thickness": 0.15, "pos": [99.298, 137.652], "height": 1.0}, {"start": [101.838, 139.049], "end": [101.838, 118.475], "type": "segment", "width": 0.15239999999999998}, {"start": [101.838, 118.475], "end": [95.869, 118.475], "type": "segment", "width": 0.15239999999999998}, {"start": [95.869, 118.475], "end": [95.869, 139.049], "type": "segment", "width": 0.15239999999999998}, {"start": [95.869, 139.049], "end": [101.838, 139.049], "type": "segment", "width": 0.15239999999999998}, {"start": [99.298, 117.83999999999999], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "J6", "thickness": 0.15, "pos": [177.27599999999998, 114.792], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "*", "thickness": 0.15, "pos": [175.244, 112.252], "height": 1.0}, {"start": [177.784, 113.649], "end": [177.784, 93.075], "type": "segment", "width": 0.15239999999999998}, {"start": [177.784, 93.075], "end": [171.815, 93.075], "type": "segment", "width": 0.15239999999999998}, {"start": [171.815, 93.075], "end": [171.815, 113.649], "type": "segment", "width": 0.15239999999999998}, {"start": [171.815, 113.649], "end": [177.784, 113.649], "type": "segment", "width": 0.15239999999999998}, {"start": [175.244, 92.44], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "J7", "thickness": 0.15, "pos": [130.667, 135.874], "height": 1.0}, {"start": [131.2112, 139.684], "radius": 0.381, "type": "circle", "width": 0.15239999999999998}, {"start": [131.84619999999998, 135.06119999999999], "end": [131.84619999999998, 144.30679999999998], "type": "segment", "width": 0.15239999999999998}, {"start": [142.1078, 135.06119999999999], "end": [131.84619999999998, 135.06119999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [142.1078, 144.30679999999998], "end": [142.1078, 135.06119999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [131.84619999999998, 144.30679999999998], "end": [142.1078, 144.30679999999998], "type": "segment", "width": 0.15239999999999998}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "*", "thickness": 0.15, "pos": [134.477, 139.684], "height": 1.0}, {"width": 1.0003499999999999, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "J8", "thickness": 0.049999999999999996, "pos": [121.015, 143.62099999999998], "height": 1.0003499999999999}, {"start": [115.93499999999999, 137.831], "radius": 0.09999999999999999, "type": "circle", "width": 0.19999999999999998}, {"start": [119.74499999999999, 138.541], "end": [119.74499999999999, 144.261], "type": "segment", "width": 0.127}, {"start": [114.66499999999999, 138.541], "end": [119.74499999999999, 138.541], "type": "segment", "width": 0.127}, {"start": [114.66499999999999, 144.261], "end": [114.66499999999999, 138.541], "type": "segment", "width": 0.127}, {"start": [119.74499999999999, 144.261], "end": [114.66499999999999, 144.261], "type": "segment", "width": 0.127}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "P8", "thickness": 0.15, "pos": [110.47399999999999, 66.786], "height": 1.0}, {"start": [109.68599999999999, 67.776], "end": [109.68599999999999, 69.326], "type": "segment", "width": 0.15}, {"start": [112.506, 70.596], "end": [109.966, 70.596], "type": "segment", "width": 0.15}, {"start": [112.506, 68.056], "end": [112.506, 70.596], "type": "segment", "width": 0.15}, {"start": [111.23599999999999, 67.776], "end": [109.68599999999999, 67.776], "type": "segment", "width": 0.15}, {"start": [115.04599999999999, 68.056], "end": [112.506, 68.056], "type": "segment", "width": 0.15}, {"start": [115.04599999999999, 126.476], "end": [109.966, 126.476], "type": "segment", "width": 0.15}, {"start": [109.966, 126.476], "end": [109.966, 70.596], "type": "segment", "width": 0.15}, {"start": [115.04599999999999, 126.476], "end": [115.04599999999999, 68.056], "type": "segment", "width": 0.15}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "P9", "thickness": 0.15, "pos": [158.988, 66.786], "height": 1.0}, {"start": [158.2, 67.776], "end": [158.2, 69.326], "type": "segment", "width": 0.15}, {"start": [161.01999999999998, 70.596], "end": [158.48, 70.596], "type": "segment", "width": 0.15}, {"start": [161.01999999999998, 68.056], "end": [161.01999999999998, 70.596], "type": "segment", "width": 0.15}, {"start": [159.75, 67.776], "end": [158.2, 67.776], "type": "segment", "width": 0.15}, {"start": [163.56, 68.056], "end": [161.01999999999998, 68.056], "type": "segment", "width": 0.15}, {"start": [163.56, 126.476], "end": [158.48, 126.476], "type": "segment", "width": 0.15}, {"start": [158.48, 126.476], "end": [158.48, 70.596], "type": "segment", "width": 0.15}, {"start": [163.56, 126.476], "end": [163.56, 68.056], "type": "segment", "width": 0.15}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "RN1", "thickness": 0.15, "pos": [105.648, 117.332], "height": 1.0}, {"start": [107.048, 116.192], "end": [107.048, 115.692], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 116.192], "end": [107.048, 116.192], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 115.692], "end": [104.24799999999999, 116.192], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 93.092], "end": [104.24799999999999, 93.592], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 93.092], "end": [104.74799999999999, 93.092], "type": "segment", "width": 0.09999999999999999}, {"start": [107.048, 93.092], "end": [106.548, 93.092], "type": "segment", "width": 0.09999999999999999}, {"start": [107.048, 93.092], "end": [107.048, 93.592], "type": "segment", "width": 0.09999999999999999}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "RN2", "thickness": 0.15, "pos": [167.624, 91.932], "height": 1.0}, {"start": [169.024, 90.792], "end": [169.024, 90.292], "type": "segment", "width": 0.09999999999999999}, {"start": [166.224, 90.792], "end": [169.024, 90.792], "type": "segment", "width": 0.09999999999999999}, {"start": [166.224, 90.292], "end": [166.224, 90.792], "type": "segment", "width": 0.09999999999999999}, {"start": [166.224, 67.692], "end": [166.224, 68.192], "type": "segment", "width": 0.09999999999999999}, {"start": [166.224, 67.692], "end": [166.724, 67.692], "type": "segment", "width": 0.09999999999999999}, {"start": [169.024, 67.692], "end": [168.524, 67.692], "type": "segment", "width": 0.09999999999999999}, {"start": [169.024, 67.692], "end": [169.024, 68.192], "type": "segment", "width": 0.09999999999999999}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "RN3", "thickness": 0.15, "pos": [167.878, 142.732], "height": 1.0}, {"start": [169.278, 141.59199999999998], "end": [169.278, 141.09199999999998], "type": "segment", "width": 0.09999999999999999}, {"start": [166.47799999999998, 141.59199999999998], "end": [169.278, 141.59199999999998], "type": "segment", "width": 0.09999999999999999}, {"start": [166.47799999999998, 141.09199999999998], "end": [166.47799999999998, 141.59199999999998], "type": "segment", "width": 0.09999999999999999}, {"start": [166.47799999999998, 118.49199999999999], "end": [166.47799999999998, 118.99199999999999], "type": "segment", "width": 0.09999999999999999}, {"start": [166.47799999999998, 118.49199999999999], "end": [166.97799999999998, 118.49199999999999], "type": "segment", "width": 0.09999999999999999}, {"start": [169.278, 118.49199999999999], "end": [168.778, 118.49199999999999], "type": "segment", "width": 0.09999999999999999}, {"start": [169.278, 118.49199999999999], "end": [169.278, 118.99199999999999], "type": "segment", "width": 0.09999999999999999}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "RN4", "thickness": 0.15, "pos": [105.648, 142.732], "height": 1.0}, {"start": [107.048, 141.59199999999998], "end": [107.048, 141.09199999999998], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 141.59199999999998], "end": [107.048, 141.59199999999998], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 141.09199999999998], "end": [104.24799999999999, 141.59199999999998], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 118.49199999999999], "end": [104.24799999999999, 118.99199999999999], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 118.49199999999999], "end": [104.74799999999999, 118.49199999999999], "type": "segment", "width": 0.09999999999999999}, {"start": [107.048, 118.49199999999999], "end": [106.548, 118.49199999999999], "type": "segment", "width": 0.09999999999999999}, {"start": [107.048, 118.49199999999999], "end": [107.048, 118.99199999999999], "type": "segment", "width": 0.09999999999999999}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "RN5", "thickness": 0.15, "pos": [105.648, 91.932], "height": 1.0}, {"start": [107.048, 90.792], "end": [107.048, 90.292], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 90.792], "end": [107.048, 90.792], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 90.292], "end": [104.24799999999999, 90.792], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 67.692], "end": [104.24799999999999, 68.192], "type": "segment", "width": 0.09999999999999999}, {"start": [104.24799999999999, 67.692], "end": [104.74799999999999, 67.692], "type": "segment", "width": 0.09999999999999999}, {"start": [107.048, 67.692], "end": [106.548, 67.692], "type": "segment", "width": 0.09999999999999999}, {"start": [107.048, 67.692], "end": [107.048, 68.192], "type": "segment", "width": 0.09999999999999999}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "RN6", "thickness": 0.15, "pos": [167.624, 117.332], "height": 1.0}, {"start": [169.024, 116.192], "end": [169.024, 115.692], "type": "segment", "width": 0.09999999999999999}, {"start": [166.224, 116.192], "end": [169.024, 116.192], "type": "segment", "width": 0.09999999999999999}, {"start": [166.224, 115.692], "end": [166.224, 116.192], "type": "segment", "width": 0.09999999999999999}, {"start": [166.224, 93.092], "end": [166.224, 93.592], "type": "segment", "width": 0.09999999999999999}, {"start": [166.224, 93.092], "end": [166.724, 93.092], "type": "segment", "width": 0.09999999999999999}, {"start": [169.024, 93.092], "end": [168.524, 93.092], "type": "segment", "width": 0.09999999999999999}, {"start": [169.024, 93.092], "end": [169.024, 93.592], "type": "segment", "width": 0.09999999999999999}, {"width": 1.64228, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "U1", "thickness": 0.049999999999999996, "pos": [136.12165, 88.6271], "height": 1.64228}, {"width": 0.09999999999999999, "endangle": 180.0, "start": [136.89, 90.20479999999999], "radius": 0.30479999999999996, "startangle": 0.0, "type": "arc"}, {"start": [136.5852, 90.20479999999999], "end": [134.4008, 90.20479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [137.1948, 90.20479999999999], "end": [136.5852, 90.20479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [139.811, 90.20479999999999], "end": [137.1948, 90.20479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [133.969, 109.9152], "end": [139.811, 109.9152], "type": "segment", "width": 0.15239999999999998}, {"width": 1.64228, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "U2", "thickness": 0.049999999999999996, "pos": [136.12165, 65.7671], "height": 1.64228}, {"width": 0.09999999999999999, "endangle": 180.0, "start": [136.89, 67.34479999999999], "radius": 0.30479999999999996, "startangle": 0.0, "type": "arc"}, {"start": [136.5852, 67.34479999999999], "end": [134.4008, 67.34479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [137.1948, 67.34479999999999], "end": [136.5852, 67.34479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [139.811, 67.34479999999999], "end": [137.1948, 67.34479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [133.969, 87.0552], "end": [139.811, 87.0552], "type": "segment", "width": 0.15239999999999998}, {"width": 1.64228, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "U3", "thickness": 0.049999999999999996, "pos": [123.42165, 111.4871], "height": 1.64228}, {"width": 0.09999999999999999, "endangle": 180.0, "start": [124.19, 113.06479999999999], "radius": 0.30479999999999996, "startangle": 0.0, "type": "arc"}, {"start": [123.8852, 113.06479999999999], "end": [121.7008, 113.06479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [124.4948, 113.06479999999999], "end": [123.8852, 113.06479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [127.11099999999999, 113.06479999999999], "end": [124.4948, 113.06479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [121.26899999999999, 132.77519999999998], "end": [127.11099999999999, 132.77519999999998], "type": "segment", "width": 0.15239999999999998}, {"width": 1.64228, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "U4", "thickness": 0.049999999999999996, "pos": [123.42165, 88.6271], "height": 1.64228}, {"width": 0.09999999999999999, "endangle": 180.0, "start": [124.19, 90.20479999999999], "radius": 0.30479999999999996, "startangle": 0.0, "type": "arc"}, {"start": [123.8852, 90.20479999999999], "end": [121.7008, 90.20479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [124.4948, 90.20479999999999], "end": [123.8852, 90.20479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [127.11099999999999, 90.20479999999999], "end": [124.4948, 90.20479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [121.26899999999999, 109.9152], "end": [127.11099999999999, 109.9152], "type": "segment", "width": 0.15239999999999998}, {"width": 1.64228, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "U5", "thickness": 0.049999999999999996, "pos": [148.55165, 111.4871], "height": 1.64228}, {"width": 0.09999999999999999, "endangle": 180.0, "start": [149.32, 113.06479999999999], "radius": 0.30479999999999996, "startangle": 0.0, "type": "arc"}, {"start": [149.0152, 113.06479999999999], "end": [146.83079999999998, 113.06479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [149.6248, 113.06479999999999], "end": [149.0152, 113.06479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [152.24099999999999, 113.06479999999999], "end": [149.6248, 113.06479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [146.399, 132.77519999999998], "end": [152.24099999999999, 132.77519999999998], "type": "segment", "width": 0.15239999999999998}, {"width": 1.64228, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "U6", "thickness": 0.049999999999999996, "pos": [123.42165, 65.7671], "height": 1.64228}, {"width": 0.09999999999999999, "endangle": 180.0, "start": [124.19, 67.34479999999999], "radius": 0.30479999999999996, "startangle": 0.0, "type": "arc"}, {"start": [123.8852, 67.34479999999999], "end": [121.7008, 67.34479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [124.4948, 67.34479999999999], "end": [123.8852, 67.34479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [127.11099999999999, 67.34479999999999], "end": [124.4948, 67.34479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [121.26899999999999, 87.0552], "end": [127.11099999999999, 87.0552], "type": "segment", "width": 0.15239999999999998}, {"width": 1.64228, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "U7", "thickness": 0.049999999999999996, "pos": [148.82165, 65.7671], "height": 1.64228}, {"width": 0.09999999999999999, "endangle": 180.0, "start": [149.59, 67.34479999999999], "radius": 0.30479999999999996, "startangle": 0.0, "type": "arc"}, {"start": [149.2852, 67.34479999999999], "end": [147.1008, 67.34479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [149.8948, 67.34479999999999], "end": [149.2852, 67.34479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [152.511, 67.34479999999999], "end": [149.8948, 67.34479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [146.66899999999998, 87.0552], "end": [152.511, 87.0552], "type": "segment", "width": 0.15239999999999998}, {"width": 1.64228, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "U8", "thickness": 0.049999999999999996, "pos": [148.82165, 88.6271], "height": 1.64228}, {"width": 0.09999999999999999, "endangle": 180.0, "start": [149.59, 90.20479999999999], "radius": 0.30479999999999996, "startangle": 0.0, "type": "arc"}, {"start": [149.2852, 90.20479999999999], "end": [147.1008, 90.20479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [149.8948, 90.20479999999999], "end": [149.2852, 90.20479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [152.511, 90.20479999999999], "end": [149.8948, 90.20479999999999], "type": "segment", "width": 0.15239999999999998}, {"start": [146.66899999999998, 109.9152], "end": [152.511, 109.9152], "type": "segment", "width": 0.15239999999999998}]}, "edges_bbox": {"minx": 91.168729, "miny": 60.942729, "maxx": 182.611271, "maxy": 147.559271}, "metadata": {"date": "2019-01-18", "company": "kremlinware unlimited", "revision": "K2", "title": "bort's brain"}}
635 ///////////////////////////////////////////////
636
637 ///////////////////////////////////////////////
638 /* Utility functions */
639
640 var storagePrefix = 'KiCad_HTML_BOM__' + pcbdata.metadata.title + '__' +
641 pcbdata.metadata.revision + '__';
642 var storage;
643
644 function initStorage(key) {
645 try {
646 window.localStorage.getItem("blank");
647 storage = window.localStorage;
648 } catch (e) {
649 // localStorage not available
650 }
651 if (!storage) {
652 try {
653 window.sessionStorage.getItem("blank");
654 storage = window.sessionStorage;
655 } catch (e) {
656 // sessionStorage also not available
657 }
658 }
659 }
660
661 function readStorage(key) {
662 if (storage) {
663 return storage.getItem(storagePrefix + '#' + key);
664 } else {
665 return null;
666 }
667 }
668
669 function writeStorage(key, value) {
670 if (storage) {
671 storage.setItem(storagePrefix + '#' + key, value);
672 }
673 }
674
675 function fancyDblClickHandler(el, onsingle, ondouble) {
676 return function() {
677 if (el.getAttribute("data-dblclick") == null) {
678 el.setAttribute("data-dblclick", 1);
679 setTimeout(function() {
680 if (el.getAttribute("data-dblclick") == 1) {
681 onsingle();
682 }
683 el.removeAttribute("data-dblclick");
684 }, 200);
685 } else {
686 el.removeAttribute("data-dblclick");
687 ondouble();
688 }
689 }
690 }
691
692 function smoothScrollToRow(rowid) {
693 document.getElementById(rowid).scrollIntoView({
694 behavior: "smooth",
695 block: "center",
696 inline: "nearest"
697 });
698 }
699
700 function focusInputField(input) {
701 input.scrollIntoView(false);
702 input.focus();
703 input.select();
704 }
705
706 function copyToClipboard() {
707 var text = '';
708 for (var node of bomhead.childNodes[0].childNodes) {
709 if (node.firstChild) {
710 text = text + node.firstChild.nodeValue;
711 }
712 if (node != bomhead.childNodes[0].lastChild) {
713 text += '\t';
714 }
715 }
716 text += '\n';
717 for (var row of bombody.childNodes) {
718 for (var cell of row.childNodes) {
719 for (var node of cell.childNodes) {
720 if (node.nodeName == "INPUT") {
721 if (node.checked) {
722 text = text + '✓';
723 }
724 } else if (node.nodeName == "MARK") {
725 text = text + node.firstChild.nodeValue;
726 } else {
727 text = text + node.nodeValue;
728 }
729 }
730 if (cell != row.lastChild) {
731 text += '\t';
732 }
733 }
734 text += '\n';
735 }
736 var textArea = document.createElement("textarea");
737 textArea.classList.add('clipboard-temp');
738 textArea.value = text;
739
740 document.body.appendChild(textArea);
741 textArea.focus();
742 textArea.select();
743
744 try {
745 if (document.execCommand('copy')) {
746 console.log('Bom copied to clipboard.');
747 }
748 } catch (err) {
749 console.log('Can not copy to clipboard.');
750 }
751
752 document.body.removeChild(textArea);
753 }
754
755 function removeGutterNode(node) {
756 for (var i = 0; i < node.childNodes.length; i++) {
757 if (node.childNodes[i].classList &&
758 node.childNodes[i].classList.contains("gutter")) {
759 node.removeChild(node.childNodes[i]);
760 break;
761 }
762 }
763 }
764
765 function cleanGutters() {
766 removeGutterNode(document.getElementById("bot"));
767 removeGutterNode(document.getElementById("canvasdiv"));
768 }
769
770 var units = {
771 prefixes: {
772 giga: ["G", "g", "giga", "Giga", "GIGA"],
773 mega: ["M", "mega", "Mega", "MEGA"],
774 kilo: ["K", "k", "kilo", "Kilo", "KILO"],
775 milli: ["m", "milli", "Milli", "MILLI"],
776 micro: ["U", "u", "micro", "Micro", "MICRO", "μ", "µ"], // different utf8 μ
777 nano: ["N", "n", "nano", "Nano", "NANO"],
778 pico: ["P", "p", "pico", "Pico", "PICO"],
779 },
780 unitsShort: ["R", "r", "Ω", "F", "f", "H", "h"],
781 unitsLong: [
782 "OHM", "Ohm", "ohm", "ohms",
783 "FARAD", "Farad", "farad",
784 "HENRY", "Henry", "henry"
785 ],
786 getMultiplier: function(s) {
787 if (this.prefixes.giga.includes(s)) return 1e9;
788 if (this.prefixes.mega.includes(s)) return 1e6;
789 if (this.prefixes.kilo.includes(s)) return 1e3;
790 if (this.prefixes.milli.includes(s)) return 1e-3;
791 if (this.prefixes.micro.includes(s)) return 1e-6;
792 if (this.prefixes.nano.includes(s)) return 1e-9;
793 if (this.prefixes.pico.includes(s)) return 1e-12;
794 return 1;
795 },
796 valueRegex: null,
797 }
798
799 function initUtils() {
800 var allPrefixes = units.prefixes.giga
801 .concat(units.prefixes.mega)
802 .concat(units.prefixes.kilo)
803 .concat(units.prefixes.milli)
804 .concat(units.prefixes.micro)
805 .concat(units.prefixes.nano)
806 .concat(units.prefixes.pico);
807 var allUnits = units.unitsShort.concat(units.unitsLong);
808 units.valueRegex = new RegExp("^([0-9\.]+)" +
809 "\\s*(" + allPrefixes.join("|") + ")?" +
810 "(" + allUnits.join("|") + ")?" +
811 "(\\b.*)?$", "");
812 units.valueAltRegex = new RegExp("^([0-9]*)" +
813 "(" + units.unitsShort.join("|") + ")?" +
814 "([GgMmKkUuNnPp])?" +
815 "([0-9]*)" +
816 "(\\b.*)?$", "");
817 for (var bomtable of Object.values(pcbdata.bom)) {
818 for (var row of bomtable) {
819 row.push(parseValue(row[1], row[3][0][0]));
820 }
821 }
822 }
823
824 function parseValue(val, ref) {
825 var inferUnit = (unit, ref) => {
826 if (unit) {
827 unit = unit.toLowerCase();
828 if (unit == 'Ω' || unit == "ohm" || unit == "ohms") {
829 unit = 'r';
830 }
831 unit = unit[0];
832 } else {
833 ref = /^([a-z]+)\d+$/i.exec(ref);
834 if (ref) {
835 ref = ref[1].toLowerCase();
836 if (ref == "c") unit = 'f';
837 else if (ref == "l") unit = 'h';
838 else if (ref == "r" || ref == "rv") unit = 'r';
839 else unit = null;
840 }
841 }
842 return unit;
843 };
844 val = val.replace(/,/g, "");
845 var match = units.valueRegex.exec(val);
846 var unit;
847 if (match) {
848 val = parseFloat(match[1]);
849 if (match[2]) {
850 val = val * units.getMultiplier(match[2]);
851 }
852 unit = inferUnit(match[3], ref);
853 if (!unit) return null;
854 else return {
855 val: val,
856 unit: unit,
857 extra: match[4],
858 }
859 }
860 match = units.valueAltRegex.exec(val);
861 if (match && (match[1] || match[4])) {
862 val = parseFloat(match[1] + "." + match[4]);
863 if (match[3]) {
864 val = val * units.getMultiplier(match[3]);
865 }
866 unit = inferUnit(match[2], ref);
867 if (!unit) return null;
868 else return {
869 val: val,
870 unit: unit,
871 extra: match[5],
872 }
873 }
874 return null;
875 }
876
877 function valueCompare(a, b, stra, strb) {
878 if (a === null && b === null) {
879 // Failed to parse both values, compare them as strings.
880 if (stra != strb) return stra > strb ? 1 : -1;
881 else return 0;
882 } else if (a === null) {
883 return 1;
884 } else if (b === null) {
885 return -1;
886 } else {
887 if (a.unit != b.unit) return a.unit > b.unit ? 1 : -1;
888 else if (a.val != b.val) return a.val > b.val ? 1 : -1;
889 else if (a.extra != b.extra) return a.extra > b.extra ? 1 : -1;
890 else return 0;
891 }
892 }
893
894 ///////////////////////////////////////////////
895
896 ///////////////////////////////////////////////
897 /* PCB rendering code */
898
899 var redrawOnDrag = true;
900 var boardRotation = 0;
901
902 function deg2rad(deg) {
903 return deg * Math.PI / 180;
904 }
905
906 function calcFontPoint(linepoint, text, offsetx, offsety, tilt) {
907 var point = [
908 linepoint[0] * text.width + offsetx,
909 linepoint[1] * text.height + offsety
910 ];
911 // Adding half a line height here is technically a bug
912 // but pcbnew currently does the same, text is slightly shifted.
913 point[0] -= (point[1] + text.height * 0.5) * tilt;
914 return point;
915 }
916
917 function drawtext(ctx, text, color, flip) {
918 ctx.save();
919 ctx.translate(...text.pos);
920 var angle = -text.angle;
921 if (text.attr.includes("mirrored")) {
922 ctx.scale(-1, 1);
923 angle = -angle;
924 }
925 var tilt = 0;
926 if (text.attr.includes("italic")) {
927 tilt = 0.125;
928 }
929 var interline = (text.height * 1.5 + text.thickness) / 2;
930 var txt = text.text.split("\n");
931 // KiCad ignores last empty line.
932 if (txt[txt.length-1] == '') txt.pop();
933 ctx.rotate(deg2rad(angle));
934 ctx.fillStyle = color;
935 ctx.strokeStyle = color;
936 ctx.lineCap = "round";
937 ctx.lineWidth = text.thickness;
938 for (var i in txt) {
939 var offsety = (-(txt.length - 1) + i * 2) * interline + text.height / 2;
940 var lineWidth = 0;
941 for (var c of txt[i]) {
942 lineWidth += pcbdata.font_data[c].w * text.width;
943 }
944 var offsetx = 0;
945 switch (text.horiz_justify) {
946 case -1:
947 // Justify left, do nothing
948 break;
949 case 0:
950 // Justify center
951 offsetx -= lineWidth / 2;
952 break;
953 case 1:
954 // Justify right
955 offsetx -= lineWidth;
956 break;
957 }
958 for (var c of txt[i]) {
959 for (var line of pcbdata.font_data[c].l) {
960 // Drawing each segment separately instead of
961 // polyline because round line caps don't work in joints
962 for (var i = 0; i < line.length - 1; i++) {
963 ctx.beginPath();
964 ctx.moveTo(...calcFontPoint(line[i], text, offsetx, offsety, tilt));
965 ctx.lineTo(...calcFontPoint(line[i + 1], text, offsetx, offsety, tilt));
966 ctx.stroke();
967 }
968 }
969 offsetx += pcbdata.font_data[c].w * text.width;
970 }
971 }
972 ctx.restore();
973 }
974
975 function drawedge(ctx, scalefactor, edge, color) {
976 ctx.strokeStyle = color;
977 ctx.lineWidth = Math.max(1 / scalefactor, edge.width);
978 ctx.lineCap = "round";
979 if (edge.type == "segment") {
980 ctx.beginPath();
981 ctx.moveTo(...edge.start);
982 ctx.lineTo(...edge.end);
983 ctx.stroke();
984 }
985 if (edge.type == "arc") {
986 ctx.beginPath();
987 ctx.arc(
988 ...edge.start,
989 edge.radius,
990 deg2rad(edge.startangle),
991 deg2rad(edge.endangle));
992 ctx.stroke();
993 }
994 if (edge.type == "circle") {
995 ctx.beginPath();
996 ctx.arc(
997 ...edge.start,
998 edge.radius,
999 0, 2 * Math.PI);
1000 ctx.closePath();
1001 ctx.stroke();
1002 }
1003 }
1004
1005 function drawRoundRect(ctx, color, size, radius, ctxmethod) {
1006 ctx.beginPath();
1007 ctx.strokeStyle = color;
1008 var x = size[0] * -0.5;
1009 var y = size[1] * -0.5;
1010 var width = size[0];
1011 var height = size[1];
1012 ctx.moveTo(x, 0);
1013 ctx.arcTo(x, y + height, x + width, y + height, radius);
1014 ctx.arcTo(x + width, y + height, x + width, y, radius);
1015 ctx.arcTo(x + width, y, x, y, radius);
1016 ctx.arcTo(x, y, x, y + height, radius);
1017 ctx.closePath();
1018 ctxmethod();
1019 }
1020
1021 function drawOblong(ctx, color, size, ctxmethod) {
1022 drawRoundRect(ctx, color, size, Math.min(size[0], size[1]) / 2, ctxmethod);
1023 }
1024
1025 function drawPolygons(ctx, color, polygons, ctxmethod) {
1026 ctx.fillStyle = color;
1027 for (var polygon of polygons) {
1028 ctx.beginPath();
1029 for (var vertex of polygon) {
1030 ctx.lineTo(...vertex)
1031 }
1032 ctx.closePath();
1033 ctxmethod();
1034 }
1035 }
1036
1037 function drawPolygonShape(ctx, shape, color) {
1038 ctx.save();
1039 ctx.translate(...shape.pos);
1040 ctx.rotate(deg2rad(-shape.angle));
1041 drawPolygons(ctx, color, shape.polygons, ctx.fill.bind(ctx));
1042 ctx.restore();
1043 }
1044
1045 function drawDrawing(ctx, layer, scalefactor, drawing, color) {
1046 if (["segment", "arc", "circle"].includes(drawing.type)) {
1047 drawedge(ctx, scalefactor, drawing, color);
1048 } else if (drawing.type == "polygon") {
1049 drawPolygonShape(ctx, drawing, color);
1050 } else {
1051 drawtext(ctx, drawing, color, layer == "B");
1052 }
1053 }
1054
1055 function drawCircle(ctx, radius, ctxmethod) {
1056 ctx.beginPath();
1057 ctx.arc(0, 0, radius, 0, 2 * Math.PI);
1058 ctx.closePath();
1059 ctxmethod();
1060 }
1061
1062 function drawPad(ctx, pad, color, outline) {
1063 ctx.save();
1064 ctx.translate(...pad.pos);
1065 ctx.rotate(deg2rad(pad.angle));
1066 if (pad.offset) {
1067 ctx.translate(...pad.offset);
1068 }
1069 ctx.fillStyle = color;
1070 ctx.strokeStyle = color;
1071 var ctxmethod = outline ? ctx.stroke.bind(ctx) : ctx.fill.bind(ctx);
1072 if (pad.shape == "rect") {
1073 var rect = [...pad.size.map(c => -c * 0.5), ...pad.size];
1074 if (outline) {
1075 ctx.strokeRect(...rect);
1076 } else {
1077 ctx.fillRect(...rect);
1078 }
1079 } else if (pad.shape == "oval") {
1080 drawOblong(ctx, color, pad.size, ctxmethod);
1081 } else if (pad.shape == "circle") {
1082 drawCircle(ctx, pad.size[0] / 2, ctxmethod);
1083 } else if (pad.shape == "roundrect") {
1084 drawRoundRect(ctx, color, pad.size, pad.radius, ctxmethod);
1085 } else if (pad.shape == "custom") {
1086 drawPolygons(ctx, color, pad.polygons, ctxmethod);
1087 }
1088 if (pad.type == "th" && !outline) {
1089 ctx.fillStyle = "#CCCCCC";
1090 if (pad.drillshape == "oblong") {
1091 drawOblong(ctx, "#CCCCCC", pad.drillsize, ctxmethod);
1092 } else {
1093 drawCircle(ctx, pad.drillsize[0] / 2, ctxmethod);
1094 }
1095 }
1096 ctx.restore();
1097 }
1098
1099 function drawModule(ctx, layer, scalefactor, module, padcolor, outlinecolor, highlight) {
1100 if (highlight) {
1101 // draw bounding box
1102 if (module.layer == layer) {
1103 ctx.save();
1104 ctx.globalAlpha = 0.2;
1105 ctx.translate(...module.bbox.pos);
1106 ctx.fillStyle = padcolor;
1107 ctx.fillRect(
1108 0, 0,
1109 ...module.bbox.size);
1110 ctx.globalAlpha = 1;
1111 ctx.strokeStyle = padcolor;
1112 ctx.strokeRect(
1113 0, 0,
1114 ...module.bbox.size);
1115 ctx.restore();
1116 }
1117 }
1118 // draw drawings
1119 for (var drawing of module.drawings) {
1120 if (drawing.layer == layer) {
1121 drawDrawing(ctx, layer, scalefactor, drawing.drawing, padcolor);
1122 }
1123 }
1124 // draw pads
1125 for (var pad of module.pads) {
1126 if (pad.layers.includes(layer)) {
1127 drawPad(ctx, pad, padcolor, false);
1128 if (pad.pin1 && highlightpin1) {
1129 drawPad(ctx, pad, outlinecolor, true);
1130 }
1131 }
1132 }
1133 }
1134
1135 function drawEdges(canvas, scalefactor) {
1136 var ctx = canvas.getContext("2d");
1137 var edgecolor = getComputedStyle(topmostdiv).getPropertyValue('--pcb-edge-color');
1138 for (var edge of pcbdata.edges) {
1139 drawedge(ctx, scalefactor, edge, edgecolor);
1140 }
1141 }
1142
1143 function drawModules(canvas, layer, scalefactor, highlightedModules) {
1144 var ctx = canvas.getContext("2d");
1145 ctx.lineWidth = 3 / scalefactor;
1146 var style = getComputedStyle(topmostdiv);
1147 var padcolor = style.getPropertyValue('--pad-color');
1148 var outlinecolor = style.getPropertyValue('--pin1-outline-color');
1149 if (highlightedModules.length > 0) {
1150 padcolor = style.getPropertyValue('--pad-color-highlight');
1151 outlinecolor = style.getPropertyValue('--pin1-outline-color-highlight');
1152 }
1153 for (var i = 0; i < pcbdata.modules.length; i++) {
1154 var mod = pcbdata.modules[i];
1155 var highlight = highlightedModules.includes(i);
1156 if (highlightedModules.length == 0 || highlight) {
1157 drawModule(ctx, layer, scalefactor, mod, padcolor, outlinecolor, highlight);
1158 }
1159 }
1160 }
1161
1162 function drawSilkscreen(canvas, layer, scalefactor) {
1163 var ctx = canvas.getContext("2d");
1164 for (var d of pcbdata.silkscreen[layer]) {
1165 if (["segment", "arc", "circle"].includes(d.type)) {
1166 drawedge(ctx, scalefactor, d, "#aa4");
1167 } else if (d.type == "polygon") {
1168 drawPolygonShape(ctx, d, "#4aa");
1169 } else {
1170 drawtext(ctx, d, "#4aa", layer == "B");
1171 }
1172 }
1173 }
1174
1175 function clearCanvas(canvas) {
1176 var ctx = canvas.getContext("2d");
1177 ctx.save();
1178 ctx.setTransform(1, 0, 0, 1, 0, 0);
1179 ctx.clearRect(0, 0, canvas.width, canvas.height);
1180 ctx.restore();
1181 }
1182
1183 function drawHighlightsOnLayer(canvasdict) {
1184 clearCanvas(canvasdict.highlight);
1185 drawModules(canvasdict.highlight, canvasdict.layer,
1186 canvasdict.transform.s, highlightedModules);
1187 }
1188
1189 function drawHighlights() {
1190 drawHighlightsOnLayer(allcanvas.front);
1191 drawHighlightsOnLayer(allcanvas.back);
1192 }
1193
1194 function drawBackground(canvasdict) {
1195 clearCanvas(canvasdict.bg);
1196 clearCanvas(canvasdict.silk);
1197 drawEdges(canvasdict.bg, canvasdict.transform.s);
1198 drawModules(canvasdict.bg, canvasdict.layer, canvasdict.transform.s, []);
1199 drawSilkscreen(canvasdict.silk, canvasdict.layer, canvasdict.transform.s);
1200 }
1201
1202 function prepareCanvas(canvas, flip, transform) {
1203 var ctx = canvas.getContext("2d");
1204 ctx.setTransform(1, 0, 0, 1, 0, 0);
1205 var fontsize = 1.55;
1206 ctx.scale(transform.zoom, transform.zoom);
1207 ctx.translate(transform.panx, transform.pany);
1208 if (flip) {
1209 ctx.scale(-1, 1);
1210 }
1211 ctx.translate(transform.x, transform.y);
1212 ctx.rotate(deg2rad(boardRotation));
1213 ctx.scale(transform.s, transform.s);
1214 }
1215
1216 function prepareLayer(canvasdict) {
1217 var flip = (canvasdict.layer == "B");
1218 for (var c of ["bg", "silk", "highlight"]) {
1219 prepareCanvas(canvasdict[c], flip, canvasdict.transform);
1220 }
1221 }
1222
1223 function rotateVector(v, angle) {
1224 angle = deg2rad(angle);
1225 return [
1226 v[0] * Math.cos(angle) - v[1] * Math.sin(angle),
1227 v[0] * Math.sin(angle) + v[1] * Math.cos(angle)
1228 ];
1229 }
1230
1231 function applyRotation(bbox) {
1232 var corners = [
1233 [bbox.minx, bbox.miny],
1234 [bbox.minx, bbox.maxy],
1235 [bbox.maxx, bbox.miny],
1236 [bbox.maxx, bbox.maxy],
1237 ];
1238 corners = corners.map((v) => rotateVector(v, boardRotation));
1239 return {
1240 minx: corners.reduce((a, v) => Math.min(a, v[0]), Infinity),
1241 miny: corners.reduce((a, v) => Math.min(a, v[1]), Infinity),
1242 maxx: corners.reduce((a, v) => Math.max(a, v[0]), -Infinity),
1243 maxy: corners.reduce((a, v) => Math.max(a, v[1]), -Infinity),
1244 }
1245 }
1246
1247 function recalcLayerScale(canvasdict) {
1248 var canvasdivid = {
1249 "F": "frontcanvas",
1250 "B": "backcanvas"
1251 } [canvasdict.layer];
1252 var width = document.getElementById(canvasdivid).clientWidth * 2;
1253 var height = document.getElementById(canvasdivid).clientHeight * 2;
1254 var bbox = applyRotation(pcbdata.edges_bbox);
1255 var scalefactor = 0.98 * Math.min(
1256 width / (bbox.maxx - bbox.minx),
1257 height / (bbox.maxy - bbox.miny)
1258 );
1259 if (scalefactor < 0.1) {
1260 scalefactor = 1;
1261 }
1262 canvasdict.transform.s = scalefactor;
1263 var flip = (canvasdict.layer == "B");
1264 if (flip) {
1265 canvasdict.transform.x = -((bbox.maxx + bbox.minx) * scalefactor + width) * 0.5;
1266 } else {
1267 canvasdict.transform.x = -((bbox.maxx + bbox.minx) * scalefactor - width) * 0.5;
1268 }
1269 canvasdict.transform.y = -((bbox.maxy + bbox.miny) * scalefactor - height) * 0.5;
1270 for (var c of ["bg", "silk", "highlight"]) {
1271 canvas = canvasdict[c];
1272 canvas.width = width;
1273 canvas.height = height;
1274 canvas.style.width = (width / 2) + "px";
1275 canvas.style.height = (height / 2) + "px";
1276 }
1277 console.log("Scale factor " + canvasdivid + ": ", canvasdict.transform);
1278 }
1279
1280 function redrawCanvas(layerdict) {
1281 prepareLayer(layerdict);
1282 drawBackground(layerdict);
1283 drawHighlightsOnLayer(layerdict);
1284 }
1285
1286 function resizeCanvas(layerdict) {
1287 recalcLayerScale(layerdict);
1288 redrawCanvas(layerdict);
1289 }
1290
1291 function resizeAll() {
1292 resizeCanvas(allcanvas.front);
1293 resizeCanvas(allcanvas.back);
1294 }
1295
1296 function bboxScan(layer, x, y) {
1297 var result = [];
1298 for (var i = 0; i < pcbdata.modules.length; i++) {
1299 var module = pcbdata.modules[i];
1300 if (module.layer == layer) {
1301 var b = module.bbox;
1302 if (b.pos[0] <= x && b.pos[0] + b.size[0] >= x &&
1303 b.pos[1] <= y && b.pos[1] + b.size[1] >= y) {
1304 result.push(i);
1305 }
1306 }
1307 }
1308 return result;
1309 }
1310
1311 function handleMouseDown(e, layerdict) {
1312 if (e.which != 1) {
1313 return;
1314 }
1315 e.preventDefault();
1316 e.stopPropagation();
1317 layerdict.transform.mousestartx = e.offsetX;
1318 layerdict.transform.mousestarty = e.offsetY;
1319 layerdict.transform.mousedownx = e.offsetX;
1320 layerdict.transform.mousedowny = e.offsetY;
1321 layerdict.transform.mousedown = true;
1322 }
1323
1324 function handleMouseClick(e, layerdict) {
1325 var x = e.offsetX;
1326 var y = e.offsetY;
1327 var t = layerdict.transform;
1328 if (layerdict.layer == "B") {
1329 x = (2 * x / t.zoom - t.panx + t.x) / -t.s;
1330 } else {
1331 x = (2 * x / t.zoom - t.panx - t.x) / t.s;
1332 }
1333 y = (2 * y / t.zoom - t.y - t.pany) / t.s;
1334 var v = rotateVector([x, y], -boardRotation);
1335 var modules = bboxScan(layerdict.layer, v[0], v[1]);
1336 if (modules.length > 0) {
1337 modulesClicked(modules);
1338 drawHighlights();
1339 }
1340 }
1341
1342 function handleMouseUp(e, layerdict) {
1343 e.preventDefault();
1344 e.stopPropagation();
1345 if (e.which == 1 &&
1346 layerdict.transform.mousedown &&
1347 layerdict.transform.mousedownx == e.offsetX &&
1348 layerdict.transform.mousedowny == e.offsetY) {
1349 // This is just a click
1350 handleMouseClick(e, layerdict);
1351 layerdict.transform.mousedown = false;
1352 return;
1353 }
1354 if (e.which == 3) {
1355 // Reset pan and zoom on right click.
1356 layerdict.transform.panx = 0;
1357 layerdict.transform.pany = 0;
1358 layerdict.transform.zoom = 1;
1359 redrawCanvas(layerdict);
1360 } else if (!redrawOnDrag) {
1361 redrawCanvas(layerdict);
1362 }
1363 layerdict.transform.mousedown = false;
1364 }
1365
1366 function handleMouseMove(e, layerdict) {
1367 if (!layerdict.transform.mousedown) {
1368 return;
1369 }
1370 e.preventDefault();
1371 e.stopPropagation();
1372 var dx = e.offsetX - layerdict.transform.mousestartx;
1373 var dy = e.offsetY - layerdict.transform.mousestarty;
1374 layerdict.transform.panx += 2 * dx / layerdict.transform.zoom;
1375 layerdict.transform.pany += 2 * dy / layerdict.transform.zoom;
1376 layerdict.transform.mousestartx = e.offsetX;
1377 layerdict.transform.mousestarty = e.offsetY;
1378 if (redrawOnDrag) {
1379 redrawCanvas(layerdict);
1380 }
1381 }
1382
1383 function handleMouseWheel(e, layerdict) {
1384 e.preventDefault();
1385 e.stopPropagation();
1386 var t = layerdict.transform;
1387 var wheeldelta = e.deltaY;
1388 if (e.deltaMode == 1) {
1389 // FF only, scroll by lines
1390 wheeldelta *= 30;
1391 } else if (e.deltaMode == 2) {
1392 wheeldelta *= 300;
1393 }
1394 var m = Math.pow(1.1, -wheeldelta / 40);
1395 // Limit amount of zoom per tick.
1396 if (m > 2) {
1397 m = 2;
1398 } else if (m < 0.5) {
1399 m = 0.5;
1400 }
1401 t.zoom *= m;
1402 var zoomd = (1 - m) / t.zoom;
1403 t.panx += 2 * e.offsetX * zoomd;
1404 t.pany += 2 * e.offsetY * zoomd;
1405 redrawCanvas(layerdict);
1406 console.log(layerdict.transform.zoom);
1407 }
1408
1409 function addMouseHandlers(div, layerdict) {
1410 div.onmousedown = function(e) {
1411 handleMouseDown(e, layerdict);
1412 };
1413 div.onmousemove = function(e) {
1414 handleMouseMove(e, layerdict);
1415 };
1416 div.onmouseup = function(e) {
1417 handleMouseUp(e, layerdict);
1418 };
1419 div.onmouseout = function(e) {
1420 handleMouseUp(e, layerdict);
1421 }
1422 div.onwheel = function(e) {
1423 handleMouseWheel(e, layerdict);
1424 }
1425 for (var element of [div, layerdict.bg, layerdict.silk, layerdict.highlight]) {
1426 element.addEventListener("contextmenu", function(e) {
1427 e.preventDefault();
1428 }, false);
1429 }
1430 }
1431
1432 function setRedrawOnDrag(value) {
1433 redrawOnDrag = value;
1434 writeStorage("redrawOnDrag", value);
1435 }
1436
1437 function setBoardRotation(value) {
1438 boardRotation = value * 5;
1439 writeStorage("boardRotation", boardRotation);
1440 document.getElementById("rotationDegree").textContent = boardRotation;
1441 resizeAll();
1442 }
1443
1444 function initRender() {
1445 allcanvas = {
1446 front: {
1447 transform: {
1448 x: 0,
1449 y: 0,
1450 s: 1,
1451 panx: 0,
1452 pany: 0,
1453 zoom: 1,
1454 mousestartx: 0,
1455 mousestarty: 0,
1456 mousedown: false,
1457 },
1458 bg: document.getElementById("F_bg"),
1459 silk: document.getElementById("F_slk"),
1460 highlight: document.getElementById("F_hl"),
1461 layer: "F",
1462 },
1463 back: {
1464 transform: {
1465 x: 0,
1466 y: 0,
1467 s: 1,
1468 panx: 0,
1469 pany: 0,
1470 zoom: 1,
1471 mousestartx: 0,
1472 mousestarty: 0,
1473 mousedown: false,
1474 },
1475 bg: document.getElementById("B_bg"),
1476 silk: document.getElementById("B_slk"),
1477 highlight: document.getElementById("B_hl"),
1478 layer: "B",
1479 }
1480 };
1481 addMouseHandlers(document.getElementById("frontcanvas"), allcanvas.front);
1482 addMouseHandlers(document.getElementById("backcanvas"), allcanvas.back);
1483 }
1484
1485 ///////////////////////////////////////////////
1486
1487 ///////////////////////////////////////////////
1488 /* DOM manipulation and misc code */
1489
1490 var bomsplit;
1491 var canvassplit;
1492 var canvaslayout = "default";
1493 var bomlayout = "default";
1494 var bomSortFunction = null;
1495 var currentSortColumn = null;
1496 var currentSortOrder = null;
1497 var currentHighlightedRowId;
1498 var highlightHandlers = [];
1499 var highlightedModules = [];
1500 var checkboxes = [];
1501 var bomCheckboxes = "";
1502 var highlightpin1 = false;
1503 var lastClicked;
1504
1505 function dbg(html) {
1506 dbgdiv.innerHTML = html;
1507 }
1508
1509 function setDarkMode(value) {
1510 if (value) {
1511 topmostdiv.classList.add("dark");
1512 } else {
1513 topmostdiv.classList.remove("dark");
1514 }
1515 writeStorage("darkmode", value);
1516 redrawCanvas(allcanvas.front);
1517 redrawCanvas(allcanvas.back);
1518 }
1519
1520 function setHighlightPin1(value) {
1521 writeStorage("highlightpin1", value);
1522 highlightpin1 = value;
1523 redrawCanvas(allcanvas.front);
1524 redrawCanvas(allcanvas.back);
1525 }
1526
1527 function getStoredCheckboxRefs(checkbox) {
1528 function convert(ref) {
1529 var intref = parseInt(ref);
1530 if (isNaN(intref)) {
1531 for (var i = 0; i < pcbdata.modules.length; i++) {
1532 if (pcbdata.modules[i].ref == ref) {
1533 return i;
1534 }
1535 }
1536 return -1;
1537 } else {
1538 return intref;
1539 }
1540 }
1541 var existingRefs = readStorage("checkbox_" + checkbox);
1542 if (!existingRefs) {
1543 return new Set();
1544 } else {
1545 return new Set(existingRefs.split(",").map(r => convert(r)));
1546 }
1547 }
1548
1549 function getCheckboxState(checkbox, references) {
1550 var storedRefsSet = getStoredCheckboxRefs(checkbox);
1551 var currentRefsSet = new Set(references.map(r => r[1]));
1552 // Get difference of current - stored
1553 var difference = new Set(currentRefsSet);
1554 for (ref of storedRefsSet) {
1555 difference.delete(ref);
1556 }
1557 if (difference.size == 0) {
1558 // All the current refs are stored
1559 return "checked";
1560 } else if (difference.size == currentRefsSet.size) {
1561 // None of the current refs are stored
1562 return "unchecked";
1563 } else {
1564 // Some of the refs are stored
1565 return "indeterminate";
1566 }
1567 }
1568
1569 function setBomCheckboxState(checkbox, element, references) {
1570 var state = getCheckboxState(checkbox, references);
1571 element.checked = (state == "checked");
1572 element.indeterminate = (state == "indeterminate");
1573 }
1574
1575 function createCheckboxChangeHandler(checkbox, references) {
1576 return function() {
1577 refsSet = getStoredCheckboxRefs(checkbox);
1578 if (this.checked) {
1579 // checkbox ticked
1580 for (var ref of references) {
1581 refsSet.add(ref[1]);
1582 }
1583 } else {
1584 // checkbox unticked
1585 for (var ref of references) {
1586 refsSet.delete(ref[1]);
1587 }
1588 }
1589 writeStorage("checkbox_" + checkbox, [...refsSet].join(","));
1590 }
1591 }
1592
1593 function createRowHighlightHandler(rowid, refs) {
1594 return function() {
1595 if (currentHighlightedRowId) {
1596 if (currentHighlightedRowId == rowid) {
1597 return;
1598 }
1599 document.getElementById(currentHighlightedRowId).classList.remove("highlighted");
1600 }
1601 document.getElementById(rowid).classList.add("highlighted");
1602 currentHighlightedRowId = rowid;
1603 highlightedModules = refs.map(r => r[1]);
1604 drawHighlights();
1605 }
1606 }
1607
1608 function entryMatches(entry) {
1609 // check refs
1610 for (var ref of entry[3]) {
1611 if (ref[0].toLowerCase().indexOf(filter) >= 0) {
1612 return true;
1613 }
1614 }
1615 // check value
1616 if (entry[1].toLowerCase().indexOf(filter) >= 0) {
1617 return true;
1618 }
1619 // check footprint
1620 if (entry[2].toLowerCase().indexOf(filter) >= 0) {
1621 return true;
1622 }
1623 return false;
1624 }
1625
1626 function findRefInEntry(entry) {
1627 return entry[3].filter(r => r[0].toLowerCase() == reflookup);
1628 }
1629
1630 function highlightFilter(s) {
1631 if (!filter) {
1632 return s;
1633 }
1634 var parts = s.toLowerCase().split(filter);
1635 if (parts.length == 1) {
1636 return s;
1637 }
1638 var r = "";
1639 var pos = 0;
1640 for (var i in parts) {
1641 if (i > 0) {
1642 r += '<mark class="highlight">' +
1643 s.substring(pos, pos + filter.length) +
1644 '</mark>';
1645 pos += filter.length;
1646 }
1647 r += s.substring(pos, pos + parts[i].length);
1648 pos += parts[i].length;
1649 }
1650 return r;
1651 }
1652
1653 function checkboxSetUnsetAllHandler(checkboxname) {
1654 return function() {
1655 var checkboxnum = 0;
1656 while (checkboxnum < checkboxes.length &&
1657 checkboxes[checkboxnum].toLowerCase() != checkboxname.toLowerCase()) {
1658 checkboxnum++;
1659 }
1660 if (checkboxnum >= checkboxes.length) {
1661 return;
1662 }
1663 var allset = true;
1664 var checkbox;
1665 var row;
1666 for (row of bombody.childNodes) {
1667 checkbox = row.childNodes[checkboxnum + 1].childNodes[0];
1668 if (!checkbox.checked || checkbox.indeterminate) {
1669 allset = false;
1670 break;
1671 }
1672 }
1673 for (row of bombody.childNodes) {
1674 checkbox = row.childNodes[checkboxnum + 1].childNodes[0];
1675 checkbox.checked = !allset;
1676 checkbox.indeterminate = false;
1677 checkbox.onchange();
1678 }
1679 }
1680 }
1681
1682 function createColumnHeader(name, cls, comparator) {
1683 var th = document.createElement("TH");
1684 th.innerHTML = name;
1685 th.classList.add(cls);
1686 th.style.cursor = "pointer";
1687 var span = document.createElement("SPAN");
1688 span.classList.add("sortmark");
1689 span.classList.add("none");
1690 th.appendChild(span);
1691 th.onclick = function() {
1692 if (currentSortColumn && this !== currentSortColumn) {
1693 // Currently sorted by another column
1694 currentSortColumn.childNodes[1].classList.remove(currentSortOrder);
1695 currentSortColumn.childNodes[1].classList.add("none");
1696 currentSortColumn = null;
1697 currentSortOrder = null;
1698 }
1699 if (currentSortColumn && this === currentSortColumn) {
1700 // Already sorted by this column
1701 if (currentSortOrder == "asc") {
1702 // Sort by this column, descending order
1703 bomSortFunction = function(a, b) {
1704 return -comparator(a, b);
1705 }
1706 currentSortColumn.childNodes[1].classList.remove("asc");
1707 currentSortColumn.childNodes[1].classList.add("desc");
1708 currentSortOrder = "desc";
1709 } else {
1710 // Unsort
1711 bomSortFunction = null;
1712 currentSortColumn.childNodes[1].classList.remove("desc");
1713 currentSortColumn.childNodes[1].classList.add("none");
1714 currentSortColumn = null;
1715 currentSortOrder = null;
1716 }
1717 } else {
1718 // Sort by this column, ascending order
1719 bomSortFunction = comparator;
1720 currentSortColumn = this;
1721 currentSortColumn.childNodes[1].classList.remove("none");
1722 currentSortColumn.childNodes[1].classList.add("asc");
1723 currentSortOrder = "asc";
1724 }
1725 populateBomBody();
1726 }
1727 return th;
1728 }
1729
1730 function populateBomHeader() {
1731 while (bomhead.firstChild) {
1732 bomhead.removeChild(bomhead.firstChild);
1733 }
1734 var tr = document.createElement("TR");
1735 var th = document.createElement("TH");
1736 th.classList.add("numCol");
1737 tr.appendChild(th);
1738 checkboxes = bomCheckboxes.split(",").filter((e) => e);
1739 var checkboxCompareClosure = function(checkbox) {
1740 return (a, b) => {
1741 var stateA = getCheckboxState(checkbox, a[3]);
1742 var stateB = getCheckboxState(checkbox, b[3]);
1743 if (stateA > stateB) return -1;
1744 if (stateA < stateB) return 1;
1745 return 0;
1746 }
1747 }
1748 for (var checkbox of checkboxes) {
1749 th = createColumnHeader(
1750 checkbox, "bom-checkbox", checkboxCompareClosure(checkbox));
1751 th.onclick = fancyDblClickHandler(
1752 th, th.onclick.bind(th), checkboxSetUnsetAllHandler(checkbox));
1753 tr.appendChild(th);
1754 }
1755 tr.appendChild(createColumnHeader("References", "References", (a, b) => {
1756 var i = 0;
1757 while (i < a[3].length && i < b[3].length) {
1758 if (a[3][i] != b[3][i]) return a[3][i] > b[3][i] ? 1 : -1;
1759 i++;
1760 }
1761 return a[3].length - b[3].length;
1762 }));
1763 // Extra fields
1764 if (config.extra_fields.length > 0) {
1765 var extraFieldCompareClosure = function(fieldIndex) {
1766 return (a, b) => {
1767 var fa = a[4][fieldIndex];
1768 var fb = b[4][fieldIndex];
1769 if (fa != fb) return fa > fb ? 1 : -1;
1770 else return 0;
1771 }
1772 }
1773 for (var i in config.extra_fields) {
1774 tr.appendChild(createColumnHeader(
1775 config.extra_fields[i], "extra", extraFieldCompareClosure(i)));
1776 }
1777 }
1778 tr.appendChild(createColumnHeader("Value", "Value", (a, b) => {
1779 return valueCompare(a[5], b[5], a[1], b[1]);
1780 }));
1781 tr.appendChild(createColumnHeader("Footprint", "Footprint", (a, b) => {
1782 if (a[2] != b[2]) return a[2] > b[2] ? 1 : -1;
1783 else return 0;
1784 }));
1785 tr.appendChild(createColumnHeader("Quantity", "Quantity", (a, b) => {
1786 return a[3].length - b[3].length;
1787 }));
1788 bomhead.appendChild(tr);
1789 }
1790
1791 function populateBomBody() {
1792 while (bom.firstChild) {
1793 bom.removeChild(bom.firstChild);
1794 }
1795 highlightHandlers = [];
1796 currentHighlightedRowId = null;
1797 var first = true;
1798 switch (canvaslayout) {
1799 case 'F':
1800 bomtable = pcbdata.bom.F;
1801 break;
1802 case 'FB':
1803 bomtable = pcbdata.bom.both;
1804 break;
1805 case 'B':
1806 bomtable = pcbdata.bom.B;
1807 break;
1808 }
1809 if (bomSortFunction) {
1810 bomtable = bomtable.slice().sort(bomSortFunction);
1811 }
1812 for (var i in bomtable) {
1813 var bomentry = bomtable[i];
1814 if (filter && !entryMatches(bomentry)) {
1815 continue;
1816 }
1817 var references = bomentry[3];
1818 if (reflookup) {
1819 references = findRefInEntry(bomentry);
1820 if (references.length == 0) {
1821 continue;
1822 }
1823 }
1824 var tr = document.createElement("TR");
1825 var td = document.createElement("TD");
1826 var rownum = +i + 1;
1827 tr.id = "bomrow" + rownum;
1828 td.textContent = rownum;
1829 tr.appendChild(td);
1830 // Checkboxes
1831 for (var checkbox of checkboxes) {
1832 if (checkbox) {
1833 td = document.createElement("TD");
1834 var input = document.createElement("input");
1835 input.type = "checkbox";
1836 input.onchange = createCheckboxChangeHandler(checkbox, references);
1837 setBomCheckboxState(checkbox, input, references);
1838 td.appendChild(input);
1839 tr.appendChild(td);
1840 }
1841 }
1842 // References
1843 td = document.createElement("TD");
1844 td.innerHTML = highlightFilter(references.map(r => r[0]).join(", "));
1845 tr.appendChild(td);
1846 // Extra fields
1847 for (var i in config.extra_fields) {
1848 td = document.createElement("TD");
1849 td.innerHTML = highlightFilter(bomentry[4][i]);
1850 tr.appendChild(td);
1851 }
1852 // Value
1853 td = document.createElement("TD");
1854 td.innerHTML = highlightFilter(bomentry[1]);
1855 tr.appendChild(td);
1856 // Footprint
1857 td = document.createElement("TD");
1858 td.innerHTML = highlightFilter(bomentry[2]);
1859 tr.appendChild(td);
1860 // Quantity
1861 td = document.createElement("TD");
1862 td.textContent = bomentry[3].length;
1863 tr.appendChild(td);
1864 bom.appendChild(tr);
1865 var handler = createRowHighlightHandler(tr.id, references);
1866 tr.onmousemove = handler;
1867 highlightHandlers.push({
1868 id: tr.id,
1869 handler: handler,
1870 refs: references
1871 });
1872 if ((filter || reflookup) && first) {
1873 handler();
1874 first = false;
1875 }
1876 }
1877 }
1878
1879 function highlightPreviousRow() {
1880 if (!currentHighlightedRowId) {
1881 highlightHandlers[highlightHandlers.length - 1].handler();
1882 } else {
1883 if (highlightHandlers.length > 1 &&
1884 highlightHandlers[0].id == currentHighlightedRowId) {
1885 highlightHandlers[highlightHandlers.length - 1].handler();
1886 } else {
1887 for (var i = 0; i < highlightHandlers.length - 1; i++) {
1888 if (highlightHandlers[i + 1].id == currentHighlightedRowId) {
1889 highlightHandlers[i].handler();
1890 break;
1891 }
1892 }
1893 }
1894 }
1895 smoothScrollToRow(currentHighlightedRowId);
1896 }
1897
1898 function highlightNextRow() {
1899 if (!currentHighlightedRowId) {
1900 highlightHandlers[0].handler();
1901 } else {
1902 if (highlightHandlers.length > 1 &&
1903 highlightHandlers[highlightHandlers.length - 1].id == currentHighlightedRowId) {
1904 highlightHandlers[0].handler();
1905 } else {
1906 for (var i = 1; i < highlightHandlers.length; i++) {
1907 if (highlightHandlers[i - 1].id == currentHighlightedRowId) {
1908 highlightHandlers[i].handler();
1909 break;
1910 }
1911 }
1912 }
1913 }
1914 smoothScrollToRow(currentHighlightedRowId);
1915 }
1916
1917 function populateBomTable() {
1918 populateBomHeader();
1919 populateBomBody();
1920 }
1921
1922 function modulesClicked(moduleIndexes) {
1923 var lastClickedIndex = moduleIndexes.indexOf(lastClicked);
1924 var index = moduleIndexes[(lastClickedIndex + 1) % moduleIndexes.length];
1925 for (var handler of highlightHandlers) {
1926 if (handler.refs.map(r => r[1]).indexOf(index) >= 0) {
1927 lastClicked = index;
1928 handler.handler();
1929 smoothScrollToRow(currentHighlightedRowId);
1930 break;
1931 }
1932 }
1933 }
1934
1935 function updateFilter(input) {
1936 filter = input.toLowerCase();
1937 populateBomTable();
1938 }
1939
1940 function updateRefLookup(input) {
1941 reflookup = input.toLowerCase();
1942 populateBomTable();
1943 }
1944
1945 function silkscreenVisible(visible) {
1946 if (visible) {
1947 allcanvas.front.silk.style.display = "";
1948 allcanvas.back.silk.style.display = "";
1949 writeStorage("silkscreenVisible", true);
1950 } else {
1951 allcanvas.front.silk.style.display = "none";
1952 allcanvas.back.silk.style.display = "none";
1953 writeStorage("silkscreenVisible", false);
1954 }
1955 }
1956
1957 function changeCanvasLayout(layout) {
1958 document.getElementById("fl-btn").classList.remove("depressed");
1959 document.getElementById("fb-btn").classList.remove("depressed");
1960 document.getElementById("bl-btn").classList.remove("depressed");
1961 switch (layout) {
1962 case 'F':
1963 document.getElementById("fl-btn").classList.add("depressed");
1964 if (bomlayout != "bom-only") {
1965 canvassplit.collapse(1);
1966 }
1967 break;
1968 case 'B':
1969 document.getElementById("bl-btn").classList.add("depressed");
1970 if (bomlayout != "bom-only") {
1971 canvassplit.collapse(0);
1972 }
1973 break;
1974 default:
1975 document.getElementById("fb-btn").classList.add("depressed");
1976 if (bomlayout != "bom-only") {
1977 canvassplit.setSizes([50, 50]);
1978 }
1979 }
1980 canvaslayout = layout;
1981 writeStorage("canvaslayout", layout);
1982 resizeAll();
1983 populateBomTable();
1984 }
1985
1986 function populateMetadata() {
1987 document.getElementById("title").innerHTML = pcbdata.metadata.title;
1988 document.getElementById("revision").innerHTML = "Rev: " + pcbdata.metadata.revision;
1989 document.getElementById("company").innerHTML = pcbdata.metadata.company;
1990 document.getElementById("filedate").innerHTML = pcbdata.metadata.date;
1991 if (pcbdata.metadata.title != "") {
1992 document.title = pcbdata.metadata.title + " BOM";
1993 }
1994 }
1995
1996 function changeBomLayout(layout) {
1997 document.getElementById("bom-btn").classList.remove("depressed");
1998 document.getElementById("lr-btn").classList.remove("depressed");
1999 document.getElementById("tb-btn").classList.remove("depressed");
2000 switch (layout) {
2001 case 'bom-only':
2002 document.getElementById("bom-btn").classList.add("depressed");
2003 if (bomsplit) {
2004 bomsplit.destroy();
2005 bomsplit = null;
2006 canvassplit.destroy();
2007 canvassplit = null;
2008 }
2009 document.getElementById("frontcanvas").style.display = "none";
2010 document.getElementById("backcanvas").style.display = "none";
2011 document.getElementById("bot").style.height = "";
2012 break;
2013 case 'top-bottom':
2014 document.getElementById("tb-btn").classList.add("depressed");
2015 document.getElementById("frontcanvas").style.display = "";
2016 document.getElementById("backcanvas").style.display = "";
2017 document.getElementById("bot").style.height = "calc(100% - 80px)";
2018 document.getElementById("bomdiv").classList.remove("split-horizontal");
2019 document.getElementById("canvasdiv").classList.remove("split-horizontal");
2020 document.getElementById("frontcanvas").classList.add("split-horizontal");
2021 document.getElementById("backcanvas").classList.add("split-horizontal");
2022 if (bomsplit) {
2023 bomsplit.destroy();
2024 bomsplit = null;
2025 canvassplit.destroy();
2026 canvassplit = null;
2027 }
2028 bomsplit = Split(['#bomdiv', '#canvasdiv'], {
2029 sizes: [50, 50],
2030 onDragEnd: resizeAll,
2031 direction: "vertical",
2032 gutterSize: 5
2033 });
2034 canvassplit = Split(['#frontcanvas', '#backcanvas'], {
2035 sizes: [50, 50],
2036 gutterSize: 5,
2037 onDragEnd: resizeAll
2038 });
2039 break;
2040 case 'left-right':
2041 document.getElementById("lr-btn").classList.add("depressed");
2042 document.getElementById("frontcanvas").style.display = "";
2043 document.getElementById("backcanvas").style.display = "";
2044 document.getElementById("bot").style.height = "calc(100% - 80px)";
2045 document.getElementById("bomdiv").classList.add("split-horizontal");
2046 document.getElementById("canvasdiv").classList.add("split-horizontal");
2047 document.getElementById("frontcanvas").classList.remove("split-horizontal");
2048 document.getElementById("backcanvas").classList.remove("split-horizontal");
2049 if (bomsplit) {
2050 bomsplit.destroy();
2051 bomsplit = null;
2052 canvassplit.destroy();
2053 canvassplit = null;
2054 }
2055 bomsplit = Split(['#bomdiv', '#canvasdiv'], {
2056 sizes: [50, 50],
2057 onDragEnd: resizeAll,
2058 gutterSize: 5
2059 });
2060 canvassplit = Split(['#frontcanvas', '#backcanvas'], {
2061 sizes: [50, 50],
2062 gutterSize: 5,
2063 direction: "vertical",
2064 onDragEnd: resizeAll
2065 });
2066 }
2067 bomlayout = layout;
2068 writeStorage("bomlayout", layout);
2069 changeCanvasLayout(canvaslayout);
2070 }
2071
2072 function focusFilterField() {
2073 focusInputField(document.getElementById("filter"));
2074 }
2075
2076 function focusRefLookupField() {
2077 focusInputField(document.getElementById("reflookup"));
2078 }
2079
2080 function toggleBomCheckbox(bomrowid, checkboxnum) {
2081 if (!bomrowid || checkboxnum > checkboxes.length) {
2082 return;
2083 }
2084 var bomrow = document.getElementById(bomrowid);
2085 var checkbox = bomrow.childNodes[checkboxnum].childNodes[0];
2086 checkbox.checked = !checkbox.checked;
2087 checkbox.indeterminate = false;
2088 checkbox.onchange();
2089 }
2090
2091 function checkBomCheckbox(bomrowid, checkboxname) {
2092 var checkboxnum = 0;
2093 while (checkboxnum < checkboxes.length &&
2094 checkboxes[checkboxnum].toLowerCase() != checkboxname.toLowerCase()) {
2095 checkboxnum++;
2096 }
2097 if (!bomrowid || checkboxnum >= checkboxes.length) {
2098 return;
2099 }
2100 var bomrow = document.getElementById(bomrowid);
2101 var checkbox = bomrow.childNodes[checkboxnum + 1].childNodes[0];
2102 checkbox.checked = true;
2103 checkbox.indeterminate = false;
2104 checkbox.onchange();
2105 }
2106
2107 function setBomCheckboxes(value) {
2108 bomCheckboxes = value;
2109 writeStorage("bomCheckboxes", value);
2110 populateBomTable();
2111 }
2112
2113 document.onkeydown = function(e) {
2114 switch (e.key) {
2115 case "n":
2116 if (document.activeElement.type == "text") {
2117 return;
2118 }
2119 if (currentHighlightedRowId !== null) {
2120 checkBomCheckbox(currentHighlightedRowId, "placed");
2121 highlightNextRow();
2122 e.preventDefault();
2123 }
2124 break;
2125 case "ArrowUp":
2126 highlightPreviousRow();
2127 e.preventDefault();
2128 break;
2129 case "ArrowDown":
2130 highlightNextRow();
2131 e.preventDefault();
2132 break;
2133 default:
2134 break;
2135 }
2136 if (e.altKey) {
2137 switch (e.key) {
2138 case "f":
2139 focusFilterField();
2140 e.preventDefault();
2141 break;
2142 case "r":
2143 focusRefLookupField();
2144 e.preventDefault();
2145 break;
2146 case "z":
2147 changeBomLayout("bom-only");
2148 e.preventDefault();
2149 break;
2150 case "x":
2151 changeBomLayout("left-right");
2152 e.preventDefault();
2153 break;
2154 case "c":
2155 changeBomLayout("top-bottom");
2156 e.preventDefault();
2157 break;
2158 case "v":
2159 changeCanvasLayout("F");
2160 e.preventDefault();
2161 break;
2162 case "b":
2163 changeCanvasLayout("FB");
2164 e.preventDefault();
2165 break;
2166 case "n":
2167 changeCanvasLayout("B");
2168 e.preventDefault();
2169 break;
2170 default:
2171 break;
2172 }
2173 if (e.key >= '1' && e.key <= '9') {
2174 toggleBomCheckbox(currentHighlightedRowId, parseInt(e.key));
2175 }
2176 }
2177 }
2178
2179 function initDefaults() {
2180 bomlayout = readStorage("bomlayout");
2181 if (bomlayout === null) {
2182 bomlayout = config.bom_view;
2183 }
2184 if (!['bom-only', 'left-right', 'top-bottom'].includes(bomlayout)) {
2185 bomlayout = config.bom_view;
2186 }
2187 canvaslayout = readStorage("canvaslayout");
2188 if (canvaslayout === null) {
2189 canvaslayout = config.layer_view;
2190 }
2191 bomCheckboxes = readStorage("bomCheckboxes");
2192 if (bomCheckboxes === null) {
2193 bomCheckboxes = config.checkboxes;
2194 }
2195 document.getElementById("bomCheckboxes").value = bomCheckboxes;
2196
2197 var b = readStorage("silkscreenVisible");
2198 if (b === null) {
2199 b = config.show_silkscreen;
2200 }
2201 document.getElementById("silkscreenCheckbox").checked = b;
2202 silkscreenVisible(b);
2203
2204 b = readStorage("redrawOnDrag");
2205 if (b === null) {
2206 b = config.redraw_on_drag;
2207 }
2208 document.getElementById("dragCheckbox").checked = b;
2209 setRedrawOnDrag(b);
2210
2211 b = readStorage("darkmode");
2212 if (b === null) {
2213 b = config.dark_mode;
2214 }
2215 document.getElementById("darkmodeCheckbox").checked = b;
2216 setDarkMode(b);
2217
2218 b = readStorage("highlightpin1");
2219 if (b === null) {
2220 b = config.highlight_pin1;
2221 }
2222 document.getElementById("highlightpin1Checkbox").checked = b;
2223 setHighlightPin1(b);
2224
2225 boardRotation = readStorage("boardRotation");
2226 if (boardRotation === null) {
2227 boardRotation = config.board_rotation * 5;
2228 } else {
2229 boardRotation = parseInt(boardRotation);
2230 }
2231 document.getElementById("boardRotation").value = boardRotation / 5;
2232 document.getElementById("rotationDegree").textContent = boardRotation;
2233 }
2234
2235 window.onload = function(e) {
2236 initUtils();
2237 initRender();
2238 initStorage();
2239 initDefaults();
2240 cleanGutters();
2241 populateMetadata();
2242 dbgdiv = document.getElementById("dbg");
2243 bom = document.getElementById("bombody");
2244 bomhead = document.getElementById("bomhead");
2245 filter = "";
2246 reflookup = "";
2247 // Triggers render
2248 changeBomLayout(bomlayout);
2249 }
2250
2251 window.onresize = resizeAll;
2252 window.matchMedia("print").addListener(resizeAll);
2253
2254 ///////////////////////////////////////////////
2255
2256 </script>
2257 </head>
2258
2259 <body>
2260 <div id="topmostdiv" style="width: 100%; height: 100%">
2261 <div id="top">
2262 <div style="float: right;">
2263 <div class="hideonprint menu" style="float: right; margin: 10px; top: 8px;">
2264 <button class="menubtn"></button>
2265 <div class="menu-content">
2266 <label class="menu-label menu-label-top">
2267 <input id="darkmodeCheckbox" type="checkbox" onchange="setDarkMode(this.checked)">
2268 Dark mode
2269 </label>
2270 <label class="menu-label">
2271 <input id="silkscreenCheckbox" type="checkbox" checked onchange="silkscreenVisible(this.checked)">
2272 Show silkscreen
2273 </label>
2274 <label class="menu-label">
2275 <input id="highlightpin1Checkbox" type="checkbox" onchange="setHighlightPin1(this.checked)">
2276 Highlight first pin
2277 </label>
2278 <label class="menu-label">
2279 <input id="dragCheckbox" type="checkbox" checked onchange="setRedrawOnDrag(this.checked)">
2280 Continuous redraw on drag
2281 </label>
2282 <label class="menu-label">
2283 <span>Board rotation</span>
2284 <span style="float: right"><span id="rotationDegree">0</span>&#176;</span>
2285 <input id="boardRotation" type="range" min="-36" max="36" value="0" class="slider" oninput="setBoardRotation(this.value)">
2286 </label>
2287 <label class="menu-label">
2288 <div style="margin-left: 5px">Bom checkboxes</div>
2289 <input id="bomCheckboxes" class="menu-textbox" type=text
2290 oninput="setBomCheckboxes(this.value)">
2291 </label>
2292 <label class="menu-label">
2293 <span class="shameless-plug">
2294 <span>Created using</span>
2295 <a target="blank" href="https://github.com/openscopeproject/InteractiveHtmlBom">InteractiveHtmlBom</a>
2296 </span>
2297 </label>
2298 </div>
2299 </div>
2300 <div class="button-container hideonprint"
2301 style="float: right; margin: 10px; position: relative; top: 8px">
2302 <button id="fl-btn" class="left-most-button" onclick="changeCanvasLayout('F')"
2303 title="Front only">F
2304 </button>
2305 <button id="fb-btn" class="middle-button" onclick="changeCanvasLayout('FB')"
2306 title="Front and Back">FB
2307 </button>
2308 <button id="bl-btn" class="right-most-button" onclick="changeCanvasLayout('B')"
2309 title="Back only">B
2310 </button>
2311 </div>
2312 <div class="button-container hideonprint"
2313 style="float: right; margin: 10px; position: relative; top: 8px">
2314 <button id="bom-btn" class="left-most-button" onclick="changeBomLayout('bom-only')"
2315 title="BOM only"></button>
2316 <button id="lr-btn" class="middle-button" onclick="changeBomLayout('left-right')"
2317 title="BOM left, drawings right"></button>
2318 <button id="tb-btn" class="right-most-button" onclick="changeBomLayout('top-bottom')"
2319 title="BOM top, drawings bot"></button>
2320 </div>
2321 </div>
2322 <div id="fileinfodiv" style="overflow: auto;">
2323 <table class="fileinfo">
2324 <tbody>
2325 <tr>
2326 <td id="title" class="title" style="width: 70%">
2327 Title
2328 </td>
2329 <td id="revision" class="title" style="width: 30%">
2330 Revision
2331 </td>
2332 </tr>
2333 <tr>
2334 <td id="company">
2335 Kicad version
2336 </td>
2337 <td id="filedate">
2338 Date
2339 </td>
2340 </tr>
2341 </tbody>
2342 </table>
2343 </div>
2344 </div>
2345 <div id="bot" class="split" style="height: calc(100% - 80px)">
2346 <div id="bomdiv" class="split split-horizontal">
2347 <div style="width: 100%">
2348 <input id="reflookup" class="searchbox reflookup hideonprint" type="text" placeholder="Ref lookup"
2349 oninput="updateRefLookup(this.value)">
2350 <input id="filter" class="searchbox filter hideonprint" type="text" placeholder="Filter"
2351 oninput="updateFilter(this.value)">
2352 <div class="button-container hideonprint" style="float: left">
2353 <button id="copy" title="Copy bom table to clipboard"
2354 onclick="copyToClipboard()"></button>
2355 </div>
2356 </div>
2357 <div id="dbg"></div>
2358 <table class="bom">
2359 <thead id="bomhead">
2360 </thead>
2361 <tbody id="bombody">
2362 </tbody>
2363 </table>
2364 </div>
2365 <div id="canvasdiv" class="split split-horizontal">
2366 <div id="frontcanvas" class="split" style="overflow: hidden">
2367 <div style="position: relative; width: 100%; height: 100%;">
2368 <canvas id="F_bg" style="position: absolute; left: 0; top: 0; z-index: 0;"></canvas>
2369 <canvas id="F_slk" style="position: absolute; left: 0; top: 0; z-index: 1;"></canvas>
2370 <canvas id="F_hl" style="position: absolute; left: 0; top: 0; z-index: 2;"></canvas>
2371 </div>
2372 </div>
2373 <div id="backcanvas" class="split" style="overflow: hidden">
2374 <div style="position: relative; width: 100%; height: 100%;">
2375 <canvas id="B_bg" style="position: absolute; left: 0; top: 0; z-index: 0;"></canvas>
2376 <canvas id="B_slk" style="position: absolute; left: 0; top: 0; z-index: 1;"></canvas>
2377 <canvas id="B_hl" style="position: absolute; left: 0; top: 0; z-index: 2;"></canvas>
2378 </div>
2379 </div>
2380 </div>
2381 </div>
2382 </div>
2383 </body>
2384
2385 </html>