Files
diodeinc__pcb/crates/pcb-layout/tests/snapshots/layout_generation__dnp.layout.json.snap
Lenny Khazan 834fc645cc [DIO-293] Add dnp/exclude_from_bom support (#58)
* [DIO-293] Add dnp/exclude_from_bom support

* ignore underscored fields
2025-08-04 16:28:07 -04:00

1011 lines
22 KiB
Plaintext

---
source: crates/pcb-layout/tests/layout_generation.rs
expression: content
---
{
"footprints": [
{
"dnp": false,
"exclude_from_bom": false,
"footprint": "R_0603_1608Metric:R_0603_1608Metric",
"graphical_items": [
{
"angle": null,
"end": {
"x": 151485000,
"y": 105780000
},
"layer": "F.Courtyard",
"position": {
"x": 148525000,
"y": 105780000
},
"shape": 0,
"start": {
"x": 148525000,
"y": 105780000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 148525000,
"y": 105780000
},
"layer": "F.Courtyard",
"position": {
"x": 148525000,
"y": 107240000
},
"shape": 0,
"start": {
"x": 148525000,
"y": 107240000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 150805000,
"y": 106097500
},
"layer": "F.Fab",
"position": {
"x": 149205000,
"y": 106097500
},
"shape": 0,
"start": {
"x": 149205000,
"y": 106097500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 149205000,
"y": 106097500
},
"layer": "F.Fab",
"position": {
"x": 149205000,
"y": 106922500
},
"shape": 0,
"start": {
"x": 149205000,
"y": 106922500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 150242258,
"y": 105987500
},
"layer": "F.Silkscreen",
"position": {
"x": 149767742,
"y": 105987500
},
"shape": 0,
"start": {
"x": 149767742,
"y": 105987500
},
"text": null,
"type": "PCB_SHAPE",
"width": 120000
},
{
"angle": null,
"end": {
"x": 150242258,
"y": 107032500
},
"layer": "F.Silkscreen",
"position": {
"x": 149767742,
"y": 107032500
},
"shape": 0,
"start": {
"x": 149767742,
"y": 107032500
},
"text": null,
"type": "PCB_SHAPE",
"width": 120000
},
{
"angle": null,
"end": null,
"layer": "F.Fab",
"position": {
"x": 150005000,
"y": 106510000
},
"shape": null,
"start": null,
"text": "${REFERENCE}",
"type": "PCB_TEXT",
"width": null
},
{
"angle": null,
"end": {
"x": 150805000,
"y": 106922500
},
"layer": "F.Fab",
"position": {
"x": 150805000,
"y": 106097500
},
"shape": 0,
"start": {
"x": 150805000,
"y": 106097500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 149205000,
"y": 106922500
},
"layer": "F.Fab",
"position": {
"x": 150805000,
"y": 106922500
},
"shape": 0,
"start": {
"x": 150805000,
"y": 106922500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 151485000,
"y": 107240000
},
"layer": "F.Courtyard",
"position": {
"x": 151485000,
"y": 105780000
},
"shape": 0,
"start": {
"x": 151485000,
"y": 105780000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 148525000,
"y": 107240000
},
"layer": "F.Courtyard",
"position": {
"x": 151485000,
"y": 107240000
},
"shape": 0,
"start": {
"x": 151485000,
"y": 107240000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
}
],
"group": null,
"layer": "F.Cu",
"locked": false,
"orientation": 0.0,
"pads": [
{
"layer": "F.Cu",
"name": "1",
"position": {
"x": 149180000,
"y": 106510000
}
},
{
"layer": "F.Cu",
"name": "2",
"position": {
"x": 150830000,
"y": 106510000
}
}
],
"position": {
"x": 150005000,
"y": 106510000
},
"reference": "R4",
"uuid": "5a12820b-e911-547c-a781-63595d8f6a01",
"value": "1k"
},
{
"dnp": true,
"exclude_from_bom": false,
"footprint": "R_0603_1608Metric:R_0603_1608Metric",
"graphical_items": [
{
"angle": null,
"end": {
"x": 148475000,
"y": 105780000
},
"layer": "F.Courtyard",
"position": {
"x": 145515000,
"y": 105780000
},
"shape": 0,
"start": {
"x": 145515000,
"y": 105780000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 145515000,
"y": 105780000
},
"layer": "F.Courtyard",
"position": {
"x": 145515000,
"y": 107240000
},
"shape": 0,
"start": {
"x": 145515000,
"y": 107240000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 147795000,
"y": 106097500
},
"layer": "F.Fab",
"position": {
"x": 146195000,
"y": 106097500
},
"shape": 0,
"start": {
"x": 146195000,
"y": 106097500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 146195000,
"y": 106097500
},
"layer": "F.Fab",
"position": {
"x": 146195000,
"y": 106922500
},
"shape": 0,
"start": {
"x": 146195000,
"y": 106922500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 147232258,
"y": 105987500
},
"layer": "F.Silkscreen",
"position": {
"x": 146757742,
"y": 105987500
},
"shape": 0,
"start": {
"x": 146757742,
"y": 105987500
},
"text": null,
"type": "PCB_SHAPE",
"width": 120000
},
{
"angle": null,
"end": {
"x": 147232258,
"y": 107032500
},
"layer": "F.Silkscreen",
"position": {
"x": 146757742,
"y": 107032500
},
"shape": 0,
"start": {
"x": 146757742,
"y": 107032500
},
"text": null,
"type": "PCB_SHAPE",
"width": 120000
},
{
"angle": null,
"end": null,
"layer": "F.Fab",
"position": {
"x": 146995000,
"y": 106510000
},
"shape": null,
"start": null,
"text": "${REFERENCE}",
"type": "PCB_TEXT",
"width": null
},
{
"angle": null,
"end": {
"x": 147795000,
"y": 106922500
},
"layer": "F.Fab",
"position": {
"x": 147795000,
"y": 106097500
},
"shape": 0,
"start": {
"x": 147795000,
"y": 106097500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 146195000,
"y": 106922500
},
"layer": "F.Fab",
"position": {
"x": 147795000,
"y": 106922500
},
"shape": 0,
"start": {
"x": 147795000,
"y": 106922500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 148475000,
"y": 107240000
},
"layer": "F.Courtyard",
"position": {
"x": 148475000,
"y": 105780000
},
"shape": 0,
"start": {
"x": 148475000,
"y": 105780000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 145515000,
"y": 107240000
},
"layer": "F.Courtyard",
"position": {
"x": 148475000,
"y": 107240000
},
"shape": 0,
"start": {
"x": 148475000,
"y": 107240000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
}
],
"group": null,
"layer": "F.Cu",
"locked": false,
"orientation": 0.0,
"pads": [
{
"layer": "F.Cu",
"name": "1",
"position": {
"x": 146170000,
"y": 106510000
}
},
{
"layer": "F.Cu",
"name": "2",
"position": {
"x": 147820000,
"y": 106510000
}
}
],
"position": {
"x": 146995000,
"y": 106510000
},
"reference": "R1",
"uuid": "5df29bf2-5e5c-5d48-b4cf-d728443c1fa0",
"value": "1k"
},
{
"dnp": true,
"exclude_from_bom": false,
"footprint": "R_0603_1608Metric:R_0603_1608Metric",
"graphical_items": [
{
"angle": null,
"end": {
"x": 148475000,
"y": 102760000
},
"layer": "F.Courtyard",
"position": {
"x": 145515000,
"y": 102760000
},
"shape": 0,
"start": {
"x": 145515000,
"y": 102760000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 145515000,
"y": 102760000
},
"layer": "F.Courtyard",
"position": {
"x": 145515000,
"y": 104220000
},
"shape": 0,
"start": {
"x": 145515000,
"y": 104220000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 147795000,
"y": 103077500
},
"layer": "F.Fab",
"position": {
"x": 146195000,
"y": 103077500
},
"shape": 0,
"start": {
"x": 146195000,
"y": 103077500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 146195000,
"y": 103077500
},
"layer": "F.Fab",
"position": {
"x": 146195000,
"y": 103902500
},
"shape": 0,
"start": {
"x": 146195000,
"y": 103902500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 147232258,
"y": 102967500
},
"layer": "F.Silkscreen",
"position": {
"x": 146757742,
"y": 102967500
},
"shape": 0,
"start": {
"x": 146757742,
"y": 102967500
},
"text": null,
"type": "PCB_SHAPE",
"width": 120000
},
{
"angle": null,
"end": {
"x": 147232258,
"y": 104012500
},
"layer": "F.Silkscreen",
"position": {
"x": 146757742,
"y": 104012500
},
"shape": 0,
"start": {
"x": 146757742,
"y": 104012500
},
"text": null,
"type": "PCB_SHAPE",
"width": 120000
},
{
"angle": null,
"end": null,
"layer": "F.Fab",
"position": {
"x": 146995000,
"y": 103490000
},
"shape": null,
"start": null,
"text": "${REFERENCE}",
"type": "PCB_TEXT",
"width": null
},
{
"angle": null,
"end": {
"x": 147795000,
"y": 103902500
},
"layer": "F.Fab",
"position": {
"x": 147795000,
"y": 103077500
},
"shape": 0,
"start": {
"x": 147795000,
"y": 103077500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 146195000,
"y": 103902500
},
"layer": "F.Fab",
"position": {
"x": 147795000,
"y": 103902500
},
"shape": 0,
"start": {
"x": 147795000,
"y": 103902500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 148475000,
"y": 104220000
},
"layer": "F.Courtyard",
"position": {
"x": 148475000,
"y": 102760000
},
"shape": 0,
"start": {
"x": 148475000,
"y": 102760000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 145515000,
"y": 104220000
},
"layer": "F.Courtyard",
"position": {
"x": 148475000,
"y": 104220000
},
"shape": 0,
"start": {
"x": 148475000,
"y": 104220000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
}
],
"group": null,
"layer": "F.Cu",
"locked": false,
"orientation": 0.0,
"pads": [
{
"layer": "F.Cu",
"name": "1",
"position": {
"x": 146170000,
"y": 103490000
}
},
{
"layer": "F.Cu",
"name": "2",
"position": {
"x": 147820000,
"y": 103490000
}
}
],
"position": {
"x": 146995000,
"y": 103490000
},
"reference": "R3",
"uuid": "c0624f56-bdf4-5e3f-81b2-e73a2d27a95a",
"value": "1k"
},
{
"dnp": false,
"exclude_from_bom": false,
"footprint": "R_0603_1608Metric:R_0603_1608Metric",
"graphical_items": [
{
"angle": null,
"end": {
"x": 148475000,
"y": 104270000
},
"layer": "F.Courtyard",
"position": {
"x": 145515000,
"y": 104270000
},
"shape": 0,
"start": {
"x": 145515000,
"y": 104270000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 145515000,
"y": 104270000
},
"layer": "F.Courtyard",
"position": {
"x": 145515000,
"y": 105730000
},
"shape": 0,
"start": {
"x": 145515000,
"y": 105730000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 147795000,
"y": 104587500
},
"layer": "F.Fab",
"position": {
"x": 146195000,
"y": 104587500
},
"shape": 0,
"start": {
"x": 146195000,
"y": 104587500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 146195000,
"y": 104587500
},
"layer": "F.Fab",
"position": {
"x": 146195000,
"y": 105412500
},
"shape": 0,
"start": {
"x": 146195000,
"y": 105412500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 147232258,
"y": 104477500
},
"layer": "F.Silkscreen",
"position": {
"x": 146757742,
"y": 104477500
},
"shape": 0,
"start": {
"x": 146757742,
"y": 104477500
},
"text": null,
"type": "PCB_SHAPE",
"width": 120000
},
{
"angle": null,
"end": {
"x": 147232258,
"y": 105522500
},
"layer": "F.Silkscreen",
"position": {
"x": 146757742,
"y": 105522500
},
"shape": 0,
"start": {
"x": 146757742,
"y": 105522500
},
"text": null,
"type": "PCB_SHAPE",
"width": 120000
},
{
"angle": null,
"end": null,
"layer": "F.Fab",
"position": {
"x": 146995000,
"y": 105000000
},
"shape": null,
"start": null,
"text": "${REFERENCE}",
"type": "PCB_TEXT",
"width": null
},
{
"angle": null,
"end": {
"x": 147795000,
"y": 105412500
},
"layer": "F.Fab",
"position": {
"x": 147795000,
"y": 104587500
},
"shape": 0,
"start": {
"x": 147795000,
"y": 104587500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 146195000,
"y": 105412500
},
"layer": "F.Fab",
"position": {
"x": 147795000,
"y": 105412500
},
"shape": 0,
"start": {
"x": 147795000,
"y": 105412500
},
"text": null,
"type": "PCB_SHAPE",
"width": 100000
},
{
"angle": null,
"end": {
"x": 148475000,
"y": 105730000
},
"layer": "F.Courtyard",
"position": {
"x": 148475000,
"y": 104270000
},
"shape": 0,
"start": {
"x": 148475000,
"y": 104270000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
},
{
"angle": null,
"end": {
"x": 145515000,
"y": 105730000
},
"layer": "F.Courtyard",
"position": {
"x": 148475000,
"y": 105730000
},
"shape": 0,
"start": {
"x": 148475000,
"y": 105730000
},
"text": null,
"type": "PCB_SHAPE",
"width": 50000
}
],
"group": null,
"layer": "F.Cu",
"locked": false,
"orientation": 0.0,
"pads": [
{
"layer": "F.Cu",
"name": "1",
"position": {
"x": 146170000,
"y": 105000000
}
},
{
"layer": "F.Cu",
"name": "2",
"position": {
"x": 147820000,
"y": 105000000
}
}
],
"position": {
"x": 146995000,
"y": 105000000
},
"reference": "R2",
"uuid": "e625daf7-e501-5adf-b562-3c226ea4bcc2",
"value": "1k"
}
],
"groups": [],
"zones": []
}