← Commit history
Publish 0.2.0
11 files changed
+371−644
README.md+37−6@@ -2,7 +2,7 @@ **STMicroelectronics** · Voltage Regulators - Linear, Low Drop Out (LDO) Regulators · SOT-223-4 -L5150BNTR from STMicroelectronics, in a SOT-223-4. 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.+L5150BNTR from STMicroelectronics, in a SOT-223-4. 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 @@ -11,7 +11,6 @@ L5150BNTR from STMicroelectronics, in a SOT-223-4. Pinout and pin descriptions e | 1 | VS | power_in | Supply voltage input rated 5.6V to 40V with maximum line regulation of 40mV. | | 2 | GND | power_in | Ground reference. | | 3 | Vo | output | 5V regulated output with ±2% tolerance and 150mA maximum output current (current limiting at 0.28A to 0.66A); requires 220nF ceramic capacitor to GND for stability. |-| 4 | EP | passive | Exposed pad (from the footprint; not named in the datasheet pin table). | ## Key specifications @@ -20,12 +19,44 @@ L5150BNTR from STMicroelectronics, in a SOT-223-4. Pinout and pin descriptions e | Manufacturer | STMicroelectronics | | Package | SOT-223-4 | | Category | Power Management (PMIC) |-| Pins | 4 |+| Pins | 3 |++## Electrical characteristics++Limits as printed in the datasheet (page.json `metadata.characteristics` carries them as data).++| Parameter | Symbol | Min | Typ | Max | Unit | Conditions | Page |+|---|---|---|---|---|---|---|---|+| DC supply voltage | Vsdc | -0.3 | | 40 | V | | 6 |+| DC output voltage | Vo | -0.3 | | 6 | V | | 6 |+| Junction temperature | Tj | -40 | | 150 | °C | | 6 |+| HBM ESD voltage level | VESD | -2 | | 2 | kV | HBM-MIL STD 883C | 6 |+| CDM ESD voltage level | VESD | -750 | | 750 | V | CDM AEC-Q100-011 | 6 |+| Operating DC supply voltage range | | 5.6 | | 40 | V | Operating DC supply voltage range (Features list) | 1 |+| Operating junction temperature range | Tj | -40 | | 150 | °C | Wide temperature range (Features list) | 1 |+| Output voltage | Vo_ref | 4.9 | 5 | 5.1 | V | VS = 8 V to 18 V, Io = 8 mA to 150 mA | 7 |+| Output voltage | Vo_ref | 4.85 | 5 | 5.15 | V | VS = 5.6 V to 31 V, Io = 8 mA to 150 mA | 7 |+| Output voltage | Vo_ref | 4.75 | 5 | 5.25 | V | VS = 5.6 V to 31 V, Io = 0.1 mA to 8 mA | 7 |+| Short-circuit current | Ishort | 0.65 | 1.1 | 1.45 | A | VS = 13.5 V | 7 |+| Output current limitation | Ilim | 0.28 | 0.45 | 0.66 | A | VS = 13.5 V | 7 |+| Line regulation voltage | Vline | | | 40 | mV | VS = 6 V to 28 V, Io = 30 mA | 7 |+| Load regulation voltage | Vload | | | 55 | mV | VS = 8 V to 18 V, Io = 8 mA to 150 mA | 7 |+| Load regulation voltage | Vload | | | 40 | mV | VS = 13.5 V, Tj = 25 °C, Io = 8 mA to 150 mA | 7 |+| Drop voltage | Vdp | | | 500 | mV | Io = 150 mA | 7 |+| Normal consumption mode output current | Ioth_H | 8 | | | mA | VS = 8 V to 18 V | 7 |+| Very low consumption mode output current | Ioth_L | | | 1.1 | mA | VS = 8 V to 18 V | 7 |+| Current consumption | Iqn_1 | | 50 | 80 | µA | VS = 13.5 V, Io = 0.1 mA to 1 mA, Tj = 25 °C | 7 |+| Current consumption | Iqn_1 | | | 95 | µA | VS = 13.5 V, Io = 0.1 mA to 1 mA | 7 |+| Current consumption | Iqn_150 | | 3.2 | 4.2 | mA | VS = 13.5 V, Io = 150 mA | 7 |+| Thermal protection temperature | Tw | | 150 | 190 | °C | | 7 |+| Thermal resistance junction to case, SOT-223 | Rthj-case | | 20 | | °K/W | PCB 58 mm x 58 mm x 2 mm, FR4, double copper layer, 2 cm2 copper area | 6 |+| Thermal resistance junction to ambient, SOT-223 | Rthj-amb | | 79 | | °K/W | PCB 58 mm x 58 mm x 2 mm, FR4, double copper layer, 2 cm2 copper area | 6 |+| Thermal protection temperature hysteresis | Tw_hy | | 10 | | °C | | 7 | ## CAD (KiCad official) - Symbol: `L5150BNTR`-- Footprint: `Package_TO_SOT_SMD:SOT-223`+- Footprint: `Package_TO_SOT_SMD:SOT-223-3_TabPin2` - 3D model: SOT-223-4 (KiCad packages3D, STEP) - 3D model files: `l5150bntr-etched.step` / `l5150bntr-etched.glb` carry the MPN laser-etched on the die in a toggleable `Adom.LaserEtch` group (Fusion-ready); `l5150bntr.step` / `l5150bntr.glb` are the bare package body. @@ -33,8 +64,8 @@ L5150BNTR from STMicroelectronics, in a SOT-223-4. Pinout and pin descriptions e Data extracted from the manufacturer datasheet, not a distributor listing: -- **Datasheet:** [STMicroelectronics datasheet](https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8583619134102257664) (21 pp, sha256 `f281f5a11e35c944`, retrieved 2026-09-24, tier: lcsc)-- **Extractor:** parts-factory `2.0.0` / `extract_pins 0.2`, primary `claude-haiku-4-5-20251001` (text), consensus `claude-sonnet-4-6` (agreed), guards: pin_guards 0.1: passed. Pins are checked against the footprint pad set and their cited datasheet pages before publish.+- **Datasheet:** [STMicroelectronics datasheet](https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8583619134102257664) (21 pp, sha256 `f281f5a11e35c944`, retrieved 2026-11-13, tier: manufacturer)+- **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). [Datasheet PDF](docs/l5150bntr-datasheet.pdf)
docs/hero.png⋯ 1 unchanged line ⋯
l5150bntr-hero.glb⋯ 1 unchanged line ⋯
l5150bntr-hero.overlay.json+164−168@@ -1,172 +1,168 @@ {- "spec": "adom-hero 1.4",- "mpn": "L5150BNTR",- "kind": "component + footprint reference art",- "board_use": false,- "plane_z_mm": -0.02,- "units": "metre",- "upAxis": "Z",- "layers": {- "pad_outlines": {- "material": "Footprint pads - teal dashed outlines - 50 percent opacity",- "rgba": [- 0.0,- 0.902,- 0.863,- 0.5- ],- "pads": 4,- "span_mm": 8.4,- "dash_mm": 0.21,- "gap_mm": 0.126,- "pad_stroke_mm": 0.0504- },- "silkscreen": {- "material": "Silkscreen reference lines - 30 percent opacity",- "rgba": [- 0.92,- 0.96,- 1.0,- 0.3- ],- "footprint_items": 5,- "pin1": {- "source": "footprint silkscreen",- "pad": "1"- }- },- "signal_names": {- "material": "Signal names - 50 percent opacity",- "rgba": [- 0.92,- 0.96,- 1.0,- 0.5- ],- "font": "DejaVu Sans Mono",- "labels": 4,- "sides": "top + mirrored underside (single-sided)",- "fallback_to_pad_number": 0- }+ "spec": "adom-hero 1.4",+ "mpn": "L5150BNTR",+ "kind": "component + footprint reference art",+ "board_use": false,+ "plane_z_mm": -0.02,+ "units": "metre",+ "upAxis": "Z",+ "layers": {+ "pad_outlines": {+ "material": "Footprint pads - teal dashed outlines - 50 percent opacity",+ "rgba": [+ 0.0,+ 0.902,+ 0.863,+ 0.5+ ],+ "pads": 4,+ "span_mm": 8.4,+ "dash_mm": 0.21,+ "gap_mm": 0.126,+ "pad_stroke_mm": 0.0504 },- "align": {- "ok": true,- "centre_offset_mm": 0.0,- "tolerance_mm": 0.664,- "orientation_flipped": false,- "contacts_bbox_mm": [- -3.5,- 3.5,- -2.684,- 2.684- ],- "pads_bbox_mm": [- -4.15,- 4.15,- -3.05,- 3.05- ],- "seating_z_mm": 0.0+ "silkscreen": {+ "material": "Silkscreen reference lines - 30 percent opacity",+ "rgba": [+ 0.92,+ 0.96,+ 1.0,+ 0.3+ ],+ "footprint_items": 5,+ "pin1": {+ "source": "footprint silkscreen",+ "pad": "1"+ } },- "sources": {- "glb": "l5150bntr-etched.glb",- "glb_sha256": "daa774698f1601de0f987f38a2cb54c72fe22e6193cab2fbcc3e531d63c4af2a",- "footprint": "l5150bntr.kicad_mod",- "footprint_sha256": "49f22605ecc1fc70661654e09eb86ebe3545a2a8a8c98dd6039bf2bc4b9f4839",- "pins": "page.json component.pins",- "pins_sha256": "73edff9e161d3a546ee81f310ae6d3200e7405cfb9226e3aaa4b9048ac384e8e"- },- "generator": "adom-wiki 1.8.23 (component_hero)",- "labels": [- {- "pad": "1",- "text": "VS",- "x": -4.3,- "y": -2.3,- "align": "right",- "vertical": false,- "h": 0.6- },- {- "pad": "2",- "text": "GND",- "x": -4.3,- "y": 0.0,- "align": "right",- "vertical": false,- "h": 0.6- },- {- "pad": "3",- "text": "Vo",- "x": -4.3,- "y": 2.3,- "align": "right",- "vertical": false,- "h": 0.6- },- {- "pad": "4",- "text": "EP",- "x": 4.3,- "y": 0.0,- "align": "left",- "vertical": false,- "h": 0.6- }+ "signal_names": {+ "material": "Signal names - 50 percent opacity",+ "rgba": [+ 0.92,+ 0.96,+ 1.0,+ 0.5+ ],+ "font": "DejaVu Sans Mono",+ "labels": 3,+ "sides": "top + mirrored underside (single-sided)",+ "omitted": null,+ "fallback_to_pad_number": 0+ }+ },+ "align": {+ "ok": true,+ "board_underside": false,+ "electrical_pads_without_contact": [],+ "mounting_pads_left_out": [],+ "centre_offset_mm": 0.0,+ "over_pads": true,+ "tolerance_mm": 0.664,+ "orientation_flipped": false,+ "contacts_bbox_mm": [+ -3.5,+ 3.5,+ -2.684,+ 2.684+ ],+ "pads_bbox_mm": [+ -4.15,+ 4.15,+ -3.05,+ 3.05 ],- "pads": [- {- "number": "1",- "shape": "roundrect",- "center_mm": [- -3.15,- -2.3- ],- "size_mm": [- 2.0,- 1.5- ],- "rot": 0.0- },- {- "number": "2",- "shape": "roundrect",- "center_mm": [- -3.15,- 0.0- ],- "size_mm": [- 2.0,- 1.5- ],- "rot": 0.0- },- {- "number": "3",- "shape": "roundrect",- "center_mm": [- -3.15,- 2.3- ],- "size_mm": [- 2.0,- 1.5- ],- "rot": 0.0- },- {- "number": "4",- "shape": "roundrect",- "center_mm": [- 3.15,- 0.0- ],- "size_mm": [- 2.0,- 3.8- ],- "rot": 0.0- }- ]-}+ "seating_z_mm": 0.0+ },+ "sources": {+ "glb": "l5150bntr-etched.glb",+ "glb_sha256": "daa774698f1601de0f987f38a2cb54c72fe22e6193cab2fbcc3e531d63c4af2a",+ "footprint": "l5150bntr.kicad_mod",+ "footprint_sha256": "5f6cad94d6c821d01d360a4a09cca4b89e63ae0ce12c33d1dd0ba4e30e86c523",+ "pins": "page.json component.pins",+ "pins_sha256": "33756ce4d976b4469d704fb33ab4130208a1ba0e133453a93d4b28931e4f6a8f"+ },+ "generator": "factory/hero_glb.py",+ "labels": [+ {+ "pad": "1",+ "text": "VS",+ "x": -4.3,+ "y": -2.3,+ "align": "right",+ "vertical": false,+ "h": 0.6+ },+ {+ "pad": "2",+ "text": "GND",+ "x": -4.3,+ "y": 0.0,+ "align": "right",+ "vertical": false,+ "h": 0.6+ },+ {+ "pad": "3",+ "text": "Vo",+ "x": -4.3,+ "y": 2.3,+ "align": "right",+ "vertical": false,+ "h": 0.6+ }+ ],+ "pads": [+ {+ "number": "1",+ "shape": "roundrect",+ "center_mm": [+ -3.15,+ -2.3+ ],+ "size_mm": [+ 2.0,+ 1.5+ ],+ "rot": 0.0+ },+ {+ "number": "2",+ "shape": "roundrect",+ "center_mm": [+ -3.15,+ 0.0+ ],+ "size_mm": [+ 2.0,+ 1.5+ ],+ "rot": 0.0+ },+ {+ "number": "2",+ "shape": "roundrect",+ "center_mm": [+ 3.15,+ 0.0+ ],+ "size_mm": [+ 2.0,+ 3.8+ ],+ "rot": 0.0+ },+ {+ "number": "3",+ "shape": "roundrect",+ "center_mm": [+ -3.15,+ 2.3+ ],+ "size_mm": [+ 2.0,+ 1.5+ ],+ "rot": 0.0+ }+ ]+}
l5150bntr.kicad_mod+37−71@@ -1,4 +1,4 @@-(footprint "SOT-223"+(footprint "SOT-223-3_TabPin2" (version 20260206) (generator "pcbnew") (generator_version "10.0")@@ -8,7 +8,7 @@ (property "Reference" "REF**" (at 0 -4.5 0) (layer "F.SilkS")- (uuid "4497a1e1-94b1-4cba-abfc-02d82a04371f")+ (uuid "095b50a5-76ce-476b-aa10-37a37fa441f1") (effects (font (size 1 1)@@ -16,10 +16,10 @@ ) ) )- (property "Value" "SOT-223"+ (property "Value" "SOT-223-3_TabPin2" (at 0 4.5 0) (layer "F.Fab")- (uuid "222a057b-4f1f-481e-81c0-82276f6e2fbf")+ (uuid "a763838d-1dc3-4eda-bbc0-fbcf1edf1449") (effects (font (size 1 1)@@ -32,7 +32,7 @@ (unlocked yes) (layer "F.Fab") (hide yes)- (uuid "cf35375b-a35a-4ccf-b401-52356d4eb3ab")+ (uuid "0fecb949-4744-4c65-8091-70f595847ba4") (effects (font (size 1.27 1.27)@@ -45,7 +45,7 @@ (unlocked yes) (layer "F.Fab") (hide yes)- (uuid "e0b857b7-85f4-442e-9375-43b7f0b65024")+ (uuid "7dd6192e-e612-428f-816e-6f28697542d5") (effects (font (size 1.27 1.27)@@ -63,7 +63,7 @@ (type solid) ) (layer "F.SilkS")- (uuid "10341b74-de1d-44f8-b919-9dc7b01c77a6")+ (uuid "e98ec803-a6f4-4196-9fa0-d9f7619efa9d") ) (fp_line (start -1.85 3.41)@@ -73,7 +73,7 @@ (type solid) ) (layer "F.SilkS")- (uuid "9eaaee9c-d787-4c4e-9409-486f5d803253")+ (uuid "6e43f798-7915-403c-b947-4851bde35045") ) (fp_line (start 1.91 -3.41)@@ -83,7 +83,7 @@ (type solid) ) (layer "F.SilkS")- (uuid "668bbda1-c7e1-4e23-9d62-dd4d052018b0")+ (uuid "ddfc40c4-e33c-493e-b735-24282440d539") ) (fp_line (start 1.91 3.41)@@ -93,7 +93,7 @@ (type solid) ) (layer "F.SilkS")- (uuid "7b7161b8-bc72-4822-9d67-8c4bc120433f")+ (uuid "79366377-6a9f-460a-b0d1-788467590954") ) (fp_poly (pts@@ -105,67 +105,27 @@ ) (fill yes) (layer "F.SilkS")- (uuid "818bd365-7a79-40a2-b037-dacc75b8af05")+ (uuid "27420593-f422-495a-9e17-88a99bcd8a3d") ) (fp_line- (start -4.4 -3.6)- (end -4.4 3.6)- (stroke- (width 0.05)- (type solid)- )- (layer "F.CrtYd")- (uuid "1e6e1c3c-cf2e-4570-9270-1e4425f802c5")- )- (fp_line- (start -4.4 3.6)- (end 4.4 3.6)- (stroke- (width 0.05)- (type solid)- )- (layer "F.CrtYd")- (uuid "fe006c7f-e9e9-42b8-94e6-7fab62e45a96")- )- (fp_line- (start 4.4 -3.6)- (end -4.4 -3.6)- (stroke- (width 0.05)- (type solid)- )- (layer "F.CrtYd")- (uuid "18a70f3a-ba6f-445d-a1d1-b2229acce0b4")- )- (fp_line- (start 4.4 3.6)- (end 4.4 -3.6)- (stroke- (width 0.05)- (type solid)- )- (layer "F.CrtYd")- (uuid "1cb64177-a033-440a-bc55-482358e05d6e")- )- (fp_line- (start -1.85 -2.3)+ (start -1.85 -2.35) (end -1.85 3.35) (stroke (width 0.1) (type solid) ) (layer "F.Fab")- (uuid "2a9ca989-6b38-468d-a714-75a033988b2c")+ (uuid "659fc817-2286-4dd8-ba60-8e62262ce6cc") ) (fp_line- (start -1.85 -2.3)- (end -0.8 -3.35)+ (start -1.85 -2.35)+ (end -0.85 -3.35) (stroke (width 0.1) (type solid) ) (layer "F.Fab")- (uuid "bcb7341f-c5b7-4cf0-ac84-66c574c5e61c")+ (uuid "f393364a-2641-4746-ba4c-6509ea1de503") ) (fp_line (start -1.85 3.35)@@ -175,17 +135,17 @@ (type solid) ) (layer "F.Fab")- (uuid "c011dc66-40ad-4f1e-a34f-e251dae0cd31")+ (uuid "27db54e0-f4a8-4972-bcbc-256787416dcd") ) (fp_line- (start -0.8 -3.35)+ (start -0.85 -3.35) (end 1.85 -3.35) (stroke (width 0.1) (type solid) ) (layer "F.Fab")- (uuid "80711826-0dce-449b-af78-388864936159")+ (uuid "be579ebe-38db-4860-98f0-9f530f704760") ) (fp_line (start 1.85 -3.35)@@ -195,12 +155,12 @@ (type solid) ) (layer "F.Fab")- (uuid "a66ee799-671f-4902-ac92-f94d39f82acf")+ (uuid "9d748ff0-f43a-42f3-a9ff-3a463972b1ca") ) (fp_text user "${REFERENCE}" (at 0 0 90) (layer "F.Fab")- (uuid "184c46b5-a004-48e0-8f63-d7d63dc324be")+ (uuid "aff1cd04-29c5-47f0-8349-1badf43ec67b") (effects (font (size 0.8 0.8)@@ -213,28 +173,28 @@ (size 2 1.5) (layers "F.Cu" "F.Mask" "F.Paste") (roundrect_rratio 0.25)- (uuid "ea891fee-0855-44cc-8da9-0c7b9e3b1505")+ (uuid "6c38c733-73aa-46ef-9aa8-0adc47a79448") ) (pad "2" smd roundrect (at -3.15 0) (size 2 1.5) (layers "F.Cu" "F.Mask" "F.Paste") (roundrect_rratio 0.25)- (uuid "2adbaf0f-7617-4618-9438-78a8bd4ec4b2")+ (uuid "553b4aa3-b4fc-45ee-9bbe-5eb8183ee7d8") )- (pad "3" smd roundrect- (at -3.15 2.3)- (size 2 1.5)+ (pad "2" smd roundrect+ (at 3.15 0)+ (size 2 3.8) (layers "F.Cu" "F.Mask" "F.Paste") (roundrect_rratio 0.25)- (uuid "1b42a1a5-e735-42f2-b87a-1df5a461081d")+ (uuid "118e82e2-9099-4e46-a269-1e2cb8448d5e") )- (pad "4" smd roundrect- (at 3.15 0)- (size 2 3.8)+ (pad "3" smd roundrect+ (at -3.15 2.3)+ (size 2 1.5) (layers "F.Cu" "F.Mask" "F.Paste") (roundrect_rratio 0.25)- (uuid "023f2cc5-97fb-4421-8e37-e8aa385789b4")+ (uuid "5046df04-2b74-45a5-867e-e33a5e51e59c") ) (embedded_fonts no) (model "${KICAD10_3DMODEL_DIR}/Package_TO_SOT_SMD.3dshapes/SOT-223.step"@@ -248,4 +208,10 @@ (xyz 0 0 0) ) )+ (fp_poly+ (pts (xy -4.40 -3.30) (xy -2.10 -3.30) (xy -2.10 -3.60) (xy 2.10 -3.60) (xy 2.10 -2.15) (xy 4.40 -2.15) (xy 4.40 2.15) (xy 2.10 2.15) (xy 2.10 3.60) (xy -2.10 3.60) (xy -2.10 3.30) (xy -4.40 3.30))+ (stroke (width 0.05) (type solid))+ (fill no)+ (layer "F.CrtYd")+ ) )
l5150bntr.kicad_sym+1−5@@ -16,11 +16,7 @@ (name "GND" (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 "EP" (effects (font (size 1.27 1.27))))- (number "4" (effects (font (size 1.27 1.27))))- )- (pin output line (at 17.78 -2.54 180) (length 5.08)+ (pin output line (at 17.78 0.00 180) (length 5.08) (name "Vo" (effects (font (size 1.27 1.27)))) (number "3" (effects (font (size 1.27 1.27)))) )
l5150bntr.lbr+8−10@@ -52,12 +52,12 @@ <library> <description></description> <packages>-<package name="SOT-223">+<package name="SOT-223-3_TabPin2"> <description>4 pads, 8.3 x 6.1 mm. module CMS SOT223 4 pins</description> <smd name="1" x="-3.1500" y="2.3000" dx="2.0000" dy="1.5000" layer="1" roundness="50"/> <smd name="2" x="-3.1500" y="-0.0000" dx="2.0000" dy="1.5000" layer="1" roundness="50"/>+ <smd name="2@2" x="3.1500" y="-0.0000" dx="2.0000" dy="3.8000" layer="1" roundness="50"/> <smd name="3" x="-3.1500" y="-2.3000" dx="2.0000" dy="1.5000" layer="1" roundness="50"/>- <smd name="4" x="3.1500" y="-0.0000" dx="2.0000" dy="3.8000" layer="1" roundness="50"/> <polygon width="0.1200" layer="21"> <vertex x="-3.1300" y="3.3100"/> <vertex x="-3.3700" y="3.6400"/>@@ -68,10 +68,10 @@ <wire x1="-1.8500" y1="-3.4100" x2="1.9100" y2="-3.4100" width="0.1200" layer="21"/> <wire x1="1.9100" y1="3.4100" x2="1.9100" y2="2.1500" width="0.1200" layer="21"/> <wire x1="1.9100" y1="-3.4100" x2="1.9100" y2="-2.1500" width="0.1200" layer="21"/>- <wire x1="-1.8500" y1="2.3000" x2="-1.8500" y2="-3.3500" width="0.1000" layer="51"/>- <wire x1="-1.8500" y1="2.3000" x2="-0.8000" y2="3.3500" width="0.1000" layer="51"/>+ <wire x1="-1.8500" y1="2.3500" x2="-1.8500" y2="-3.3500" width="0.1000" layer="51"/>+ <wire x1="-1.8500" y1="2.3500" x2="-0.8500" y2="3.3500" width="0.1000" layer="51"/> <wire x1="-1.8500" y1="-3.3500" x2="1.8500" y2="-3.3500" width="0.1000" layer="51"/>- <wire x1="-0.8000" y1="3.3500" x2="1.8500" y2="3.3500" width="0.1000" layer="51"/>+ <wire x1="-0.8500" y1="3.3500" x2="1.8500" y2="3.3500" width="0.1000" layer="51"/> <wire x1="1.8500" y1="3.3500" x2="1.8500" y2="-3.3500" width="0.1000" layer="51"/> <text x="0" y="4.010" size="1.27" layer="25" align="bottom-center">>NAME</text> <text x="0" y="-4.010" size="1.27" layer="27" align="top-center">>VALUE</text>@@ -87,8 +87,7 @@ <text x="0.0000" y="-7.6200" size="1.27" layer="96" align="center">>VALUE</text> <pin name="VS" x="-17.78" y="0" length="middle" direction="pwr"/> <pin name="GND" x="-17.78" y="-2.54" length="middle" direction="pwr"/>- <pin name="EP" x="17.78" y="0" length="middle" direction="pas" rot="R180"/>- <pin name="Vo" x="17.78" y="-2.54" length="middle" direction="out" rot="R180"/>+ <pin name="Vo" x="17.78" y="0" length="middle" direction="out" rot="R180"/> </symbol> </symbols> <devicesets>@@ -98,11 +97,10 @@ <gate name="G$1" symbol="L5150BNTR" x="0" y="0"/> </gates> <devices>- <device name="" package="SOT-223">+ <device name="" package="SOT-223-3_TabPin2"> <connects> <connect gate="G$1" pin="VS" pad="1"/>- <connect gate="G$1" pin="GND" pad="2"/>- <connect gate="G$1" pin="EP" pad="4"/>+ <connect gate="G$1" pin="GND" pad="2 2@2"/> <connect gate="G$1" pin="Vo" pad="3"/> </connects> <technologies><technology name=""/></technologies>
package.json+61−71@@ -1,8 +1,8 @@ { "slug": "l5150bntr",- "version": "0.1.1",+ "version": "0.2.0", "type": "component",- "description": "STMicroelectronics Voltage Regulators - Linear, Low Drop Out (LDO) Regulators, SOT-223-4. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",+ "description": "STMicroelectronics Voltage Regulators - Linear, Low Drop Out (LDO) Regulators, SOT-223-4. Pinout settled in review by an AI reviewer against the manufacturer's datasheet, KiCad symbol/footprint/3D.", "tags": [ "component", "power management (pmic)",@@ -27,8 +27,6 @@ "docs/l5150bntr-datasheet.pdf", "viewers/symbol.html", "viewers/footprint.html",- "l5150bntr-etched.glb",- "l5150bntr-etched.step", "l5150bntr-hero.glb", "l5150bntr-hero.overlay.json" ],@@ -36,7 +34,7 @@ "mpn": "L5150BNTR", "manufacturer": "STMicroelectronics", "package": "SOT-223-4",- "pin_count": 4,+ "pin_count": 3, "category": "Power Management (PMIC)", "subcategory": "Voltage Regulators - Linear, Low Drop Out (LDO) Regulators", "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8583619134102257664",@@ -55,12 +53,11 @@ "mouser": "511-L5150BNTR" }, "distributor_check": {- "checked_at": "2026-09-24T23:16:36Z",+ "checked_at": "2026-11-13T01:54:26Z", "source": "Component Ocean /api/assign-pns", "digikey": { "pn": "497-11659-2-ND",- "status": "found",- "lifecycle": "Active"+ "status": "found" }, "mouser": { "pn": "511-L5150BNTR",@@ -85,42 +82,20 @@ "name": "Vo", "type": "output", "description": "5V regulated output with ±2% tolerance and 150mA maximum output current (current limiting at 0.28A to 0.66A); requires 220nF ceramic capacitor to GND for stability."- },- {- "number": "4",- "name": "EP",- "type": "passive",- "description": "Exposed pad (from the footprint; not named in the datasheet pin table)." } ], "provenance": {- "extractor": "extract_pins 0.2",- "factory_chain": {- "factory": "2.0.0",- "extractor": "extract_pins 0.2",- "primary_model": "claude-haiku-4-5-20251001",- "primary_mode": "text",- "consensus_model": "claude-sonnet-4-6",- "consensus": "agreed",- "guards": "pin_guards 0.1: passed",- "guard_notes": [- "extractor flagged: User specified package SOT-223-4 (4-pin), but datasheet explicitly states SOT-223 package; only 3 pi",- "exposed pad 4 added from the footprint"- ],- "pages_sent": 21,- "cost_usd": 0.1719,- "at": "2026-09-24T23:16:16"- },+ "extractor": "ds2sf", "datasheet": { "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8583619134102257664", "pages": 21, "sha256": "f281f5a11e35c944",- "source_tier": "lcsc"+ "source_tier": "mfr" }, "cad": "KiCad official (CC-BY-SA 4.0)", "pins": {- "total": 4,- "described": 4,+ "total": 3,+ "described": 3, "cites_pages": true, "refuses_to_fabricate": true }@@ -146,7 +121,7 @@ "centre_offset_mm": 0.0, "footprint_binding": "identity", "sha256": "77ad6dbacc493cb619c728f26d2ddcf461eb0feb6b977b47d01d51e67016f654",- "checked": "2026-10-07",+ "checked": "2026-11-13", "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)" }, {@@ -164,43 +139,58 @@ "zmin_mm": -0.0, "centre_offset_mm": 0.0, "footprint_binding": "identity",- "sha256": "e0b769f9033c7bcb3bae19c6fcc2e25cb5b0fdf5ca485aba263886d81502dcda",- "checked": "2026-10-16",+ "sha256": "88d7df0b001c0b185a5123a1154634243793bc3732c459fa5ab263c054094c77",+ "checked": "2026-11-13", "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)" }- ]- },- "metadata": {- "specs": {- "Manufacturer": "STMicroelectronics",- "Package": "SOT-223-4",- "Category": "Power Management (PMIC)",- "Pins": "4"- },- "characteristics": {- "version": 1,- "source": "datasheet",- "rows": [- {- "name": "Output current",- "symbol": "IOUT",- "kind": "electrical",- "unit": "A",- "min": 0.28,- "typ": 0.45,- "max": 0.66,- "conditions": "VS = 13.5 V; datasheet prints several: 0.66 A (VS = 13.5 V Output current limitation), 1.1 mA (VS = 8 V to 18 V Very low consumption mode output current); the most conservative is kept",- "source_page": 7,- "source": "datasheet"- }- ]+ ],+ "package_dims": {+ "package_code": "SOT-223",+ "source_page": 16,+ "D": {+ "nom_mm": 6.5,+ "range_mm": [+ 6.3,+ 6.7+ ]+ },+ "E1": {+ "nom_mm": 3.5,+ "range_mm": [+ 3.3,+ 3.7+ ]+ },+ "E": {+ "nom_mm": 7.0,+ "range_mm": [+ 6.7,+ 7.3+ ]+ },+ "e": {+ "nom_mm": 2.3,+ "range_mm": [+ null,+ null+ ]+ },+ "A": {+ "nom_mm": 1.8,+ "range_mm": [+ null,+ 1.8+ ]+ },+ "source": "datasheet package drawing, every number found on its page (extract_pins --task dims)",+ "model_check": {+ "file": "l5150bntr.step",+ "verdict": "PASS",+ "reasons": [+ "height and body within the datasheet's package drawing"+ ],+ "by": "factory/package_fit.py"+ } }- },- "title": "L5150BNTR",- "brief": "STMicroelectronics Voltage Regulators - Linear, Low Drop Out (LDO) Regulators, SOT-223-4. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",- "discovery_triggers": [- "l5150bntr"- ],- "discovery_pitch": "L5150BNTR (STMicroelectronics) component page: datasheet pinout, KiCad symbol, footprint and 3D.",- "visibility": "public"+ } }
page.json+61−38@@ -4,7 +4,7 @@ "slug": "l5150bntr", "title": "L5150BNTR", "brief": "STMicroelectronics Voltage Regulators - Linear, Low Drop Out (LDO) Regulators, SOT-223-4. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",- "version": "0.1.1",+ "version": "0.2.0", "license": "CC-BY-SA-4.0", "tags": [ "component",@@ -17,7 +17,7 @@ "mpn": "L5150BNTR", "manufacturer": "STMicroelectronics", "package": "SOT-223-4",- "pin_count": 4,+ "pin_count": 3, "category": "Power Management (PMIC)", "subcategory": "Voltage Regulators - Linear, Low Drop Out (LDO) Regulators", "datasheet": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8583619134102257664",@@ -36,12 +36,11 @@ "mouser": "511-L5150BNTR" }, "distributor_check": {- "checked_at": "2026-09-24T23:16:36Z",+ "checked_at": "2026-11-13T01:54:26Z", "source": "Component Ocean /api/assign-pns", "digikey": { "pn": "497-11659-2-ND",- "status": "found",- "lifecycle": "Active"+ "status": "found" }, "mouser": { "pn": "511-L5150BNTR",@@ -66,42 +65,20 @@ "name": "Vo", "type": "output", "description": "5V regulated output with ±2% tolerance and 150mA maximum output current (current limiting at 0.28A to 0.66A); requires 220nF ceramic capacitor to GND for stability."- },- {- "number": "4",- "name": "EP",- "type": "passive",- "description": "Exposed pad (from the footprint; not named in the datasheet pin table)." } ], "provenance": {- "extractor": "extract_pins 0.2",- "factory_chain": {- "factory": "2.0.0",- "extractor": "extract_pins 0.2",- "primary_model": "claude-haiku-4-5-20251001",- "primary_mode": "text",- "consensus_model": "claude-sonnet-4-6",- "consensus": "agreed",- "guards": "pin_guards 0.1: passed",- "guard_notes": [- "extractor flagged: User specified package SOT-223-4 (4-pin), but datasheet explicitly states SOT-223 package; only 3 pi",- "exposed pad 4 added from the footprint"- ],- "pages_sent": 21,- "cost_usd": 0.1719,- "at": "2026-09-24T23:16:16"- },+ "extractor": "ds2sf", "datasheet": { "url": "https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8583619134102257664", "pages": 21, "sha256": "f281f5a11e35c944",- "source_tier": "lcsc"+ "source_tier": "mfr" }, "cad": "KiCad official (CC-BY-SA 4.0)", "pins": {- "total": 4,- "described": 4,+ "total": 3,+ "described": 3, "cites_pages": true, "refuses_to_fabricate": true }@@ -127,7 +104,7 @@ "centre_offset_mm": 0, "footprint_binding": "identity", "sha256": "77ad6dbacc493cb619c728f26d2ddcf461eb0feb6b977b47d01d51e67016f654",- "checked": "2026-10-07",+ "checked": "2026-11-13", "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)" }, {@@ -145,11 +122,59 @@ "zmin_mm": 0, "centre_offset_mm": 0, "footprint_binding": "identity",- "sha256": "e0b769f9033c7bcb3bae19c6fcc2e25cb5b0fdf5ca485aba263886d81502dcda",- "checked": "2026-10-16",+ "sha256": "88d7df0b001c0b185a5123a1154634243793bc3732c459fa5ab263c054094c77",+ "checked": "2026-11-13", "checked_by": "factory/step_pose.py (Z-up, origin, seat, binding)" }- ]+ ],+ "package_dims": {+ "package_code": "SOT-223",+ "source_page": 16,+ "D": {+ "nom_mm": 6.5,+ "range_mm": [+ 6.3,+ 6.7+ ]+ },+ "E1": {+ "nom_mm": 3.5,+ "range_mm": [+ 3.3,+ 3.7+ ]+ },+ "E": {+ "nom_mm": 7,+ "range_mm": [+ 6.7,+ 7.3+ ]+ },+ "e": {+ "nom_mm": 2.3,+ "range_mm": [+ null,+ null+ ]+ },+ "A": {+ "nom_mm": 1.8,+ "range_mm": [+ null,+ 1.8+ ]+ },+ "source": "datasheet package drawing, every number found on its page (extract_pins --task dims)",+ "model_check": {+ "file": "l5150bntr.step",+ "verdict": "PASS",+ "reasons": [+ "height and body within the datasheet's package drawing"+ ],+ "by": "factory/package_fit.py"+ }+ } }, "metadata": { "specs": {@@ -209,12 +234,10 @@ "docs/l5150bntr-datasheet.pdf", "viewers/symbol.html", "viewers/footprint.html",- "l5150bntr-etched.glb",- "l5150bntr-etched.step", "l5150bntr-hero.glb", "l5150bntr-hero.overlay.json" ], "visibility": "public",- "description": "STMicroelectronics Voltage Regulators - Linear, Low Drop Out (LDO) Regulators, SOT-223-4. Pinout cross-checked by two models against the datasheet, KiCad symbol/footprint/3D.",+ "description": "STMicroelectronics Voltage Regulators - Linear, Low Drop Out (LDO) Regulators, SOT-223-4. Pinout settled in review by an AI reviewer against the manufacturer's datasheet, KiCad symbol/footprint/3D.", "org": "adom" }
viewers/footprint.html+1−210@@ -1,210 +1 @@-<!doctype html><html><head><meta charset="utf-8">-<title>SOT-223 - 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-223</span></header>- <main>- <div class="vpwrap">- <div class="av-vp" id="vp">- <svg xmlns="http://www.w3.org/2000/svg" viewBox="-5.300 -4.200 10.600 8.400" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><line x1="-4.4000" y1="-3.6000" x2="-4.4000" y2="3.6000" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-4.4000" y1="3.6000" x2="4.4000" y2="3.6000" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="4.4000" y1="-3.6000" x2="-4.4000" y2="-3.6000" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="4.4000" y1="3.6000" x2="4.4000" y2="-3.6000" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/></g><g class="adom-layer-fab"><line x1="-1.8500" y1="-2.3000" x2="-1.8500" y2="3.3500" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="-1.8500" y1="-2.3000" x2="-0.8000" y2="-3.3500" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="-1.8500" y1="3.3500" x2="1.8500" y2="3.3500" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="-0.8000" y1="-3.3500" x2="1.8500" y2="-3.3500" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="1.8500" y1="-3.3500" x2="1.8500" y2="3.3500" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/></g><g class="adom-layer-copper"><g data-pad="1" data-shape="roundrect" data-size="2.000x1.500" data-mount="smd"><rect x="-4.150" y="-3.050" width="2.000" height="1.500" rx="0.375" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-shape="roundrect" data-size="2.000x1.500" data-mount="smd"><rect x="-4.150" y="-0.750" width="2.000" height="1.500" rx="0.375" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="3" data-shape="roundrect" data-size="2.000x1.500" data-mount="smd"><rect x="-4.150" y="1.550" width="2.000" height="1.500" rx="0.375" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="4" data-shape="roundrect" data-size="2.000x3.800" data-mount="smd"><rect x="2.150" y="-1.900" width="2.000" height="3.800" rx="0.500" 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="-1.8500" y1="-3.4100" x2="1.9100" y2="-3.4100" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="-1.8500" y1="3.4100" x2="1.9100" y2="3.4100" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="1.9100" y1="-3.4100" x2="1.9100" y2="-2.1500" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="1.9100" y1="3.4100" x2="1.9100" y2="2.1500" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><polygon points="-3.1300,-3.3100 -3.3700,-3.6400 -2.8900,-3.6400 -3.1300,-3.3100" stroke="#00cccc" stroke-width="0.120" fill="#00cccc"/></g><g class="adom-layer-padnum"><text x="-3.150" y="-2.300" text-anchor="middle" dominant-baseline="central" font-size="0.630" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="-3.150" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.630" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text><text x="-3.150" y="2.300" text-anchor="middle" dominant-baseline="central" font-size="0.630" fill="#fff" font-family="sans-serif" style="pointer-events:none">3</text><text x="3.150" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.840" fill="#fff" font-family="sans-serif" style="pointer-events:none">4</text></g><g class="adom-layer-paste-apertures"><rect x="-4.150" y="-3.050" width="2.000" height="1.500" rx="0.05" transform="rotate(0.00 -3.150 -2.300)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="-4.150" y="-0.750" width="2.000" height="1.500" rx="0.05" transform="rotate(0.00 -3.150 0.000)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="-4.150" y="1.550" width="2.000" height="1.500" rx="0.05" transform="rotate(0.00 -3.150 2.300)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="2.150" y="-1.900" width="2.000" height="3.800" rx="0.05" transform="rotate(0.00 3.150 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="-3.900" cy="-2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="-2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="-2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="-2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="-1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="-2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="-2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="-2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="-2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="-1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="-2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="-2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="-2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="-2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="-1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="-2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="-2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="-2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="-2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="-1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="-2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="-2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="-2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="-2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="-1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="-2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="-2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="-2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="-2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="-1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="-2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="-2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="-2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="-2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="-1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="-0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="-0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="-0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="-0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="-0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="-0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="-0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="0.500" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.900" cy="2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.650" cy="2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.400" cy="2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-3.150" cy="2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.900" cy="2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.650" cy="2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="1.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="2.050" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="2.300" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="2.550" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-2.400" cy="2.800" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="-1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="-1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="-1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="-0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="-0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.400" cy="1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="-1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="-1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="-1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="-0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="-0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.650" cy="1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="-1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="-1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="-1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="-0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="-0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="2.900" cy="1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="-1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="-1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="-1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="-0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="-0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.150" cy="1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="-1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="-1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="-1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="-0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="-0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.400" cy="1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="-1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="-1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="-1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="-0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="-0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.650" cy="1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="-1.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="-1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="-1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="-0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="-0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="-0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="-0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="0.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="0.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="0.625" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="0.875" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="1.125" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="1.375" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="3.900" cy="1.625" 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":4,"pasteDots":203};-(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>l5150bntr</title>
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/L5150BNTR 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='VS'><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'>VS</text><g class='pingroup' data-num='2' data-name='GND'><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'>GND</text><g class='pingroup' data-num='4' data-name='EP'><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'>4</text><text x='470.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>EP</text><g class='pingroup' data-num='3' data-name='Vo'><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'>3</text><text x='470.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>Vo</text></svg></div>-<div id=tip></div>-<script>-var KIND="symbol", MPN="ADOM/L5150BNTR", PINS=[{"desc":"","name":"VS","number":"1","type":""},{"desc":"","name":"GND","number":"2","type":""},{"desc":"","name":"EP","number":"4","type":""},{"desc":"","name":"Vo","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>l5150bntr</title>