diff options
Diffstat (limited to 'switches/bom/ibom.html')
-rw-r--r-- | switches/bom/ibom.html | 2388 |
1 files changed, 2388 insertions, 0 deletions
diff --git a/switches/bom/ibom.html b/switches/bom/ibom.html new file mode 100644 index 0000000..e9a5c02 --- /dev/null +++ b/switches/bom/ibom.html @@ -0,0 +1,2388 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Interactive BOM for KiCAD</title> + <style type="text/css"> +:root { + --pcb-edge-color: black; + --pad-color: #878787; + --pad-color-highlight: #D04040; + --pin1-outline-color: #ffb629; + --pin1-outline-color-highlight: #b4ff03; +} + +html, body { + margin: 0px; + height: 100%; + font-family: Verdana, sans-serif; +} + +.dark { + --pcb-edge-color: #eee; + --pad-color: #808080; + --pin1-outline-color: #ffa800; + --pin1-outline-color-highlight: #ccff00; + background-color: #252c30; + color: #eee; +} + +button { + background-color: #eee; + border: 1px solid #888; + color: black; + height: 44px; + width: 44px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 14px; + font-weight: bolder; +} + +.dark button { + /* This will be inverted */ + background-color: #c3b7b5; +} + +button.depressed { + background-color: #0a0; + color: white; +} + +.dark button.depressed { + /* This will be inverted */ + background-color: #b3b; +} + +button:focus { + outline: 0; +} + +button#tb-btn { + 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"); + background-size: 32px 32px; + background-position: 5px 5px; + background-repeat: no-repeat; +} + +button#lr-btn { + 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"); + background-size: 32px 32px; + background-position: 5px 5px; + background-repeat: no-repeat; +} + +button#bom-btn { + 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"); + background-size: 32px 32px; + background-position: 5px 5px; + background-repeat: no-repeat; +} + +button#copy { + 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"); + background-position: 6px 6px; + background-repeat: no-repeat; + background-size: 26px 26px; + border-radius: 6px; + height: 40px; + width: 40px; + margin: 10px 5px; +} + +button#copy:active { + box-shadow: inset 0px 0px 5px #6c6c6c; +} + +textarea.clipboard-temp { + position: fixed; + top: 0; + left: 0; + width: 2em; + height: 2em; + padding: 0; + border: None; + outline: None; + box-shadow: None; + background: transparent; +} + +.left-most-button { + border-right: 0; + border-top-left-radius: 6px; + border-bottom-left-radius: 6px; +} + +.middle-button { + border-right: 0; +} + +.right-most-button { + border-top-right-radius: 6px; + border-bottom-right-radius: 6px; +} + +.button-container { + font-size: 0; +} + +.dark .button-container { + filter: invert(1); +} + +@media print { + .hideonprint { + display: none; + } +} + +canvas { + cursor: crosshair; +} + +canvas:active { + cursor: grabbing; +} + +.fileinfo { + width: 100%; + max-width: 1000px; + border: none; + padding: 5px; +} + +.fileinfo .title { + font-size: 20pt; + font-weight: bold; +} + +.fileinfo td { + overflow: hidden; + white-space: nowrap; + max-width: 1px; + width: 50%; + text-overflow: ellipsis; +} + +.bom { + border-collapse: collapse; + font-family: Consolas, "DejaVu Sans Mono", Monaco, monospace; + font-size: 10pt; + table-layout: fixed; + width: 100%; + margin-top: 1px; +} + +.bom th, .bom td { + border: 1px solid black; + padding: 5px; + word-wrap: break-word; + text-align: center; + position: relative; +} + +.dark .bom th, .dark .bom td { + border: 1px solid #777; +} + +.bom th { + background-color: #CCCCCC; + background-clip: padding-box; +} + +.dark .bom th { + background-color: #3b4749; +} + +.bom tr.highlighted:nth-child(n) { + background-color: #cfc; +} + +.dark .bom tr.highlighted:nth-child(n) { + background-color: #226022; +} + +.bom tr:nth-child(even) { + background-color: #f2f2f2; +} + +.dark .bom tr:nth-child(even) { + background-color: #313b40; +} + +.bom tr { + transition: background-color 0.2s; +} + +.bom .numCol { + width: 25px; +} + +.bom .Description { + width: 10%; +} + +.bom .Part { + width: 10%; +} + +.bom .Value { + width: 15%; +} + +.bom .Quantity { + width: 65px; +} + +.bom th .sortmark { + position: absolute; + right: 1px; + top: 1px; + margin-top: -5px; + border-width: 5px; + border-style: solid; + border-color: transparent transparent #221 transparent; + transform-origin: 50% 85%; + transition: opacity 0.2s, transform 0.4s; +} + +.dark .bom th .sortmark { + filter: invert(1); +} + +.bom th .sortmark.none { + opacity: 0; +} + +.bom th .sortmark.desc { + transform: rotate(180deg); +} + +.bom th:hover .sortmark.none { + opacity: 0.5; +} + +.bom .bom-checkbox { + width: 30px; + position: relative; + user-select: none; + -moz-user-select: none; +} + +.bom .bom-checkbox:before { + content: ""; + position: absolute; + border-width: 15px; + border-style: solid; + border-color: #51829f transparent transparent transparent; + visibility: hidden; + top: -15px; +} + +.bom .bom-checkbox:after { + content: "Double click to set/unset all"; + position: absolute; + color: white; + top: -35px; + left: -26px; + background: #51829f; + padding: 5px 15px; + border-radius: 8px; + white-space: nowrap; + visibility: hidden; +} + +.bom .bom-checkbox:hover:before, .bom .bom-checkbox:hover:after { + visibility: visible; + transition: visibility 0.2s linear 1s; +} + +.split { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + overflow-y: auto; + overflow-x: hidden; + background-color: inherit; +} + +.split.split-horizontal, .gutter.gutter-horizontal { + height: 100%; + float: left; +} + +.gutter { + background-color: #ddd; + background-repeat: no-repeat; + background-position: 50%; + transition: background-color 0.3s; +} + +.dark .gutter { + background-color: #777; +} + +.gutter.gutter-horizontal { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg=='); + cursor: ew-resize; + width: 5px; +} + +.gutter.gutter-vertical { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII='); + cursor: ns-resize; + height: 5px; +} + +.searchbox { + float: left; + height: 40px; + margin: 10px 5px; + padding: 12px 32px; + font-family: Consolas, "DejaVu Sans Mono", Monaco, monospace; + font-size: 18px; + box-sizing: border-box; + border: 1px solid #888; + border-radius: 6px; + outline: none; + background-color: #eee; + transition: background-color 0.2s, border 0.2s; + 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=='); + background-position: 10px 10px; + background-repeat: no-repeat; +} + +.dark .searchbox { + background-color: #111; + color: #eee; +} + +.searchbox::placeholder { + color: #ccc; +} + +.dark .searchbox::placeholder { + color: #666; +} + +.filter { + width: calc(60% - 64px); +} + +.reflookup { + width: calc(40% - 10px); +} + +input[type=text]:focus { + background-color: white; + border: 1px solid #333; +} + +.dark input[type=text]:focus { + background-color: #333; + border: 1px solid #ccc; +} + +mark.highlight { + background-color: #5050ff; + color: #fff; + padding: 2px; + border-radius: 6px; +} + +.dark mark.highlight { + background-color: #76a6da; + color: #111; +} + +.menubtn { + background-color: white; + font-size: 16px; + border: none; + 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"); + background-position: center; + background-repeat: no-repeat; +} + +.dark .menubtn { + filter: invert(1); +} + +.menu { + position: relative; + display: inline-block; +} + +.menu-content { + display: none; + position: absolute; + background-color: white; + right: 0; + min-width: 300px; + box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); + z-index: 100; + padding: 8px; +} + +.dark .menu-content { + background-color: #111; +} + +.menu:hover .menu-content { + display: block; +} + +.menu:hover .menubtn { + background-color: #eee; +} + +.dark .menu:hover .menubtn {} + +.menu-label { + display: inline-block; + padding: 8px; + border: 1px solid #ccc; + border-top: 0; + width: calc(100% - 18px); +} + +.menu-label-top { + border-top: 1px solid #ccc; +} + +.menu-textbox { + float: left; + height: 24px; + margin: 10px 5px; + padding: 5px 5px; + font-family: Consolas, "DejaVu Sans Mono", Monaco, monospace; + font-size: 14px; + box-sizing: border-box; + border: 1px solid #888; + border-radius: 4px; + outline: none; + background-color: #eee; + transition: background-color 0.2s, border 0.2s; + width: calc(100% - 10px); +} + +.dark .menu-textbox { + background-color: #222; + color: #eee; +} + +#topmostdiv { + transition: background-color 0.3s; +} + +#top { + height: 78px; + border-bottom: 2px solid black; +} + +.dark #top { + border-bottom: 2px solid #ccc; +} + +#dbg { + display: block; +} + +::-webkit-scrollbar { + width: 8px; +} + +::-webkit-scrollbar-track { + background: #aaa; +} + +::-webkit-scrollbar-thumb { + background: #666; + border-radius: 3px; +} + +::-webkit-scrollbar-thumb:hover { + background: #555; +} + +.slider { + -webkit-appearance: none; + width: 100%; + margin: 3px 0; + padding: 0; + outline: none; + opacity: 0.7; + -webkit-transition: .2s; + transition: opacity .2s; + border-radius: 3px; +} + +.slider:hover { + opacity: 1; +} + +.slider:focus { + outline: none; +} + +.slider::-webkit-slider-runnable-track { + -webkit-appearance: none; + width: 100%; + height: 8px; + background: #d3d3d3; + border-radius: 3px; + border: none; +} + +.slider::-webkit-slider-thumb { + -webkit-appearance: none; + width: 15px; + height: 15px; + border-radius: 50%; + background: #0a0; + cursor: pointer; + margin-top: -4px; +} + +.dark .slider::-webkit-slider-thumb { + background: #3d3; +} + +.slider::-moz-range-thumb { + width: 15px; + height: 15px; + border-radius: 50%; + background: #0a0; + cursor: pointer; +} + +.slider::-moz-range-track { + height: 8px; + background: #d3d3d3; + border-radius: 3px; +} + +.dark .slider::-moz-range-thumb { + background: #3d3; +} + +.slider::-ms-track { + width: 100%; + height: 8px; + border-width: 3px 0; + background: transparent; + border-color: transparent; + color: transparent; + transition: opacity .2s; +} + +.slider::-ms-fill-lower { + background: #d3d3d3; + border: none; + border-radius: 3px; +} + +.slider::-ms-fill-upper { + background: #d3d3d3; + border: none; + border-radius: 3px; +} + +.slider::-ms-thumb { + width: 15px; + height: 15px; + border-radius: 50%; + background: #0a0; + cursor: pointer; + margin: 0; +} + +.shameless-plug { + font-size: 0.8em; + text-align: center; + display: block; +} + +.shameless-plug a { + color: #0278a4; +} + +.dark .shameless-plug a { + color: #00b9fd; +} + + </style> + <script type="text/javascript" > +/////////////////////////////////////////////// +/* + Split.js - v1.3.5 + MIT License + https://github.com/nathancahill/Split.js +*/ +!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}}}); + +/////////////////////////////////////////////// + +/////////////////////////////////////////////// +var config = {"redraw_on_drag": true, "highlight_pin1": false, "extra_fields": [], "dark_mode": false, "bom_view": "left-right", "board_rotation": 0.0, "checkboxes": "Sourced,Placed", "show_silkscreen": true, "layer_view": "FB"} +/////////////////////////////////////////////// + +/////////////////////////////////////////////// +var pcbdata = {"font_data": {"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}, "0": {"l": [[[0.42857142857142855, -1.0476190476190474], [0.5238095238095237, -1.0476190476190474], [0.6190476190476191, -1.0], [0.6666666666666666, -0.9523809523809523], [0.7142857142857142, -0.8571428571428571], [0.7619047619047619, -0.6666666666666666], [0.7619047619047619, -0.42857142857142855], [0.7142857142857142, -0.23809523809523808], [0.6666666666666666, -0.14285714285714285], [0.6190476190476191, -0.09523809523809523], [0.5238095238095237, -0.047619047619047616], [0.42857142857142855, -0.047619047619047616], [0.3333333333333333, -0.09523809523809523], [0.2857142857142857, -0.14285714285714285], [0.23809523809523808, -0.23809523809523808], [0.19047619047619047, -0.42857142857142855], [0.19047619047619047, -0.6666666666666666], [0.23809523809523808, -0.8571428571428571], [0.2857142857142857, -0.9523809523809523], [0.3333333333333333, -1.0], [0.42857142857142855, -1.0476190476190474]]], "w": 0.9523809523809523}, "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}, "C": {"l": [[[0.8095238095238095, -0.14285714285714285], [0.7619047619047619, -0.09523809523809523], [0.6190476190476191, -0.047619047619047616], [0.5238095238095237, -0.047619047619047616], [0.38095238095238093, -0.09523809523809523], [0.2857142857142857, -0.19047619047619047], [0.23809523809523808, -0.2857142857142857], [0.19047619047619047, -0.47619047619047616], [0.19047619047619047, -0.6190476190476191], [0.23809523809523808, -0.8095238095238095], [0.2857142857142857, -0.9047619047619047], [0.38095238095238093, -1.0], [0.5238095238095237, -1.0476190476190474], [0.6190476190476191, -1.0476190476190474], [0.7619047619047619, -1.0], [0.8095238095238095, -0.9523809523809523]]], "w": 1.0}, "B": {"l": [[[0.5714285714285714, -0.5714285714285714], [0.7142857142857142, -0.5238095238095237], [0.7619047619047619, -0.47619047619047616], [0.8095238095238094, -0.38095238095238093], [0.8095238095238094, -0.23809523809523808], [0.7619047619047619, -0.14285714285714285], [0.7142857142857142, -0.09523809523809523], [0.619047619047619, -0.047619047619047616], [0.23809523809523803, -0.047619047619047616], [0.23809523809523803, -1.0476190476190474], [0.5714285714285714, -1.0476190476190474], [0.6666666666666665, -1.0], [0.7142857142857142, -0.9523809523809523], [0.7619047619047619, -0.8571428571428571], [0.7619047619047619, -0.7619047619047619], [0.7142857142857142, -0.6666666666666666], [0.6666666666666665, -0.6190476190476191], [0.5714285714285714, -0.5714285714285714], [0.23809523809523803, -0.5714285714285714]]], "w": 1.0}, "E": {"l": [[[0.23809523809523808, -0.5714285714285714], [0.5714285714285714, -0.5714285714285714]], [[0.7142857142857142, -0.047619047619047616], [0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -1.0476190476190474], [0.7142857142857142, -1.0476190476190474]]], "w": 0.9047619047619047}, "D": {"l": [[[0.23809523809523803, -0.047619047619047616], [0.23809523809523803, -1.0476190476190474], [0.4761904761904761, -1.0476190476190474], [0.619047619047619, -1.0], [0.7142857142857142, -0.9047619047619047], [0.7619047619047619, -0.8095238095238095], [0.8095238095238094, -0.6190476190476191], [0.8095238095238094, -0.47619047619047616], [0.7619047619047619, -0.2857142857142857], [0.7142857142857142, -0.19047619047619047], [0.619047619047619, -0.09523809523809523], [0.4761904761904761, -0.047619047619047616], [0.23809523809523803, -0.047619047619047616]]], "w": 1.0}, "F": {"l": [[[0.5714285714285714, -0.5714285714285714], [0.23809523809523808, -0.5714285714285714]], [[0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -1.0476190476190474], [0.7142857142857142, -1.0476190476190474]]], "w": 0.8571428571428571}, "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": {"l": [[[0.7142857142857142, -0.047619047619047616], [0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -1.0476190476190474]]], "w": 0.8095238095238095}, "O": {"l": [[[0.4285714285714285, -1.0476190476190474], [0.619047619047619, -1.0476190476190474], [0.7142857142857142, -1.0], [0.8095238095238094, -0.9047619047619047], [0.857142857142857, -0.7142857142857142], [0.857142857142857, -0.38095238095238093], [0.8095238095238094, -0.19047619047619047], [0.7142857142857142, -0.09523809523809523], [0.619047619047619, -0.047619047619047616], [0.4285714285714285, -0.047619047619047616], [0.33333333333333326, -0.09523809523809523], [0.23809523809523803, -0.19047619047619047], [0.1904761904761904, -0.38095238095238093], [0.1904761904761904, -0.7142857142857142], [0.23809523809523803, -0.9047619047619047], [0.33333333333333326, -1.0], [0.4285714285714285, -1.0476190476190474]]], "w": 1.0476190476190474}, "Q": {"l": [[[0.9047619047619047, 0.047619047619047616], [0.8095238095238094, 0.0], [0.7142857142857142, -0.09523809523809523], [0.5714285714285714, -0.23809523809523808], [0.4761904761904761, -0.2857142857142857], [0.3809523809523809, -0.2857142857142857]], [[0.4285714285714285, -0.047619047619047616], [0.33333333333333326, -0.09523809523809523], [0.23809523809523803, -0.19047619047619047], [0.1904761904761904, -0.38095238095238093], [0.1904761904761904, -0.7142857142857142], [0.23809523809523803, -0.9047619047619047], [0.33333333333333326, -1.0], [0.4285714285714285, -1.0476190476190474], [0.619047619047619, -1.0476190476190474], [0.7142857142857142, -1.0], [0.8095238095238094, -0.9047619047619047], [0.857142857142857, -0.7142857142857142], [0.857142857142857, -0.38095238095238093], [0.8095238095238094, -0.19047619047619047], [0.7142857142857142, -0.09523809523809523], [0.619047619047619, -0.047619047619047616], [0.4285714285714285, -0.047619047619047616]]], "w": 1.0476190476190474}, "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}, "S": {"l": [[[0.19047619047619047, -0.09523809523809523], [0.3333333333333333, -0.047619047619047616], [0.5714285714285714, -0.047619047619047616], [0.6666666666666666, -0.09523809523809523], [0.7142857142857142, -0.14285714285714285], [0.7619047619047619, -0.23809523809523808], [0.7619047619047619, -0.3333333333333333], [0.7142857142857142, -0.42857142857142855], [0.6666666666666666, -0.47619047619047616], [0.5714285714285714, -0.5238095238095237], [0.38095238095238093, -0.5714285714285714], [0.2857142857142857, -0.6190476190476191], [0.23809523809523808, -0.6666666666666666], [0.19047619047619047, -0.7619047619047619], [0.19047619047619047, -0.8571428571428571], [0.23809523809523808, -0.9523809523809523], [0.2857142857142857, -1.0], [0.38095238095238093, -1.0476190476190474], [0.6190476190476191, -1.0476190476190474], [0.7619047619047619, -1.0]]], "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}, "a": {"l": [[[0.6666666666666666, -0.047619047619047616], [0.6666666666666666, -0.5714285714285714], [0.6190476190476191, -0.6666666666666666], [0.5238095238095237, -0.7142857142857142], [0.3333333333333333, -0.7142857142857142], [0.23809523809523808, -0.6666666666666666]], [[0.6666666666666666, -0.09523809523809523], [0.5714285714285714, -0.047619047619047616], [0.3333333333333333, -0.047619047619047616], [0.23809523809523808, -0.09523809523809523], [0.19047619047619047, -0.19047619047619047], [0.19047619047619047, -0.2857142857142857], [0.23809523809523808, -0.38095238095238093], [0.3333333333333333, -0.42857142857142855], [0.5714285714285714, -0.42857142857142855], [0.6666666666666666, -0.47619047619047616]]], "w": 0.9047619047619047}, "e": {"l": [[[0.6190476190476191, -0.09523809523809523], [0.5238095238095237, -0.047619047619047616], [0.3333333333333333, -0.047619047619047616], [0.23809523809523808, -0.09523809523809523], [0.19047619047619047, -0.19047619047619047], [0.19047619047619047, -0.5714285714285714], [0.23809523809523808, -0.6666666666666666], [0.3333333333333333, -0.7142857142857142], [0.5238095238095237, -0.7142857142857142], [0.6190476190476191, -0.6666666666666666], [0.6666666666666666, -0.5714285714285714], [0.6666666666666666, -0.47619047619047616], [0.19047619047619047, -0.38095238095238093]]], "w": 0.8571428571428571}, "d": {"l": [[[0.6666666666666666, -0.047619047619047616], [0.6666666666666666, -1.0476190476190474]], [[0.6666666666666666, -0.09523809523809523], [0.5714285714285714, -0.047619047619047616], [0.38095238095238093, -0.047619047619047616], [0.2857142857142857, -0.09523809523809523], [0.23809523809523808, -0.14285714285714285], [0.19047619047619047, -0.23809523809523808], [0.19047619047619047, -0.5238095238095237], [0.23809523809523808, -0.6190476190476191], [0.2857142857142857, -0.6666666666666666], [0.38095238095238093, -0.7142857142857142], [0.5714285714285714, -0.7142857142857142], [0.6666666666666666, -0.6666666666666666]]], "w": 0.9047619047619047}, "i": {"l": [[[0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -0.7142857142857142]], [[0.23809523809523808, -1.0476190476190474], [0.19047619047619047, -1.0], [0.23809523809523808, -0.9523809523809523], [0.2857142857142857, -1.0], [0.23809523809523808, -1.0476190476190474], [0.23809523809523808, -0.9523809523809523]]], "w": 0.47619047619047616}, "h": {"l": [[[0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -1.0476190476190474]], [[0.6666666666666666, -0.047619047619047616], [0.6666666666666666, -0.5714285714285714], [0.6190476190476191, -0.6666666666666666], [0.5238095238095237, -0.7142857142857142], [0.38095238095238093, -0.7142857142857142], [0.2857142857142857, -0.6666666666666666], [0.23809523809523808, -0.6190476190476191]]], "w": 0.9047619047619047}, "o": {"l": [[[0.38095238095238093, -0.047619047619047616], [0.2857142857142857, -0.09523809523809523], [0.23809523809523808, -0.14285714285714285], [0.19047619047619047, -0.23809523809523808], [0.19047619047619047, -0.5238095238095237], [0.23809523809523808, -0.6190476190476191], [0.2857142857142857, -0.6666666666666666], [0.38095238095238093, -0.7142857142857142], [0.5238095238095237, -0.7142857142857142], [0.6190476190476191, -0.6666666666666666], [0.6666666666666666, -0.6190476190476191], [0.7142857142857142, -0.5238095238095237], [0.7142857142857142, -0.23809523809523808], [0.6666666666666666, -0.14285714285714285], [0.6190476190476191, -0.09523809523809523], [0.5238095238095237, -0.047619047619047616], [0.38095238095238093, -0.047619047619047616]]], "w": 0.9047619047619047}, "n": {"l": [[[0.23809523809523808, -0.7142857142857142], [0.23809523809523808, -0.047619047619047616]], [[0.23809523809523808, -0.6190476190476191], [0.2857142857142857, -0.6666666666666666], [0.38095238095238093, -0.7142857142857142], [0.5238095238095237, -0.7142857142857142], [0.6190476190476191, -0.6666666666666666], [0.6666666666666666, -0.5714285714285714], [0.6666666666666666, -0.047619047619047616]]], "w": 0.9047619047619047}, "p": {"l": [[[0.23809523809523808, -0.7142857142857142], [0.23809523809523808, 0.2857142857142857]], [[0.23809523809523808, -0.6666666666666666], [0.3333333333333333, -0.7142857142857142], [0.5238095238095237, -0.7142857142857142], [0.6190476190476191, -0.6666666666666666], [0.6666666666666666, -0.6190476190476191], [0.7142857142857142, -0.5238095238095237], [0.7142857142857142, -0.23809523809523808], [0.6666666666666666, -0.14285714285714285], [0.6190476190476191, -0.09523809523809523], [0.5238095238095237, -0.047619047619047616], [0.3333333333333333, -0.047619047619047616], [0.23809523809523808, -0.09523809523809523]]], "w": 0.9047619047619047}, "s": {"l": [[[0.19047619047619047, -0.09523809523809523], [0.2857142857142857, -0.047619047619047616], [0.47619047619047616, -0.047619047619047616], [0.5714285714285714, -0.09523809523809523], [0.6190476190476191, -0.19047619047619047], [0.6190476190476191, -0.23809523809523808], [0.5714285714285714, -0.3333333333333333], [0.47619047619047616, -0.38095238095238093], [0.3333333333333333, -0.38095238095238093], [0.23809523809523808, -0.42857142857142855], [0.19047619047619047, -0.5238095238095237], [0.19047619047619047, -0.5714285714285714], [0.23809523809523808, -0.6666666666666666], [0.3333333333333333, -0.7142857142857142], [0.47619047619047616, -0.7142857142857142], [0.5714285714285714, -0.6666666666666666]]], "w": 0.8095238095238095}, "r": {"l": [[[0.23809523809523808, -0.047619047619047616], [0.23809523809523808, -0.7142857142857142]], [[0.23809523809523808, -0.5238095238095237], [0.2857142857142857, -0.6190476190476191], [0.3333333333333333, -0.6666666666666666], [0.42857142857142855, -0.7142857142857142], [0.5238095238095237, -0.7142857142857142]]], "w": 0.6190476190476191}, "t": {"l": [[[0.09523809523809523, -0.7142857142857142], [0.47619047619047616, -0.7142857142857142]], [[0.23809523809523808, -1.0476190476190474], [0.23809523809523808, -0.19047619047619047], [0.2857142857142857, -0.09523809523809523], [0.38095238095238093, -0.047619047619047616], [0.47619047619047616, -0.047619047619047616]]], "w": 0.5714285714285714}, "w": {"l": [[[0.1428571428571428, -0.7142857142857142], [0.33333333333333326, -0.047619047619047616], [0.5238095238095237, -0.5238095238095237], [0.7142857142857142, -0.047619047619047616], [0.9047619047619047, -0.7142857142857142]]], "w": 1.0476190476190474}}, "modules": [{"layer": "F", "center": [123.24951399999999, 119.20981499999999], "pads": [{"layers": ["F"], "angle": -270.0, "pos": [123.24951399999999, 117.20981499999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [2.0, 1.7]}, {"layers": ["F"], "angle": -270.0, "pos": [123.24951399999999, 121.20981499999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [2.0, 1.7]}], "drawings": [], "ref": "D10", "bbox": {"pos": [122.124513, 115.93481399999999], "size": [2.260002, 6.550002]}}, {"layer": "F", "center": [123.23973, 104.59072499999999], "pads": [{"layers": ["F"], "angle": -270.0, "pos": [123.23973, 106.59072499999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [2.0, 1.7]}, {"layers": ["F"], "angle": -270.0, "pos": [123.23973, 102.59072499999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [2.0, 1.7]}], "drawings": [], "ref": "D9", "bbox": {"pos": [122.114729, 101.31572399999999], "size": [2.260002, 6.550002]}}, {"layer": "F", "center": [123.18265299999999, 90.73363499999999], "pads": [{"layers": ["F"], "angle": -270.0, "pos": [123.18265299999999, 88.73363499999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [2.0, 1.7]}, {"layers": ["F"], "angle": -270.0, "pos": [123.18265299999999, 92.73363499999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [2.0, 1.7]}], "drawings": [], "ref": "D8", "bbox": {"pos": [122.05765199999999, 87.45863399999999], "size": [2.260002, 6.550002]}}, {"layer": "F", "center": [123.057679, 76.11454499999999], "pads": [{"layers": ["F"], "angle": -270.0, "pos": [123.057679, 78.11454499999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [2.0, 1.7]}, {"layers": ["F"], "angle": -270.0, "pos": [123.057679, 74.11454499999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [2.0, 1.7]}], "drawings": [], "ref": "D7", "bbox": {"pos": [121.932678, 72.839544], "size": [2.260002, 6.550002]}}, {"layer": "F", "center": [137.85999999999999, 104.57799999999999], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [137.85999999999999, 106.57799999999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [2.0, 1.7]}, {"layers": ["F"], "angle": -90.0, "pos": [137.85999999999999, 102.57799999999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [2.0, 1.7]}], "drawings": [], "ref": "D6", "bbox": {"pos": [136.724999, 101.302999], "size": [2.260002, 6.550002]}}, {"layer": "F", "center": [137.85999999999999, 90.466905], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [137.85999999999999, 88.466905], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [2.0, 1.7]}, {"layers": ["F"], "angle": -90.0, "pos": [137.85999999999999, 92.466905], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [2.0, 1.7]}], "drawings": [], "ref": "D5", "bbox": {"pos": [136.724999, 87.191904], "size": [2.260002, 6.550002]}}, {"layer": "F", "center": [113.64399999999999, 119.20981499999999], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [113.64399999999999, 121.20981499999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [2.0, 1.7]}, {"layers": ["F"], "angle": -90.0, "pos": [113.64399999999999, 117.20981499999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [2.0, 1.7]}], "drawings": [], "ref": "D4", "bbox": {"pos": [112.50899899999999, 115.93481399999999], "size": [2.260002, 6.550002]}}, {"layer": "F", "center": [113.67399999999999, 104.59072499999999], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [113.67399999999999, 102.59072499999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [2.0, 1.7]}, {"layers": ["F"], "angle": -90.0, "pos": [113.67399999999999, 106.59072499999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [2.0, 1.7]}], "drawings": [], "ref": "D3", "bbox": {"pos": [112.53899899999999, 101.31572399999999], "size": [2.260002, 6.550002]}}, {"layer": "F", "center": [113.67399999999999, 90.73363499999999], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [113.67399999999999, 92.73363499999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [2.0, 1.7]}, {"layers": ["F"], "angle": -90.0, "pos": [113.67399999999999, 88.73363499999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [2.0, 1.7]}], "drawings": [], "ref": "D2", "bbox": {"pos": [112.53899899999999, 87.45863399999999], "size": [2.260002, 6.550002]}}, {"layer": "F", "center": [113.67399999999999, 76.11454499999999], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [113.67399999999999, 74.11454499999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [2.0, 1.7]}, {"layers": ["F"], "angle": -90.0, "pos": [113.67399999999999, 78.11454499999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [2.0, 1.7]}], "drawings": [], "ref": "D1", "bbox": {"pos": [112.53899899999999, 72.839544], "size": [2.260002, 6.550002]}}, {"layer": "F", "center": [119.693514, 119.20981499999999], "pads": [{"layers": ["F"], "angle": -270.0, "pos": [119.693514, 117.859815], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -270.0, "pos": [119.693514, 120.559815], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R16", "bbox": {"pos": [118.753513, 116.834814], "size": [1.880002, 4.750001999999999]}}, {"layer": "F", "center": [119.501679, 76.11454499999999], "pads": [{"layers": ["F"], "angle": -270.0, "pos": [119.501679, 77.464545], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -270.0, "pos": [119.501679, 74.764545], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R13", "bbox": {"pos": [118.561678, 73.739544], "size": [1.880002, 4.750001999999999]}}, {"layer": "F", "center": [119.62665299999999, 90.73363499999999], "pads": [{"layers": ["F"], "angle": -270.0, "pos": [119.62665299999999, 89.383635], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -270.0, "pos": [119.62665299999999, 92.083635], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R14", "bbox": {"pos": [118.686652, 88.358634], "size": [1.880002, 4.750001999999999]}}, {"layer": "F", "center": [119.68373, 104.59072499999999], "pads": [{"layers": ["F"], "angle": -270.0, "pos": [119.68373, 105.940725], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -270.0, "pos": [119.68373, 103.240725], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R15", "bbox": {"pos": [118.74372899999999, 102.215724], "size": [1.880002, 4.750001999999999]}}, {"layer": "F", "center": [129.862, 104.66799999999999], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [129.862, 106.018], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -90.0, "pos": [129.862, 103.318], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R12", "bbox": {"pos": [128.921999, 102.292999], "size": [1.880002, 4.750001999999999]}}, {"layer": "F", "center": [105.696, 76.11454499999999], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [105.696, 74.764545], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -90.0, "pos": [105.696, 77.464545], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R7", "bbox": {"pos": [104.75599899999999, 73.739544], "size": [1.880002, 4.750001999999999]}}, {"layer": "F", "center": [105.696, 90.73363499999999], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [105.696, 92.083635], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -90.0, "pos": [105.696, 89.383635], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R8", "bbox": {"pos": [104.75599899999999, 88.358634], "size": [1.880002, 4.750001999999999]}}, {"layer": "F", "center": [105.696, 104.59072499999999], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [105.696, 103.240725], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -90.0, "pos": [105.696, 105.940725], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R9", "bbox": {"pos": [104.75599899999999, 102.215724], "size": [1.880002, 4.750001999999999]}}, {"layer": "F", "center": [105.62599999999999, 119.20981499999999], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [105.62599999999999, 120.559815], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -90.0, "pos": [105.62599999999999, 117.859815], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R10", "bbox": {"pos": [104.685999, 116.834814], "size": [1.880002, 4.750001999999999]}}, {"layer": "F", "center": [129.862, 90.466905], "pads": [{"layers": ["F"], "angle": -90.0, "pos": [129.862, 89.116905], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -90.0, "pos": [129.862, 91.81690499999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R11", "bbox": {"pos": [128.921999, 88.091904], "size": [1.880002, 4.750001999999999]}}, {"layer": "F", "center": [133.79999999999998, 100.44345], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [132.45, 100.44345], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -0.0, "pos": [135.15, 100.44345], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R6", "bbox": {"pos": [131.42499899999999, 99.50344899999999], "size": [4.750001999999999, 1.880002]}}, {"layer": "F", "center": [133.858, 86.36], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [132.50799999999998, 86.36], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -0.0, "pos": [135.208, 86.36], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R5", "bbox": {"pos": [131.482999, 85.41999899999999], "size": [4.750001999999999, 1.880002]}}, {"layer": "F", "center": [109.61399999999999, 115.07526999999999], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [108.264, 115.07526999999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -0.0, "pos": [110.964, 115.07526999999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R4", "bbox": {"pos": [107.23899899999999, 114.135269], "size": [4.750001999999999, 1.880002]}}, {"layer": "F", "center": [109.61399999999999, 100.45617999999999], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [110.964, 100.45617999999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -0.0, "pos": [108.264, 100.45617999999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R3", "bbox": {"pos": [107.23899899999999, 99.516179], "size": [4.750001999999999, 1.880002]}}, {"layer": "F", "center": [109.61399999999999, 86.59908999999999], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [108.264, 86.59908999999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -0.0, "pos": [110.964, 86.59908999999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R2", "bbox": {"pos": [107.23899899999999, 85.659089], "size": [4.750001999999999, 1.880002]}}, {"layer": "F", "center": [109.61399999999999, 71.97999999999999], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [110.964, 71.97999999999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [1.5, 1.3]}, {"layers": ["F"], "angle": -0.0, "pos": [108.264, 71.97999999999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [1.5, 1.3]}], "drawings": [], "ref": "R1", "bbox": {"pos": [107.23899899999999, 71.039999], "size": [4.750001999999999, 1.880002]}}, {"layer": "F", "center": [97.78999999999999, 83.566], "pads": [{"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 111.506], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 108.966], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 106.426], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 103.886], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 101.34599999999999], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 98.806], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 96.26599999999999], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 93.726], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 91.18599999999999], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 88.646], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 86.106], "drillsize": [1.0, 1.0], "shape": "oval", "offset": [0.0, 0.0], "drillshape": "circle", "type": "th", "size": [1.7, 1.7]}, {"layers": ["F", "B"], "angle": -0.0, "pos": [97.78999999999999, 83.566], "drillsize": [1.0, 1.0], "shape": "rect", "offset": [0.0, 0.0], "drillshape": "circle", "pin1": 1, "type": "th", "size": [1.7, 1.7]}], "drawings": [], "ref": "J1", "bbox": {"pos": [95.96499899999999, 81.740999], "size": [3.6500019999999997, 31.600002]}}, {"layer": "F", "center": [133.79999999999998, 104.57799999999999], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [132.79999999999998, 103.628], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [132.79999999999998, 105.52799999999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [134.79999999999998, 104.57799999999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}], "drawings": [], "ref": "Q6", "bbox": {"pos": [132.074999, 102.802999], "size": [3.450002, 3.5500019999999997]}}, {"layer": "F", "center": [109.61399999999999, 76.11454499999999], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [110.61399999999999, 76.11454499999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [108.61399999999999, 77.064545], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [108.61399999999999, 75.16454499999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}], "drawings": [], "ref": "Q1", "bbox": {"pos": [107.888999, 74.339544], "size": [3.450002, 3.5500019999999997]}}, {"layer": "F", "center": [109.61399999999999, 90.479635], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [108.61399999999999, 89.529635], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [108.61399999999999, 91.42963499999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [110.61399999999999, 90.479635], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}], "drawings": [], "ref": "Q2", "bbox": {"pos": [107.888999, 88.704634], "size": [3.450002, 3.5500019999999997]}}, {"layer": "F", "center": [109.61399999999999, 104.844725], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [110.61399999999999, 104.844725], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [108.61399999999999, 105.794725], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [108.61399999999999, 103.894725], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}], "drawings": [], "ref": "Q3", "bbox": {"pos": [107.888999, 103.069724], "size": [3.450002, 3.5500019999999997]}}, {"layer": "F", "center": [133.79999999999998, 90.466905], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [132.79999999999998, 89.516905], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [132.79999999999998, 91.416905], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [134.79999999999998, 90.466905], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}], "drawings": [], "ref": "Q5", "bbox": {"pos": [132.074999, 88.691904], "size": [3.450002, 3.5500019999999997]}}, {"layer": "F", "center": [109.61399999999999, 119.20981499999999], "pads": [{"layers": ["F"], "angle": -0.0, "pos": [110.61399999999999, 119.20981499999999], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [108.61399999999999, 120.159815], "shape": "rect", "offset": [0.0, 0.0], "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}, {"layers": ["F"], "angle": -0.0, "pos": [108.61399999999999, 118.25981499999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [0.8999999999999999, 0.7999999999999999]}], "drawings": [], "ref": "Q4", "bbox": {"pos": [107.888999, 117.43481399999999], "size": [3.450002, 3.5500019999999997]}}, {"layer": "B", "center": [135.636, 104.648], "pads": [{"layers": ["B"], "angle": -90.0, "pos": [135.636, 104.648], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [5.0, 10.0]}], "drawings": [], "ref": "J12", "bbox": {"pos": [130.360999, 101.872999], "size": [10.550002, 5.550002]}}, {"layer": "B", "center": [135.636, 90.678], "pads": [{"layers": ["B"], "angle": -90.0, "pos": [135.636, 90.678], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [5.0, 10.0]}], "drawings": [], "ref": "J11", "bbox": {"pos": [130.360999, 87.902999], "size": [10.550002, 5.550002]}}, {"layer": "B", "center": [122.68199999999999, 119.12599999999999], "pads": [{"layers": ["B"], "angle": -90.0, "pos": [122.68199999999999, 119.12599999999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [5.0, 10.0]}], "drawings": [], "ref": "J10", "bbox": {"pos": [117.406999, 116.350999], "size": [10.550002, 5.550002]}}, {"layer": "B", "center": [122.68199999999999, 104.648], "pads": [{"layers": ["B"], "angle": -90.0, "pos": [122.68199999999999, 104.648], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [5.0, 10.0]}], "drawings": [], "ref": "J9", "bbox": {"pos": [117.406999, 101.872999], "size": [10.550002, 5.550002]}}, {"layer": "B", "center": [122.68199999999999, 90.678], "pads": [{"layers": ["B"], "angle": -90.0, "pos": [122.68199999999999, 90.678], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [5.0, 10.0]}], "drawings": [], "ref": "J8", "bbox": {"pos": [117.406999, 87.902999], "size": [10.550002, 5.550002]}}, {"layer": "B", "center": [122.428, 76.2], "pads": [{"layers": ["B"], "angle": -90.0, "pos": [122.428, 76.2], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [5.0, 10.0]}], "drawings": [], "ref": "J7", "bbox": {"pos": [117.152999, 73.424999], "size": [10.550002, 5.550002]}}, {"layer": "B", "center": [109.728, 119.12599999999999], "pads": [{"layers": ["B"], "angle": -90.0, "pos": [109.728, 119.12599999999999], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [5.0, 10.0]}], "drawings": [], "ref": "J6", "bbox": {"pos": [104.45299899999999, 116.350999], "size": [10.550002, 5.550002]}}, {"layer": "B", "center": [109.728, 104.648], "pads": [{"layers": ["B"], "angle": -90.0, "pos": [109.728, 104.648], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [5.0, 10.0]}], "drawings": [], "ref": "J5", "bbox": {"pos": [104.45299899999999, 101.872999], "size": [10.550002, 5.550002]}}, {"layer": "B", "center": [109.728, 90.678], "pads": [{"layers": ["B"], "angle": -90.0, "pos": [109.728, 90.678], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [5.0, 10.0]}], "drawings": [], "ref": "J4", "bbox": {"pos": [104.45299899999999, 87.902999], "size": [10.550002, 5.550002]}}, {"layer": "B", "center": [109.982, 76.2], "pads": [{"layers": ["B"], "angle": -90.0, "pos": [109.982, 76.2], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [5.0, 10.0]}], "drawings": [], "ref": "J3", "bbox": {"pos": [104.706999, 73.424999], "size": [10.550002, 5.550002]}}, {"layer": "B", "center": [135.636, 61.721999999999994], "pads": [{"layers": ["B"], "angle": -90.0, "pos": [135.636, 61.721999999999994], "shape": "rect", "offset": [0.0, 0.0], "pin1": 1, "type": "smd", "size": [5.0, 10.0]}], "drawings": [], "ref": "J2", "bbox": {"pos": [130.360999, 58.946999], "size": [10.550002, 5.550002]}}, {"layer": "F", "center": [104.902, 61.214], "pads": [], "drawings": [], "ref": "REF***", "bbox": {"pos": [99.349873, 54.640032999999995], "size": [11.131321999999999, 13.147933]}}], "edges": [{"start": [140.018, 141.37199999999999], "end": [98.018, 141.37199999999999], "type": "segment", "width": 0.09999999999999999}, {"start": [140.018, 51.372], "end": [98.018, 51.372], "type": "segment", "width": 0.09999999999999999}, {"start": [94.018, 55.372], "end": [94.018, 137.37199999999999], "type": "segment", "width": 0.09999999999999999}, {"width": 0.09999999999999999, "endangle": 90.0, "start": [140.018, 137.37199999999999], "radius": 4.0, "startangle": 0.0, "type": "arc"}, {"start": [144.018, 137.37199999999999], "end": [144.018, 55.372], "type": "segment", "width": 0.09999999999999999}, {"width": 0.09999999999999999, "endangle": 0.0, "start": [140.018, 55.372], "radius": 4.0, "startangle": -90.0, "type": "arc"}, {"width": 0.09999999999999999, "endangle": 270.0, "start": [98.018, 55.372], "radius": 4.0, "startangle": 180.0, "type": "arc"}, {"start": [119.053327, 61.372], "radius": 1.600001, "type": "circle", "width": 0.09999999999999999}, {"start": [119.053327, 131.37199999999999], "radius": 1.5999999999999999, "type": "circle", "width": 0.09999999999999999}, {"width": 0.09999999999999999, "endangle": 180.0, "start": [98.018, 137.37199999999999], "radius": 4.0, "startangle": 90.0, "type": "arc"}], "bom": {"both": [[16, "R_US", "R_0805_HandSoldering", [["R1", 25], ["R2", 24], ["R3", 23], ["R4", 22], ["R5", 21], ["R6", 20], ["R7", 15], ["R8", 16], ["R9", 17], ["R10", 18], ["R11", 19], ["R12", 14], ["R13", 11], ["R14", 12], ["R15", 13], ["R16", 10]], []], [10, "LED", "LED_1206_HandSoldering", [["D1", 9], ["D2", 8], ["D3", 7], ["D4", 6], ["D5", 5], ["D6", 4], ["D7", 3], ["D8", 2], ["D9", 1], ["D10", 0]], []], [6, "2N7002", "SOT-23", [["Q1", 28], ["Q2", 29], ["Q3", 30], ["Q4", 32], ["Q5", 31], ["Q6", 27]], []], [1, "switchesOut", "Socket_Strip_Straight_1x12_Pitch2.54mm", [["J1", 26]], []], [11, "Conn_01x01_Female", "SolderWirePad_single_SMD_5x10mm", [["J2", 43], ["J3", 42], ["J4", 41], ["J5", 40], ["J6", 39], ["J7", 38], ["J8", 37], ["J9", 36], ["J10", 35], ["J11", 34], ["J12", 33]], []]], "B": [[11, "Conn_01x01_Female", "SolderWirePad_single_SMD_5x10mm", [["J2", 43], ["J3", 42], ["J4", 41], ["J5", 40], ["J6", 39], ["J7", 38], ["J8", 37], ["J9", 36], ["J10", 35], ["J11", 34], ["J12", 33]], []]], "F": [[16, "R_US", "R_0805_HandSoldering", [["R1", 25], ["R2", 24], ["R3", 23], ["R4", 22], ["R5", 21], ["R6", 20], ["R7", 15], ["R8", 16], ["R9", 17], ["R10", 18], ["R11", 19], ["R12", 14], ["R13", 11], ["R14", 12], ["R15", 13], ["R16", 10]], []], [10, "LED", "LED_1206_HandSoldering", [["D1", 9], ["D2", 8], ["D3", 7], ["D4", 6], ["D5", 5], ["D6", 4], ["D7", 3], ["D8", 2], ["D9", 1], ["D10", 0]], []], [6, "2N7002", "SOT-23", [["Q1", 28], ["Q2", 29], ["Q3", 30], ["Q4", 32], ["Q5", 31], ["Q6", 27]], []], [1, "switchesOut", "Socket_Strip_Straight_1x12_Pitch2.54mm", [["J1", 26]], []]]}, "silkscreen": {"B": [{"width": 1.0, "angle": 90.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "J12", "thickness": 0.15, "pos": [139.446, 104.648], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "J11", "thickness": 0.15, "pos": [139.446, 90.678], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "J10", "thickness": 0.15, "pos": [126.49199999999999, 119.12599999999999], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "J9", "thickness": 0.15, "pos": [126.49199999999999, 104.648], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "J8", "thickness": 0.15, "pos": [126.49199999999999, 90.678], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "J7", "thickness": 0.15, "pos": [126.238, 76.2], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "J6", "thickness": 0.15, "pos": [113.538, 119.12599999999999], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "J5", "thickness": 0.15, "pos": [113.538, 104.648], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "J4", "thickness": 0.15, "pos": [113.538, 90.678], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "J3", "thickness": 0.15, "pos": [113.792, 76.2], "height": 1.0}, {"width": 1.0, "angle": 90.0, "attr": ["mirrored"], "horiz_justify": 0, "text": "J2", "thickness": 0.15, "pos": [139.446, 61.721999999999994], "height": 1.0}], "F": [{"width": 1.5, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "swithBoard", "thickness": 0.3, "pos": [136.652, 124.96799999999999], "height": 1.5}, {"width": 3.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "OpenPLC", "thickness": 0.5, "pos": [139.192, 61.976], "height": 3.0}, {"width": 3.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "FOSSEE", "thickness": 0.5, "pos": [129.79399999999998, 61.976], "height": 3.0}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "D10", "thickness": 0.15, "pos": [125.099514, 119.20981499999999], "height": 1.0}, {"start": [124.199514, 116.109815], "end": [122.29951399999999, 116.109815], "type": "segment", "width": 0.12}, {"start": [122.29951399999999, 116.109815], "end": [122.29951399999999, 120.809815], "type": "segment", "width": 0.12}, {"start": [124.199514, 116.109815], "end": [124.199514, 120.809815], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "D9", "thickness": 0.15, "pos": [125.08972999999999, 104.59072499999999], "height": 1.0}, {"start": [124.18973, 101.490725], "end": [124.18973, 106.190725], "type": "segment", "width": 0.12}, {"start": [122.28972999999999, 101.490725], "end": [122.28972999999999, 106.190725], "type": "segment", "width": 0.12}, {"start": [124.18973, 101.490725], "end": [122.28972999999999, 101.490725], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "D8", "thickness": 0.15, "pos": [125.032653, 90.73363499999999], "height": 1.0}, {"start": [124.13265299999999, 87.633635], "end": [122.232653, 87.633635], "type": "segment", "width": 0.12}, {"start": [122.232653, 87.633635], "end": [122.232653, 92.333635], "type": "segment", "width": 0.12}, {"start": [124.13265299999999, 87.633635], "end": [124.13265299999999, 92.333635], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "D7", "thickness": 0.15, "pos": [124.90767899999999, 76.11454499999999], "height": 1.0}, {"start": [124.007679, 73.014545], "end": [124.007679, 77.714545], "type": "segment", "width": 0.12}, {"start": [122.10767899999999, 73.014545], "end": [122.10767899999999, 77.714545], "type": "segment", "width": 0.12}, {"start": [124.007679, 73.014545], "end": [122.10767899999999, 73.014545], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "D6", "thickness": 0.15, "pos": [136.01, 104.57799999999999], "height": 1.0}, {"start": [136.91, 107.678], "end": [138.81, 107.678], "type": "segment", "width": 0.12}, {"start": [138.81, 107.678], "end": [138.81, 102.978], "type": "segment", "width": 0.12}, {"start": [136.91, 107.678], "end": [136.91, 102.978], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "D5", "thickness": 0.15, "pos": [136.01, 90.466905], "height": 1.0}, {"start": [136.91, 93.56690499999999], "end": [136.91, 88.866905], "type": "segment", "width": 0.12}, {"start": [138.81, 93.56690499999999], "end": [138.81, 88.866905], "type": "segment", "width": 0.12}, {"start": [136.91, 93.56690499999999], "end": [138.81, 93.56690499999999], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "D4", "thickness": 0.15, "pos": [111.794, 119.20981499999999], "height": 1.0}, {"start": [112.69399999999999, 122.309815], "end": [114.594, 122.309815], "type": "segment", "width": 0.12}, {"start": [114.594, 122.309815], "end": [114.594, 117.609815], "type": "segment", "width": 0.12}, {"start": [112.69399999999999, 122.309815], "end": [112.69399999999999, 117.609815], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "D3", "thickness": 0.15, "pos": [111.824, 104.59072499999999], "height": 1.0}, {"start": [112.72399999999999, 107.690725], "end": [112.72399999999999, 102.990725], "type": "segment", "width": 0.12}, {"start": [114.624, 107.690725], "end": [114.624, 102.990725], "type": "segment", "width": 0.12}, {"start": [112.72399999999999, 107.690725], "end": [114.624, 107.690725], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "D2", "thickness": 0.15, "pos": [111.824, 90.73363499999999], "height": 1.0}, {"start": [112.72399999999999, 93.833635], "end": [114.624, 93.833635], "type": "segment", "width": 0.12}, {"start": [114.624, 93.833635], "end": [114.624, 89.133635], "type": "segment", "width": 0.12}, {"start": [112.72399999999999, 93.833635], "end": [112.72399999999999, 89.133635], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "D1", "thickness": 0.15, "pos": [111.824, 76.11454499999999], "height": 1.0}, {"start": [112.72399999999999, 79.214545], "end": [112.72399999999999, 74.514545], "type": "segment", "width": 0.12}, {"start": [114.624, 79.214545], "end": [114.624, 74.514545], "type": "segment", "width": 0.12}, {"start": [112.72399999999999, 79.214545], "end": [114.624, 79.214545], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "R16", "thickness": 0.15, "pos": [121.393514, 119.20981499999999], "height": 1.0}, {"start": [118.813514, 119.809815], "end": [118.813514, 118.609815], "type": "segment", "width": 0.12}, {"start": [120.57351399999999, 118.609815], "end": [120.57351399999999, 119.809815], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "R13", "thickness": 0.15, "pos": [121.201679, 76.11454499999999], "height": 1.0}, {"start": [120.38167899999999, 75.514545], "end": [120.38167899999999, 76.714545], "type": "segment", "width": 0.12}, {"start": [118.621679, 76.714545], "end": [118.621679, 75.514545], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "R14", "thickness": 0.15, "pos": [121.326653, 90.73363499999999], "height": 1.0}, {"start": [118.746653, 91.333635], "end": [118.746653, 90.133635], "type": "segment", "width": 0.12}, {"start": [120.506653, 90.133635], "end": [120.506653, 91.333635], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "R15", "thickness": 0.15, "pos": [121.38373, 104.59072499999999], "height": 1.0}, {"start": [120.56372999999999, 103.990725], "end": [120.56372999999999, 105.190725], "type": "segment", "width": 0.12}, {"start": [118.80373, 105.190725], "end": [118.80373, 103.990725], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "R12", "thickness": 0.15, "pos": [127.762, 104.902], "height": 1.0}, {"start": [130.742, 104.068], "end": [130.742, 105.268], "type": "segment", "width": 0.12}, {"start": [128.982, 105.268], "end": [128.982, 104.068], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "R7", "thickness": 0.15, "pos": [103.996, 76.11454499999999], "height": 1.0}, {"start": [104.81599999999999, 76.714545], "end": [104.81599999999999, 75.514545], "type": "segment", "width": 0.12}, {"start": [106.576, 75.514545], "end": [106.576, 76.714545], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "R8", "thickness": 0.15, "pos": [103.996, 90.73363499999999], "height": 1.0}, {"start": [106.576, 90.133635], "end": [106.576, 91.333635], "type": "segment", "width": 0.12}, {"start": [104.81599999999999, 91.333635], "end": [104.81599999999999, 90.133635], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "R9", "thickness": 0.15, "pos": [103.996, 104.59072499999999], "height": 1.0}, {"start": [104.81599999999999, 105.190725], "end": [104.81599999999999, 103.990725], "type": "segment", "width": 0.12}, {"start": [106.576, 103.990725], "end": [106.576, 105.190725], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "R10", "thickness": 0.15, "pos": [103.926, 119.20981499999999], "height": 1.0}, {"start": [106.506, 118.609815], "end": [106.506, 119.809815], "type": "segment", "width": 0.12}, {"start": [104.746, 119.809815], "end": [104.746, 118.609815], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 90.0, "attr": [], "horiz_justify": 0, "text": "R11", "thickness": 0.15, "pos": [127.762, 90.42399999999999], "height": 1.0}, {"start": [128.982, 91.06690499999999], "end": [128.982, 89.866905], "type": "segment", "width": 0.12}, {"start": [130.742, 89.866905], "end": [130.742, 91.06690499999999], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "R6", "thickness": 0.15, "pos": [133.79999999999998, 98.74345], "height": 1.0}, {"start": [134.4, 101.32345], "end": [133.2, 101.32345], "type": "segment", "width": 0.12}, {"start": [133.2, 99.56344999999999], "end": [134.4, 99.56344999999999], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "R5", "thickness": 0.15, "pos": [133.858, 84.66], "height": 1.0}, {"start": [134.458, 87.24], "end": [133.25799999999998, 87.24], "type": "segment", "width": 0.12}, {"start": [133.25799999999998, 85.47999999999999], "end": [134.458, 85.47999999999999], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "R4", "thickness": 0.15, "pos": [109.61399999999999, 113.37527], "height": 1.0}, {"start": [110.214, 115.95527], "end": [109.014, 115.95527], "type": "segment", "width": 0.12}, {"start": [109.014, 114.19527], "end": [110.214, 114.19527], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "R3", "thickness": 0.15, "pos": [109.61399999999999, 98.75618], "height": 1.0}, {"start": [109.014, 99.57618], "end": [110.214, 99.57618], "type": "segment", "width": 0.12}, {"start": [110.214, 101.33618], "end": [109.014, 101.33618], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "R2", "thickness": 0.15, "pos": [109.61399999999999, 84.89909], "height": 1.0}, {"start": [110.214, 87.47909], "end": [109.014, 87.47909], "type": "segment", "width": 0.12}, {"start": [109.014, 85.71909], "end": [110.214, 85.71909], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "R1", "thickness": 0.15, "pos": [109.61399999999999, 70.28], "height": 1.0}, {"start": [109.014, 71.1], "end": [110.214, 71.1], "type": "segment", "width": 0.12}, {"start": [110.214, 72.86], "end": [109.014, 72.86], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "J1", "thickness": 0.15, "pos": [97.78999999999999, 81.23599999999999], "height": 1.0}, {"start": [96.46, 82.23599999999999], "end": [97.78999999999999, 82.23599999999999], "type": "segment", "width": 0.12}, {"start": [96.46, 83.566], "end": [96.46, 82.23599999999999], "type": "segment", "width": 0.12}, {"start": [99.11999999999999, 84.836], "end": [96.46, 84.836], "type": "segment", "width": 0.12}, {"start": [99.11999999999999, 112.836], "end": [99.11999999999999, 84.836], "type": "segment", "width": 0.12}, {"start": [96.46, 112.836], "end": [99.11999999999999, 112.836], "type": "segment", "width": 0.12}, {"start": [96.46, 84.836], "end": [96.46, 112.836], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "Q6", "thickness": 0.15, "pos": [133.79999999999998, 102.07799999999999], "height": 1.0}, {"start": [134.56, 106.158], "end": [134.56, 105.228], "type": "segment", "width": 0.12}, {"start": [134.56, 102.99799999999999], "end": [134.56, 103.928], "type": "segment", "width": 0.12}, {"start": [134.56, 102.99799999999999], "end": [132.4, 102.99799999999999], "type": "segment", "width": 0.12}, {"start": [134.56, 106.158], "end": [133.1, 106.158], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "Q1", "thickness": 0.15, "pos": [109.61399999999999, 73.61454499999999], "height": 1.0}, {"start": [110.374, 77.69454499999999], "end": [108.914, 77.69454499999999], "type": "segment", "width": 0.12}, {"start": [110.374, 74.534545], "end": [108.214, 74.534545], "type": "segment", "width": 0.12}, {"start": [110.374, 74.534545], "end": [110.374, 75.464545], "type": "segment", "width": 0.12}, {"start": [110.374, 77.69454499999999], "end": [110.374, 76.764545], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "Q2", "thickness": 0.15, "pos": [109.61399999999999, 87.979635], "height": 1.0}, {"start": [110.374, 92.059635], "end": [110.374, 91.129635], "type": "segment", "width": 0.12}, {"start": [110.374, 88.89963499999999], "end": [110.374, 89.829635], "type": "segment", "width": 0.12}, {"start": [110.374, 88.89963499999999], "end": [108.214, 88.89963499999999], "type": "segment", "width": 0.12}, {"start": [110.374, 92.059635], "end": [108.914, 92.059635], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "Q3", "thickness": 0.15, "pos": [109.61399999999999, 102.344725], "height": 1.0}, {"start": [110.374, 106.424725], "end": [108.914, 106.424725], "type": "segment", "width": 0.12}, {"start": [110.374, 103.264725], "end": [108.214, 103.264725], "type": "segment", "width": 0.12}, {"start": [110.374, 103.264725], "end": [110.374, 104.19472499999999], "type": "segment", "width": 0.12}, {"start": [110.374, 106.424725], "end": [110.374, 105.49472499999999], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "Q5", "thickness": 0.15, "pos": [133.79999999999998, 87.966905], "height": 1.0}, {"start": [134.56, 92.046905], "end": [134.56, 91.116905], "type": "segment", "width": 0.12}, {"start": [134.56, 88.886905], "end": [134.56, 89.81690499999999], "type": "segment", "width": 0.12}, {"start": [134.56, 88.886905], "end": [132.4, 88.886905], "type": "segment", "width": 0.12}, {"start": [134.56, 92.046905], "end": [133.1, 92.046905], "type": "segment", "width": 0.12}, {"width": 1.0, "angle": 0.0, "attr": [], "horiz_justify": 0, "text": "Q4", "thickness": 0.15, "pos": [109.61399999999999, 116.70981499999999], "height": 1.0}, {"start": [110.374, 120.78981499999999], "end": [108.914, 120.78981499999999], "type": "segment", "width": 0.12}, {"start": [110.374, 117.629815], "end": [108.214, 117.629815], "type": "segment", "width": 0.12}, {"start": [110.374, 117.629815], "end": [110.374, 118.559815], "type": "segment", "width": 0.12}, {"start": [110.374, 120.78981499999999], "end": [110.374, 119.859815], "type": "segment", "width": 0.12}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[-4.8281, 3.861903], [-4.71655, 3.917522], [-4.618092, 4.019931], [-4.590977, 4.0578639999999995], [-4.561438, 4.1075], [-4.542272, 4.1614119999999994], [-4.531307, 4.233364], [-4.526371, 4.337122], [-4.525287, 4.474101], [-4.530182, 4.661815], [-4.547196, 4.802758], [-4.579823, 4.907908], [-4.631558, 4.988243], [-4.705896, 5.054741], [-4.711358, 5.058678], [-4.784619999999999, 5.098953], [-4.87284, 5.11888], [-4.985037999999999, 5.123793], [-5.167433, 5.123793], [-5.167509, 5.300857], [-5.169207, 5.39947], [-5.17955, 5.457313999999999], [-5.2065779999999995, 5.492006], [-5.258331999999999, 5.521164], [-5.270760999999999, 5.527121], [-5.328923, 5.555039], [-5.373956, 5.572672], [-5.4074409999999995, 5.574193999999999], [-5.430962, 5.553781], [-5.4460999999999995, 5.5056069999999995], [-5.4544369999999995, 5.423846], [-5.457555999999999, 5.302671999999999], [-5.45704, 5.13626], [-5.454471, 4.918785], [-5.4536679999999995, 4.853736], [-5.450778, 4.629502], [-5.448188, 4.4828209999999995], [-5.167586, 4.4828209999999995], [-5.166009, 4.607326], [-5.159, 4.688787], [-5.143142, 4.742515], [-5.115019, 4.783823], [-5.095924999999999, 4.803971], [-5.017865, 4.862921], [-4.948753, 4.867719999999999], [-4.87744, 4.819038], [-4.8756319999999995, 4.817241], [-4.846617, 4.779618], [-4.828967, 4.728484], [-4.8200639999999995, 4.649738], [-4.817291, 4.529275999999999], [-4.817241, 4.502587999999999], [-4.823942, 4.336583], [-4.845752, 4.221505], [-4.885235, 4.151254], [-4.9449559999999995, 4.1197289999999995], [-4.9794719999999995, 4.1165519999999995], [-5.061389, 4.13146], [-5.117579, 4.180548], [-5.151402, 4.2703619999999995], [-5.16622, 4.407445], [-5.167586, 4.4828209999999995], [-5.448188, 4.4828209999999995], [-5.447712999999999, 4.455952], [-5.443753, 4.325381999999999], [-5.438174, 4.230087], [-5.430254, 4.162364], [-5.419269, 4.114507], [-5.4044989999999995, 4.078813], [-5.385218, 4.047578], [-5.376951, 4.035824], [-5.267288, 3.924797], [-5.128635, 3.861847], [-4.968246, 3.8442969999999996], [-4.8281, 3.861903]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[-2.5825709999999997, 3.877719], [-2.488877, 3.931914], [-2.423736, 3.9857069999999997], [-2.376093, 4.042066], [-2.343272, 4.110987], [-2.322594, 4.202468], [-2.3113799999999998, 4.326506], [-2.3069509999999998, 4.493098], [-2.306437, 4.612851], [-2.306437, 5.053659], [-2.430517, 5.109283], [-2.554598, 5.1649069999999995], [-2.5691949999999997, 4.6820949999999995], [-2.575227, 4.501779], [-2.581555, 4.370901], [-2.589394, 4.280511], [-2.599963, 4.221664], [-2.614477, 4.185413], [-2.634152, 4.1628099999999995], [-2.640465, 4.157916999999999], [-2.736112, 4.119706], [-2.8327929999999997, 4.134827], [-2.890345, 4.174943], [-2.9137549999999997, 4.20337], [-2.929961, 4.240672], [-2.9402589999999997, 4.297223], [-2.945951, 4.383394], [-2.948336, 4.509558], [-2.948736, 4.641042], [-2.948814, 4.805999], [-2.9516389999999997, 4.9227609999999995], [-2.961093, 5.00151], [-2.98106, 5.0524309999999995], [-3.015424, 5.085706], [-3.068068, 5.11152], [-3.1383829999999997, 5.138344], [-3.2151799999999997, 5.167542], [-3.206038, 4.6493459999999995], [-3.2023569999999997, 4.462539], [-3.19805, 4.32449], [-3.191877, 4.225568], [-3.182598, 4.1561449999999995], [-3.168973, 4.10659], [-3.149761, 4.067273], [-3.126598, 4.032584], [-3.0148479999999998, 3.92177], [-2.878487, 3.8576889999999997], [-2.730175, 3.842339], [-2.5825709999999997, 3.877719]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[-5.951779, 3.866015], [-5.814939, 3.9379679999999997], [-5.7139489999999995, 4.0537659999999995], [-5.678075, 4.128213], [-5.650161, 4.239992], [-5.635871, 4.381227], [-5.634516, 4.535371], [-5.645404999999999, 4.685879], [-5.667847, 4.816205], [-5.70115, 4.909803], [-5.711385, 4.925922], [-5.832618, 5.0462489999999995], [-5.9766129999999995, 5.118316999999999], [-6.132861, 5.1394079999999995], [-6.290852, 5.106802], [-6.33482, 5.087253], [-6.420444, 5.027012], [-6.495591999999999, 4.947134999999999], [-6.502694, 4.937004], [-6.531561, 4.888180999999999], [-6.550643, 4.83599], [-6.561916, 4.767285], [-6.567355, 4.668918], [-6.568937999999999, 4.527744], [-6.5689649999999995, 4.496092], [-6.568893, 4.486019], [-6.277011, 4.486019], [-6.275313, 4.619256], [-6.268628, 4.707674], [-6.254575, 4.764785], [-6.230771, 4.804101999999999], [-6.218621, 4.817241], [-6.148764, 4.867172], [-6.080941, 4.864895], [-6.012365, 4.821584], [-5.971464999999999, 4.775346], [-5.947242, 4.707857], [-5.933638999999999, 4.601433], [-5.932706, 4.58902], [-5.930384, 4.396147], [-5.95465, 4.2528999999999995], [-6.005176, 4.160159999999999], [-6.081632, 4.118806999999999], [-6.108924, 4.1165519999999995], [-6.1805889999999994, 4.127893], [-6.22961, 4.167184], [-6.259582, 4.242325999999999], [-6.274101, 4.361222], [-6.277011, 4.486019], [-6.568893, 4.486019], [-6.567877999999999, 4.3456589999999995], [-6.563312, 4.240549], [-6.553312, 4.167714], [-6.535921, 4.114108], [-6.509183999999999, 4.066681], [-6.503276, 4.0578639999999995], [-6.403968, 3.9390069999999997], [-6.295757999999999, 3.870008], [-6.164019, 3.842619], [-6.119282999999999, 3.841281], [-5.951779, 3.866015]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[-3.6844479999999997, 3.884676], [-3.569342, 3.9621109999999997], [-3.4803889999999997, 4.073949], [-3.427251, 4.216265], [-3.4165029999999996, 4.321015], [-3.4177239999999998, 4.364726], [-3.4279439999999997, 4.398194], [-3.4560389999999996, 4.428179], [-3.510884, 4.46144], [-3.601355, 4.504738], [-3.736328, 4.564833], [-3.737011, 4.565134], [-3.861249, 4.622037], [-3.9631269999999996, 4.672565], [-4.032233, 4.7112799999999995], [-4.058154, 4.73274], [-4.058161, 4.732913], [-4.035315, 4.779644], [-3.9818909999999996, 4.831154], [-3.9205579999999998, 4.8682609999999995], [-3.8894849999999996, 4.8756319999999995], [-3.8047109999999997, 4.850137999999999], [-3.7317069999999997, 4.786290999999999], [-3.696087, 4.716094], [-3.6618199999999996, 4.664343], [-3.594697, 4.605409], [-3.515792, 4.554495999999999], [-3.446179, 4.526809], [-3.4316229999999996, 4.525287], [-3.415237, 4.550320999999999], [-3.41425, 4.614311], [-3.4262919999999997, 4.700593], [-3.4489929999999998, 4.792501], [-3.479986, 4.873368999999999], [-3.4815519999999998, 4.8765089999999995], [-3.5748189999999997, 5.006734], [-3.695696, 5.095311], [-3.832973, 5.138786], [-3.97544, 5.133706], [-4.1118879999999995, 5.076616], [-4.117955, 5.072602], [-4.22529, 4.975326], [-4.295868, 4.848409], [-4.334925999999999, 4.681526], [-4.340167999999999, 4.634639], [-4.349451999999999, 4.413329], [-4.338322, 4.310124], [-4.058161, 4.310124], [-4.054520999999999, 4.374503], [-4.034611, 4.393291], [-3.984974, 4.3792349999999995], [-3.906733, 4.346009], [-3.8192739999999996, 4.304359], [-3.8171009999999996, 4.303256], [-3.7429699999999997, 4.264265], [-3.713219, 4.238244], [-3.7205549999999996, 4.210965], [-3.7514469999999998, 4.175121], [-3.83004, 4.123251], [-3.9146769999999997, 4.119439], [-3.9905969999999997, 4.157189], [-4.043035, 4.230001], [-4.058161, 4.310124], [-4.338322, 4.310124], [-4.330356, 4.236261], [-4.281366, 4.095829], [-4.213164, 3.9974469999999998], [-4.090065, 3.89803], [-3.954472, 3.8487109999999998], [-3.816045, 3.8455679999999997], [-3.6844479999999997, 3.884676]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[-1.255402, 3.7238569999999998], [-1.246846, 3.8431879999999996], [-1.2370189999999999, 3.913506], [-1.223401, 3.9441789999999997], [-1.203473, 3.944571], [-1.197011, 3.9409099999999997], [-1.11106, 3.914398], [-0.999255, 3.915946], [-0.885586, 3.943199], [-0.8144899999999999, 3.978455], [-0.741595, 4.034778], [-0.688307, 4.098519], [-0.651725, 4.17951], [-0.62895, 4.287586], [-0.617081, 4.43258], [-0.6132179999999999, 4.624326], [-0.6131489999999999, 4.661109], [-0.613103, 5.074288], [-0.705046, 5.106339], [-0.7703479999999999, 5.128144], [-0.806176, 5.138297], [-0.80723, 5.1383909999999995], [-0.810758, 5.11086], [-0.813761, 5.034923], [-0.81601, 4.920565], [-0.817276, 4.777769], [-0.817471, 4.690951], [-0.817877, 4.519773], [-0.8199679999999999, 4.397088], [-0.8250529999999999, 4.313], [-0.83444, 4.257614], [-0.8494389999999999, 4.221032], [-0.871358, 4.193359], [-0.8850429999999999, 4.180032], [-0.979051, 4.126328], [-1.081636, 4.122307], [-1.17471, 4.167725], [-1.191922, 4.184123], [-1.217168, 4.214957], [-1.23468, 4.251531], [-1.245858, 4.304415], [-1.2521039999999999, 4.384177], [-1.254818, 4.501385], [-1.255402, 4.662991], [-1.255402, 5.074288], [-1.347345, 5.106339], [-1.412647, 5.128144], [-1.448475, 5.138297], [-1.4495289999999998, 5.1383909999999995], [-1.4522249999999999, 5.110448], [-1.454655, 5.03163], [-1.4567219999999999, 4.909453], [-1.458329, 4.751431999999999], [-1.459377, 4.565083], [-1.4597689999999999, 4.35792], [-1.45977, 4.348706], [-1.45977, 3.55902], [-1.364885, 3.5189969999999997], [-1.27, 3.478973], [-1.255402, 3.7238569999999998]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[0.079944, 3.9243599999999996], [0.194343, 3.9668419999999998], [0.195652, 3.9676579999999997], [0.266403, 4.01973], [0.318636, 4.080584], [0.355371, 4.1598869999999994], [0.37963399999999997, 4.267309], [0.394445, 4.412516999999999], [0.402829, 4.605179], [0.403564, 4.6326279999999995], [0.41412, 5.046520999999999], [0.325291, 5.092455999999999], [0.261018, 5.123498], [0.22221, 5.138205999999999], [0.220415, 5.1383909999999995], [0.2137, 5.11125], [0.208365, 5.038041], [0.205083, 4.931081], [0.204368, 4.844469], [0.20435099999999998, 4.704162], [0.197937, 4.616051], [0.17557999999999999, 4.574025], [0.12773199999999998, 4.571975], [0.044849, 4.60379], [-0.080287, 4.662272], [-0.17230299999999998, 4.710845], [-0.219629, 4.752986], [-0.233542, 4.798916], [-0.233563, 4.801189], [-0.210605, 4.880311], [-0.14263, 4.923055], [-0.038602, 4.929246], [0.03633, 4.928172], [0.07583899999999999, 4.949752999999999], [0.100478, 5.0015909999999995], [0.114659, 5.067632], [0.094223, 5.105104], [0.086528, 5.110467], [0.014083, 5.132006], [-0.087367, 5.1350549999999995], [-0.19184299999999999, 5.120778], [-0.265875, 5.094688], [-0.368228, 5.007785], [-0.426409, 4.886816], [-0.43793099999999996, 4.792307999999999], [-0.42913799999999996, 4.707062], [-0.39732, 4.6374759999999995], [-0.334316, 4.575672], [-0.23196899999999998, 4.5137719999999995], [-0.082118, 4.443897], [-0.072988, 4.439948], [0.061997, 4.377587999999999], [0.145294, 4.326446], [0.180997, 4.280488], [0.173203, 4.233683], [0.126007, 4.179997999999999], [0.111894, 4.167644], [0.017359, 4.119740999999999], [-0.080594, 4.121758], [-0.165903, 4.168724], [-0.22250399999999998, 4.255669], [-0.227763, 4.272734], [-0.278977, 4.355504], [-0.34396299999999996, 4.395372], [-0.43793099999999996, 4.434882], [-0.43793099999999996, 4.3326579999999995], [-0.40934699999999996, 4.184072], [-0.324505, 4.047784], [-0.28035499999999997, 4.002191], [-0.179995, 3.9436739999999997], [-0.052364999999999995, 3.9171839999999998], [0.079944, 3.9243599999999996]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[1.0659429999999999, 3.9219199999999996], [1.1985649999999999, 3.970859], [1.30601, 4.057418999999999], [1.348032, 4.118352], [1.393843, 4.230161], [1.3928909999999999, 4.311006], [1.344808, 4.365378], [1.327017, 4.374624], [1.2502039999999999, 4.403449999999999], [1.210976, 4.396065], [1.197689, 4.347658], [1.197012, 4.32092], [1.172686, 4.222548], [1.109281, 4.153734], [1.021154, 4.1204979999999995], [0.922663, 4.128861], [0.842602, 4.172296], [0.815561, 4.1970719999999995], [0.7963939999999999, 4.227129], [0.783446, 4.272565], [0.775064, 4.343476], [0.769593, 4.44996], [0.765378, 4.602112], [0.7642869999999999, 4.650287], [0.760307, 4.8150949999999995], [0.7557809999999999, 4.931088], [0.748995, 5.007833], [0.738231, 5.054893], [0.721773, 5.081835], [0.6979059999999999, 5.098223], [0.682626, 5.105462999999999], [0.617733, 5.13022], [0.579534, 5.1383909999999995], [0.566912, 5.111103], [0.5592079999999999, 5.0286029999999995], [0.55638, 4.889940999999999], [0.5583859999999999, 4.6941619999999995], [0.5590109999999999, 4.663965], [0.563421, 4.485348999999999], [0.568635, 4.354922999999999], [0.576055, 4.262492], [0.587082, 4.197858], [0.603117, 4.150825], [0.6255609999999999, 4.111196], [0.6373019999999999, 4.094215], [0.704619, 4.01908], [0.77991, 3.960638], [0.7891279999999999, 3.955536], [0.924133, 3.91526], [1.0659429999999999, 3.9219199999999996]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[2.393914, 4.154455], [2.3935429999999998, 4.372661], [2.392108, 4.540519], [2.389002, 4.6660699999999995], [2.383622, 4.757355], [2.375362, 4.8224149999999995], [2.363616, 4.869291], [2.347781, 4.9060239999999995], [2.33579, 4.926991], [2.23649, 5.040693999999999], [2.110588, 5.111965], [1.971291, 5.137538], [1.831805, 5.1141499999999995], [1.748743, 5.072119], [1.6615449999999998, 4.999410999999999], [1.602117, 4.9106119999999995], [1.566261, 4.79432], [1.5497809999999999, 4.639135], [1.547447, 4.525287], [1.547761, 4.517106], [1.7517239999999998, 4.517106], [1.75297, 4.647657], [1.758678, 4.73408], [1.771804, 4.790617999999999], [1.7953059999999998, 4.831513999999999], [1.823386, 4.862362], [1.9176879999999998, 4.921905], [2.0189399999999997, 4.926991999999999], [2.114636, 4.877279], [2.122084, 4.870543], [2.153874, 4.835502], [2.1738079999999997, 4.793811], [2.1846, 4.731762], [2.188965, 4.635644], [2.1896549999999997, 4.529379], [2.1881589999999997, 4.39588], [2.181964, 4.3068219999999995], [2.168514, 4.248292999999999], [2.145251, 4.206382], [2.126175, 4.184123], [2.037563, 4.127985], [1.935508, 4.1212349999999995], [1.8380949999999998, 4.164114], [1.819296, 4.180032], [1.787293, 4.215382], [1.767318, 4.257502], [1.7565929999999998, 4.320251], [1.7523389999999999, 4.4174869999999995], [1.7517239999999998, 4.517106], [1.547761, 4.517106], [1.5545039999999999, 4.341947], [1.5784719999999999, 4.2041949999999995], [1.623548, 4.100632], [1.6939279999999999, 4.019856], [1.748743, 3.978455], [1.848376, 3.933728], [1.963855, 3.9129669999999996], [2.071199, 3.918525], [2.131264, 3.940943], [2.154835, 3.947323], [2.170477, 3.9235349999999998], [2.1813949999999998, 3.859788], [2.1896549999999997, 3.7626869999999997], [2.198699, 3.654541], [2.211261, 3.5894749999999997], [2.2341189999999997, 3.5522679999999998], [2.274051, 3.5276989999999997], [2.2991379999999997, 3.516819], [2.394023, 3.4770719999999997], [2.393914, 4.154455]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[3.5801239999999996, 3.93984], [3.5845789999999997, 4.016653], [3.588071, 4.133391], [3.590315, 4.2808209999999995], [3.5910349999999998, 4.435455], [3.5910349999999998, 4.958727], [3.498645, 5.051117], [3.4349779999999996, 5.108047], [3.379089, 5.131107], [3.302702, 5.129646999999999], [3.27238, 5.125934], [3.17761, 5.115126], [3.0992219999999997, 5.1089329999999995], [3.0801149999999997, 5.1083609999999995], [3.0156989999999997, 5.112102], [2.923571, 5.121493999999999], [2.88785, 5.125934], [2.8001139999999998, 5.132801], [2.7411529999999997, 5.117884999999999], [2.68269, 5.071835], [2.661585, 5.051117], [2.5691949999999997, 4.958727], [2.5691949999999997, 3.9799469999999997], [2.643558, 3.9460659999999996], [2.7075899999999997, 3.9209699999999996], [2.745052, 3.912184], [2.754657, 3.9399499999999996], [2.763635, 4.01753], [2.7713859999999997, 4.136348], [2.777314, 4.287828], [2.780173, 4.415805], [2.7881609999999997, 4.9194249999999995], [2.8578479999999997, 4.929278], [2.921229, 4.922389], [2.952286, 4.9000829999999995], [2.9609669999999997, 4.858378999999999], [2.968378, 4.769544], [2.973931, 4.6448339999999995], [2.977036, 4.495507], [2.977484, 4.418661], [2.977931, 3.9762869999999997], [3.069874, 3.944235], [3.1349489999999998, 3.922443], [3.170347, 3.9122809999999997], [3.1713679999999997, 3.912184], [3.1749199999999997, 3.939809], [3.178823, 4.016411], [3.1827509999999997, 4.132579], [3.1863759999999997, 4.278904], [3.188908, 4.415805], [3.196897, 4.9194249999999995], [3.3720689999999998, 4.9194249999999995], [3.3801069999999998, 4.4599649999999995], [3.388146, 4.0005049999999995], [3.473543, 3.9563439999999996], [3.536593, 3.9260189999999997], [3.5739099999999997, 3.912258], [3.5749869999999997, 3.912184], [3.5801239999999996, 3.93984]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[4.314406, 3.9351559999999997], [4.3984689999999995, 3.9733929999999997], [4.464449999999999, 4.0197259999999995], [4.5127939999999995, 4.0715319999999995], [4.546171999999999, 4.138363], [4.567253, 4.229769], [4.578707, 4.355301], [4.583203, 4.524508], [4.583678, 4.635933], [4.583678, 5.070627], [4.509316, 5.104509], [4.450746, 5.129271999999999], [4.42173, 5.1383909999999995], [4.416179, 5.111257], [4.411775, 5.038094], [4.409078, 4.9312629999999995], [4.408506, 4.846437], [4.406046, 4.7238869999999995], [4.399412, 4.626668], [4.389726, 4.567133999999999], [4.382032, 4.554482999999999], [4.330311, 4.5674019999999995], [4.249117, 4.6005389999999995], [4.155101999999999, 4.645461], [4.0649169999999994, 4.693735], [3.995215, 4.736928], [3.9626479999999997, 4.766608], [3.962519, 4.766929], [3.9653199999999997, 4.821857], [3.990439, 4.874292], [4.034541, 4.916881], [4.098909, 4.931126], [4.1539209999999995, 4.929466], [4.231835, 4.9282449999999995], [4.2727319999999995, 4.946498], [4.297295, 4.994726], [4.3003919999999995, 5.00382], [4.31104, 5.072598], [4.282565, 5.11436], [4.208343999999999, 5.134263], [4.128168, 5.137944], [3.9838899999999997, 5.110658], [3.9092029999999998, 5.071689999999999], [3.816963, 4.980148], [3.768043, 4.867782], [3.763654, 4.749051], [3.805001, 4.638411], [3.867197, 4.56908], [3.9292939999999996, 4.530265], [4.026895, 4.481125], [4.140632, 4.431292], [4.15959, 4.423677], [4.284521, 4.368545], [4.356539, 4.319954], [4.3797, 4.271647], [4.358064, 4.21737], [4.32092, 4.174943], [4.233127, 4.122701999999999], [4.13653, 4.118784], [4.047944, 4.159041], [3.984186, 4.239326], [3.9758169999999997, 4.26004], [3.9270959999999997, 4.336225], [3.855965, 4.392785], [3.7662069999999996, 4.439201], [3.7662069999999996, 4.307583999999999], [3.77149, 4.227168], [3.794142, 4.163786], [3.8443669999999996, 4.096163], [3.892582, 4.044076], [3.967554, 3.970322], [4.025806, 3.9307019999999997], [4.088372, 3.9148099999999997], [4.159193, 3.912184], [4.314406, 3.9351559999999997]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[5.33569, 3.940018], [5.370585, 3.955269], [5.453876999999999, 4.021235], [5.525103, 4.116618], [5.569153, 4.218406], [5.576321999999999, 4.268587], [5.5522849999999995, 4.338647], [5.499561, 4.375717], [5.4430309999999995, 4.3981639999999995], [5.417146, 4.402299999999999], [5.404542, 4.3722829999999995], [5.3796539999999995, 4.306960999999999], [5.368735, 4.277445], [5.3075079999999994, 4.175348], [5.2188609999999995, 4.124423], [5.105193, 4.125989], [5.096774, 4.127994], [5.0360879999999995, 4.156766999999999], [4.991474, 4.212859], [4.961002, 4.303163], [4.942743999999999, 4.434571], [4.934771, 4.613974], [4.934023, 4.709433], [4.9336519999999995, 4.859913], [4.931223, 4.962495], [4.92476, 5.027672], [4.912288, 5.065938], [4.891833, 5.087784999999999], [4.861419, 5.103707], [4.859661, 5.104509], [4.8010909999999996, 5.129271999999999], [4.772075, 5.1383909999999995], [4.767615999999999, 5.110822], [4.763799, 5.034619999999999], [4.760899, 4.919541], [4.7591909999999995, 4.775341], [4.758851, 4.669814], [4.760587999999999, 4.465612999999999], [4.767382, 4.310697], [4.781607, 4.1960239999999995], [4.805638, 4.112551], [4.841848, 4.051235999999999], [4.892612, 4.0030339999999995], [4.9427389999999995, 3.9693929999999997], [5.063275, 3.924619], [5.203557, 3.9145209999999997], [5.33569, 3.940018]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[6.343439, 3.95654], [6.45895, 4.0320339999999995], [6.514664, 4.099616999999999], [6.558803999999999, 4.222255], [6.562309, 4.319298], [6.554367999999999, 4.449056], [6.255115, 4.580039], [6.109611, 4.646958], [6.014537, 4.70079], [5.965101, 4.747415999999999], [5.956511, 4.79272], [5.983972, 4.842582], [6.014253, 4.8756319999999995], [6.1023629999999995, 4.928633], [6.198195999999999, 4.932347], [6.286212, 4.8910409999999995], [6.350868999999999, 4.808983], [6.362432999999999, 4.780008], [6.417825, 4.689509], [6.481553, 4.650939999999999], [6.568966, 4.617946], [6.568966, 4.743034], [6.5612379999999995, 4.828156], [6.530965999999999, 4.899938], [6.467518, 4.982355999999999], [6.458088, 4.993066], [6.387512999999999, 5.066390999999999], [6.326847, 5.105741999999999], [6.25095, 5.123845], [6.1880299999999995, 5.129773999999999], [6.075487, 5.131251], [5.995369999999999, 5.112534999999999], [5.94539, 5.084747], [5.8668379999999996, 5.023641], [5.812463, 4.957554], [5.778052, 4.874441], [5.7593879999999995, 4.7622539999999995], [5.752256, 4.6089459999999995], [5.7516869999999995, 4.531136], [5.753622, 4.437853], [5.929899, 4.437853], [5.931944, 4.487896], [5.9370389999999995, 4.496092], [5.970666, 4.484958], [6.04303, 4.455493], [6.139747, 4.413601], [6.159973, 4.404597], [6.282203, 4.342442], [6.349546999999999, 4.287815], [6.364348, 4.236649], [6.328946999999999, 4.184876], [6.299710999999999, 4.162], [6.194216, 4.11625], [6.095476, 4.1238079999999995], [6.012811999999999, 4.179651], [5.955547999999999, 4.278753], [5.937188, 4.3574139999999995], [5.929899, 4.437853], [5.753622, 4.437853], [5.755459, 4.3493509999999995], [5.769359, 4.214853], [5.796894, 4.116916], [5.841571999999999, 4.044811], [5.9069009999999995, 3.9878129999999996], [5.935383, 3.9693929999999997], [6.064763, 3.9214219999999997], [6.206411999999999, 3.9184029999999996], [6.343439, 3.95654]]]}, {"angle": [90.0], "type": "polygon", "pos": [104.902, 61.214], "polygons": [[[0.20901399999999998, -5.547002], [0.367006, -5.546137], [0.48134699999999997, -5.543794999999999], [0.559407, -5.539238], [0.6085539999999999, -5.53173], [0.6361589999999999, -5.520534], [0.649592, -5.504912], [0.6562209999999999, -5.484127], [0.6568649999999999, -5.481437], [0.666935, -5.432887], [0.6855749999999999, -5.337095], [0.710845, -5.204257], [0.740807, -5.044569], [0.7735219999999999, -4.868226], [0.774664, -4.862032999999999], [0.807433, -4.689217999999999], [0.838093, -4.536531], [0.864664, -4.413129], [0.8851669999999999, -4.328169], [0.8976259999999999, -4.29081], [0.8982199999999999, -4.290147999999999], [0.934919, -4.271904999999999], [1.010586, -4.241503], [1.108878, -4.205507], [1.1094249999999999, -4.205315], [1.233233, -4.158778], [1.3791959999999999, -4.099496], [1.516781, -4.039891], [1.523293, -4.036944], [1.74739, -3.935235], [2.243619, -4.274103], [2.3958459999999997, -4.377408], [2.533741, -4.4697629999999995], [2.649315, -4.545916], [2.734579, -4.6006149999999995], [2.781544, -4.628607], [2.7860039999999997, -4.630682999999999], [2.820134, -4.62144], [2.8838809999999997, -4.5768439999999995], [2.9797309999999997, -4.494791], [3.110169, -4.3731789999999995], [3.243328, -4.2437949999999995], [3.3716939999999997, -4.116298], [3.4865809999999997, -3.999954], [3.581073, -3.901948], [3.648253, -3.8294639999999998], [3.681206, -3.789687], [3.682432, -3.787639], [3.6860739999999996, -3.760344], [3.67235, -3.715766], [3.637869, -3.647888], [3.579239, -3.5506889999999998], [3.49307, -3.4181489999999997], [3.3781999999999996, -3.247524], [3.2762539999999998, -3.097345], [3.185123, -2.96265], [3.110073, -2.85126], [3.0563689999999997, -2.7709949999999997], [3.02928, -2.729675], [3.027574, -2.72687], [3.030882, -2.6872789999999998], [3.0559529999999997, -2.610331], [3.097798, -2.5105679999999997], [3.1127119999999997, -2.478709], [3.1777859999999998, -2.3367739999999997], [3.2472119999999998, -2.1757269999999997], [3.303609, -2.0363789999999997], [3.3442469999999997, -1.932956], [3.3765259999999997, -1.854358], [3.395178, -1.81328], [3.397497, -1.810115], [3.431803, -1.8048719999999998], [3.512669, -1.790506], [3.629343, -1.7690629999999998], [3.7710749999999997, -1.7425869999999999], [3.92711, -1.713123], [4.086698, -1.682717], [4.239085, -1.6534119999999999], [4.373521, -1.627255], [4.479252, -1.60629], [4.545526, -1.592561], [4.561782, -1.5886799999999999], [4.578573, -1.5791], [4.5912489999999995, -1.557464], [4.600378, -1.5164689999999998], [4.6065309999999995, -1.4488109999999998], [4.6102799999999995, -1.3471879999999998], [4.612191999999999, -1.204297], [4.612839999999999, -1.012835], [4.612874, -0.9343549999999999], [4.612874, -0.29609399999999997], [4.459598, -0.26583999999999997], [4.374321999999999, -0.249436], [4.24707, -0.225491], [4.093315, -0.19689299999999998], [3.928534, -0.166533], [3.882989, -0.158194], [3.7309319999999997, -0.12863], [3.598468, -0.099558], [3.496714, -0.073671], [3.436788, -0.053662999999999995], [3.426805, -0.047699], [3.402293, -0.0054659999999999995], [3.367148, 0.07637], [3.328173, 0.18168299999999998], [3.320442, 0.204368], [3.26936, 0.345018], [3.2059539999999997, 0.503714], [3.143904, 0.6462249999999999], [3.143598, 0.646886], [3.040267, 0.87044], [3.7199609999999996, 1.870232], [3.2836209999999997, 2.3072999999999997], [3.151649, 2.437381], [3.031279, 2.552048], [2.929273, 2.645181], [2.852391, 2.710658], [2.807393, 2.7423569999999997], [2.800938, 2.7443679999999997], [2.7630399999999997, 2.728529], [2.685708, 2.6844959999999998], [2.5773889999999997, 2.61749], [2.446532, 2.532734], [2.305052, 2.4378159999999998], [2.161461, 2.340998], [2.033435, 2.256751], [1.9291049999999998, 2.190258], [1.8565999999999998, 2.146702], [1.824158, 2.131264], [1.784576, 2.144328], [1.709519, 2.17875], [1.614468, 2.2273799999999997], [1.6043919999999998, 2.232785], [1.476391, 2.29698], [1.388618, 2.3284629999999997], [1.334028, 2.328798], [1.305575, 2.2995479999999997], [1.30541, 2.2991379999999997], [1.291188, 2.2644979999999997], [1.257269, 2.182269], [1.206284, 2.058814], [1.140862, 1.900498], [1.063634, 1.7136859999999998], [0.9772289999999999, 1.504742], [0.893551, 1.302446], [0.801588, 1.0792], [0.71715, 0.872392], [0.6427689999999999, 0.6883619999999999], [0.580974, 0.533451], [0.534297, 0.413996], [0.5052679999999999, 0.336339], [0.496322, 0.30735599999999996], [0.518756, 0.27410999999999996], [0.5774389999999999, 0.221123], [0.655689, 0.162704], [0.8785339999999999, -0.022047999999999998], [1.052718, -0.233818], [1.176154, -0.468144], [1.246754, -0.7205659999999999], [1.2624309999999999, -0.9866229999999999], [1.251036, -1.1094249999999999], [1.18895, -1.364207], [1.082023, -1.589199], [0.936889, -1.7821829999999999], [0.760178, -1.940939], [0.558522, -2.06325], [0.33855399999999997, -2.1468949999999998], [0.106906, -2.189656], [-0.129791, -2.189313], [-0.364905, -2.1436479999999998], [-0.591804, -2.0504409999999997], [-0.803856, -1.907473], [-0.8923639999999999, -1.826617], [-1.062111, -1.618993], [-1.180301, -1.392105], [-1.247722, -1.152567], [-1.2651599999999998, -0.9069929999999999], [-1.2334019999999999, -0.661997], [-1.153235, -0.42419199999999996], [-1.025445, -0.20019299999999998], [-0.8508199999999999, 0.003387], [-0.6556879999999999, 0.162704], [-0.574409, 0.223602], [-0.516991, 0.276015], [-0.496322, 0.307406], [-0.5071439999999999, 0.34163899999999997], [-0.5379229999999999, 0.423419], [-0.5861259999999999, 0.546407], [-0.649222, 0.704263], [-0.7246779999999999, 0.8906489999999999], [-0.809962, 1.099226], [-0.8937809999999999, 1.3024959999999999], [-0.986255, 1.525933], [-1.071911, 1.7329839999999999], [-1.148118, 1.9172859999999998], [-1.2122469999999999, 2.072475], [-1.261668, 2.192188], [-1.293752, 2.270061], [-1.305641, 2.2991379999999997], [-1.333726, 2.328677], [-1.388051, 2.328591], [-1.4756049999999998, 2.297326], [-1.603381, 2.233329], [-1.6043919999999998, 2.232785], [-1.7005979999999998, 2.183121], [-1.7783689999999999, 2.146945], [-1.822223, 2.131408], [-1.824158, 2.131264], [-1.857171, 2.147024], [-1.930054, 2.1908499999999997], [-2.034678, 2.257557], [-2.16291, 2.341964], [-2.305052, 2.4378159999999998], [-2.449767, 2.5348669999999998], [-2.580196, 2.6192699999999998], [-2.68789, 2.6858009999999997], [-2.764402, 2.729238], [-2.800938, 2.7443679999999997], [-2.8345819999999997, 2.724482], [-2.902224, 2.668903], [-2.9971069999999997, 2.583754], [-3.11247, 2.4751529999999997], [-3.241555, 2.349221], [-3.2837709999999998, 2.307149], [-3.720261, 1.869931], [-3.388023, 1.38234], [-3.287054, 1.232605], [-3.198438, 1.09822], [-3.1271459999999998, 0.986969], [-3.07815, 0.906639], [-3.056422, 0.865014], [-3.0557849999999998, 0.862053], [-3.06724, 0.8228179999999999], [-3.098051, 0.743895], [-3.142884, 0.638509], [-3.174353, 0.567954], [-3.233192, 0.432876], [-3.288604, 0.296409], [-3.3315639999999997, 0.181103], [-3.343234, 0.145977], [-3.3763889999999996, 0.052174], [-3.4087989999999997, -0.020305999999999998], [-3.426601, -0.047699], [-3.465886, -0.064464], [-3.5516259999999997, -0.08823], [-3.672697, -0.11630299999999999], [-3.817973, -0.14599099999999998], [-3.8829879999999997, -0.158194], [-4.048087, -0.188532], [-4.206448, -0.217907], [-4.3425959999999995, -0.24343099999999998], [-4.441057, -0.262215], [-4.459598, -0.26583999999999997], [-4.612873, -0.29609399999999997], [-4.612873, -0.9343549999999999], [-4.612528999999999, -1.1442299999999999], [-4.611116, -1.3030199999999998], [-4.608064, -1.418027], [-4.602803, -1.496554], [-4.5947629999999995, -1.545904], [-4.583373, -1.573381], [-4.5680629999999995, -1.586287], [-4.561782, -1.5886799999999999], [-4.523896, -1.597167], [-4.440195, -1.6140999999999999], [-4.321433, -1.6374339999999998], [-4.178361, -1.665125], [-4.021732, -1.6951269999999998], [-3.862297, -1.725396], [-3.710809, -1.753885], [-3.578019, -1.778551], [-3.474681, -1.7973489999999999], [-3.411545, -1.808233], [-3.397497, -1.810115], [-3.38477, -1.8352959999999998], [-3.3566, -1.902378], [-3.3182519999999998, -1.998667], [-3.303609, -2.0363789999999997], [-3.244548, -2.182079], [-3.175, -2.3430489999999997], [-3.1127119999999997, -2.478709], [-3.0668789999999997, -2.582439], [-3.036387, -2.667674], [-3.026208, -2.719874], [-3.027831, -2.72687], [-3.049343, -2.7598979999999997], [-3.098465, -2.833357], [-3.169923, -2.9394229999999997], [-3.258445, -3.070274], [-3.358759, -3.218088], [-3.3785939999999997, -3.2472659999999998], [-3.4949879999999998, -3.420137], [-3.580548, -3.551774], [-3.638684, -3.648239], [-3.672808, -3.715592], [-3.686331, -3.7598939999999996], [-3.682664, -3.787206], [-3.6825699999999997, -3.7873799999999997], [-3.653707, -3.823254], [-3.589867, -3.8926089999999998], [-3.497969, -3.9882549999999997], [-3.3849329999999997, -4.103001], [-3.257679, -4.229659], [-3.243328, -4.2437949999999995], [-3.082957, -4.399096999999999], [-2.959195, -4.513129999999999], [-2.869555, -4.587998], [-2.811552, -4.625804], [-2.7860039999999997, -4.630682999999999], [-2.7487179999999998, -4.6093969999999995], [-2.671343, -4.560226999999999], [-2.561867, -4.488424999999999], [-2.42828, -4.399245], [-2.2785699999999998, -4.297937], [-2.243618, -4.274103], [-1.74739, -3.935235], [-1.523293, -4.036944], [-1.387011, -4.096217], [-1.240724, -4.15583], [-1.114965, -4.20336], [-1.1094249999999999, -4.205315], [-1.0110569999999999, -4.2413229999999995], [-0.935229, -4.271771], [-0.8982819999999999, -4.290095], [-0.8982199999999999, -4.290147999999999], [-0.886496, -4.323271], [-0.866568, -4.404733], [-0.840413, -4.5253749999999995], [-0.81001, -4.676041], [-0.777337, -4.8475719999999995], [-0.774664, -4.862032999999999], [-0.7418899999999999, -5.038765], [-0.7118019999999999, -5.19919], [-0.6863389999999999, -5.333112], [-0.667441, -5.430337], [-0.6570469999999999, -5.480668], [-0.6568649999999999, -5.481437], [-0.650539, -5.502847], [-0.638239, -5.519012], [-0.612594, -5.530669], [-0.5662349999999999, -5.538555], [-0.49179199999999995, -5.543406999999999], [-0.381895, -5.545961], [-0.229175, -5.546955], [-0.026261999999999997, -5.547126], [0.0, -5.547126], [0.20901399999999998, -5.547002]]]}]}, "edges_bbox": {"minx": 93.96799899999999, "miny": 51.321999, "maxx": 144.06800099999998, "maxy": 141.422001}, "metadata": {"date": "2019-01-21 12:55:00", "company": "", "revision": "", "title": "switches"}} +/////////////////////////////////////////////// + +/////////////////////////////////////////////// +/* Utility functions */ + +var storagePrefix = 'KiCad_HTML_BOM__' + pcbdata.metadata.title + '__' + + pcbdata.metadata.revision + '__'; +var storage; + +function initStorage(key) { + try { + window.localStorage.getItem("blank"); + storage = window.localStorage; + } catch (e) { + // localStorage not available + } + if (!storage) { + try { + window.sessionStorage.getItem("blank"); + storage = window.sessionStorage; + } catch (e) { + // sessionStorage also not available + } + } +} + +function readStorage(key) { + if (storage) { + return storage.getItem(storagePrefix + '#' + key); + } else { + return null; + } +} + +function writeStorage(key, value) { + if (storage) { + storage.setItem(storagePrefix + '#' + key, value); + } +} + +function fancyDblClickHandler(el, onsingle, ondouble) { + return function() { + if (el.getAttribute("data-dblclick") == null) { + el.setAttribute("data-dblclick", 1); + setTimeout(function() { + if (el.getAttribute("data-dblclick") == 1) { + onsingle(); + } + el.removeAttribute("data-dblclick"); + }, 200); + } else { + el.removeAttribute("data-dblclick"); + ondouble(); + } + } +} + +function smoothScrollToRow(rowid) { + document.getElementById(rowid).scrollIntoView({ + behavior: "smooth", + block: "center", + inline: "nearest" + }); +} + +function focusInputField(input) { + input.scrollIntoView(false); + input.focus(); + input.select(); +} + +function copyToClipboard() { + var text = ''; + for (var node of bomhead.childNodes[0].childNodes) { + if (node.firstChild) { + text = text + node.firstChild.nodeValue; + } + if (node != bomhead.childNodes[0].lastChild) { + text += '\t'; + } + } + text += '\n'; + for (var row of bombody.childNodes) { + for (var cell of row.childNodes) { + for (var node of cell.childNodes) { + if (node.nodeName == "INPUT") { + if (node.checked) { + text = text + '✓'; + } + } else if (node.nodeName == "MARK") { + text = text + node.firstChild.nodeValue; + } else { + text = text + node.nodeValue; + } + } + if (cell != row.lastChild) { + text += '\t'; + } + } + text += '\n'; + } + var textArea = document.createElement("textarea"); + textArea.classList.add('clipboard-temp'); + textArea.value = text; + + document.body.appendChild(textArea); + textArea.focus(); + textArea.select(); + + try { + if (document.execCommand('copy')) { + console.log('Bom copied to clipboard.'); + } + } catch (err) { + console.log('Can not copy to clipboard.'); + } + + document.body.removeChild(textArea); +} + +function removeGutterNode(node) { + for (var i = 0; i < node.childNodes.length; i++) { + if (node.childNodes[i].classList && + node.childNodes[i].classList.contains("gutter")) { + node.removeChild(node.childNodes[i]); + break; + } + } +} + +function cleanGutters() { + removeGutterNode(document.getElementById("bot")); + removeGutterNode(document.getElementById("canvasdiv")); +} + +var units = { + prefixes: { + giga: ["G", "g", "giga", "Giga", "GIGA"], + mega: ["M", "mega", "Mega", "MEGA"], + kilo: ["K", "k", "kilo", "Kilo", "KILO"], + milli: ["m", "milli", "Milli", "MILLI"], + micro: ["U", "u", "micro", "Micro", "MICRO", "μ", "µ"], // different utf8 μ + nano: ["N", "n", "nano", "Nano", "NANO"], + pico: ["P", "p", "pico", "Pico", "PICO"], + }, + unitsShort: ["R", "r", "Ω", "F", "f", "H", "h"], + unitsLong: [ + "OHM", "Ohm", "ohm", "ohms", + "FARAD", "Farad", "farad", + "HENRY", "Henry", "henry" + ], + getMultiplier: function(s) { + if (this.prefixes.giga.includes(s)) return 1e9; + if (this.prefixes.mega.includes(s)) return 1e6; + if (this.prefixes.kilo.includes(s)) return 1e3; + if (this.prefixes.milli.includes(s)) return 1e-3; + if (this.prefixes.micro.includes(s)) return 1e-6; + if (this.prefixes.nano.includes(s)) return 1e-9; + if (this.prefixes.pico.includes(s)) return 1e-12; + return 1; + }, + valueRegex: null, +} + +function initUtils() { + var allPrefixes = units.prefixes.giga + .concat(units.prefixes.mega) + .concat(units.prefixes.kilo) + .concat(units.prefixes.milli) + .concat(units.prefixes.micro) + .concat(units.prefixes.nano) + .concat(units.prefixes.pico); + var allUnits = units.unitsShort.concat(units.unitsLong); + units.valueRegex = new RegExp("^([0-9\.]+)" + + "\\s*(" + allPrefixes.join("|") + ")?" + + "(" + allUnits.join("|") + ")?" + + "(\\b.*)?$", ""); + units.valueAltRegex = new RegExp("^([0-9]*)" + + "(" + units.unitsShort.join("|") + ")?" + + "([GgMmKkUuNnPp])?" + + "([0-9]*)" + + "(\\b.*)?$", ""); + for (var bomtable of Object.values(pcbdata.bom)) { + for (var row of bomtable) { + row.push(parseValue(row[1], row[3][0][0])); + } + } +} + +function parseValue(val, ref) { + var inferUnit = (unit, ref) => { + if (unit) { + unit = unit.toLowerCase(); + if (unit == 'Ω' || unit == "ohm" || unit == "ohms") { + unit = 'r'; + } + unit = unit[0]; + } else { + ref = /^([a-z]+)\d+$/i.exec(ref); + if (ref) { + ref = ref[1].toLowerCase(); + if (ref == "c") unit = 'f'; + else if (ref == "l") unit = 'h'; + else if (ref == "r" || ref == "rv") unit = 'r'; + else unit = null; + } + } + return unit; + }; + val = val.replace(/,/g, ""); + var match = units.valueRegex.exec(val); + var unit; + if (match) { + val = parseFloat(match[1]); + if (match[2]) { + val = val * units.getMultiplier(match[2]); + } + unit = inferUnit(match[3], ref); + if (!unit) return null; + else return { + val: val, + unit: unit, + extra: match[4], + } + } + match = units.valueAltRegex.exec(val); + if (match && (match[1] || match[4])) { + val = parseFloat(match[1] + "." + match[4]); + if (match[3]) { + val = val * units.getMultiplier(match[3]); + } + unit = inferUnit(match[2], ref); + if (!unit) return null; + else return { + val: val, + unit: unit, + extra: match[5], + } + } + return null; +} + +function valueCompare(a, b, stra, strb) { + if (a === null && b === null) { + // Failed to parse both values, compare them as strings. + if (stra != strb) return stra > strb ? 1 : -1; + else return 0; + } else if (a === null) { + return 1; + } else if (b === null) { + return -1; + } else { + if (a.unit != b.unit) return a.unit > b.unit ? 1 : -1; + else if (a.val != b.val) return a.val > b.val ? 1 : -1; + else if (a.extra != b.extra) return a.extra > b.extra ? 1 : -1; + else return 0; + } +} + +/////////////////////////////////////////////// + +/////////////////////////////////////////////// +/* PCB rendering code */ + +var redrawOnDrag = true; +var boardRotation = 0; + +function deg2rad(deg) { + return deg * Math.PI / 180; +} + +function calcFontPoint(linepoint, text, offsetx, offsety, tilt) { + var point = [ + linepoint[0] * text.width + offsetx, + linepoint[1] * text.height + offsety + ]; + // Adding half a line height here is technically a bug + // but pcbnew currently does the same, text is slightly shifted. + point[0] -= (point[1] + text.height * 0.5) * tilt; + return point; +} + +function drawtext(ctx, text, color, flip) { + ctx.save(); + ctx.translate(...text.pos); + var angle = -text.angle; + if (text.attr.includes("mirrored")) { + ctx.scale(-1, 1); + angle = -angle; + } + var tilt = 0; + if (text.attr.includes("italic")) { + tilt = 0.125; + } + var interline = (text.height * 1.5 + text.thickness) / 2; + var txt = text.text.split("\n"); + // KiCad ignores last empty line. + if (txt[txt.length-1] == '') txt.pop(); + ctx.rotate(deg2rad(angle)); + ctx.fillStyle = color; + ctx.strokeStyle = color; + ctx.lineCap = "round"; + ctx.lineWidth = text.thickness; + for (var i in txt) { + var offsety = (-(txt.length - 1) + i * 2) * interline + text.height / 2; + var lineWidth = 0; + for (var c of txt[i]) { + lineWidth += pcbdata.font_data[c].w * text.width; + } + var offsetx = 0; + switch (text.horiz_justify) { + case -1: + // Justify left, do nothing + break; + case 0: + // Justify center + offsetx -= lineWidth / 2; + break; + case 1: + // Justify right + offsetx -= lineWidth; + break; + } + for (var c of txt[i]) { + for (var line of pcbdata.font_data[c].l) { + // Drawing each segment separately instead of + // polyline because round line caps don't work in joints + for (var i = 0; i < line.length - 1; i++) { + ctx.beginPath(); + ctx.moveTo(...calcFontPoint(line[i], text, offsetx, offsety, tilt)); + ctx.lineTo(...calcFontPoint(line[i + 1], text, offsetx, offsety, tilt)); + ctx.stroke(); + } + } + offsetx += pcbdata.font_data[c].w * text.width; + } + } + ctx.restore(); +} + +function drawedge(ctx, scalefactor, edge, color) { + ctx.strokeStyle = color; + ctx.lineWidth = Math.max(1 / scalefactor, edge.width); + ctx.lineCap = "round"; + if (edge.type == "segment") { + ctx.beginPath(); + ctx.moveTo(...edge.start); + ctx.lineTo(...edge.end); + ctx.stroke(); + } + if (edge.type == "arc") { + ctx.beginPath(); + ctx.arc( + ...edge.start, + edge.radius, + deg2rad(edge.startangle), + deg2rad(edge.endangle)); + ctx.stroke(); + } + if (edge.type == "circle") { + ctx.beginPath(); + ctx.arc( + ...edge.start, + edge.radius, + 0, 2 * Math.PI); + ctx.closePath(); + ctx.stroke(); + } +} + +function drawRoundRect(ctx, color, size, radius, ctxmethod) { + ctx.beginPath(); + ctx.strokeStyle = color; + var x = size[0] * -0.5; + var y = size[1] * -0.5; + var width = size[0]; + var height = size[1]; + ctx.moveTo(x, 0); + ctx.arcTo(x, y + height, x + width, y + height, radius); + ctx.arcTo(x + width, y + height, x + width, y, radius); + ctx.arcTo(x + width, y, x, y, radius); + ctx.arcTo(x, y, x, y + height, radius); + ctx.closePath(); + ctxmethod(); +} + +function drawOblong(ctx, color, size, ctxmethod) { + drawRoundRect(ctx, color, size, Math.min(size[0], size[1]) / 2, ctxmethod); +} + +function drawPolygons(ctx, color, polygons, ctxmethod) { + ctx.fillStyle = color; + for (var polygon of polygons) { + ctx.beginPath(); + for (var vertex of polygon) { + ctx.lineTo(...vertex) + } + ctx.closePath(); + ctxmethod(); + } +} + +function drawPolygonShape(ctx, shape, color) { + ctx.save(); + ctx.translate(...shape.pos); + ctx.rotate(deg2rad(-shape.angle)); + drawPolygons(ctx, color, shape.polygons, ctx.fill.bind(ctx)); + ctx.restore(); +} + +function drawDrawing(ctx, layer, scalefactor, drawing, color) { + if (["segment", "arc", "circle"].includes(drawing.type)) { + drawedge(ctx, scalefactor, drawing, color); + } else if (drawing.type == "polygon") { + drawPolygonShape(ctx, drawing, color); + } else { + drawtext(ctx, drawing, color, layer == "B"); + } +} + +function drawCircle(ctx, radius, ctxmethod) { + ctx.beginPath(); + ctx.arc(0, 0, radius, 0, 2 * Math.PI); + ctx.closePath(); + ctxmethod(); +} + +function drawPad(ctx, pad, color, outline) { + ctx.save(); + ctx.translate(...pad.pos); + ctx.rotate(deg2rad(pad.angle)); + if (pad.offset) { + ctx.translate(...pad.offset); + } + ctx.fillStyle = color; + ctx.strokeStyle = color; + var ctxmethod = outline ? ctx.stroke.bind(ctx) : ctx.fill.bind(ctx); + if (pad.shape == "rect") { + var rect = [...pad.size.map(c => -c * 0.5), ...pad.size]; + if (outline) { + ctx.strokeRect(...rect); + } else { + ctx.fillRect(...rect); + } + } else if (pad.shape == "oval") { + drawOblong(ctx, color, pad.size, ctxmethod); + } else if (pad.shape == "circle") { + drawCircle(ctx, pad.size[0] / 2, ctxmethod); + } else if (pad.shape == "roundrect") { + drawRoundRect(ctx, color, pad.size, pad.radius, ctxmethod); + } else if (pad.shape == "custom") { + drawPolygons(ctx, color, pad.polygons, ctxmethod); + } + if (pad.type == "th" && !outline) { + ctx.fillStyle = "#CCCCCC"; + if (pad.drillshape == "oblong") { + drawOblong(ctx, "#CCCCCC", pad.drillsize, ctxmethod); + } else { + drawCircle(ctx, pad.drillsize[0] / 2, ctxmethod); + } + } + ctx.restore(); +} + +function drawModule(ctx, layer, scalefactor, module, padcolor, outlinecolor, highlight) { + if (highlight) { + // draw bounding box + if (module.layer == layer) { + ctx.save(); + ctx.globalAlpha = 0.2; + ctx.translate(...module.bbox.pos); + ctx.fillStyle = padcolor; + ctx.fillRect( + 0, 0, + ...module.bbox.size); + ctx.globalAlpha = 1; + ctx.strokeStyle = padcolor; + ctx.strokeRect( + 0, 0, + ...module.bbox.size); + ctx.restore(); + } + } + // draw drawings + for (var drawing of module.drawings) { + if (drawing.layer == layer) { + drawDrawing(ctx, layer, scalefactor, drawing.drawing, padcolor); + } + } + // draw pads + for (var pad of module.pads) { + if (pad.layers.includes(layer)) { + drawPad(ctx, pad, padcolor, false); + if (pad.pin1 && highlightpin1) { + drawPad(ctx, pad, outlinecolor, true); + } + } + } +} + +function drawEdges(canvas, scalefactor) { + var ctx = canvas.getContext("2d"); + var edgecolor = getComputedStyle(topmostdiv).getPropertyValue('--pcb-edge-color'); + for (var edge of pcbdata.edges) { + drawedge(ctx, scalefactor, edge, edgecolor); + } +} + +function drawModules(canvas, layer, scalefactor, highlight) { + var ctx = canvas.getContext("2d"); + ctx.lineWidth = 3 / scalefactor; + var style = getComputedStyle(topmostdiv); + var padcolor = style.getPropertyValue('--pad-color'); + var outlinecolor = style.getPropertyValue('--pin1-outline-color'); + if (highlight > 0) { + padcolor = style.getPropertyValue('--pad-color-highlight'); + outlinecolor = style.getPropertyValue('--pin1-outline-color-highlight'); + } + for (var i = 0; i < pcbdata.modules.length; i++) { + var mod = pcbdata.modules[i]; + if (!highlight || highlightedModules.includes(i)) { + drawModule(ctx, layer, scalefactor, mod, padcolor, outlinecolor, highlight); + } + } +} + +function drawSilkscreen(canvas, layer, scalefactor) { + var ctx = canvas.getContext("2d"); + for (var d of pcbdata.silkscreen[layer]) { + if (["segment", "arc", "circle"].includes(d.type)) { + drawedge(ctx, scalefactor, d, "#aa4"); + } else if (d.type == "polygon") { + drawPolygonShape(ctx, d, "#4aa"); + } else { + drawtext(ctx, d, "#4aa", layer == "B"); + } + } +} + +function clearCanvas(canvas) { + var ctx = canvas.getContext("2d"); + ctx.save(); + ctx.setTransform(1, 0, 0, 1, 0, 0); + ctx.clearRect(0, 0, canvas.width, canvas.height); + ctx.restore(); +} + +function drawHighlightsOnLayer(canvasdict) { + clearCanvas(canvasdict.highlight); + drawModules(canvasdict.highlight, canvasdict.layer, + canvasdict.transform.s * canvasdict.transform.zoom, true); +} + +function drawHighlights() { + drawHighlightsOnLayer(allcanvas.front); + drawHighlightsOnLayer(allcanvas.back); +} + +function drawBackground(canvasdict) { + clearCanvas(canvasdict.bg); + clearCanvas(canvasdict.silk); + drawEdges(canvasdict.bg, canvasdict.transform.s); + drawModules(canvasdict.bg, canvasdict.layer, + canvasdict.transform.s * canvasdict.transform.zoom, false); + drawSilkscreen(canvasdict.silk, canvasdict.layer, canvasdict.transform.s); +} + +function prepareCanvas(canvas, flip, transform) { + var ctx = canvas.getContext("2d"); + ctx.setTransform(1, 0, 0, 1, 0, 0); + var fontsize = 1.55; + ctx.scale(transform.zoom, transform.zoom); + ctx.translate(transform.panx, transform.pany); + if (flip) { + ctx.scale(-1, 1); + } + ctx.translate(transform.x, transform.y); + ctx.rotate(deg2rad(boardRotation)); + ctx.scale(transform.s, transform.s); +} + +function prepareLayer(canvasdict) { + var flip = (canvasdict.layer == "B"); + for (var c of ["bg", "silk", "highlight"]) { + prepareCanvas(canvasdict[c], flip, canvasdict.transform); + } +} + +function rotateVector(v, angle) { + angle = deg2rad(angle); + return [ + v[0] * Math.cos(angle) - v[1] * Math.sin(angle), + v[0] * Math.sin(angle) + v[1] * Math.cos(angle) + ]; +} + +function applyRotation(bbox) { + var corners = [ + [bbox.minx, bbox.miny], + [bbox.minx, bbox.maxy], + [bbox.maxx, bbox.miny], + [bbox.maxx, bbox.maxy], + ]; + corners = corners.map((v) => rotateVector(v, boardRotation)); + return { + minx: corners.reduce((a, v) => Math.min(a, v[0]), Infinity), + miny: corners.reduce((a, v) => Math.min(a, v[1]), Infinity), + maxx: corners.reduce((a, v) => Math.max(a, v[0]), -Infinity), + maxy: corners.reduce((a, v) => Math.max(a, v[1]), -Infinity), + } +} + +function recalcLayerScale(canvasdict) { + var canvasdivid = { + "F": "frontcanvas", + "B": "backcanvas" + } [canvasdict.layer]; + var width = document.getElementById(canvasdivid).clientWidth * 2; + var height = document.getElementById(canvasdivid).clientHeight * 2; + var bbox = applyRotation(pcbdata.edges_bbox); + var scalefactor = 0.98 * Math.min( + width / (bbox.maxx - bbox.minx), + height / (bbox.maxy - bbox.miny) + ); + if (scalefactor < 0.1) { + scalefactor = 1; + } + canvasdict.transform.s = scalefactor; + var flip = (canvasdict.layer == "B"); + if (flip) { + canvasdict.transform.x = -((bbox.maxx + bbox.minx) * scalefactor + width) * 0.5; + } else { + canvasdict.transform.x = -((bbox.maxx + bbox.minx) * scalefactor - width) * 0.5; + } + canvasdict.transform.y = -((bbox.maxy + bbox.miny) * scalefactor - height) * 0.5; + for (var c of ["bg", "silk", "highlight"]) { + canvas = canvasdict[c]; + canvas.width = width; + canvas.height = height; + canvas.style.width = (width / 2) + "px"; + canvas.style.height = (height / 2) + "px"; + } +} + +function redrawCanvas(layerdict) { + prepareLayer(layerdict); + drawBackground(layerdict); + drawHighlightsOnLayer(layerdict); +} + +function resizeCanvas(layerdict) { + recalcLayerScale(layerdict); + redrawCanvas(layerdict); +} + +function resizeAll() { + resizeCanvas(allcanvas.front); + resizeCanvas(allcanvas.back); +} + +function bboxScan(layer, x, y) { + var result = []; + for (var i = 0; i < pcbdata.modules.length; i++) { + var module = pcbdata.modules[i]; + if (module.layer == layer) { + var b = module.bbox; + if (b.pos[0] <= x && b.pos[0] + b.size[0] >= x && + b.pos[1] <= y && b.pos[1] + b.size[1] >= y) { + result.push(i); + } + } + } + return result; +} + +function handleMouseDown(e, layerdict) { + if (e.which != 1) { + return; + } + e.preventDefault(); + e.stopPropagation(); + layerdict.transform.mousestartx = e.offsetX; + layerdict.transform.mousestarty = e.offsetY; + layerdict.transform.mousedownx = e.offsetX; + layerdict.transform.mousedowny = e.offsetY; + layerdict.transform.mousedown = true; +} + +function handleMouseClick(e, layerdict) { + var x = e.offsetX; + var y = e.offsetY; + var t = layerdict.transform; + if (layerdict.layer == "B") { + x = (2 * x / t.zoom - t.panx + t.x) / -t.s; + } else { + x = (2 * x / t.zoom - t.panx - t.x) / t.s; + } + y = (2 * y / t.zoom - t.y - t.pany) / t.s; + var v = rotateVector([x, y], -boardRotation); + var modules = bboxScan(layerdict.layer, v[0], v[1]); + if (modules.length > 0) { + modulesClicked(modules); + } +} + +function handleMouseUp(e, layerdict) { + e.preventDefault(); + e.stopPropagation(); + if (e.which == 1 && + layerdict.transform.mousedown && + layerdict.transform.mousedownx == e.offsetX && + layerdict.transform.mousedowny == e.offsetY) { + // This is just a click + handleMouseClick(e, layerdict); + layerdict.transform.mousedown = false; + return; + } + if (e.which == 3) { + // Reset pan and zoom on right click. + layerdict.transform.panx = 0; + layerdict.transform.pany = 0; + layerdict.transform.zoom = 1; + redrawCanvas(layerdict); + } else if (!redrawOnDrag) { + redrawCanvas(layerdict); + } + layerdict.transform.mousedown = false; +} + +function handleMouseMove(e, layerdict) { + if (!layerdict.transform.mousedown) { + return; + } + e.preventDefault(); + e.stopPropagation(); + var dx = e.offsetX - layerdict.transform.mousestartx; + var dy = e.offsetY - layerdict.transform.mousestarty; + layerdict.transform.panx += 2 * dx / layerdict.transform.zoom; + layerdict.transform.pany += 2 * dy / layerdict.transform.zoom; + layerdict.transform.mousestartx = e.offsetX; + layerdict.transform.mousestarty = e.offsetY; + if (redrawOnDrag) { + redrawCanvas(layerdict); + } +} + +function handleMouseWheel(e, layerdict) { + e.preventDefault(); + e.stopPropagation(); + var t = layerdict.transform; + var wheeldelta = e.deltaY; + if (e.deltaMode == 1) { + // FF only, scroll by lines + wheeldelta *= 30; + } else if (e.deltaMode == 2) { + wheeldelta *= 300; + } + var m = Math.pow(1.1, -wheeldelta / 40); + // Limit amount of zoom per tick. + if (m > 2) { + m = 2; + } else if (m < 0.5) { + m = 0.5; + } + t.zoom *= m; + var zoomd = (1 - m) / t.zoom; + t.panx += 2 * e.offsetX * zoomd; + t.pany += 2 * e.offsetY * zoomd; + redrawCanvas(layerdict); +} + +function addMouseHandlers(div, layerdict) { + div.onmousedown = function(e) { + handleMouseDown(e, layerdict); + }; + div.onmousemove = function(e) { + handleMouseMove(e, layerdict); + }; + div.onmouseup = function(e) { + handleMouseUp(e, layerdict); + }; + div.onmouseout = function(e) { + handleMouseUp(e, layerdict); + } + div.onwheel = function(e) { + handleMouseWheel(e, layerdict); + } + for (var element of [div, layerdict.bg, layerdict.silk, layerdict.highlight]) { + element.addEventListener("contextmenu", function(e) { + e.preventDefault(); + }, false); + } +} + +function setRedrawOnDrag(value) { + redrawOnDrag = value; + writeStorage("redrawOnDrag", value); +} + +function setBoardRotation(value) { + boardRotation = value * 5; + writeStorage("boardRotation", boardRotation); + document.getElementById("rotationDegree").textContent = boardRotation; + resizeAll(); +} + +function initRender() { + allcanvas = { + front: { + transform: { + x: 0, + y: 0, + s: 1, + panx: 0, + pany: 0, + zoom: 1, + mousestartx: 0, + mousestarty: 0, + mousedown: false, + }, + bg: document.getElementById("F_bg"), + silk: document.getElementById("F_slk"), + highlight: document.getElementById("F_hl"), + layer: "F", + }, + back: { + transform: { + x: 0, + y: 0, + s: 1, + panx: 0, + pany: 0, + zoom: 1, + mousestartx: 0, + mousestarty: 0, + mousedown: false, + }, + bg: document.getElementById("B_bg"), + silk: document.getElementById("B_slk"), + highlight: document.getElementById("B_hl"), + layer: "B", + } + }; + addMouseHandlers(document.getElementById("frontcanvas"), allcanvas.front); + addMouseHandlers(document.getElementById("backcanvas"), allcanvas.back); +} + +/////////////////////////////////////////////// + +/////////////////////////////////////////////// +/* DOM manipulation and misc code */ + +var bomsplit; +var canvassplit; +var canvaslayout = "default"; +var bomlayout = "default"; +var initDone = false; +var bomSortFunction = null; +var currentSortColumn = null; +var currentSortOrder = null; +var currentHighlightedRowId; +var highlightHandlers = []; +var highlightedModules = []; +var checkboxes = []; +var bomCheckboxes = ""; +var highlightpin1 = false; +var lastClicked; + +function dbg(html) { + dbgdiv.innerHTML = html; +} + +function setDarkMode(value) { + if (value) { + topmostdiv.classList.add("dark"); + } else { + topmostdiv.classList.remove("dark"); + } + writeStorage("darkmode", value); + if (initDone) { + redrawCanvas(allcanvas.front); + redrawCanvas(allcanvas.back); + } +} + +function setHighlightPin1(value) { + writeStorage("highlightpin1", value); + highlightpin1 = value; + if (initDone) { + redrawCanvas(allcanvas.front); + redrawCanvas(allcanvas.back); + } +} + +function getStoredCheckboxRefs(checkbox) { + function convert(ref) { + var intref = parseInt(ref); + if (isNaN(intref)) { + for (var i = 0; i < pcbdata.modules.length; i++) { + if (pcbdata.modules[i].ref == ref) { + return i; + } + } + return -1; + } else { + return intref; + } + } + var existingRefs = readStorage("checkbox_" + checkbox); + if (!existingRefs) { + return new Set(); + } else { + return new Set(existingRefs.split(",").map(r => convert(r))); + } +} + +function getCheckboxState(checkbox, references) { + var storedRefsSet = getStoredCheckboxRefs(checkbox); + var currentRefsSet = new Set(references.map(r => r[1])); + // Get difference of current - stored + var difference = new Set(currentRefsSet); + for (ref of storedRefsSet) { + difference.delete(ref); + } + if (difference.size == 0) { + // All the current refs are stored + return "checked"; + } else if (difference.size == currentRefsSet.size) { + // None of the current refs are stored + return "unchecked"; + } else { + // Some of the refs are stored + return "indeterminate"; + } +} + +function setBomCheckboxState(checkbox, element, references) { + var state = getCheckboxState(checkbox, references); + element.checked = (state == "checked"); + element.indeterminate = (state == "indeterminate"); +} + +function createCheckboxChangeHandler(checkbox, references) { + return function() { + refsSet = getStoredCheckboxRefs(checkbox); + if (this.checked) { + // checkbox ticked + for (var ref of references) { + refsSet.add(ref[1]); + } + } else { + // checkbox unticked + for (var ref of references) { + refsSet.delete(ref[1]); + } + } + writeStorage("checkbox_" + checkbox, [...refsSet].join(",")); + } +} + +function createRowHighlightHandler(rowid, refs) { + return function() { + if (currentHighlightedRowId) { + if (currentHighlightedRowId == rowid) { + return; + } + document.getElementById(currentHighlightedRowId).classList.remove("highlighted"); + } + document.getElementById(rowid).classList.add("highlighted"); + currentHighlightedRowId = rowid; + highlightedModules = refs.map(r => r[1]); + drawHighlights(); + } +} + +function entryMatches(entry) { + // check refs + for (var ref of entry[3]) { + if (ref[0].toLowerCase().indexOf(filter) >= 0) { + return true; + } + } + // check value + if (entry[1].toLowerCase().indexOf(filter) >= 0) { + return true; + } + // check footprint + if (entry[2].toLowerCase().indexOf(filter) >= 0) { + return true; + } + return false; +} + +function findRefInEntry(entry) { + return entry[3].filter(r => r[0].toLowerCase() == reflookup); +} + +function highlightFilter(s) { + if (!filter) { + return s; + } + var parts = s.toLowerCase().split(filter); + if (parts.length == 1) { + return s; + } + var r = ""; + var pos = 0; + for (var i in parts) { + if (i > 0) { + r += '<mark class="highlight">' + + s.substring(pos, pos + filter.length) + + '</mark>'; + pos += filter.length; + } + r += s.substring(pos, pos + parts[i].length); + pos += parts[i].length; + } + return r; +} + +function checkboxSetUnsetAllHandler(checkboxname) { + return function() { + var checkboxnum = 0; + while (checkboxnum < checkboxes.length && + checkboxes[checkboxnum].toLowerCase() != checkboxname.toLowerCase()) { + checkboxnum++; + } + if (checkboxnum >= checkboxes.length) { + return; + } + var allset = true; + var checkbox; + var row; + for (row of bombody.childNodes) { + checkbox = row.childNodes[checkboxnum + 1].childNodes[0]; + if (!checkbox.checked || checkbox.indeterminate) { + allset = false; + break; + } + } + for (row of bombody.childNodes) { + checkbox = row.childNodes[checkboxnum + 1].childNodes[0]; + checkbox.checked = !allset; + checkbox.indeterminate = false; + checkbox.onchange(); + } + } +} + +function createColumnHeader(name, cls, comparator) { + var th = document.createElement("TH"); + th.innerHTML = name; + th.classList.add(cls); + th.style.cursor = "pointer"; + var span = document.createElement("SPAN"); + span.classList.add("sortmark"); + span.classList.add("none"); + th.appendChild(span); + th.onclick = function() { + if (currentSortColumn && this !== currentSortColumn) { + // Currently sorted by another column + currentSortColumn.childNodes[1].classList.remove(currentSortOrder); + currentSortColumn.childNodes[1].classList.add("none"); + currentSortColumn = null; + currentSortOrder = null; + } + if (currentSortColumn && this === currentSortColumn) { + // Already sorted by this column + if (currentSortOrder == "asc") { + // Sort by this column, descending order + bomSortFunction = function(a, b) { + return -comparator(a, b); + } + currentSortColumn.childNodes[1].classList.remove("asc"); + currentSortColumn.childNodes[1].classList.add("desc"); + currentSortOrder = "desc"; + } else { + // Unsort + bomSortFunction = null; + currentSortColumn.childNodes[1].classList.remove("desc"); + currentSortColumn.childNodes[1].classList.add("none"); + currentSortColumn = null; + currentSortOrder = null; + } + } else { + // Sort by this column, ascending order + bomSortFunction = comparator; + currentSortColumn = this; + currentSortColumn.childNodes[1].classList.remove("none"); + currentSortColumn.childNodes[1].classList.add("asc"); + currentSortOrder = "asc"; + } + populateBomBody(); + } + return th; +} + +function populateBomHeader() { + while (bomhead.firstChild) { + bomhead.removeChild(bomhead.firstChild); + } + var tr = document.createElement("TR"); + var th = document.createElement("TH"); + th.classList.add("numCol"); + tr.appendChild(th); + checkboxes = bomCheckboxes.split(",").filter((e) => e); + var checkboxCompareClosure = function(checkbox) { + return (a, b) => { + var stateA = getCheckboxState(checkbox, a[3]); + var stateB = getCheckboxState(checkbox, b[3]); + if (stateA > stateB) return -1; + if (stateA < stateB) return 1; + return 0; + } + } + for (var checkbox of checkboxes) { + th = createColumnHeader( + checkbox, "bom-checkbox", checkboxCompareClosure(checkbox)); + th.onclick = fancyDblClickHandler( + th, th.onclick.bind(th), checkboxSetUnsetAllHandler(checkbox)); + tr.appendChild(th); + } + tr.appendChild(createColumnHeader("References", "References", (a, b) => { + var i = 0; + while (i < a[3].length && i < b[3].length) { + if (a[3][i] != b[3][i]) return a[3][i] > b[3][i] ? 1 : -1; + i++; + } + return a[3].length - b[3].length; + })); + // Extra fields + if (config.extra_fields.length > 0) { + var extraFieldCompareClosure = function(fieldIndex) { + return (a, b) => { + var fa = a[4][fieldIndex]; + var fb = b[4][fieldIndex]; + if (fa != fb) return fa > fb ? 1 : -1; + else return 0; + } + } + for (var i in config.extra_fields) { + tr.appendChild(createColumnHeader( + config.extra_fields[i], "extra", extraFieldCompareClosure(i))); + } + } + tr.appendChild(createColumnHeader("Value", "Value", (a, b) => { + return valueCompare(a[5], b[5], a[1], b[1]); + })); + tr.appendChild(createColumnHeader("Footprint", "Footprint", (a, b) => { + if (a[2] != b[2]) return a[2] > b[2] ? 1 : -1; + else return 0; + })); + tr.appendChild(createColumnHeader("Quantity", "Quantity", (a, b) => { + return a[3].length - b[3].length; + })); + bomhead.appendChild(tr); +} + +function populateBomBody() { + while (bom.firstChild) { + bom.removeChild(bom.firstChild); + } + highlightHandlers = []; + currentHighlightedRowId = null; + var first = true; + switch (canvaslayout) { + case 'F': + bomtable = pcbdata.bom.F; + break; + case 'FB': + bomtable = pcbdata.bom.both; + break; + case 'B': + bomtable = pcbdata.bom.B; + break; + } + if (bomSortFunction) { + bomtable = bomtable.slice().sort(bomSortFunction); + } + for (var i in bomtable) { + var bomentry = bomtable[i]; + if (filter && !entryMatches(bomentry)) { + continue; + } + var references = bomentry[3]; + if (reflookup) { + references = findRefInEntry(bomentry); + if (references.length == 0) { + continue; + } + } + var tr = document.createElement("TR"); + var td = document.createElement("TD"); + var rownum = +i + 1; + tr.id = "bomrow" + rownum; + td.textContent = rownum; + tr.appendChild(td); + // Checkboxes + for (var checkbox of checkboxes) { + if (checkbox) { + td = document.createElement("TD"); + var input = document.createElement("input"); + input.type = "checkbox"; + input.onchange = createCheckboxChangeHandler(checkbox, references); + setBomCheckboxState(checkbox, input, references); + td.appendChild(input); + tr.appendChild(td); + } + } + // References + td = document.createElement("TD"); + td.innerHTML = highlightFilter(references.map(r => r[0]).join(", ")); + tr.appendChild(td); + // Extra fields + for (var i in config.extra_fields) { + td = document.createElement("TD"); + td.innerHTML = highlightFilter(bomentry[4][i]); + tr.appendChild(td); + } + // Value + td = document.createElement("TD"); + td.innerHTML = highlightFilter(bomentry[1]); + tr.appendChild(td); + // Footprint + td = document.createElement("TD"); + td.innerHTML = highlightFilter(bomentry[2]); + tr.appendChild(td); + // Quantity + td = document.createElement("TD"); + td.textContent = bomentry[3].length; + tr.appendChild(td); + bom.appendChild(tr); + var handler = createRowHighlightHandler(tr.id, references); + tr.onmousemove = handler; + highlightHandlers.push({ + id: tr.id, + handler: handler, + refs: references + }); + if ((filter || reflookup) && first) { + handler(); + first = false; + } + } +} + +function highlightPreviousRow() { + if (!currentHighlightedRowId) { + highlightHandlers[highlightHandlers.length - 1].handler(); + } else { + if (highlightHandlers.length > 1 && + highlightHandlers[0].id == currentHighlightedRowId) { + highlightHandlers[highlightHandlers.length - 1].handler(); + } else { + for (var i = 0; i < highlightHandlers.length - 1; i++) { + if (highlightHandlers[i + 1].id == currentHighlightedRowId) { + highlightHandlers[i].handler(); + break; + } + } + } + } + smoothScrollToRow(currentHighlightedRowId); +} + +function highlightNextRow() { + if (!currentHighlightedRowId) { + highlightHandlers[0].handler(); + } else { + if (highlightHandlers.length > 1 && + highlightHandlers[highlightHandlers.length - 1].id == currentHighlightedRowId) { + highlightHandlers[0].handler(); + } else { + for (var i = 1; i < highlightHandlers.length; i++) { + if (highlightHandlers[i - 1].id == currentHighlightedRowId) { + highlightHandlers[i].handler(); + break; + } + } + } + } + smoothScrollToRow(currentHighlightedRowId); +} + +function populateBomTable() { + populateBomHeader(); + populateBomBody(); +} + +function modulesClicked(moduleIndexes) { + var lastClickedIndex = moduleIndexes.indexOf(lastClicked); + var index = moduleIndexes[(lastClickedIndex + 1) % moduleIndexes.length]; + for (var handler of highlightHandlers) { + if (handler.refs.map(r => r[1]).indexOf(index) >= 0) { + lastClicked = index; + handler.handler(); + smoothScrollToRow(currentHighlightedRowId); + break; + } + } +} + +function updateFilter(input) { + filter = input.toLowerCase(); + populateBomTable(); +} + +function updateRefLookup(input) { + reflookup = input.toLowerCase(); + populateBomTable(); +} + +function silkscreenVisible(visible) { + if (visible) { + allcanvas.front.silk.style.display = ""; + allcanvas.back.silk.style.display = ""; + writeStorage("silkscreenVisible", true); + } else { + allcanvas.front.silk.style.display = "none"; + allcanvas.back.silk.style.display = "none"; + writeStorage("silkscreenVisible", false); + } +} + +function changeCanvasLayout(layout) { + document.getElementById("fl-btn").classList.remove("depressed"); + document.getElementById("fb-btn").classList.remove("depressed"); + document.getElementById("bl-btn").classList.remove("depressed"); + switch (layout) { + case 'F': + document.getElementById("fl-btn").classList.add("depressed"); + if (bomlayout != "bom-only") { + canvassplit.collapse(1); + } + break; + case 'B': + document.getElementById("bl-btn").classList.add("depressed"); + if (bomlayout != "bom-only") { + canvassplit.collapse(0); + } + break; + default: + document.getElementById("fb-btn").classList.add("depressed"); + if (bomlayout != "bom-only") { + canvassplit.setSizes([50, 50]); + } + } + canvaslayout = layout; + writeStorage("canvaslayout", layout); + resizeAll(); + populateBomTable(); +} + +function populateMetadata() { + document.getElementById("title").innerHTML = pcbdata.metadata.title; + document.getElementById("revision").innerHTML = "Rev: " + pcbdata.metadata.revision; + document.getElementById("company").innerHTML = pcbdata.metadata.company; + document.getElementById("filedate").innerHTML = pcbdata.metadata.date; + if (pcbdata.metadata.title != "") { + document.title = pcbdata.metadata.title + " BOM"; + } +} + +function changeBomLayout(layout) { + document.getElementById("bom-btn").classList.remove("depressed"); + document.getElementById("lr-btn").classList.remove("depressed"); + document.getElementById("tb-btn").classList.remove("depressed"); + switch (layout) { + case 'bom-only': + document.getElementById("bom-btn").classList.add("depressed"); + if (bomsplit) { + bomsplit.destroy(); + bomsplit = null; + canvassplit.destroy(); + canvassplit = null; + } + document.getElementById("frontcanvas").style.display = "none"; + document.getElementById("backcanvas").style.display = "none"; + document.getElementById("bot").style.height = ""; + break; + case 'top-bottom': + document.getElementById("tb-btn").classList.add("depressed"); + document.getElementById("frontcanvas").style.display = ""; + document.getElementById("backcanvas").style.display = ""; + document.getElementById("bot").style.height = "calc(100% - 80px)"; + document.getElementById("bomdiv").classList.remove("split-horizontal"); + document.getElementById("canvasdiv").classList.remove("split-horizontal"); + document.getElementById("frontcanvas").classList.add("split-horizontal"); + document.getElementById("backcanvas").classList.add("split-horizontal"); + if (bomsplit) { + bomsplit.destroy(); + bomsplit = null; + canvassplit.destroy(); + canvassplit = null; + } + bomsplit = Split(['#bomdiv', '#canvasdiv'], { + sizes: [50, 50], + onDragEnd: resizeAll, + direction: "vertical", + gutterSize: 5 + }); + canvassplit = Split(['#frontcanvas', '#backcanvas'], { + sizes: [50, 50], + gutterSize: 5, + onDragEnd: resizeAll + }); + break; + case 'left-right': + document.getElementById("lr-btn").classList.add("depressed"); + document.getElementById("frontcanvas").style.display = ""; + document.getElementById("backcanvas").style.display = ""; + document.getElementById("bot").style.height = "calc(100% - 80px)"; + document.getElementById("bomdiv").classList.add("split-horizontal"); + document.getElementById("canvasdiv").classList.add("split-horizontal"); + document.getElementById("frontcanvas").classList.remove("split-horizontal"); + document.getElementById("backcanvas").classList.remove("split-horizontal"); + if (bomsplit) { + bomsplit.destroy(); + bomsplit = null; + canvassplit.destroy(); + canvassplit = null; + } + bomsplit = Split(['#bomdiv', '#canvasdiv'], { + sizes: [50, 50], + onDragEnd: resizeAll, + gutterSize: 5 + }); + canvassplit = Split(['#frontcanvas', '#backcanvas'], { + sizes: [50, 50], + gutterSize: 5, + direction: "vertical", + onDragEnd: resizeAll + }); + } + bomlayout = layout; + writeStorage("bomlayout", layout); + changeCanvasLayout(canvaslayout); +} + +function focusFilterField() { + focusInputField(document.getElementById("filter")); +} + +function focusRefLookupField() { + focusInputField(document.getElementById("reflookup")); +} + +function toggleBomCheckbox(bomrowid, checkboxnum) { + if (!bomrowid || checkboxnum > checkboxes.length) { + return; + } + var bomrow = document.getElementById(bomrowid); + var checkbox = bomrow.childNodes[checkboxnum].childNodes[0]; + checkbox.checked = !checkbox.checked; + checkbox.indeterminate = false; + checkbox.onchange(); +} + +function checkBomCheckbox(bomrowid, checkboxname) { + var checkboxnum = 0; + while (checkboxnum < checkboxes.length && + checkboxes[checkboxnum].toLowerCase() != checkboxname.toLowerCase()) { + checkboxnum++; + } + if (!bomrowid || checkboxnum >= checkboxes.length) { + return; + } + var bomrow = document.getElementById(bomrowid); + var checkbox = bomrow.childNodes[checkboxnum + 1].childNodes[0]; + checkbox.checked = true; + checkbox.indeterminate = false; + checkbox.onchange(); +} + +function setBomCheckboxes(value) { + bomCheckboxes = value; + writeStorage("bomCheckboxes", value); + populateBomTable(); +} + +document.onkeydown = function(e) { + switch (e.key) { + case "n": + if (document.activeElement.type == "text") { + return; + } + if (currentHighlightedRowId !== null) { + checkBomCheckbox(currentHighlightedRowId, "placed"); + highlightNextRow(); + e.preventDefault(); + } + break; + case "ArrowUp": + highlightPreviousRow(); + e.preventDefault(); + break; + case "ArrowDown": + highlightNextRow(); + e.preventDefault(); + break; + default: + break; + } + if (e.altKey) { + switch (e.key) { + case "f": + focusFilterField(); + e.preventDefault(); + break; + case "r": + focusRefLookupField(); + e.preventDefault(); + break; + case "z": + changeBomLayout("bom-only"); + e.preventDefault(); + break; + case "x": + changeBomLayout("left-right"); + e.preventDefault(); + break; + case "c": + changeBomLayout("top-bottom"); + e.preventDefault(); + break; + case "v": + changeCanvasLayout("F"); + e.preventDefault(); + break; + case "b": + changeCanvasLayout("FB"); + e.preventDefault(); + break; + case "n": + changeCanvasLayout("B"); + e.preventDefault(); + break; + default: + break; + } + if (e.key >= '1' && e.key <= '9') { + toggleBomCheckbox(currentHighlightedRowId, parseInt(e.key)); + } + } +} + +function initDefaults() { + bomlayout = readStorage("bomlayout"); + if (bomlayout === null) { + bomlayout = config.bom_view; + } + if (!['bom-only', 'left-right', 'top-bottom'].includes(bomlayout)) { + bomlayout = config.bom_view; + } + canvaslayout = readStorage("canvaslayout"); + if (canvaslayout === null) { + canvaslayout = config.layer_view; + } + bomCheckboxes = readStorage("bomCheckboxes"); + if (bomCheckboxes === null) { + bomCheckboxes = config.checkboxes; + } + document.getElementById("bomCheckboxes").value = bomCheckboxes; + + var b = readStorage("silkscreenVisible"); + if (b === null) { + b = config.show_silkscreen; + } + document.getElementById("silkscreenCheckbox").checked = b; + silkscreenVisible(b); + + b = readStorage("redrawOnDrag"); + if (b === null) { + b = config.redraw_on_drag; + } + document.getElementById("dragCheckbox").checked = b; + setRedrawOnDrag(b); + + b = readStorage("darkmode"); + if (b === null) { + b = config.dark_mode; + } + document.getElementById("darkmodeCheckbox").checked = b; + setDarkMode(b); + + b = readStorage("highlightpin1"); + if (b === null) { + b = config.highlight_pin1; + } + document.getElementById("highlightpin1Checkbox").checked = b; + setHighlightPin1(b); + + boardRotation = readStorage("boardRotation"); + if (boardRotation === null) { + boardRotation = config.board_rotation * 5; + } else { + boardRotation = parseInt(boardRotation); + } + document.getElementById("boardRotation").value = boardRotation / 5; + document.getElementById("rotationDegree").textContent = boardRotation; +} + +window.onload = function(e) { + initUtils(); + initRender(); + initStorage(); + initDefaults(); + cleanGutters(); + populateMetadata(); + dbgdiv = document.getElementById("dbg"); + bom = document.getElementById("bombody"); + bomhead = document.getElementById("bomhead"); + filter = ""; + reflookup = ""; + initDone = true; + // Triggers render + changeBomLayout(bomlayout); +} + +window.onresize = resizeAll; +window.matchMedia("print").addListener(resizeAll); + +/////////////////////////////////////////////// + + </script> +</head> + +<body> +<div id="topmostdiv" style="width: 100%; height: 100%"> + <div id="top"> + <div style="float: right;"> + <div class="hideonprint menu" style="float: right; margin: 10px; top: 8px;"> + <button class="menubtn"></button> + <div class="menu-content"> + <label class="menu-label menu-label-top"> + <input id="darkmodeCheckbox" type="checkbox" onchange="setDarkMode(this.checked)"> + Dark mode + </label> + <label class="menu-label"> + <input id="silkscreenCheckbox" type="checkbox" checked onchange="silkscreenVisible(this.checked)"> + Show silkscreen + </label> + <label class="menu-label"> + <input id="highlightpin1Checkbox" type="checkbox" onchange="setHighlightPin1(this.checked)"> + Highlight first pin + </label> + <label class="menu-label"> + <input id="dragCheckbox" type="checkbox" checked onchange="setRedrawOnDrag(this.checked)"> + Continuous redraw on drag + </label> + <label class="menu-label"> + <span>Board rotation</span> + <span style="float: right"><span id="rotationDegree">0</span>°</span> + <input id="boardRotation" type="range" min="-36" max="36" value="0" class="slider" oninput="setBoardRotation(this.value)"> + </label> + <label class="menu-label"> + <div style="margin-left: 5px">Bom checkboxes</div> + <input id="bomCheckboxes" class="menu-textbox" type=text + oninput="setBomCheckboxes(this.value)"> + </label> + <label class="menu-label"> + <span class="shameless-plug"> + <span>Created using</span> + <a target="blank" href="https://github.com/openscopeproject/InteractiveHtmlBom">InteractiveHtmlBom</a> + </span> + </label> + </div> + </div> + <div class="button-container hideonprint" + style="float: right; margin: 10px; position: relative; top: 8px"> + <button id="fl-btn" class="left-most-button" onclick="changeCanvasLayout('F')" + title="Front only">F + </button> + <button id="fb-btn" class="middle-button" onclick="changeCanvasLayout('FB')" + title="Front and Back">FB + </button> + <button id="bl-btn" class="right-most-button" onclick="changeCanvasLayout('B')" + title="Back only">B + </button> + </div> + <div class="button-container hideonprint" + style="float: right; margin: 10px; position: relative; top: 8px"> + <button id="bom-btn" class="left-most-button" onclick="changeBomLayout('bom-only')" + title="BOM only"></button> + <button id="lr-btn" class="middle-button" onclick="changeBomLayout('left-right')" + title="BOM left, drawings right"></button> + <button id="tb-btn" class="right-most-button" onclick="changeBomLayout('top-bottom')" + title="BOM top, drawings bot"></button> + </div> + </div> + <div id="fileinfodiv" style="overflow: auto;"> + <table class="fileinfo"> + <tbody> + <tr> + <td id="title" class="title" style="width: 70%"> + Title + </td> + <td id="revision" class="title" style="width: 30%"> + Revision + </td> + </tr> + <tr> + <td id="company"> + Kicad version + </td> + <td id="filedate"> + Date + </td> + </tr> + </tbody> + </table> + </div> + </div> + <div id="bot" class="split" style="height: calc(100% - 80px)"> + <div id="bomdiv" class="split split-horizontal"> + <div style="width: 100%"> + <input id="reflookup" class="searchbox reflookup hideonprint" type="text" placeholder="Ref lookup" + oninput="updateRefLookup(this.value)"> + <input id="filter" class="searchbox filter hideonprint" type="text" placeholder="Filter" + oninput="updateFilter(this.value)"> + <div class="button-container hideonprint" style="float: left"> + <button id="copy" title="Copy bom table to clipboard" + onclick="copyToClipboard()"></button> + </div> + </div> + <div id="dbg"></div> + <table class="bom"> + <thead id="bomhead"> + </thead> + <tbody id="bombody"> + </tbody> + </table> + </div> + <div id="canvasdiv" class="split split-horizontal"> + <div id="frontcanvas" class="split" style="overflow: hidden"> + <div style="position: relative; width: 100%; height: 100%;"> + <canvas id="F_bg" style="position: absolute; left: 0; top: 0; z-index: 0;"></canvas> + <canvas id="F_slk" style="position: absolute; left: 0; top: 0; z-index: 1;"></canvas> + <canvas id="F_hl" style="position: absolute; left: 0; top: 0; z-index: 2;"></canvas> + </div> + </div> + <div id="backcanvas" class="split" style="overflow: hidden"> + <div style="position: relative; width: 100%; height: 100%;"> + <canvas id="B_bg" style="position: absolute; left: 0; top: 0; z-index: 0;"></canvas> + <canvas id="B_slk" style="position: absolute; left: 0; top: 0; z-index: 1;"></canvas> + <canvas id="B_hl" style="position: absolute; left: 0; top: 0; z-index: 2;"></canvas> + </div> + </div> + </div> + </div> +</div> +</body> + +</html> |