← Commit history
README.md+8−4
@@ -2,14 +2,14 @@  **Linekey** · Ferrite Beads · 0805 -FBH2012-601Y from Linekey, in a 0805. Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model); symbol, footprint, and 3D from KiCad-official CAD.+FBH2012-601Y from Linekey, in a 0805. Pinout and pin descriptions extracted from the manufacturer datasheet (extract_pins, cross-checked by a second model). Symbol, footprint, and 3D from KiCad-official CAD.  ## Pinout  | Pin | Name | Type | Function | |---|---|---|---|-| 1 | 1 | passive | Terminal electrode at one end of the FBH2012-601Y ferrite bead (600 Ω ±25% at 100 MHz, DCR 0.10 Ω max, 2.00 A max); the bead is not polarized. |-| 2 | 2 | passive | Terminal electrode at the other end of the FBH2012-601Y ferrite bead (600 Ω ±25% at 100 MHz, DCR 0.10 Ω max, 2.00 A max); the bead is not polarized. |+| 1 | P1 | passive | End terminal electrode 1 of the ferrite bead; passive, interchangeable with pin 2; rated for 2.00 A max continuous current with ≤30 °C self-temperature rise, DCR max 0.10 Ω. |+| 2 | P2 | passive | End terminal electrode 2 of the ferrite bead; passive, interchangeable with pin 1; rated for 2.00 A max continuous current with ≤30 °C self-temperature rise, DCR max 0.10 Ω. |  ## Key specifications @@ -31,6 +31,10 @@ Limits as printed in the datasheet (page.json `metadata.characteristics` carries | Current Max (rated current) |  |  |  | 2 | A | Rated current; temperature rise not more than 30℃ (Note 1) | 7 | | Operating temperature range |  | -55 |  | 125 | ℃ | Including self-temperature rise (series-wide, from Features) | 1 | | Impedance |  |  | 600 |  | Ω | Test freq. 100 MHz | 6 |+| Inductance | L |  |  |  | H | Unknown: no source states it |  |+| Tolerance | TOL |  |  |  | % | Unknown: no source states it |  |+| Rated current | IR |  |  |  | A | Unknown: no source states it |  |+| Saturation current | ISAT |  |  |  | A | Unknown: no source states it |  |  ## CAD (KiCad official) @@ -43,7 +47,7 @@ Limits as printed in the datasheet (page.json `metadata.characteristics` carries  Data extracted from the manufacturer datasheet, not a distributor listing: -- **Datasheet:** [Linekey datasheet](https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8589808183595335680) (9 pp, sha256 `7ca0a65ff6abb7d5`, retrieved 2026-10-08, tier: lcsc)+- **Datasheet:** [Linekey datasheet, copy hosted by JLCPCB](https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8589808183595335680) (9 pp, sha256 `7ca0a65ff6abb7d5`, retrieved 2026-11-24) - **Extractor:** `ds2sf` (Claude). Every pin and dimension is cited to a datasheet page; it refuses to fabricate. - **CAD:** KiCad official libraries (CC-BY-SA 4.0). 
fbh2012-601y-hero.glb
⋯ 1 unchanged line ⋯
fbh2012-601y-hero.overlay.json+7−6
@@ -44,12 +44,13 @@    "labels": 2,    "sides": "top + mirrored underside (single-sided)",    "omitted": null,-   "fallback_to_pad_number": 2+   "fallback_to_pad_number": 0   }  },  "align": {   "ok": true,   "board_underside": true,+  "board_on_its_holes": null,   "electrical_pads_without_contact": [],   "mounting_pads_left_out": [],   "centre_offset_mm": 0.0,@@ -71,18 +72,18 @@   "seating_z_mm": 0.0  },  "sources": {-  "glb": "fbh2012-601y.glb",-  "glb_sha256": "6cf7bf6cc9879223bab323612ecd2bada945d43994f6dddc8e6d9af729997f9d",+  "glb": "fbh2012-601y-etched.glb",+  "glb_sha256": "bb2a3c93f0514206c5ed3bce497f01b19b70c6bd6fd027241bc8e606889fcfe1",   "footprint": "fbh2012-601y.kicad_mod",   "footprint_sha256": "22f5100d304229ddc07ba8218e3b631d6db4f8fe0b5c310b078c7e41ad56517d",   "pins": "page.json component.pins",-  "pins_sha256": "f89b6cef1dd40bf094bc57ef23dc246a408922a81bfac75b8bc341584ea4e214"+  "pins_sha256": "a36a533d8e97ed3cbf64d244f4076adb855326486a21de391f0ef3bfc3f01a22"  },  "generator": "factory/hero_glb.py",  "labels": [   {    "pad": "1",-   "text": "1",+   "text": "P1",    "x": -1.65,    "y": 0.0,    "align": "right",@@ -91,7 +92,7 @@   },   {    "pad": "2",-   "text": "2",+   "text": "P2",    "x": 1.65,    "y": 0.0,    "align": "left",
fbh2012-601y.kicad_sym+1−3
@@ -45,7 +45,7 @@ 				) 			) 		)-		(property "Datasheet" "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8589808183595335680"+		(property "Datasheet" "" 			(at 0 0 0) 			(show_name no) 			(do_not_autoplace no)@@ -89,8 +89,6 @@ 				) 			) 		)-		(property "MPN" "FBH2012-601Y" (at 0 0 0) (effects (font (size 1.27 1.27)) hide))-		(property "LCSC" "C2982099" (at 0 0 0) (effects (font (size 1.27 1.27)) hide)) 		(symbol "FBH2012-601Y_0_1" 			(polyline 				(pts
package.json+19−26
@@ -1,8 +1,8 @@ {   "slug": "fbh2012-601y",-  "version": "0.2.1",+  "version": "0.3.0",   "type": "component",-  "description": "Linekey Ferrite Beads, 0805. Pinout reviewed by a person against the datasheet, KiCad symbol/footprint/3D.",+  "description": "Linekey Ferrite Beads, 0805. Unpolarised two-terminal part: the datasheet prints no pin numbers, so pins 1 and 2 follow the library convention, KiCad symbol/footprint/3D.",   "tags": [     "component",     "bead-filter-emi optimization",@@ -43,7 +43,7 @@       "footprint": "fbh2012-601y.kicad_mod",       "model_3d": "fbh2012-601y-hero.glb",       "model_3d_plain": "fbh2012-601y.glb",-      "model_3d_step": "fbh2012-601y.step",+      "model_3d_step": "fbh2012-601y-etched.step",       "model_3d_step_plain": "fbh2012-601y.step",       "lbr": "fbh2012-601y.lbr"     },@@ -51,7 +51,7 @@       "lcsc": "C2982099"     },     "distributor_check": {-      "checked_at": "2026-10-08T17:16:50Z",+      "checked_at": "2026-11-24T22:50:10Z",       "source": "Component Ocean /api/assign-pns",       "digikey": {         "pn": null,@@ -65,24 +65,30 @@     "pins": [       {         "number": "1",-        "name": "1",+        "name": "P1",         "type": "passive",-        "description": "Terminal electrode at one end of the FBH2012-601Y ferrite bead (600 Ω ±25% at 100 MHz, DCR 0.10 Ω max, 2.00 A max); the bead is not polarized."+        "description": "End terminal electrode 1 of the ferrite bead; passive, interchangeable with pin 2; rated for 2.00 A max continuous current with ≤30 °C self-temperature rise, DCR max 0.10 Ω."       },       {         "number": "2",-        "name": "2",+        "name": "P2",         "type": "passive",-        "description": "Terminal electrode at the other end of the FBH2012-601Y ferrite bead (600 Ω ±25% at 100 MHz, DCR 0.10 Ω max, 2.00 A max); the bead is not polarized."+        "description": "End terminal electrode 2 of the ferrite bead; passive, interchangeable with pin 1; rated for 2.00 A max continuous current with ≤30 °C self-temperature rise, DCR max 0.10 Ω."       }     ],     "provenance": {-      "extractor": "ds2sf",+      "extractor": "review decision",+      "pin_review": {+        "by": "two-terminal rule (unpolarised 2-pin; names are vocabulary)",+        "kind": "review",+        "at": "2026-09-29T14:13:10Z"+      },       "datasheet": {         "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8589808183595335680",         "pages": 9,         "sha256": "7ca0a65ff6abb7d5",-        "source_tier": "lcsc"+        "source_tier": "lcsc",+        "citation": "Linekey datasheet, copy hosted by JLCPCB"       },       "cad": "KiCad official (CC-BY-SA 4.0)",       "pins": {@@ -113,7 +119,7 @@         "centre_offset_mm": 0.0,         "footprint_binding": "identity",         "sha256": "751a8ae26d20698bfe8303aa2fc7ec986a8b9a7154699b94bf2a13d4ad401425",-        "checked": "2026-10-08",+        "checked": "2026-11-24",         "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"       },       {@@ -132,18 +138,12 @@         "centre_offset_mm": 0.0,         "footprint_binding": "identity",         "sha256": "d25d4acd9c4419cc9b71135a7750fdae35343923169a277a11948a1428fbc2fa",-        "checked": "2026-10-08",+        "checked": "2026-11-24",         "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"       }     ]   },   "metadata": {-    "specs": {-      "Manufacturer": "Linekey",-      "Package": "0805",-      "Category": "Bead/Filter/EMI Optimization",-      "Pins": "2"-    },     "characteristics": {       "version": 1,       "source": "datasheet",@@ -259,12 +259,5 @@         }       ]     }-  },-  "title": "FBH2012-601Y",-  "brief": "Linekey Ferrite Beads, 0805. Unpolarised two-terminal part: the datasheet prints no pin numbers, so pins 1 and 2 follow the library convention, KiCad symbol/footprint/3D.",-  "discovery_triggers": [-    "fbh2012-601y"-  ],-  "discovery_pitch": "FBH2012-601Y (Linekey) component page: datasheet pinout, KiCad symbol, footprint and 3D.",-  "visibility": "public"+  } }
page.json+18−18
@@ -4,7 +4,7 @@   "slug": "fbh2012-601y",   "title": "FBH2012-601Y",   "brief": "Linekey Ferrite Beads, 0805. Unpolarised two-terminal part: the datasheet prints no pin numbers, so pins 1 and 2 follow the library convention, KiCad symbol/footprint/3D.",-  "version": "0.2.1",+  "version": "0.3.0",   "license": "CC-BY-SA-4.0",   "tags": [     "component",@@ -26,7 +26,7 @@       "footprint": "fbh2012-601y.kicad_mod",       "model_3d": "fbh2012-601y-hero.glb",       "model_3d_plain": "fbh2012-601y.glb",-      "model_3d_step": "fbh2012-601y.step",+      "model_3d_step": "fbh2012-601y-etched.step",       "model_3d_step_plain": "fbh2012-601y.step",       "lbr": "fbh2012-601y.lbr"     },@@ -34,7 +34,7 @@       "lcsc": "C2982099"     },     "distributor_check": {-      "checked_at": "2026-10-08T17:16:50Z",+      "checked_at": "2026-11-24T22:50:10Z",       "source": "Component Ocean /api/assign-pns",       "digikey": {         "pn": null,@@ -48,24 +48,30 @@     "pins": [       {         "number": "1",-        "name": "1",+        "name": "P1",         "type": "passive",-        "description": "Terminal electrode at one end of the FBH2012-601Y ferrite bead (600 Ω ±25% at 100 MHz, DCR 0.10 Ω max, 2.00 A max); the bead is not polarized."+        "description": "End terminal electrode 1 of the ferrite bead; passive, interchangeable with pin 2; rated for 2.00 A max continuous current with ≤30 °C self-temperature rise, DCR max 0.10 Ω."       },       {         "number": "2",-        "name": "2",+        "name": "P2",         "type": "passive",-        "description": "Terminal electrode at the other end of the FBH2012-601Y ferrite bead (600 Ω ±25% at 100 MHz, DCR 0.10 Ω max, 2.00 A max); the bead is not polarized."+        "description": "End terminal electrode 2 of the ferrite bead; passive, interchangeable with pin 1; rated for 2.00 A max continuous current with ≤30 °C self-temperature rise, DCR max 0.10 Ω."       }     ],     "provenance": {-      "extractor": "ds2sf",+      "extractor": "review decision",+      "pin_review": {+        "by": "two-terminal rule (unpolarised 2-pin; names are vocabulary)",+        "kind": "review",+        "at": "2026-09-29T14:13:10Z"+      },       "datasheet": {         "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8589808183595335680",         "pages": 9,         "sha256": "7ca0a65ff6abb7d5",-        "source_tier": "lcsc"+        "source_tier": "lcsc",+        "citation": "Linekey datasheet, copy hosted by JLCPCB"       },       "cad": "KiCad official (CC-BY-SA 4.0)",       "pins": {@@ -96,7 +102,7 @@         "centre_offset_mm": 0,         "footprint_binding": "identity",         "sha256": "751a8ae26d20698bfe8303aa2fc7ec986a8b9a7154699b94bf2a13d4ad401425",-        "checked": "2026-10-08",+        "checked": "2026-11-24",         "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"       },       {@@ -115,18 +121,12 @@         "centre_offset_mm": 0,         "footprint_binding": "identity",         "sha256": "d25d4acd9c4419cc9b71135a7750fdae35343923169a277a11948a1428fbc2fa",-        "checked": "2026-10-08",+        "checked": "2026-11-24",         "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"       }     ]   },   "metadata": {-    "specs": {-      "Manufacturer": "Linekey",-      "Package": "0805",-      "Category": "Bead/Filter/EMI Optimization",-      "Pins": "2"-    },     "characteristics": {       "version": 1,       "source": "datasheet",@@ -280,6 +280,6 @@   ],   "visibility": "public",   "updated_at": "2026-11-06T00:11:18.537Z",-  "description": "Linekey Ferrite Beads, 0805. Pinout reviewed by a person against the datasheet, KiCad symbol/footprint/3D.",+  "description": "Linekey Ferrite Beads, 0805. Unpolarised two-terminal part: the datasheet prints no pin numbers, so pins 1 and 2 follow the library convention, KiCad symbol/footprint/3D.",   "org": "adom" }\ No newline at end of file
viewers/footprint.html+3−3
@@ -51,13 +51,13 @@ aside .ah{padding:9px 12px;border-bottom:1px solid var(--border);font-size:12px; .layers{padding:6px} .note{font-size:11px;color:var(--muted);line-height:1.45;padding:8px 11px} .note b{color:#7ef0d2}-</style><style>/* lbr-hover bus (component-factory inject_layers) */[data-num]{cursor:pointer}[data-num].hi>*{fill:#ffd166!important;stroke:#ffffff!important;stroke-width:0.08!important}</style></head>+</style></head> <body>   <header><span class="dot"></span><span class="b">adom-footprint <span>· interactive</span></span><span class="nm">L_0805_2012Metric</span></header>   <main>     <div class="vpwrap">       <div class="av-vp" id="vp">-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="-2.650 -1.750 5.300 3.500" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><rect x="-1.7500" y="-0.8500" width="3.5000" height="1.7000" stroke="#FF26E2" stroke-width="0.050" fill="none"/></g><g class="adom-layer-fab"><rect x="-1.0000" y="-0.4500" width="2.0000" height="0.9000" stroke="#6e7681" stroke-width="0.100" fill="none"/></g><g class="adom-layer-copper"><g data-pad="1" data-num="1" data-shape="roundrect" data-size="0.875x1.200" data-mount="smd"><rect x="-1.500" y="-0.600" width="0.875" height="1.200" rx="0.219" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-num="2" data-shape="roundrect" data-size="0.875x1.200" data-mount="smd"><rect x="0.625" y="-0.600" width="0.875" height="1.200" rx="0.219" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g></g><g class="adom-layer-heatsink"></g><g class="adom-layer-drill"></g><g class="adom-layer-silk"><line x1="-0.3996" y1="-0.5600" x2="0.3996" y2="-0.5600" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="-0.3996" y1="0.5600" x2="0.3996" y2="0.5600" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/></g><g class="adom-layer-padnum"><text x="-1.062" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.367" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="1.062" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.367" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text></g><g class="adom-layer-paste-apertures"><rect x="-1.500" y="-0.600" width="0.875" height="1.200" rx="0.05" transform="rotate(0.00 -1.062 0.000)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.625" y="-0.600" width="0.875" height="1.200" rx="0.05" transform="rotate(0.00 1.062 0.000)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/></g><g class="adom-layer-paste-dots"><circle cx="-1.188" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-1.188" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-1.188" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-1.188" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.938" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.938" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.938" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.938" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.938" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.938" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.938" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.938" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="1.188" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="1.188" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="1.188" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="1.188" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/></g></svg>+        <svg xmlns="http://www.w3.org/2000/svg" viewBox="-2.650 -1.750 5.300 3.500" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><rect x="-1.7500" y="-0.8500" width="3.5000" height="1.7000" stroke="#FF26E2" stroke-width="0.050" fill="none"/></g><g class="adom-layer-fab"><rect x="-1.0000" y="-0.4500" width="2.0000" height="0.9000" stroke="#6e7681" stroke-width="0.100" fill="none"/></g><g class="adom-layer-copper"><g data-pad="1" data-shape="roundrect" data-size="0.875x1.200" data-mount="smd"><rect x="-1.500" y="-0.600" width="0.875" height="1.200" rx="0.219" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-shape="roundrect" data-size="0.875x1.200" data-mount="smd"><rect x="0.625" y="-0.600" width="0.875" height="1.200" rx="0.219" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g></g><g class="adom-layer-heatsink"></g><g class="adom-layer-drill"></g><g class="adom-layer-silk"><line x1="-0.3996" y1="-0.5600" x2="0.3996" y2="-0.5600" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="-0.3996" y1="0.5600" x2="0.3996" y2="0.5600" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/></g><g class="adom-layer-padnum"><text x="-1.062" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.367" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="1.062" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.367" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text></g><g class="adom-layer-paste-apertures"><rect x="-1.500" y="-0.600" width="0.875" height="1.200" rx="0.05" transform="rotate(0.00 -1.062 0.000)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.625" y="-0.600" width="0.875" height="1.200" rx="0.05" transform="rotate(0.00 1.062 0.000)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/></g><g class="adom-layer-paste-dots"><circle cx="-1.188" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-1.188" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-1.188" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-1.188" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.938" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.938" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.938" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.938" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.938" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.938" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.938" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.938" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="1.188" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="1.188" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="1.188" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="1.188" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/></g></svg>       </div>     </div>     <aside>@@ -207,4 +207,4 @@ var META={"pasteApertures":2,"pasteDots":16};   AV.buildLayers({ svg:svg, container:document.getElementById('layers'), state:{}, meta:META }); })(); </script>-<script>/* lbr-hover bus (component-factory inject_layers) */(function(){var MPN=null;function els(n){return [].slice.call(document.querySelectorAll('[data-num="'+n+'"]'));}function clearHi(){[].forEach.call(document.querySelectorAll('[data-num].hi'),function(e){e.classList.remove('hi');});}function hi(n){els(n).forEach(function(e){e.classList.add('hi');});}function post(n){try{parent.postMessage({type:'lbr-hover',pin:n===null?null:String(n),mpn:MPN},'*');}catch(_){}}[].forEach.call(document.querySelectorAll('[data-num]'),function(g){var n=g.getAttribute('data-num');g.addEventListener('mouseenter',function(){clearHi();hi(n);post(n);});g.addEventListener('mouseleave',function(){clearHi();post(null);});});window.addEventListener('message',function(e){var d=e.data||{};if(d.type!=='lbr-hover')return;clearHi();if(d.pin!=null)hi(d.pin);});})();</script></body></html>+</body></html>
viewers/symbol.html+2−2
@@ -23,10 +23,10 @@ rect.pad.hi{stroke:var(--hi);stroke-width:.15;paint-order:stroke} #tip .td{font-size:11px;color:var(--ink);margin-top:5px;line-height:1.4} </style></head><body> <div class=bar><span class=h>Schematic symbol</span><span class=sp></span></div>-<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-159 -200 318 400' style='width:100%;height:100%'><polyline points='-109.0,-16.0 -67.0,-89.0 109.0,12.0 66.0,85.0 -109.0,-16.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='0.0,-50.0 0.0,-51.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='0.0,50.0 0.0,48.0' fill='none' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name=''><line class='pinvis' x1='0.0' y1='-150.0' x2='0.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='0.0' y1='-150.0' x2='0.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><g class='pingroup' data-num='2' data-name=''><line class='pinvis' x1='0.0' y1='150.0' x2='0.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='0.0' y1='150.0' x2='0.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-750 -150 1500 300' style='width:100%;height:100%'><rect x='-500.0' y='-100.0' width='1000.0' height='200.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='1'><line class='pinvis' x1='-700.0' y1='-0.0' x2='-500.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-0.0' x2='-500.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='45.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-470.0' y='0.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>1</text><g class='pingroup' data-num='2' data-name='2'><line class='pinvis' x1='700.0' y1='-0.0' x2='500.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-0.0' x2='500.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-45.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='470.0' y='0.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>2</text></svg></div> <div id=tip></div> <script>-var KIND="symbol", MPN="ADOM/FBH2012-601Y", PINS=[{"desc":"","name":"","number":"1","type":""},{"desc":"","name":"","number":"2","type":""}];+var KIND="symbol", MPN="ADOM/FBH2012-601Y", PINS=[{"desc":"","name":"1","number":"1","type":""},{"desc":"","name":"2","number":"2","type":""}]; var byNum={}; PINS.forEach(function(p){byNum[String(p.number)]=p;}); var stage=document.getElementById('stage'), svg=stage.querySelector('svg'), tip=document.getElementById('tip'); // ---- pan/zoom ----