@tscircuit/core 0.0.1263 → 0.0.1265

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.
Files changed (2) hide show
  1. package/dist/index.js +27 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -20380,9 +20380,20 @@ var Group5 = class extends NormalComponent3 {
20380
20380
  const { traces: routedTraces } = this._asyncAutoroutingResult.output_simple_route_json;
20381
20381
  if (!routedTraces) return;
20382
20382
  for (const routedTrace of routedTraces) {
20383
+ const cjRoute = routedTrace.route.map((point6) => {
20384
+ if (point6.route_type !== "through_obstacle") return point6;
20385
+ return {
20386
+ route_type: "through_pad",
20387
+ start: point6.start,
20388
+ end: point6.end,
20389
+ start_layer: point6.from_layer,
20390
+ end_layer: point6.to_layer,
20391
+ width: point6.width
20392
+ };
20393
+ });
20383
20394
  const pcb_trace = db.pcb_trace.insert({
20384
20395
  subcircuit_id: this.subcircuit_id,
20385
- route: routedTrace.route
20396
+ route: cjRoute
20386
20397
  // source_trace_id: circuitTrace.source_trace_id!,
20387
20398
  });
20388
20399
  }
@@ -20430,9 +20441,20 @@ var Group5 = class extends NormalComponent3 {
20430
20441
  delete pcb_trace.source_trace_id;
20431
20442
  }
20432
20443
  pcb_trace.subcircuit_id ??= (sourceTraceId ? db.source_trace.get(sourceTraceId)?.subcircuit_id ?? db.source_net.get(sourceTraceId)?.subcircuit_id : void 0) ?? this.subcircuit_id;
20433
- let segments = splitPcbTracesOnJumperSegments(pcb_trace.route);
20444
+ const cjRoute = pcb_trace.route.map((point6) => {
20445
+ if (point6.route_type !== "through_obstacle") return point6;
20446
+ return {
20447
+ route_type: "through_pad",
20448
+ start: point6.start,
20449
+ end: point6.end,
20450
+ start_layer: point6.from_layer,
20451
+ end_layer: point6.to_layer,
20452
+ width: point6.width
20453
+ };
20454
+ });
20455
+ let segments = splitPcbTracesOnJumperSegments(cjRoute);
20434
20456
  if (segments === null) {
20435
- segments = [pcb_trace.route];
20457
+ segments = [cjRoute];
20436
20458
  }
20437
20459
  const processedSegments = addPortIdsToTracesAtJumperPads(segments, db);
20438
20460
  for (const segment2 of processedSegments) {
@@ -21528,7 +21550,7 @@ import { identity as identity5 } from "transformation-matrix";
21528
21550
  var package_default = {
21529
21551
  name: "@tscircuit/core",
21530
21552
  type: "module",
21531
- version: "0.0.1262",
21553
+ version: "0.0.1264",
21532
21554
  types: "dist/index.d.ts",
21533
21555
  main: "dist/index.js",
21534
21556
  module: "dist/index.js",
@@ -21561,7 +21583,7 @@ var package_default = {
21561
21583
  "@resvg/resvg-js": "^2.6.2",
21562
21584
  "@tscircuit/alphabet": "0.0.25",
21563
21585
  "@tscircuit/capacity-autorouter": "^0.0.529",
21564
- "@tscircuit/checks": "0.0.130",
21586
+ "@tscircuit/checks": "0.0.131",
21565
21587
  "@tscircuit/circuit-json-util": "^0.0.94",
21566
21588
  "@tscircuit/common": "^0.0.20",
21567
21589
  "@tscircuit/copper-pour-solver": "^0.0.29",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1263",
4
+ "version": "0.0.1265",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -34,7 +34,7 @@
34
34
  "@resvg/resvg-js": "^2.6.2",
35
35
  "@tscircuit/alphabet": "0.0.25",
36
36
  "@tscircuit/capacity-autorouter": "^0.0.529",
37
- "@tscircuit/checks": "0.0.130",
37
+ "@tscircuit/checks": "0.0.131",
38
38
  "@tscircuit/circuit-json-util": "^0.0.94",
39
39
  "@tscircuit/common": "^0.0.20",
40
40
  "@tscircuit/copper-pour-solver": "^0.0.29",