@tscircuit/checks 0.0.202 → 0.0.203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2258,7 +2258,7 @@ function checkEachPcbTraceNonOverlapping(circuitJson, {
|
|
|
2258
2258
|
const pcbPorts = cju2(circuitJson).pcb_port.list();
|
|
2259
2259
|
const pcbHoles = cju2(circuitJson).pcb_hole.list();
|
|
2260
2260
|
const pcbVias = cju2(circuitJson).pcb_via.list();
|
|
2261
|
-
const pcbKeepouts = cju2(circuitJson).pcb_keepout.list();
|
|
2261
|
+
const pcbKeepouts = cju2(circuitJson).pcb_keepout.list().filter((keepout) => !keepout.allow_traces);
|
|
2262
2262
|
const pcbComponentConnectionElements = [
|
|
2263
2263
|
...pcbPorts,
|
|
2264
2264
|
...pcbSmtPads,
|
|
@@ -3006,6 +3006,7 @@ function checkPcbCopperOverKeepout(circuitJson) {
|
|
|
3006
3006
|
keepout.excluded_pcb_component_ids ?? []
|
|
3007
3007
|
);
|
|
3008
3008
|
for (const copperElement of copper) {
|
|
3009
|
+
if (keepout.allow_placements && copperElement.type !== "pcb_via") continue;
|
|
3009
3010
|
const copperComponentId = "pcb_component_id" in copperElement ? copperElement.pcb_component_id : void 0;
|
|
3010
3011
|
if (copperComponentId && excludedComponentIds.has(copperComponentId)) {
|
|
3011
3012
|
continue;
|