← Commit history
README.md+23−31
@@ -1,22 +1,22 @@ # BC857BW -**Nexperia** · Bipolar (BJT) · SOT-323+**HUXN** · Bipolar (BJT) · SOT-323 -BC857BW from Nexperia, in a SOT-323. 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.+BC857BW from HUXN, in a SOT-323. 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 | B | input | Base terminal of the PNP transistor; the datasheet limits peak base current to -200 mA (IBM, absolute maximum). |-| 2 | E | passive | Emitter terminal of the PNP transistor; the datasheet limits emitter-base voltage to -5 V (VEBO, absolute maximum). |-| 3 | C | passive | Collector terminal of the PNP transistor; the datasheet limits collector current to -100 mA DC and -200 mA peak (ICM), with collector-emitter voltage of -45 V for the BC857W type. |+| 1 | BASE | passive | Base terminal of the BC857BW PNP transistor; the datasheet gives an emitter-base breakdown voltage VEBO of -5 V and a continuous collector current IC of -0.1 A. |+| 2 | EMITTER | passive | Emitter terminal of the BC857BW PNP transistor; the emitter-base rating is VEBO = -5 V. |+| 3 | COLLECTOR | passive | Collector terminal of the BC857BW PNP transistor; for the BC857W the maximum ratings are VCBO = -50 V and VCEO = -45 V, with collector power dissipation PC of 150 mW. |  ## Key specifications  | Parameter | Value | |---|---|-| Manufacturer | Nexperia |+| Manufacturer | HUXN | | Package | SOT-323 | | Category | Transistors/Thyristors | | Pins | 3 |@@ -27,30 +27,22 @@ Limits as printed in the datasheet (page.json `metadata.characteristics` carries  | Parameter | Symbol | Min | Typ | Max | Unit | Conditions | Page | |---|---|---|---|---|---|---|---|-| collector-base voltage (BC857W column) | VCBO |  |  | -50 | V | open emitter | 3 |-| collector-emitter voltage (BC857W column) | VCEO |  |  | -45 | V | open base | 3 |-| emitter-base voltage | VEBO |  |  | -5 | V | open collector | 3 |-| collector current | IC |  |  | -100 | mA |  | 3 |-| peak collector current | ICM |  |  | -200 | mA |  | 3 |-| peak base current | IBM |  |  | -200 | mA |  | 3 |-| total power dissipation | Ptot |  |  | 200 | mW | Tamb ≤ 25 °C [1] | 3 |-| junction temperature | Tj |  |  | 150 | °C |  | 3 |-| ambient temperature | Tamb | -65 |  | 150 | °C |  | 3 |-| storage temperature | Tstg | -65 |  | 150 | °C |  | 3 |-| collector-base breakdown voltage (BC857W) | V(BR)CBO | -50 |  |  | V | IC = -100 µA; IE = 0 A | 5 |-| collector-emitter breakdown voltage (BC857W) | V(BR)CEO | -45 |  |  | V | IC = -2 mA; IB = 0 A | 5 |-| emitter-base breakdown voltage | V(BR)EBO | -5 |  |  | V | IC = 0 A; IE = -100 µA | 5 |-| collector-base cut-off current | ICBO |  | -1 | -15 | nA | VCB = -30 V; IE = 0 A | 5 |-| collector-base cut-off current | ICBO |  |  | -4 | µA | VCB = -30 V; IE = 0 A; Tj = 150 °C | 5 |-| emitter-base cut-off current | IEBO |  |  | -100 | nA | VEB = -5 V; IC = 0 A | 5 |-| DC current gain (BC857BW; BC858BW row) | hFE | 220 |  | 475 |  | VCE = -5 V; IC = -2 mA | 5 |-| collector-emitter saturation voltage | VCEsat |  | -75 | -300 | mV | IC = -10 mA; IB = -0.5 mA | 5 |-| collector-emitter saturation voltage | VCEsat |  | -250 | -600 | mV | IC = -100 mA; IB = -5 mA [1]; pulsed; tp ≤ 300 μs; δ ≤ 0.02 | 5 |-| base-emitter voltage | VBE | -600 | -650 | -750 | mV | VCE = -5 V; IC = -2 mA | 5 |-| base-emitter voltage | VBE |  |  | -820 | mV | VCE = -5 V; IC = -10 mA | 5 |-| transition frequency | fT | 100 |  |  | MHz | VCE = -5 V; IC = -10 mA; f = 100 MHz | 5 |-| noise figure | NF |  | 2 | 10 | dB | IC = -200 µA; VCE = -5 V; RS = 2 kΩ; f = 1 kHz; B = 200Hz | 5 |-| thermal resistance from junction to ambient | Rth(j-a) |  |  | 625 | K/W | in free air [1] | 4 |+| Collector-base breakdown voltage (BC857W) | VCBO | -50 |  |  | V | IC= -10μA, IE=0 | 2 |+| Collector-emitter breakdown voltage (BC857W) | VCEO | -45 |  |  | V | IC= -10mA, IB=0 | 2 |+| Emitter-base breakdown voltage | VEBO | -5 |  |  | V | IE= -1μA, IC=0 | 2 |+| DC current gain (BC857BW, 857BW group) | hFE | 220 |  | 475 |  | VCE= -5V, IC= -2mA | 2 |+| Collector cut-off current | ICBO |  |  | -15 | nA | VCB= -30 V , IE=0 | 2 |+| Collector-emitter saturation voltage | VCE(sat) |  |  | -0.65 | V | IC=-100mA, IB= -5mA | 2 |+| Base-emitter saturation voltage | VBE(sat) |  |  | -1.1 | V | IC= -100mA, IB= -5mA | 2 |+| Transition frequency | fT | 100 |  |  | MHz | VCE= -5V, IC= -10mA, f=100MHz | 2 |+| Collector capacitance | Cob |  |  | 4.5 | pF | VCB=-10V, f=1MHz | 2 |+| Collector-base voltage (BC857W) | VCBO |  |  | -50 | V |  | 1 |+| Collector-emitter voltage (BC857W) | VCEO |  |  | -45 | V |  | 1 |+| Emitter-base voltage | VEBO |  |  | -5 | V |  | 1 |+| Collector current, continuous | IC |  |  | -0.1 | A |  | 1 |+| Collector power dissipation | PC |  |  | 150 | mW |  | 1 |+| Junction temperature | TJ |  |  | 150 | ℃ |  | 1 |+| Storage temperature | Tstg | -65 |  | 150 | ℃ |  | 1 |  ## CAD (KiCad official) @@ -63,7 +55,7 @@ Limits as printed in the datasheet (page.json `metadata.characteristics` carries  Data extracted from the manufacturer datasheet, not a distributor listing: -- **Datasheet:** [Nexperia datasheet](https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586172116236709888) (13 pp, sha256 `6ecc839c70f13953`, retrieved 2026-10-17, tier: lcsc)+- **Datasheet:** [HUXN datasheet](https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8590261238069424128) (4 pp, sha256 `a217278754e52932`, retrieved 2026-10-17, tier: lcsc) - **Extractor:** parts-factory `2.0.0` / `extract_pins 0.3`, primary `claude-haiku-5-5` (text), consensus `claude-sonnet-5-5` (agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish. - **CAD:** KiCad official libraries (CC-BY-SA 4.0). 
bc857bw-etched.step+1−1
@@ -1,7 +1,7 @@ ISO-10303-21; HEADER; FILE_DESCRIPTION(('Open CASCADE Model'),'2;1');-FILE_NAME('Open CASCADE Shape Model','2026-10-17T18:16:28',('Author'),(+FILE_NAME('Open CASCADE Shape Model','2026-10-17T20:39:35',('Author'),(     'Open CASCADE'),'Open CASCADE STEP processor 7.8','Open CASCADE 7.8'   ,'Unknown'); FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 1 1 1 1 }'));
bc857bw.kicad_sym+4−4
@@ -8,16 +8,16 @@       (stroke (width 0.254) (type default)) (fill (type background)))     )     (symbol "BC857BW_1_1"-    (pin input line (at -17.78 0.00 0) (length 5.08)-      (name "B" (effects (font (size 1.27 1.27))))+    (pin passive line (at -17.78 0.00 0) (length 5.08)+      (name "BASE" (effects (font (size 1.27 1.27))))       (number "1" (effects (font (size 1.27 1.27))))     )     (pin passive line (at -17.78 -2.54 0) (length 5.08)-      (name "E" (effects (font (size 1.27 1.27))))+      (name "EMITTER" (effects (font (size 1.27 1.27))))       (number "2" (effects (font (size 1.27 1.27))))     )     (pin passive line (at 17.78 0.00 180) (length 5.08)-      (name "C" (effects (font (size 1.27 1.27))))+      (name "COLLECTOR" (effects (font (size 1.27 1.27))))       (number "3" (effects (font (size 1.27 1.27))))     )     )
bc857bw.lbr+6−6
@@ -86,9 +86,9 @@   <wire x1="-12.7" y1="-5.08" x2="-12.7" y2="2.54" width="0.254" layer="94"/>   <text x="0.0000" y="5.0800" size="1.27" layer="95" align="center">&gt;NAME</text>   <text x="0.0000" y="-7.6200" size="1.27" layer="96" align="center">&gt;VALUE</text>-  <pin name="B" x="-17.78" y="0" length="middle" direction="in"/>-  <pin name="E" x="-17.78" y="-2.54" length="middle" direction="pas"/>-  <pin name="C" x="17.78" y="0" length="middle" direction="pas" rot="R180"/>+  <pin name="BASE" x="-17.78" y="0" length="middle" direction="pas"/>+  <pin name="EMITTER" x="-17.78" y="-2.54" length="middle" direction="pas"/>+  <pin name="COLLECTOR" x="17.78" y="0" length="middle" direction="pas" rot="R180"/> </symbol> </symbols> <devicesets>@@ -100,9 +100,9 @@   <devices>     <device name="" package="SOT-323_SC-70">       <connects>-        <connect gate="G$1" pin="B" pad="1"/>-        <connect gate="G$1" pin="E" pad="2"/>-        <connect gate="G$1" pin="C" pad="3"/>+        <connect gate="G$1" pin="BASE" pad="1"/>+        <connect gate="G$1" pin="EMITTER" pad="2"/>+        <connect gate="G$1" pin="COLLECTOR" pad="3"/>       </connects>       <technologies><technology name=""/></technologies>     </device>
docs/bc857bw-datasheet.pdf
⋯ 1 unchanged line ⋯
docs/hero.png
⋯ 1 unchanged line ⋯
page.json+142−241
@@ -3,7 +3,7 @@   "type": "component",   "slug": "bc857bw",   "title": "BC857BW",-  "brief": "Nexperia Bipolar (BJT), SOT-323. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",+  "brief": "HUXN Bipolar (BJT), SOT-323. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",   "version": "0.1.0",   "license": "CC-BY-SA-4.0",   "tags": [@@ -15,12 +15,12 @@   ],   "component": {     "mpn": "BC857BW",-    "manufacturer": "Nexperia",+    "manufacturer": "HUXN",     "package": "SOT-323",     "pin_count": 3,     "category": "Transistors/Thyristors",     "subcategory": "Bipolar (BJT)",-    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586172116236709888",+    "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8590261238069424128",     "parts": {       "symbol": "bc857bw.kicad_sym",       "footprint": "bc857bw.kicad_mod",@@ -31,10 +31,10 @@       "lbr": "bc857bw.lbr"     },     "distributor_links": {-      "lcsc": "C8660"+      "lcsc": "C5128834"     },     "distributor_check": {-      "checked_at": "2026-10-17T18:20:58Z",+      "checked_at": "2026-10-17T20:41:22Z",       "source": "Component Ocean /api/assign-pns",       "digikey": {         "pn": null,@@ -48,21 +48,21 @@     "pins": [       {         "number": "1",-        "name": "B",-        "type": "input",-        "description": "Base terminal of the PNP transistor; the datasheet limits peak base current to -200 mA (IBM, absolute maximum)."+        "name": "BASE",+        "type": "passive",+        "description": "Base terminal of the BC857BW PNP transistor; the datasheet gives an emitter-base breakdown voltage VEBO of -5 V and a continuous collector current IC of -0.1 A."       },       {         "number": "2",-        "name": "E",+        "name": "EMITTER",         "type": "passive",-        "description": "Emitter terminal of the PNP transistor; the datasheet limits emitter-base voltage to -5 V (VEBO, absolute maximum)."+        "description": "Emitter terminal of the BC857BW PNP transistor; the emitter-base rating is VEBO = -5 V."       },       {         "number": "3",-        "name": "C",+        "name": "COLLECTOR",         "type": "passive",-        "description": "Collector terminal of the PNP transistor; the datasheet limits collector current to -100 mA DC and -200 mA peak (ICM), with collector-emitter voltage of -45 V for the BC857W type."+        "description": "Collector terminal of the BC857BW PNP transistor; for the BC857W the maximum ratings are VCBO = -50 V and VCEO = -45 V, with collector power dissipation PC of 150 mW."       }     ],     "provenance": {@@ -76,16 +76,16 @@         "consensus": "agreed",         "guards": "pin_guards 0.1: passed",         "guard_notes": [-          "extractor flagged: Datasheet Table 3 gives pin names and numbers only (1 = base, 2 = emitter, 3 = collector) for the SO; Per-pin limits are not given in the pinout table. The limits in the descriptions come from the Limit; The pinout table header reads 'Descrition' and 'Simlified outline' in the source. These are typos in"+          "extractor flagged: The datasheet covers the BC856W/BC857W/BC858W family under one SOT-323 pinout. The BC857BW is confir; The extracted text has no pin-1 orientation drawing or top-view diagram for SOT-323. Verify the phys; Pin types use KiCad 'passive' for all three transistor terminals, which is a judgment call (the data"         ],-        "pages_sent": 13,-        "cost_usd": 0.0479,-        "at": "2026-10-17T18:16:19"+        "pages_sent": 4,+        "cost_usd": 0.0248,+        "at": "2026-10-17T20:39:25"       },       "datasheet": {-        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8586172116236709888",-        "pages": 13,-        "sha256": "6ecc839c70f13953",+        "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8590261238069424128",+        "pages": 4,+        "sha256": "a217278754e52932",         "source_tier": "lcsc"       },       "cad": "KiCad official (CC-BY-SA 4.0)",@@ -110,11 +110,11 @@         "seat": "z = 0",         "extents_mm": [           2.1,-          2,+          2.0,           1.1         ],-        "zmin_mm": 0,-        "centre_offset_mm": 0,+        "zmin_mm": -0.0,+        "centre_offset_mm": 0.0,         "footprint_binding": "identity",         "sha256": "acbf75a28fe41aa90efb38cd2b78220968d6eb6ebae1625dfd532dbeb268fece",         "checked": "2026-10-17",@@ -129,13 +129,13 @@         "seat": "z = 0",         "extents_mm": [           2.1,-          2,+          2.0,           1.1         ],-        "zmin_mm": 0,-        "centre_offset_mm": 0,+        "zmin_mm": -0.0,+        "centre_offset_mm": 0.0,         "footprint_binding": "identity",-        "sha256": "d289ff6d5111af3165b6cff8759d2cfec80fbacb9536cf6545949bd096485f30",+        "sha256": "73fc0ff07cfdc9481360341ed623a0c9a526fccfec6a3b2cfb0771fa944ccd61",         "checked": "2026-10-17",         "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)"       }@@ -143,7 +143,7 @@   },   "metadata": {     "specs": {-      "Manufacturer": "Nexperia",+      "Manufacturer": "HUXN",       "Package": "SOT-323",       "Category": "Transistors/Thyristors",       "Pins": "3"@@ -151,294 +151,198 @@     "characteristics": {       "version": 1,       "source": "datasheet",-      "datasheet_sha256": "6ecc839c70f1395326ccf8c82bbdae50502d7bda631f9de635ee6dd6bc24e0b0",+      "datasheet_sha256": "a217278754e5293281d68701b32c842dbf85ca9e19c244f6e20d50b93fd3d0f0",       "rows": [         {-          "name": "collector-base voltage (BC857W column)",+          "name": "Collector-base breakdown voltage (BC857W)",           "symbol": "VCBO",-          "kind": "absolute_maximum",+          "kind": "electrical",           "unit": "V",-          "min": null,+          "min": -50,           "typ": null,-          "max": -50,-          "conditions": "open emitter",-          "source_page": 3,+          "max": null,+          "conditions": "IC= -10μA, IE=0",+          "source_page": 2,           "source": "datasheet"         },         {-          "name": "collector-emitter voltage (BC857W column)",+          "name": "Collector-emitter breakdown voltage (BC857W)",           "symbol": "VCEO",-          "kind": "absolute_maximum",-          "unit": "V",-          "min": null,-          "typ": null,-          "max": -45,-          "conditions": "open base",-          "source_page": 3,-          "source": "datasheet"-        },-        {-          "name": "emitter-base voltage",-          "symbol": "VEBO",-          "kind": "absolute_maximum",-          "unit": "V",-          "min": null,-          "typ": null,-          "max": -5,-          "conditions": "open collector",-          "source_page": 3,-          "source": "datasheet"-        },-        {-          "name": "collector current",-          "symbol": "IC",-          "kind": "absolute_maximum",-          "unit": "mA",-          "min": null,-          "typ": null,-          "max": -100,-          "conditions": "",-          "source_page": 3,-          "source": "datasheet"-        },-        {-          "name": "peak collector current",-          "symbol": "ICM",-          "kind": "absolute_maximum",-          "unit": "mA",-          "min": null,-          "typ": null,-          "max": -200,-          "conditions": "",-          "source_page": 3,-          "source": "datasheet"-        },-        {-          "name": "peak base current",-          "symbol": "IBM",-          "kind": "absolute_maximum",-          "unit": "mA",-          "min": null,-          "typ": null,-          "max": -200,-          "conditions": "",-          "source_page": 3,-          "source": "datasheet"-        },-        {-          "name": "total power dissipation",-          "symbol": "Ptot",-          "kind": "absolute_maximum",-          "unit": "mW",-          "min": null,-          "typ": null,-          "max": 200,-          "conditions": "Tamb ≤ 25 °C [1]",-          "source_page": 3,-          "source": "datasheet"-        },-        {-          "name": "junction temperature",-          "symbol": "Tj",-          "kind": "absolute_maximum",-          "unit": "°C",-          "min": null,-          "typ": null,-          "max": 150,-          "conditions": "",-          "source_page": 3,-          "source": "datasheet"-        },-        {-          "name": "ambient temperature",-          "symbol": "Tamb",-          "kind": "absolute_maximum",-          "unit": "°C",-          "min": -65,-          "typ": null,-          "max": 150,-          "conditions": "",-          "source_page": 3,-          "source": "datasheet"-        },-        {-          "name": "storage temperature",-          "symbol": "Tstg",-          "kind": "absolute_maximum",-          "unit": "°C",-          "min": -65,-          "typ": null,-          "max": 150,-          "conditions": "",-          "source_page": 3,-          "source": "datasheet"-        },-        {-          "name": "collector-base breakdown voltage (BC857W)",-          "symbol": "V(BR)CBO",           "kind": "electrical",           "unit": "V",-          "min": -50,+          "min": -45,           "typ": null,           "max": null,-          "conditions": "IC = -100 µA; IE = 0 A",-          "source_page": 5,+          "conditions": "IC= -10mA, IB=0",+          "source_page": 2,           "source": "datasheet"         },         {-          "name": "collector-emitter breakdown voltage (BC857W)",-          "symbol": "V(BR)CEO",+          "name": "Emitter-base breakdown voltage",+          "symbol": "VEBO",           "kind": "electrical",           "unit": "V",-          "min": -45,+          "min": -5,           "typ": null,           "max": null,-          "conditions": "IC = -2 mA; IB = 0 A",-          "source_page": 5,+          "conditions": "IE= -1μA, IC=0",+          "source_page": 2,           "source": "datasheet"         },         {-          "name": "emitter-base breakdown voltage",-          "symbol": "V(BR)EBO",+          "name": "DC current gain (BC857BW, 857BW group)",+          "symbol": "hFE",           "kind": "electrical",-          "unit": "V",-          "min": -5,+          "unit": "",+          "min": 220,           "typ": null,-          "max": null,-          "conditions": "IC = 0 A; IE = -100 µA",-          "source_page": 5,+          "max": 475,+          "conditions": "VCE= -5V, IC= -2mA",+          "source_page": 2,           "source": "datasheet"         },         {-          "name": "collector-base cut-off current",+          "name": "Collector cut-off current",           "symbol": "ICBO",           "kind": "electrical",           "unit": "nA",           "min": null,-          "typ": -1,+          "typ": null,           "max": -15,-          "conditions": "VCB = -30 V; IE = 0 A",-          "source_page": 5,+          "conditions": "VCB= -30 V , IE=0",+          "source_page": 2,           "source": "datasheet"         },         {-          "name": "collector-base cut-off current",-          "symbol": "ICBO",+          "name": "Collector-emitter saturation voltage",+          "symbol": "VCE(sat)",           "kind": "electrical",-          "unit": "µA",+          "unit": "V",           "min": null,           "typ": null,-          "max": -4,-          "conditions": "VCB = -30 V; IE = 0 A; Tj = 150 °C",-          "source_page": 5,+          "max": -0.65,+          "conditions": "IC=-100mA, IB= -5mA",+          "source_page": 2,           "source": "datasheet"         },         {-          "name": "emitter-base cut-off current",-          "symbol": "IEBO",+          "name": "Base-emitter saturation voltage",+          "symbol": "VBE(sat)",           "kind": "electrical",-          "unit": "nA",+          "unit": "V",           "min": null,           "typ": null,-          "max": -100,-          "conditions": "VEB = -5 V; IC = 0 A",-          "source_page": 5,+          "max": -1.1,+          "conditions": "IC= -100mA, IB= -5mA",+          "source_page": 2,           "source": "datasheet"         },         {-          "name": "DC current gain (BC857BW; BC858BW row)",-          "symbol": "hFE",+          "name": "Transition frequency",+          "symbol": "fT",           "kind": "electrical",-          "unit": "",-          "min": 220,+          "unit": "MHz",+          "min": 100,           "typ": null,-          "max": 475,-          "conditions": "VCE = -5 V; IC = -2 mA",-          "source_page": 5,+          "max": null,+          "conditions": "VCE= -5V, IC= -10mA, f=100MHz",+          "source_page": 2,           "source": "datasheet"         },         {-          "name": "collector-emitter saturation voltage",-          "symbol": "VCEsat",+          "name": "Collector capacitance",+          "symbol": "Cob",           "kind": "electrical",-          "unit": "mV",+          "unit": "pF",           "min": null,-          "typ": -75,-          "max": -300,-          "conditions": "IC = -10 mA; IB = -0.5 mA",-          "source_page": 5,+          "typ": null,+          "max": 4.5,+          "conditions": "VCB=-10V, f=1MHz",+          "source_page": 2,           "source": "datasheet"         },         {-          "name": "collector-emitter saturation voltage",-          "symbol": "VCEsat",-          "kind": "electrical",-          "unit": "mV",+          "name": "Collector-base voltage (BC857W)",+          "symbol": "VCBO",+          "kind": "absolute_maximum",+          "unit": "V",           "min": null,-          "typ": -250,-          "max": -600,-          "conditions": "IC = -100 mA; IB = -5 mA [1]; pulsed; tp ≤ 300 μs; δ ≤ 0.02",-          "source_page": 5,+          "typ": null,+          "max": -50,+          "conditions": "",+          "source_page": 1,           "source": "datasheet"         },         {-          "name": "base-emitter voltage",-          "symbol": "VBE",-          "kind": "electrical",-          "unit": "mV",-          "min": -600,-          "typ": -650,-          "max": -750,-          "conditions": "VCE = -5 V; IC = -2 mA",-          "source_page": 5,+          "name": "Collector-emitter voltage (BC857W)",+          "symbol": "VCEO",+          "kind": "absolute_maximum",+          "unit": "V",+          "min": null,+          "typ": null,+          "max": -45,+          "conditions": "",+          "source_page": 1,           "source": "datasheet"         },         {-          "name": "base-emitter voltage",-          "symbol": "VBE",-          "kind": "electrical",-          "unit": "mV",+          "name": "Emitter-base voltage",+          "symbol": "VEBO",+          "kind": "absolute_maximum",+          "unit": "V",           "min": null,           "typ": null,-          "max": -820,-          "conditions": "VCE = -5 V; IC = -10 mA",-          "source_page": 5,+          "max": -5,+          "conditions": "",+          "source_page": 1,           "source": "datasheet"         },         {-          "name": "transition frequency",-          "symbol": "fT",-          "kind": "electrical",-          "unit": "MHz",-          "min": 100,+          "name": "Collector current, continuous",+          "symbol": "IC",+          "kind": "absolute_maximum",+          "unit": "A",+          "min": null,           "typ": null,-          "max": null,-          "conditions": "VCE = -5 V; IC = -10 mA; f = 100 MHz",-          "source_page": 5,+          "max": -0.1,+          "conditions": "",+          "source_page": 1,           "source": "datasheet"         },         {-          "name": "noise figure",-          "symbol": "NF",-          "kind": "electrical",-          "unit": "dB",+          "name": "Collector power dissipation",+          "symbol": "PC",+          "kind": "absolute_maximum",+          "unit": "mW",           "min": null,-          "typ": 2,-          "max": 10,-          "conditions": "IC = -200 µA; VCE = -5 V; RS = 2 kΩ; f = 1 kHz; B = 200Hz",-          "source_page": 5,+          "typ": null,+          "max": 150,+          "conditions": "",+          "source_page": 1,           "source": "datasheet"         },         {-          "name": "thermal resistance from junction to ambient",-          "symbol": "Rth(j-a)",-          "kind": "thermal",-          "unit": "K/W",+          "name": "Junction temperature",+          "symbol": "TJ",+          "kind": "absolute_maximum",+          "unit": "℃",           "min": null,           "typ": null,-          "max": 625,-          "conditions": "in free air [1]",-          "source_page": 4,+          "max": 150,+          "conditions": "",+          "source_page": 1,+          "source": "datasheet"+        },+        {+          "name": "Storage temperature",+          "symbol": "Tstg",+          "kind": "absolute_maximum",+          "unit": "℃",+          "min": -65,+          "typ": null,+          "max": 150,+          "conditions": "",+          "source_page": 1,           "source": "datasheet"         }       ]@@ -455,7 +359,7 @@   "discovery_triggers": [     "bc857bw"   ],-  "discovery_pitch": "BC857BW (Nexperia) component page: datasheet pinout, KiCad symbol, footprint and 3D.",+  "discovery_pitch": "BC857BW (HUXN) component page: datasheet pinout, KiCad symbol, footprint and 3D.",   "author": {     "name": "Ray",     "email": "[email protected]"@@ -480,8 +384,5 @@     "bc857bw-hero.glb",     "bc857bw-hero.overlay.json",     "bc857bw-etched.glb"-  ],-  "visibility": {-    "public": true-  }-}\ No newline at end of file+  ]+}
viewers/footprint.html+1−210
@@ -1,210 +1 @@-<!doctype html><html><head><meta charset="utf-8">-<title>SOT-323_SC-70 - adom-footprint</title>-<meta name="viewport" content="width=device-width,initial-scale=1">-<style>-/* ── adom-footprint shared viewer core (CSS) ───────────────────────────────-   Included VERBATIM by both the live app (app.html) and the static embed-   (embed.html) so the canvas, zoom toolbar and layer-panel rows look identical-   and cannot drift. Self-contained literal colours (no dependency on either-   file's CSS vars). Class prefix: av- */--.av-vp{position:absolute;inset:0;overflow:hidden;cursor:grab;background:radial-gradient(circle at 50% 42%,#121a26 0%,#0d1117 72%)}-.av-vp.grab{cursor:grabbing}-/* DIRECT child only — the zoom-toolbar button icons (.av-tools svg) also live-   inside .av-vp; without '>' they'd inherit position:absolute and stack at 0,0. */-.av-vp > svg{position:absolute;left:0;top:0;width:100%;height:100%;transform-origin:0 0;display:block}--/* zoom toolbar */-/* Grouped translucent toolbar (matches adom-symbol's .tools): one container, borderless-   buttons that highlight on hover — instead of individually-boxed buttons. */-.av-tools{position:absolute;left:10px;top:10px;display:flex;gap:3px;padding:3px;z-index:5;background:rgba(22,27,34,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid #222b38;border-radius:9px}-.av-tools button{width:30px;height:30px;border-radius:6px;border:none;background:transparent;color:#cfd8e2;cursor:pointer;display:grid;place-items:center;transition:background .15s ease,color .15s ease}-.av-tools button svg{width:16px;height:16px;display:block}-.av-tools button:hover{background:#222b38;color:#37c8a6}-.av-tools button:focus,.av-tools button:focus-visible{outline:none}-.av-panhint{position:absolute;right:10px;bottom:9px;color:#8b949e;font-size:11px;z-index:5;pointer-events:none;user-select:none;-webkit-user-select:none}--/* layer panel rows */-.av-lrow{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:8px;cursor:pointer}-.av-lrow:hover{background:#161c27}-.av-lrow .sw{width:13px;height:13px;border-radius:3px;border:1px solid rgba(255,255,255,.15);flex:0 0 13px}-.av-lrow .sw.ring{background:transparent!important}-.av-lrow .ln{flex:1;font-size:13px}-.av-lrow .meta{font-size:10px;color:#8b949e}-.av-lrow .chk{width:16px;height:16px;border-radius:4px;border:1.5px solid #3a4757;display:grid;place-items:center;color:#0b0f17;font-size:11px}-.av-lrow.on .chk{background:#37c8a6;border-color:#37c8a6}-.av-lrow.off .ln,.av-lrow.off .sw{opacity:.4}-.av-lrow.special{background:linear-gradient(100deg,rgba(55,200,166,.10),transparent);border:1px solid rgba(55,200,166,.25);margin-top:4px}-.av-lrow.special .ln{color:#7ef0d2;font-weight:600}--:root{--bg:#0d1117;--panel:#11161f;--border:#222b38;--text:#e6edf3;--muted:#8b949e;--accent:#37c8a6}-*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}-body{background:var(--bg);color:var(--text);font-family:'Satoshi','Segoe UI',system-ui,sans-serif;display:flex;flex-direction:column;overflow:hidden}-header{display:flex;align-items:center;gap:9px;padding:9px 14px;border-bottom:1px solid var(--border);flex:0 0 auto}-header .dot{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent)}-header .b{font-weight:700;font-size:14px}header .b span{color:var(--muted);font-weight:400}-header .nm{margin-left:auto;font-weight:600;font-size:13px;color:#cfd8e2}-main{flex:1;display:flex;min-height:0}-.vpwrap{flex:1;position:relative;min-width:0}-aside{flex:0 0 248px;border-left:1px solid var(--border);background:var(--panel);display:flex;flex-direction:column;min-height:0}-aside .ah{padding:9px 12px;border-bottom:1px solid var(--border);font-size:12px;color:var(--muted)}-.layers{padding:6px}-.note{font-size:11px;color:var(--muted);line-height:1.45;padding:8px 11px}-.note b{color:#7ef0d2}-</style></head>-<body>-  <header><span class="dot"></span><span class="b">adom-footprint <span>· interactive</span></span><span class="nm">SOT-323_SC-70</span></header>-  <main>-    <div class="vpwrap">-      <div class="av-vp" id="vp">-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="-2.500 -2.025 5.000 4.050" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><line x1="-1.4500" y1="-0.9800" x2="-0.7300" y2="-0.9800" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-1.4500" y1="-0.3200" x2="-1.4500" y2="-0.9800" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-1.4500" y1="0.3200" x2="-0.7300" y2="0.3200" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-1.4500" y1="0.9800" x2="-1.4500" y2="0.3200" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-0.7300" y1="-1.1000" x2="0.7300" y2="-1.1000" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-0.7300" y1="-0.9800" x2="-0.7300" y2="-1.1000" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-0.7300" y1="-0.3200" x2="-1.4500" y2="-0.3200" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-0.7300" y1="0.3200" x2="-0.7300" y2="-0.3200" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-0.7300" y1="0.9800" x2="-1.4500" y2="0.9800" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-0.7300" y1="1.1000" x2="-0.7300" y2="0.9800" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="0.7300" y1="-1.1000" x2="0.7300" y2="-0.3300" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="0.7300" y1="-0.3300" x2="1.4500" y2="-0.3300" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="0.7300" y1="0.3300" x2="0.7300" y2="1.1000" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="0.7300" y1="1.1000" x2="-0.7300" y2="1.1000" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="1.4500" y1="-0.3300" x2="1.4500" y2="0.3300" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="1.4500" y1="0.3300" x2="0.7300" y2="0.3300" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/></g><g class="adom-layer-fab"><polygon points="-0.3125,-1.0000 0.6250,-1.0000 0.6250,1.0000 -0.6250,1.0000 -0.6250,-0.6875" stroke="#6e7681" stroke-width="0.100" fill="none"/></g><g class="adom-layer-copper"><g data-pad="1" data-shape="roundrect" data-size="0.925x0.450" data-mount="smd"><rect x="-1.350" y="-0.875" width="0.925" height="0.450" rx="0.113" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-shape="roundrect" data-size="0.925x0.450" data-mount="smd"><rect x="-1.350" y="0.425" width="0.925" height="0.450" rx="0.113" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="3" data-shape="roundrect" data-size="0.925x0.450" data-mount="smd"><rect x="0.425" y="-0.225" width="0.925" height="0.450" rx="0.113" 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.7350" y1="-1.1350" x2="0.7350" y2="-1.1350" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="-0.7350" y1="0.1650" x2="-0.7350" y2="-0.1650" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="0.7350" y1="-1.1350" x2="0.7350" y2="-0.4850" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="0.7350" y1="0.4850" x2="0.7350" y2="1.1350" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="0.7350" y1="1.1350" x2="-0.7350" y2="1.1350" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><polygon points="-1.1800,-0.1600 -1.0400,0.0300 -1.3200,0.0300" stroke="#00cccc" stroke-width="0.120" fill="#00cccc"/></g><g class="adom-layer-padnum"><text x="-0.887" y="-0.650" text-anchor="middle" dominant-baseline="central" font-size="0.189" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="-0.887" y="0.650" text-anchor="middle" dominant-baseline="central" font-size="0.189" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text><text x="0.887" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.189" fill="#fff" font-family="sans-serif" style="pointer-events:none">3</text></g><g class="adom-layer-paste-apertures"><rect x="-1.350" y="-0.875" width="0.925" height="0.450" rx="0.05" transform="rotate(0.00 -0.887 -0.650)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="-1.350" y="0.425" width="0.925" height="0.450" rx="0.05" transform="rotate(0.00 -0.887 0.650)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.425" y="-0.225" width="0.925" height="0.450" rx="0.05" transform="rotate(0.00 0.887 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.137" cy="-0.650" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.887" cy="-0.650" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.637" cy="-0.650" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-1.137" cy="0.650" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.887" cy="0.650" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.637" cy="0.650" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.637" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.887" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="1.137" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/></g></svg>-      </div>-    </div>-    <aside>-      <div class="ah">Layers</div>-      <div class="layers" id="layers"></div>-      <div class="note">The <b>solder paste jet</b> layer shows the 300µm paste-dispensing dots that travel with the footprint. Off by default — toggle it on.</div>-    </aside>-  </main>-<script>/* ── adom-footprint shared viewer core (window.AV) ─────────────────────────-   Single source of truth for the layer list, toggle behaviour, defaults,-   pan/zoom and toolbar icons. Included VERBATIM by both app.html (live) and-   embed.html (static) so the two viewers cannot drift. Pure client-side; works-   on any SVG that carries the <g class="adom-layer-*"> groups. */-(function(){-  var ICON_ZIN='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="10.5" cy="10.5" r="6.5"/><path d="M20 20l-4.5-4.5M10.5 8v5M8 10.5h5"/></svg>';-  var ICON_ZOUT='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="10.5" cy="10.5" r="6.5"/><path d="M20 20l-4.5-4.5M8 10.5h5"/></svg>';-  // Zoom-to-FIT = a magnifier with a small square inside (fit content to view).-  // Deliberately NOT the four-corner expand/"fullscreen" glyph.-  var ICON_FIT='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="10.5" cy="10.5" r="6.5"/><path d="M20 20l-4.5-4.5"/><rect x="7.6" y="7.6" width="5.8" height="5.8" rx="1.2"/></svg>';--  // The canonical layer list. Every layer is a <g class="adom-layer-*"> in the-  // self-rendered SVG, so toggling is group-based (robust) — never colour-match.-  // `kind:'group'` on every entry: all layers are toggled by their <g> group-  // (robust), never by colour-match. (app.html still reads def.kind.)-  var LAYER_DEFS=[-    {key:'copper',    name:'Copper',           kind:'group', sel:'.adom-layer-copper',          sw:'#C83434'},-    // Auto-generated thermal-via array under the exposed pad — only present (and-    // listed) when the footprint has an exposed thermal pad.-    {key:'heatsink',  name:'Heatsink vias',    kind:'group', sel:'.adom-layer-heatsink',        sw:'#e8a13a'},-    {key:'padnum',    name:'Pad numbers',      kind:'group', sel:'.adom-layer-padnum',          sw:'#ffffff', ring:true},-    {key:'silk',      name:'Silkscreen',       kind:'group', sel:'.adom-layer-silk',            sw:'#00cccc'},-    {key:'fab',       name:'Fab (F.Fab)',      kind:'group', sel:'.adom-layer-fab',             sw:'#6e7681', ring:true},-    {key:'courtyard', name:'Courtyard',        kind:'group', sel:'.adom-layer-courtyard',       sw:'#FF26E2', ring:true},-    {key:'drill',     name:'Drill',            kind:'group', sel:'.adom-layer-drill',           sw:'#888888', ring:true},-    {key:'paste-ap',  name:'Paste apertures',  kind:'group', sel:'.adom-layer-paste-apertures', sw:'#8aa0b8', ring:true},-    // Generic name — the 300µm solder-paste dispensing dots. Off by default.-    {key:'paste-dots',name:'Solder paste jet', kind:'group', sel:'.adom-layer-paste-dots',      sw:'#37c8a6', special:true},-  ];--  // True only if the group actually holds drawn geometry (not an empty <g>) — so-  // layers with nothing in THIS footprint aren't listed as dead, dim rows.-  function groupHasGeo(svg,def){-    if(!svg) return false; var n=0,g=svg.querySelectorAll(def.sel);-    for(var i=0;i<g.length;i++){ n+=g[i].querySelectorAll('path,rect,circle,line,polygon,polyline,text').length; }-    return n>0;-  }-  function layerPresent(svg,def){ return groupHasGeo(svg,def); }-  function applyLayer(svg,def,on){-    if(!svg) return; var g=svg.querySelectorAll(def.sel);-    for(var i=0;i<g.length;i++) g[i].style.display=on?'':'none';-  }--  // Build layer rows into a container. opts:-  //   svg, container, state {key:bool}, meta {pasteDots,pasteApertures},-  //   onToggle(key,on). Missing state key -> special OFF, others ON. Skips empty-  //   non-special groups. Returns the keys actually shown.-  function buildLayers(opts){-    var svg=opts.svg, box=opts.container, state=opts.state||{}, meta=opts.meta||{}, shown=[];-    box.innerHTML='';-    LAYER_DEFS.forEach(function(def){-      if(!def.special && !groupHasGeo(svg,def)) return;-      var on = def.special ? (state[def.key]===true) : (state[def.key]!==false);-      var m = def.key==='paste-dots' ? ((meta.pasteDots||0)+' @ 300µm')-            : def.key==='paste-ap'   ? ((meta.pasteApertures||0)+' openings') : '';-      var row=document.createElement('div');-      row.className='av-lrow '+(on?'on':'off')+(def.special?' special':'');-      row.innerHTML='<span class="sw'+(def.ring?' ring':'')+'" style="'+(def.ring?('border-color:'+def.sw):('background:'+def.sw))+'"></span>'-        +'<span class="ln">'+def.name+'</span>'+(m?'<span class="meta">'+m+'</span>':'')-        +'<span class="chk">'+(on?'✓':'')+'</span>';-      row.onclick=function(){-        var nv=!row.classList.contains('on');-        row.classList.toggle('on',nv); row.classList.toggle('off',!nv);-        row.querySelector('.chk').textContent=nv?'✓':'';-        state[def.key]=nv; applyLayer(svg,def,nv);-        if(opts.onToggle) opts.onToggle(def.key,nv);-      };-      box.appendChild(row); applyLayer(svg,def,on); shown.push(def.key);-    });-    return shown;-  }--  // Wire pan + zoom on a viewport element (the box that contains the <svg>).-  // Returns a controller {fit, zoomIn, zoomOut, apply}.-  function initViewport(vp){-    var svg=vp.querySelector('svg');-    if(svg){ svg.removeAttribute('width'); svg.removeAttribute('height'); }-    var s=1,tx=0,ty=0;-    function apply(){ var el=vp.querySelector('svg'); if(el) el.style.transform='translate('+tx+'px,'+ty+'px) scale('+s+')'; }-    function zoomAt(cx,cy,f){ tx=cx-(cx-tx)*f; ty=cy-(cy-ty)*f; s*=f; apply(); }-    function fit(){ s=1;tx=0;ty=0;apply(); }-    // Smooth, delta-PROPORTIONAL zoom (matches adom-symbol). A fixed per-event-    // factor makes the trackpad leap — one gentle two-finger nudge fires a burst-    // of tiny wheel events and a fixed 1.12× compounds. Instead derive the factor-    // from how much actually scrolled (exp → smooth + reversible), normalise-    // device units, and clamp one event so a chunky mouse notch can't jump.-    var ZOOM_K=0.0022; // sensitivity: lower = gentler-    vp.addEventListener('wheel',function(e){-      e.preventDefault();-      var d=e.deltaY;-      if(e.deltaMode===1) d*=16; else if(e.deltaMode===2) d*=vp.clientHeight;-      d=Math.max(-50,Math.min(50,d));-      var r=vp.getBoundingClientRect();-      zoomAt(e.clientX-r.left,e.clientY-r.top,Math.exp(-d*ZOOM_K));-    },{passive:false});-    var drag=false,lx=0,ly=0;-    vp.addEventListener('pointerdown',function(e){ if(e.target.closest('.av-tools'))return; drag=true;lx=e.clientX;ly=e.clientY;vp.classList.add('grab');vp.setPointerCapture(e.pointerId); });-    vp.addEventListener('pointermove',function(e){ if(!drag)return; tx+=e.clientX-lx;ty+=e.clientY-ly;lx=e.clientX;ly=e.clientY;apply(); });-    vp.addEventListener('pointerup',function(){ drag=false;vp.classList.remove('grab'); });-    fit();-    return {-      fit:fit,-      zoomIn:function(){ var r=vp.getBoundingClientRect(); zoomAt(r.width/2,r.height/2,1.2); },-      zoomOut:function(){ var r=vp.getBoundingClientRect(); zoomAt(r.width/2,r.height/2,1/1.2); },-      apply:apply-    };-  }--  // Inject the standard zoom toolbar (+ / − / fit) + pan hint into a viewport,-  // wired to a controller from initViewport. Idempotent.-  function addToolbar(vp,ctl){-    if(vp.querySelector('.av-tools')) return;-    var t=document.createElement('div'); t.className='av-tools';-    t.innerHTML='<button data-z="in" title="Zoom in">'+ICON_ZIN+'</button>'-      +'<button data-z="out" title="Zoom out">'+ICON_ZOUT+'</button>'-      +'<button data-z="fit" title="Zoom to fit">'+ICON_FIT+'</button>';-    vp.appendChild(t);-    t.querySelector('[data-z="in"]').onclick=ctl.zoomIn;-    t.querySelector('[data-z="out"]').onclick=ctl.zoomOut;-    t.querySelector('[data-z="fit"]').onclick=ctl.fit;-    var h=document.createElement('div'); h.className='av-panhint'; h.textContent='drag to pan · scroll to zoom'; vp.appendChild(h);-  }--  window.AV={-    LAYER_DEFS:LAYER_DEFS, groupHasGeo:groupHasGeo, layerPresent:layerPresent,-    applyLayer:applyLayer, buildLayers:buildLayers, initViewport:initViewport,-    addToolbar:addToolbar, ICON_FIT:ICON_FIT, ICON_ZIN:ICON_ZIN, ICON_ZOUT:ICON_ZOUT-  };-})();-</script>-<script>-var META={"pasteApertures":3,"pasteDots":9};-(function(){-  var vp=document.getElementById('vp');-  var svg=vp.querySelector('svg');-  var ctl=AV.initViewport(vp);-  AV.addToolbar(vp,ctl);-  AV.buildLayers({ svg:svg, container:document.getElementById('layers'), state:{}, meta:META });-})();-</script>-</body></html>+<!doctype html><title>bc857bw</title>\ No newline at end of file
viewers/symbol.html+1−65
@@ -1,65 +1 @@-<!doctype html><html lang=en><head><meta charset=utf-8>-<meta name=viewport content="width=device-width,initial-scale=1"><title>ADOM/BC857BW symbol</title>-<style>-:root{--bg:#0d1117;--panel:#161b22;--edge:#30363d;--ink:#e6edf3;--mut:#8b949e;--acc:#00b8b0;--accb:#00e6dc;--hi:#6ea8fe}-*{box-sizing:border-box;margin:0}html,body{height:100%}-body{background:var(--bg);color:var(--ink);font-family:'Satoshi',system-ui,sans-serif;display:flex;flex-direction:column}-.bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 11px;border-bottom:1px solid var(--edge);flex:none}-.bar .h{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--mut);font-weight:700}-.bar .sp{flex:1}-.lyrtog{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--mut);background:#1a2130;border:1px solid var(--edge);border-radius:999px;padding:3px 9px;cursor:pointer;user-select:none}-.lyrtog.on{color:var(--ink);border-color:#485162}.lyrtog:not(.on){opacity:.5}-.lyrtog .d{width:8px;height:8px;border-radius:50%;background:#485162}-.stage{flex:1;min-height:0;position:relative;overflow:hidden;background:var(--bg);cursor:grab;touch-action:none}-.stage.drag{cursor:grabbing}-.stage svg{position:absolute;inset:0;width:100%;height:100%}-.pingroup,.pad{cursor:pointer}-.pingroup.hi .pinvis{stroke:var(--hi)!important;stroke-width:7}-rect.pad.hi{stroke:var(--hi);stroke-width:.15;paint-order:stroke}-.lyr-off{display:none}-#tip{position:fixed;z-index:99;pointer-events:none;display:none;max-width:250px;background:#0d1117;border:1px solid var(--acc);border-radius:8px;padding:7px 10px;box-shadow:0 8px 26px #000a}-#tip .tn{font:700 12px ui-monospace,monospace;color:var(--accb)}-#tip .tt{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--mut);margin-top:1px}-#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='-750 -200 1500 400' style='width:100%;height:100%'><rect x='-500.0' y='-150.0' width='1000.0' height='300.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='B'><line class='pinvis' x1='-700.0' y1='-50.0' x2='-500.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-50.0' x2='-500.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='-5.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-470.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>B</text><g class='pingroup' data-num='2' data-name='E'><line class='pinvis' x1='-700.0' y1='50.0' x2='-500.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='50.0' x2='-500.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='95.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='-470.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>E</text><g class='pingroup' data-num='3' data-name='C'><line class='pinvis' x1='700.0' y1='-50.0' x2='500.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-50.0' x2='500.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-95.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>3</text><text x='470.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>C</text></svg></div>-<div id=tip></div>-<script>-var KIND="symbol", MPN="ADOM/BC857BW", PINS=[{"desc":"","name":"B","number":"1","type":""},{"desc":"","name":"E","number":"2","type":""},{"desc":"","name":"C","number":"3","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 -----var vb=(svg.getAttribute('viewBox')||'0 0 100 100').split(/\s+/).map(Number), base=vb.slice();-function setVB(){svg.setAttribute('viewBox',vb.join(' '));}-stage.addEventListener('wheel',function(e){e.preventDefault();var r=stage.getBoundingClientRect();var mx=(e.clientX-r.left)/r.width,my=(e.clientY-r.top)/r.height;var f=e.deltaY<0?0.88:1.14;var nw=vb[2]*f,nh=vb[3]*f;vb[0]+=(vb[2]-nw)*mx;vb[1]+=(vb[3]-nh)*my;vb[2]=nw;vb[3]=nh;setVB();},{passive:false});-var pan=null;-stage.addEventListener('pointerdown',function(e){pan={x:e.clientX,y:e.clientY};stage.classList.add('drag');stage.setPointerCapture(e.pointerId);});-stage.addEventListener('pointermove',function(e){if(!pan)return;var r=stage.getBoundingClientRect();vb[0]-=(e.clientX-pan.x)/r.width*vb[2];vb[1]-=(e.clientY-pan.y)/r.height*vb[3];pan={x:e.clientX,y:e.clientY};setVB();});-function endPan(){pan=null;stage.classList.remove('drag');}-stage.addEventListener('pointerup',endPan);stage.addEventListener('pointerleave',endPan);-stage.addEventListener('dblclick',function(){vb=base.slice();setVB();});-// ---- cross-highlight bus -----function els(n){return [].slice.call(document.querySelectorAll('[data-num="'+n+'"]'));}-function clearHi(){[].slice.call(document.querySelectorAll('.hi')).forEach(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(_){}}-function showTip(n,x,y){var p=byNum[String(n)];if(!p)return;tip.innerHTML='<span class=tn></span><div class=tt></div><div class=td></div>';tip.querySelector('.tn').textContent=n+'  '+(p.name||'');tip.querySelector('.tt').textContent=p.type||'';var d=p.desc||'';if(d)tip.querySelector('.td').textContent=d;else tip.querySelector('.td').style.display='none';tip.style.display='block';tip.style.left=(x+14)+'px';tip.style.top=(y+12)+'px';}-[].slice.call(document.querySelectorAll('.pingroup,.pad')).forEach(function(g){-  var n=g.getAttribute('data-num');-  g.addEventListener('mouseenter',function(e){clearHi();hi(n);post(n);showTip(n,e.clientX,e.clientY);});-  g.addEventListener('mousemove',function(e){tip.style.left=(e.clientX+14)+'px';tip.style.top=(e.clientY+12)+'px';});-  g.addEventListener('mouseleave',function(){clearHi();post(null);tip.style.display='none';});-});-window.addEventListener('message',function(e){var d=e.data||{};if(d.type!=='lbr-hover')return;clearHi();if(d.pin!=null)hi(d.pin);});-// ---- footprint layer toggles -----[].slice.call(document.querySelectorAll('.lyrtog')).forEach(function(b){-  function apply(on){[].slice.call(document.querySelectorAll('.ly-'+b.getAttribute('data-lyr'))).forEach(function(el){el.classList.toggle('lyr-off',!on);});}-  apply(b.classList.contains('on'));-  b.addEventListener('click',function(){apply(b.classList.toggle('on'));});-});-// ---- auto-grow the host readme iframe -----function ph(){var h=Math.max(360,Math.min(16000,document.body.scrollHeight||420));parent.postMessage({type:'readme-height',height:h},'*');}-window.addEventListener('load',ph);setTimeout(ph,300);-</script>-</body></html>+<!doctype html><title>bc857bw</title>\ No newline at end of file