← Commit history
Publish 0.5.1
13 files changed
+501−11
Cargo.lock+1−1Cargo.toml+1−1README.md+2−2bin/adom-2dboardexamples/74hc595bq-8x8-wings/0402b104j160ct.kicad_mod+23examples/74hc595bq-8x8-wings/74hc595bq.kicad_mod+457examples/74hc595bq-8x8-wings/layout.json+9examples/74hc595bq-8x8-wings/plan.json+1package.json+1−1page.json+2−2scripts/acceptance/hc595_pours.py+1−1scripts/acceptance/mock_positions.py+2−2src/plan_view.rs+1−1Cargo.lock+1−1@@ -10,7 +10,7 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" [[package]] name = "adom-2dboard"-version = "0.5.0"+version = "0.5.1" dependencies = [ "anyhow", "cfb",
Cargo.toml+1−1@@ -1,6 +1,6 @@ [package] name = "adom-2dboard"-version = "0.5.0"+version = "0.5.1" edition = "2021" description = "Interactive PCB viewer (.kicad_pcb → themed, net-highlightable SVG) with component hover info — embeddable in any app"
README.md+2−2@@ -59,7 +59,7 @@ adom-2dboard render --circuit dist/lib/index/circuit.json --out board.svg --json  -+ - `--out` decides the format: `.svg`, or `.png` at `--width` pixels (default 1000), a 256-colour PNG sized for chat (64 to 125 KB for a 10 mm molecule up to a 70 mm board).@@ -67,7 +67,7 @@ adom-2dboard render --circuit dist/lib/index/circuit.json --out board.svg --json - A layout file: `{ "title", "plan": "plan.json", "machinePinNets": {"MP1": "GND"}, "contactNets": {...}, "powerNets": [...], "parts": [{ "ref", "footprint": "u1.kicad_mod", "x", "y", "rotation", "pins": {"1": "COM"}, "label" }], "courtyardExceptions": [{ "refs": ["U1", "C1"], "reason" }] }`. Paths are relative to it.- `examples/` holds three: the 74HC595 domino and the CD74HC4067 A / B.+ `examples/` holds three: the 74HC595BQ (8 x 8 with 2 mm top and bottom wings) and the CD74HC4067 A / B. - `--json` lists every machine pin, contact and pad position, clearances, crossings, free slots, courtyard overlaps, pours (gap, edge pullback) and silk text.
bin/adom-2dboard⋯ 1 unchanged line ⋯
examples/74hc595bq-8x8-wings/0402b104j160ct.kicad_modadded+23@@ -0,0 +1,23 @@+(footprint "0402B104J160CT"+ (version 20240108)+ (generator "adom-footprint")+ (layer "F.Cu")+ (descr "Walsin Technology Corporation · Multilayer Ceramic Capacitor (MLCC) · General Purpose")+ (attr smd)+ (fp_rect (start -0.95 -0.55) (end 0.95 0.55)+ (stroke (width 0.05) (type default)) (fill none) (layer "F.CrtYd"))+ (fp_rect (start -0.5 -0.25) (end 0.5 0.25)+ (stroke (width 0.1) (type default)) (fill none) (layer "F.Fab"))+ (fp_rect (start -0.62 -0.37) (end 0.62 0.37)+ (stroke (width 0.12) (type default)) (fill none) (layer "F.SilkS"))+ (fp_line (start -0.7 -0.5) (end -0.2 -0.5)+ (stroke (width 0.12) (type default)) (layer "F.SilkS"))+ (fp_text reference "REF**" (at 0 -2.8)+ (layer "F.SilkS") (effects (font (size 1 1) (thickness 0.15))))+ (fp_text value "0402B104J160CT" (at 0 2.8)+ (layer "F.Fab") (effects (font (size 1 1) (thickness 0.15))))+ (pad "1" smd roundrect (at -0.5 0) (size 0.6 0.5)+ (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25))+ (pad "2" smd roundrect (at 0.5 0) (size 0.6 0.5)+ (layers "F.Cu" "F.Paste" "F.Mask") (roundrect_rratio 0.25))+)
examples/74hc595bq-8x8-wings/74hc595bq.kicad_modadded+457@@ -0,0 +1,457 @@+(footprint "DHVQFN-16-1EP_2.5x3.5mm_P0.5mm_EP1x2mm"+ (version 20260206)+ (generator "kicad-footprint-generator")+ (layer "F.Cu")+ (descr "DHVQFN, 16 Pin (JEDEC MO-241/VAB, https://assets.nexperia.com/documents/package-information/SOT763-1.pdf)")+ (tags "DHVQFN NoLead Nexperia_SOT763-1 Texas_BQB0016A")+ (property "Reference" "REF**"+ (at 0 -3.05 0)+ (layer "F.SilkS")+ (effects+ (font+ (size 1 1)+ (thickness 0.15)+ )+ )+ )+ (property "Value" "DHVQFN-16-1EP_2.5x3.5mm_P0.5mm_EP1x2mm"+ (at 0 3.05 0)+ (layer "F.Fab")+ (effects+ (font+ (size 1 1)+ (thickness 0.15)+ )+ )+ )+ (property "KiLib_Generator" "package/no_lead"+ (at 0 0 0)+ (layer "F.SilkS")+ (hide yes)+ (effects+ (font+ (size 1 1)+ (thickness 0.15)+ )+ )+ )+ (attr smd)+ (duplicate_pad_numbers_are_jumpers no)+ (fp_line+ (start -1.36 -1.86)+ (end -0.635 -1.86)+ (stroke+ (width 0.12)+ (type solid)+ )+ (layer "F.SilkS")+ )+ (fp_line+ (start -1.36 -1.635)+ (end -1.36 -1.86)+ (stroke+ (width 0.12)+ (type solid)+ )+ (layer "F.SilkS")+ )+ (fp_line+ (start -1.36 1.86)+ (end -1.36 1.635)+ (stroke+ (width 0.12)+ (type solid)+ )+ (layer "F.SilkS")+ )+ (fp_line+ (start -0.635 1.86)+ (end -1.36 1.86)+ (stroke+ (width 0.12)+ (type solid)+ )+ (layer "F.SilkS")+ )+ (fp_line+ (start 0.635 -1.86)+ (end 1.36 -1.86)+ (stroke+ (width 0.12)+ (type solid)+ )+ (layer "F.SilkS")+ )+ (fp_line+ (start 1.36 -1.86)+ (end 1.36 -1.635)+ (stroke+ (width 0.12)+ (type solid)+ )+ (layer "F.SilkS")+ )+ (fp_line+ (start 1.36 1.635)+ (end 1.36 1.86)+ (stroke+ (width 0.12)+ (type solid)+ )+ (layer "F.SilkS")+ )+ (fp_line+ (start 1.36 1.86)+ (end 0.635 1.86)+ (stroke+ (width 0.12)+ (type solid)+ )+ (layer "F.SilkS")+ )+ (fp_poly+ (pts+ (xy -0.25 -2.37)+ (xy -0.49 -2.7)+ (xy -0.01 -2.7)+ )+ (stroke+ (width 0.12)+ (type solid)+ )+ (fill yes)+ (layer "F.SilkS")+ )+ (fp_line+ (start -1.85 -1.63)+ (end -1.5 -1.63)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start -1.85 1.63)+ (end -1.85 -1.63)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start -1.5 -2)+ (end -0.63 -2)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start -1.5 -1.63)+ (end -1.5 -2)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start -1.5 1.63)+ (end -1.85 1.63)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start -1.5 2)+ (end -1.5 1.63)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start -0.63 -2.35)+ (end 0.63 -2.35)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start -0.63 -2)+ (end -0.63 -2.35)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start -0.63 2)+ (end -1.5 2)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start -0.63 2.35)+ (end -0.63 2)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start 0.63 -2.35)+ (end 0.63 -2)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start 0.63 -2)+ (end 1.5 -2)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start 0.63 2)+ (end 0.63 2.35)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start 0.63 2.35)+ (end -0.63 2.35)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start 1.5 -2)+ (end 1.5 -1.63)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start 1.5 -1.63)+ (end 1.85 -1.63)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start 1.5 1.63)+ (end 1.5 2)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start 1.5 2)+ (end 0.63 2)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start 1.85 -1.63)+ (end 1.85 1.63)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_line+ (start 1.85 1.63)+ (end 1.5 1.63)+ (stroke+ (width 0.05)+ (type solid)+ )+ (layer "F.CrtYd")+ )+ (fp_poly+ (pts+ (xy -0.625 -1.75)+ (xy 1.25 -1.75)+ (xy 1.25 1.75)+ (xy -1.25 1.75)+ (xy -1.25 -1.125)+ )+ (stroke+ (width 0.1)+ (type solid)+ )+ (fill no)+ (layer "F.Fab")+ )+ (fp_text user "${REFERENCE}"+ (at 0 0 90)+ (layer "F.Fab")+ (effects+ (font+ (size 0.88 0.88)+ (thickness 0.13)+ )+ )+ )+ (pad "" smd roundrect+ (at 0 -0.5)+ (size 0.81 0.81)+ (layers "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "" smd roundrect+ (at 0 0.5)+ (size 0.81 0.81)+ (layers "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "1" smd roundrect+ (at -0.25 -1.6875)+ (size 0.25 0.825)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "2" smd roundrect+ (at -1.1875 -1.25)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "3" smd roundrect+ (at -1.1875 -0.75)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "4" smd roundrect+ (at -1.1875 -0.25)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "5" smd roundrect+ (at -1.1875 0.25)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "6" smd roundrect+ (at -1.1875 0.75)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "7" smd roundrect+ (at -1.1875 1.25)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "8" smd roundrect+ (at -0.25 1.6875)+ (size 0.25 0.825)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "9" smd roundrect+ (at 0.25 1.6875)+ (size 0.25 0.825)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "10" smd roundrect+ (at 1.1875 1.25)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "11" smd roundrect+ (at 1.1875 0.75)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "12" smd roundrect+ (at 1.1875 0.25)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "13" smd roundrect+ (at 1.1875 -0.25)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "14" smd roundrect+ (at 1.1875 -0.75)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "15" smd roundrect+ (at 1.1875 -1.25)+ (size 0.825 0.25)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "16" smd roundrect+ (at 0.25 -1.6875)+ (size 0.25 0.825)+ (layers "F.Cu" "F.Mask" "F.Paste")+ (roundrect_rratio 0.25)+ )+ (pad "17" smd rect+ (at 0 0)+ (size 1 2)+ (property pad_prop_heatsink)+ (layers "F.Cu" "F.Mask")+ (zone_connect 2)+ )+ (embedded_fonts no)+ (model "${KICAD10_3DMODEL_DIR}/Package_DFN_QFN.3dshapes/DHVQFN-16-1EP_2.5x3.5mm_P0.5mm_EP1x2mm.step"+ (offset+ (xyz 0 0 0)+ )+ (scale+ (xyz 1 1 1)+ )+ (rotate+ (xyz 0 0 0)+ )+ )+)
examples/74hc595bq-8x8-wings/layout.jsonadded+9@@ -0,0 +1,9 @@+{+ "title": "74HC595BQ molecule: 8 x 8 with 2 mm top and bottom wings",+ "plan": "plan.json",+ "machinePinNets": {"MP1": "GND", "MP2": "VCC", "MP3": "VCC", "MP4": "GND"},+ "parts": [+ {"ref": "U1", "footprint": "74hc595bq.kicad_mod", "x": 0, "y": -0.25, "rotation": 0, "label": "74HC595BQ"},+ {"ref": "C1", "footprint": "0402b104j160ct.kicad_mod", "x": 1.4, "y": 2.75, "rotation": 0}+ ]+}
examples/74hc595bq-8x8-wings/plan.jsonadded+1@@ -0,0 +1 @@+{"board": {"width": 10.4, "height": 14, "nominalWidth": 10, "nominalHeight": 10, "center": {"x": 0, "y": 0}, "cornerRadius": 0, "wings": {"left": 0.2, "right": 0.2, "top": 2, "bottom": 2}, "outline": [{"x": 5.2, "y": -7}, {"x": 5.2, "y": 7}, {"x": -5.2, "y": 7}, {"x": -5.2, "y": -7}]}, "machinePins": [{"name": "MP1", "x": -4, "y": -4, "type": "MachinePinMediumShort", "holeID": 1.2, "holeOD": 1.6, "boundingBox": 2}, {"name": "MP2", "x": -4, "y": 4, "type": "MachinePinMediumShort", "holeID": 1.2, "holeOD": 1.6, "boundingBox": 2}, {"name": "MP3", "x": 4, "y": 4, "type": "MachinePinMediumShort", "holeID": 1.2, "holeOD": 1.6, "boundingBox": 2}, {"name": "MP4", "x": 4, "y": -4, "type": "MachinePinMediumShort", "holeID": 1.2, "holeOD": 1.6, "boundingBox": 2}], "contacts": [{"designator": "MC1", "name": "Q6", "net": "Q6", "margin": "leftMargin", "side": "left", "row": 0, "index": 0, "x": -4, "y": -2, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": -4, "y": -2, "width": 2, "height": 2}}, {"designator": "MC2", "name": "Q5", "net": "Q5", "margin": "leftMargin", "side": "left", "row": 0, "index": 1, "x": -4, "y": 0, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": -4, "y": 0, "width": 2, "height": 2}}, {"designator": "MC3", "name": "Q4", "net": "Q4", "margin": "leftMargin", "side": "left", "row": 0, "index": 2, "x": -4, "y": 2, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": -4, "y": 2, "width": 2, "height": 2}}, {"designator": "MC4", "name": "Q3", "net": "Q3", "margin": "topWingMargin", "side": "top", "row": 0, "index": 0, "x": -4, "y": 6, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": -4, "y": 6, "width": 2, "height": 2}}, {"designator": "MC5", "name": "Q2", "net": "Q2", "margin": "topWingMargin", "side": "top", "row": 0, "index": 1, "x": -2, "y": 6, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": -2, "y": 6, "width": 2, "height": 2}}, {"designator": "MC6", "name": "Q1", "net": "Q1", "margin": "topWingMargin", "side": "top", "row": 0, "index": 2, "x": 0, "y": 6, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": 0, "y": 6, "width": 2, "height": 2}}, {"designator": "MC7", "name": "VCC", "net": "VCC", "margin": "topWingMargin", "side": "top", "row": 0, "index": 3, "x": 2, "y": 6, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": 2, "y": 6, "width": 2, "height": 2}}, {"designator": "MC8", "name": "Q0", "net": "Q0", "margin": "topWingMargin", "side": "top", "row": 0, "index": 4, "x": 4, "y": 6, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": 4, "y": 6, "width": 2, "height": 2}}, {"designator": "MC9", "name": "DS", "net": "DS", "margin": "rightMargin", "side": "right", "row": 0, "index": 0, "x": 4, "y": 2, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": 4, "y": 2, "width": 2, "height": 2}}, {"designator": "MC10", "name": "OE", "net": "OE", "margin": "rightMargin", "side": "right", "row": 0, "index": 1, "x": 4, "y": 0, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": 4, "y": 0, "width": 2, "height": 2}}, {"designator": "MC11", "name": "STCP", "net": "STCP", "margin": "rightMargin", "side": "right", "row": 0, "index": 2, "x": 4, "y": -2, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": 4, "y": -2, "width": 2, "height": 2}}, {"designator": "MC12", "name": "SHCP", "net": "SHCP", "margin": "bottomWingMargin", "side": "bottom", "row": 0, "index": 0, "x": 4, "y": -6, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": 4, "y": -6, "width": 2, "height": 2}}, {"designator": "MC13", "name": "MR", "net": "MR", "margin": "bottomWingMargin", "side": "bottom", "row": 0, "index": 1, "x": 2, "y": -6, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": 2, "y": -6, "width": 2, "height": 2}}, {"designator": "MC14", "name": "Q7S", "net": "Q7S", "margin": "bottomWingMargin", "side": "bottom", "row": 0, "index": 2, "x": 0, "y": -6, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": 0, "y": -6, "width": 2, "height": 2}}, {"designator": "MC15", "name": "GND", "net": "GND", "margin": "bottomWingMargin", "side": "bottom", "row": 0, "index": 3, "x": -2, "y": -6, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": -2, "y": -6, "width": 2, "height": 2}}, {"designator": "MC16", "name": "Q7", "net": "Q7", "margin": "bottomWingMargin", "side": "bottom", "row": 0, "index": 4, "x": -4, "y": -6, "type": "MachineContactMedium", "holeID": 0.78, "holeOD": 1.3, "boundingBox": 2, "gridCell": {"x": -4, "y": -6, "width": 2, "height": 2}}], "channels": [{"between": ["MC1", "MC2"], "axis": "y", "x": -4, "y": -1, "width": 1.3, "height": 0.7, "gapMm": 0.7, "traces": 1}, {"between": ["MC1", "MP1"], "axis": "y", "x": -4, "y": -2.925, "width": 1.3, "height": 0.55, "gapMm": 0.55, "traces": 1}, {"between": ["MC2", "MC3"], "axis": "y", "x": -4, "y": 1, "width": 1.3, "height": 0.7, "gapMm": 0.7, "traces": 1}, {"between": ["MC3", "MP2"], "axis": "y", "x": -4, "y": 2.925, "width": 1.3, "height": 0.55, "gapMm": 0.55, "traces": 1}, {"between": ["MC4", "MC5"], "axis": "x", "x": -3, "y": 6, "width": 0.7, "height": 1.3, "gapMm": 0.7, "traces": 1}, {"between": ["MC4", "MP2"], "axis": "y", "x": -4, "y": 5.075, "width": 1.3, "height": 0.55, "gapMm": 0.55, "traces": 1}, {"between": ["MC5", "MC6"], "axis": "x", "x": -1, "y": 6, "width": 0.7, "height": 1.3, "gapMm": 0.7, "traces": 1}, {"between": ["MC6", "MC7"], "axis": "x", "x": 1, "y": 6, "width": 0.7, "height": 1.3, "gapMm": 0.7, "traces": 1}, {"between": ["MC7", "MC8"], "axis": "x", "x": 3, "y": 6, "width": 0.7, "height": 1.3, "gapMm": 0.7, "traces": 1}, {"between": ["MC8", "MP3"], "axis": "y", "x": 4, "y": 5.075, "width": 1.3, "height": 0.55, "gapMm": 0.55, "traces": 1}, {"between": ["MC9", "MC10"], "axis": "y", "x": 4, "y": 1, "width": 1.3, "height": 0.7, "gapMm": 0.7, "traces": 1}, {"between": ["MC9", "MP3"], "axis": "y", "x": 4, "y": 2.925, "width": 1.3, "height": 0.55, "gapMm": 0.55, "traces": 1}, {"between": ["MC10", "MC11"], "axis": "y", "x": 4, "y": -1, "width": 1.3, "height": 0.7, "gapMm": 0.7, "traces": 1}, {"between": ["MC11", "MP4"], "axis": "y", "x": 4, "y": -2.925, "width": 1.3, "height": 0.55, "gapMm": 0.55, "traces": 1}, {"between": ["MC12", "MC13"], "axis": "x", "x": 3, "y": -6, "width": 0.7, "height": 1.3, "gapMm": 0.7, "traces": 1}, {"between": ["MC12", "MP4"], "axis": "y", "x": 4, "y": -5.075, "width": 1.3, "height": 0.55, "gapMm": 0.55, "traces": 1}, {"between": ["MC13", "MC14"], "axis": "x", "x": 1, "y": -6, "width": 0.7, "height": 1.3, "gapMm": 0.7, "traces": 1}, {"between": ["MC14", "MC15"], "axis": "x", "x": -1, "y": -6, "width": 0.7, "height": 1.3, "gapMm": 0.7, "traces": 1}, {"between": ["MC15", "MC16"], "axis": "x", "x": -3, "y": -6, "width": 0.7, "height": 1.3, "gapMm": 0.7, "traces": 1}, {"between": ["MC16", "MP1"], "axis": "y", "x": -4, "y": -5.075, "width": 1.3, "height": 0.55, "gapMm": 0.55, "traces": 1}], "moleculePlaceholders": [], "molecules": [], "rules": {"traceMm": 0.2, "clearanceMm": 0.15}}
package.json+1−1@@ -1,6 +1,6 @@ { "slug": "adom-2dboard",- "version": "0.5.0",+ "version": "0.5.1", "type": "app", "description": "Interactive 2D board view: your EDA's own PCB render plus live net/trace highlighting and per-pad stock, price and wiki lookup", "dependencies": {
page.json+2−2@@ -4,7 +4,7 @@ "type": "app", "title": "Adom 2D Board", "brief": "Interactive 2D board view: your EDA's own PCB render plus live net/trace highlighting and per-pad stock, price and wiki lookup",- "version": "0.5.0",+ "version": "0.5.1", "author": { "name": "barrett-land", "email": "[email protected]"@@ -100,4 +100,4 @@ "uninstall": "./uninstall.sh" }, "needs_sudo": false-}+}
scripts/acceptance/hc595_pours.py+1−1@@ -1,4 +1,4 @@-"""Acceptance 2: logic-74hc595bq at claude-pcb-f411 tag hc595-domino-v2.3 shows both bottom pours with a 0.30 mm+"""Acceptance 2: logic-74hc595bq (8 x 8 with 2 mm top and bottom wings, at its claude-pcb-f411 v2.3 tag) shows both bottom pours with a 0.30 mm gap and a 0.40 mm edge pullback, and the 45-degree corner labels. Usage: python3 hc595_pours.py <adom-2dboard binary> <claude-pcb-f411 repo> [out.png]""" import json, os, subprocess, sys, tempfile
scripts/acceptance/mock_positions.py+2−2@@ -36,14 +36,14 @@ def got_of(scene): return g ok = True-# 74HC595BQ domino (m595v/mock.py)+# 74HC595BQ, 8 x 8 with 2 mm top and bottom wings (m595v/mock.py) plan = json.load(open(MOCK / 'm595v/plan.json')) roles = {'MP1': 'GND', 'MP2': 'VCC', 'MP3': 'VCC', 'MP4': 'GND'} want = {('MP', m['name']): (m['x'], m['y'], roles[m['name']]) for m in plan['machinePins']} want.update({('MC', c['designator']): (c['x'], c['y'], c['net']) for c in plan['contacts']}) for ref, slug, pos in (('U1', '74hc595bq', (0, -0.25)), ('C1', '0402b104j160ct', (1.4, 2.75))): want.update({('pad', ref, k): (c[0], c[1], None) for k, (c, g) in M.pad_geoms(slug, pos, 0).items()})-ok &= compare('74HC595BQ domino (m595v)', want, got_of(viewer(EX / '74hc595bq-domino/layout.json')[0]))+ok &= compare('74HC595BQ 8 x 8 + wings (m595v)', want, got_of(viewer(EX / '74hc595bq-8x8-wings/layout.json')[0])) # CD74HC4067 A / B (mock4067.py) U1PINS = {1:'COM',2:'I7',3:'I6',4:'I5',5:'I4',6:'I3',7:'I2',8:'I1',9:'I0',10:'S0',11:'S1',12:'GND',13:'S3',14:'S2',15:'E',16:'I15',17:'I14',18:'I13',19:'I12',20:'I11',21:'I10',22:'I9',23:'I8',24:'VCC'}
src/plan_view.rs+1−1@@ -1188,7 +1188,7 @@ mod tests { assert!(svg.contains(">SDA</text>")); } - /// A 10.4 x 14 board with two bottom pours 0.3 mm apart and 0.4 mm in from the edge (the 74HC595 domino's),+ /// A 10.4 x 14 board with two bottom pours 0.3 mm apart and 0.4 mm in from the edge (the 74HC595BQ molecule's), /// a GND machine pin, a GND contact, a corner label at 45 degrees and one bottom silk line. fn poured_board() -> Vec<Value> { let rect = |x0: f64, y0: f64, x1: f64, y1: f64| json!([{"x": x0, "y": y0}, {"x": x1, "y": y0}, {"x": x1, "y": y1}, {"x": x0, "y": y1}]);