@tscircuit/schematic-trace-solver 0.0.202 → 0.0.204
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 +54 -7
- package/lib/solvers/TraceCleanupSolver/getInteriorShortcutPaths.ts +41 -0
- package/lib/solvers/TraceCleanupSolver/rerouteGeneratedNetLabelConnectorCrossings.ts +7 -0
- package/lib/solvers/TraceCleanupSolver/sameNetRailAlignment/getFixedLabelCoordinate.ts +17 -8
- package/lib/solvers/TraceElbowTransitionSimplificationSolver/TraceElbowTransitionSimplificationSolver.ts +25 -3
- package/package.json +1 -1
- package/site/SchematicTracePipelineSolver/repro-smart-lock-ble-module.page.tsx +7 -0
- package/tests/bug-reports/bug-report-20260706T213649Z/__snapshots__/bug-report-20260706T213649Z.snap.svg +78 -60
- package/tests/bug-reports/bug-report-20260707T134722Z/__snapshots__/bug-report-20260707T134722Z.snap.svg +62 -62
- package/tests/bug-reports/bug-report-20260708T055430Z/__snapshots__/bug-report-20260708T055430Z.snap.svg +2 -2
- package/tests/bug-reports/bug-report-20260721T221026Z/__snapshots__/bug-report-20260721T221026Z.snap.svg +2 -2
- package/tests/bug-reports/bug-report-20260728T144234Z/__snapshots__/bug-report-20260728T144234Z.snap.svg +2 -2
- package/tests/bug-reports/bug-report-20260901T055358Z/__snapshots__/bug-report-20260901T055358Z.snap.svg +10 -10
- package/tests/bug-reports/bug-report-20260905T041712Z/__snapshots__/bug-report-20260905T041712Z.snap.svg +10 -10
- package/tests/bug-reports/bug-report-20260907T110144Z/__snapshots__/bug-report-20260907T110144Z.snap.svg +9 -9
- package/tests/bug-reports/bug-report-20260907T145640Z/__snapshots__/bug-report-20260907T145640Z.snap.svg +8 -8
- package/tests/bug-reports/bug-report-20260911T195723Z/__snapshots__/bug-report-20260911T195723Z.snap.svg +19 -19
- package/tests/bug-reports/bug-report-20260916T054012Z/__snapshots__/bug-report-20260916T054012Z.snap.svg +292 -292
- package/tests/examples/__snapshots__/example30.snap.svg +123 -123
- package/tests/repros/__snapshots__/board-1273-trace-overlap-cycle.snap.svg +18 -18
- package/tests/repros/__snapshots__/board-15984-same-net-junction.snap.svg +2 -2
- package/tests/repros/__snapshots__/repro-am3352-06-boot.snap.svg +448 -0
- package/tests/repros/__snapshots__/repro-am3352-sheet3-power-rails.snap.svg +2 -2
- package/tests/repros/__snapshots__/repro-hub-usb-sheet.snap.svg +2 -2
- package/tests/repros/__snapshots__/repro-ina237-current-monitor.snap.svg +2 -2
- package/tests/repros/__snapshots__/repro-pmp11282-isolated-dcdc.snap.svg +2 -2
- package/tests/repros/__snapshots__/repro-robot-controller-imu-tof.snap.svg +7 -7
- package/tests/repros/__snapshots__/repro-smart-lock-ble-module.snap.svg +465 -0
- package/tests/repros/__snapshots__/repro-tida010076-page02.snap.svg +10 -10
- package/tests/repros/assets/repro-am3352-06-boot.input.json +1875 -0
- package/tests/repros/assets/repro-smart-lock-ble-module.input.json +2183 -0
- package/tests/repros/repro-am3352-06-boot.test.ts +43 -0
- package/tests/repros/repro-smart-lock-ble-module.test.ts +69 -0
- package/tests/solvers/TraceCleanupSolver/alignSameNetRails-fixed-backbone.test.ts +135 -0
- package/tests/solvers/TraceCleanupSolver/reroute-generated-net-label-connector-crossings.test.ts +49 -0
- package/tests/solvers/TraceElbowTransitionSimplificationSolver/interior-staircase.test.ts +146 -0
|
@@ -46,7 +46,7 @@ globalConnNetId: connectivity_net29" data-x="11.649" data-y="3.311" x="308.63262
|
|
|
46
46
|
globalConnNetId: connectivity_net29" data-x="23.299" data-y="-11.589" x="415.3019080786776" y="223.29719919556578" width="5.493696963751404" height="3.8455878746260055" fill="#ef444466" stroke="#ef4444" stroke-width="0.10921607142857143"/></g><g><rect data-type="rect" data-label="netId: VIN5
|
|
47
47
|
globalConnNetId: connectivity_net29" data-x="33.64900000000001" data-y="-12.489" x="510.06818070338954" y="231.53774464119292" width="5.49369696375129" height="3.8455878746260055" fill="#ef444466" stroke="#ef4444" stroke-width="0.10921607142857143"/></g><g><rect data-type="rect" data-label="netId: VIN5
|
|
48
48
|
globalConnNetId: connectivity_net29" data-x="-12" data-y="-19.409" x="92.09855953957586" y="294.89838295645916" width="5.493696963751432" height="3.8455878746260055" fill="#ef444466" stroke="#ef4444" stroke-width="0.10921607142857143"/></g><g><rect data-type="rect" data-label="netId: PMID
|
|
49
|
-
globalConnNetId: connectivity_net30" data-x="10.649000000000001" data-y="2.
|
|
49
|
+
globalConnNetId: connectivity_net30" data-x="10.649000000000001" data-y="2.91" x="299.4764637595854" y="90.54201206651294" width="5.493696963751404" height="3.8455878746259913" fill="#ef444466" stroke="#ef4444" stroke-width="0.10921607142857143"/></g><g><rect data-type="rect" data-label="netId: PMID
|
|
50
50
|
globalConnNetId: connectivity_net30" data-x="14.401000000000002" data-y="3.1609999999999996" x="333.8303821062442" y="88.24381550334363" width="5.493696963751404" height="3.845587874625977" fill="#ef444466" stroke="#ef4444" stroke-width="0.10921607142857143"/></g><g><rect data-type="rect" data-label="netId: PMID
|
|
51
51
|
globalConnNetId: connectivity_net30" data-x="11.479" data-y="-6.590000000000001" x="307.0760778927747" y="177.52554732591028" width="5.493696963751461" height="3.8455878746260055" fill="#ef444466" stroke="#ef4444" stroke-width="0.10921607142857143"/></g><g><rect data-type="rect" data-label="netId: PMID
|
|
52
52
|
globalConnNetId: connectivity_net30" data-x="36.35099999999999" data-y="2.611" x="534.8081293634832" y="93.27970438678241" width="5.493696963751404" height="3.845587874625977" fill="#ef444466" stroke="#ef4444" stroke-width="0.10921607142857143"/></g><g><rect data-type="rect" data-label="netId: PMID
|
|
@@ -537,7 +537,7 @@ orientation: y+" data-x="11.649" data-y="3.101" cx="311.37947384771337" cy="90.7
|
|
|
537
537
|
orientation: y+" data-x="23.299" data-y="-11.799000000000001" cx="418.04875656055333" cy="227.1427870701918" r="3" fill="hsl(80, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
538
538
|
orientation: y+" data-x="33.64900000000001" data-y="-12.699000000000002" cx="512.8150291852652" cy="235.3833325158189" r="3" fill="hsl(80, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
539
539
|
orientation: y+" data-x="-12" data-y="-19.62" cx="94.84540802145158" cy="298.7531269926914" r="3" fill="hsl(80, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
540
|
-
orientation: y+" data-x="10.649000000000001" data-y="2.
|
|
540
|
+
orientation: y+" data-x="10.649000000000001" data-y="2.7" cx="302.2233122414611" cy="94.38759994113894" r="3" fill="hsl(80, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
541
541
|
orientation: y+" data-x="14.401000000000002" data-y="2.9509999999999996" cx="336.5772305881199" cy="92.0894033779696" r="3" fill="hsl(80, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
542
542
|
orientation: y+" data-x="11.479" data-y="-6.800000000000001" cx="309.8229263746505" cy="181.3711352005363" r="3" fill="hsl(80, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
543
543
|
orientation: y+" data-x="36.35099999999999" data-y="2.4010000000000002" cx="537.554977845359" cy="97.12529226140839" r="3" fill="hsl(80, 100%, 50%, 0.9)"/></g><g><circle data-type="point" data-label="anchorPoint
|
|
@@ -870,13 +870,13 @@ OLED_IREF" data-x="23.2" data-y="-40" cx="417.1422965615343" cy="485.35570052811
|
|
|
870
870
|
L 288.23552762695,369.577788769337
|
|
871
871
|
Z
|
|
872
872
|
" fill="rgba(255, 255, 255, 0.6)" stroke="rgb(132, 0, 0)" stroke-width="0.25749166639px"/><text class="net-label-text sch-net-label-text" data-circuit-json-type="schematic_net_label" data-schematic-net-label-id="schematic_net_label_44__stack1" x="286.948069295" y="369.11430376983503" fill="rgb(132, 0, 0)" text-anchor="start" dominant-baseline="central" font-family="sans-serif" font-variant-numeric="tabular-nums" font-size="2.31742499751px" transform="rotate(-90 286.948069295 369.11430376983503)">XX</text><path class="net-label sch-net-label" data-circuit-json-type="schematic_net_label" data-schematic-net-label-id="schematic_net_label_45__stack1" d="
|
|
873
|
-
M 578.5445068983555,
|
|
874
|
-
L 577.2570485664055,
|
|
875
|
-
L 577.2570485664055,
|
|
876
|
-
L 579.8319652303055,
|
|
877
|
-
L 579.8319652303055,
|
|
873
|
+
M 578.5445068983555,82.91231657735
|
|
874
|
+
L 577.2570485664055,82.217089078097
|
|
875
|
+
L 577.2570485664055,77.80196530506313
|
|
876
|
+
L 579.8319652303055,77.80196530506313
|
|
877
|
+
L 579.8319652303055,82.217089078097
|
|
878
878
|
Z
|
|
879
|
-
" fill="rgba(255, 255, 255, 0.6)" stroke="rgb(132, 0, 0)" stroke-width="0.25749166639px"/><text class="net-label-text sch-net-label-text" data-circuit-json-type="schematic_net_label" data-schematic-net-label-id="schematic_net_label_45__stack1" x="578.5445068983555" y="
|
|
879
|
+
" fill="rgba(255, 255, 255, 0.6)" stroke="rgb(132, 0, 0)" stroke-width="0.25749166639px"/><text class="net-label-text sch-net-label-text" data-circuit-json-type="schematic_net_label" data-schematic-net-label-id="schematic_net_label_45__stack1" x="578.5445068983555" y="81.753604078595" fill="rgb(132, 0, 0)" text-anchor="start" dominant-baseline="central" font-family="sans-serif" font-variant-numeric="tabular-nums" font-size="2.31742499751px" transform="rotate(-90 578.5445068983555 81.753604078595)">XX</text><path class="net-label sch-net-label" data-circuit-json-type="schematic_net_label" data-schematic-net-label-id="schematic_net_label_46__stack1" d="
|
|
880
880
|
M 626.8499435131195,79.68079616415551
|
|
881
881
|
L 625.5624851811694,78.98556866490252
|
|
882
882
|
L 625.5624851811694,74.57044489186865
|