← Commit history

Regenerate fpview with footprint geometry for WS2812B-2020

AravK ·64e3e372f1 ·4mo ago ·parent 6a7a51b
1 file changed +26−9
WS2812B-2020-fpview.html+26−9
@@ -345,7 +345,22 @@  <div class="canvas-wrap" id="canvas-wrap">   <div class="canvas" id="canvas">-    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><text x="5" y="5" text-anchor="middle" font-size="1" fill="#888">No geometry</text></svg>+    <svg xmlns="http://www.w3.org/2000/svg" viewBox="-2.4 -2.15 4.8 4.3">+<rect x="-2.4" y="-2.15" width="4.8" height="4.3" fill="#0d1117"/>+<rect x="-1.4" y="-1.15" width="2.8" height="2.3" fill="none" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/>+<rect x="-1.0" y="-1.0" width="2.0" height="2.0" fill="none" stroke="#6e7681" stroke-width="0.1"/>+<rect x="-1.12" y="-1.05" width="2.24" height="2.1" fill="none" stroke="#00cccc" stroke-width="0.12"/>+<line x1="-1.3" y1="-1.1" x2="-0.5" y2="-1.1" stroke="#00cccc" stroke-width="0.12"/>+<rect x="-1.1" y="-0.7" width="0.7" height="0.5" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/>+<text x="-0.75" y="-0.45" text-anchor="middle" dominant-baseline="central" font-size="0.225" fill="#fff" font-family="sans-serif">1</text>+<rect x="0.4" y="-0.7" width="0.7" height="0.5" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/>+<text x="0.75" y="-0.45" text-anchor="middle" dominant-baseline="central" font-size="0.225" fill="#fff" font-family="sans-serif">2</text>+<rect x="0.4" y="0.2" width="0.7" height="0.5" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/>+<text x="0.75" y="0.45" text-anchor="middle" dominant-baseline="central" font-size="0.225" fill="#fff" font-family="sans-serif">3</text>+<rect x="-1.1" y="0.2" width="0.7" height="0.5" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/>+<text x="-0.75" y="0.45" text-anchor="middle" dominant-baseline="central" font-size="0.225" fill="#fff" font-family="sans-serif">4</text>+<text x="2.1" y="1.8499999999999999" text-anchor="end" font-size="0.250" fill="#484f58" font-family="sans-serif" font-style="italic">Local render — KiCad service unavailable</text>+</svg>   </div>   <a class="edit-btn" href="https://coder.john-service-wiki-a054078430ce38e4.containers.adom.inc/proxy/8785/wiki/components/ws2812b-2020/edit?field=content" target="_blank" title="Suggest corrections on Adom Wiki">     <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">@@ -360,7 +375,9 @@  <div class="bottom-panel">   <div class="info-row">-    <div class="info-item"><span class="info-label">Pads</span><span class="info-value">0</span></div>+    +    +    <div class="info-item"><span class="info-label">Desc</span><span class="info-value">Worldsemi · Intelligent Control LED · 2020 (2.0 &times; 2.0mm) · Built-in IC + RGB dies</span></div><div class="info-item"><span class="info-label">Pads</span><span class="info-value">4</span></div><div class="info-item"><span class="info-label">Body</span><span class="info-value">2.0 &times; 2.0 mm</span></div><div class="info-item"><span class="info-label">Courtyard</span><span class="info-value">2.8 &times; 2.3 mm</span></div>   </div>   <div class="info-divider"></div>   <div class="coord-row">@@ -369,13 +386,13 @@ </div>  <script>-  const pads = [];-  const svgW = 10;-  const svgH = 10;-  const svgVbX = 0;-  const svgVbY = 0;-  const offsetX = 0;-  const offsetY = 0;+  const pads = [{"number": "1", "signal": "", "x": -0.75, "y": -0.45, "width": 0.7, "height": 0.5, "shape": "roundrect", "mountType": "smd", "rotation": 0, "desc": ""}, {"number": "2", "signal": "", "x": 0.75, "y": -0.45, "width": 0.7, "height": 0.5, "shape": "roundrect", "mountType": "smd", "rotation": 0, "desc": ""}, {"number": "3", "signal": "", "x": 0.75, "y": 0.45, "width": 0.7, "height": 0.5, "shape": "roundrect", "mountType": "smd", "rotation": 0, "desc": ""}, {"number": "4", "signal": "", "x": -0.75, "y": 0.45, "width": 0.7, "height": 0.5, "shape": "roundrect", "mountType": "smd", "rotation": 0, "desc": ""}];+  const svgW = 4.8;+  const svgH = 4.3;+  const svgVbX = -2.4;+  const svgVbY = -2.15;+  const offsetX = 2.4;+  const offsetY = 2.15;   const datasheetUrl = "";   const _partName = "";   const _fpName = "WS2812B-2020";