@tscircuit/core 0.0.879 → 0.0.880

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 +14 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -9636,6 +9636,18 @@ var getSimpleRouteJsonFromCircuitJson = ({
9636
9636
  });
9637
9637
  if (connectedPorts.length < 2) return null;
9638
9638
  const [portA, portB] = connectedPorts;
9639
+ if (portA.x === void 0 || portA.y === void 0) {
9640
+ console.error(
9641
+ `(source_port_id: ${portA.source_port_id}) for trace ${trace.source_trace_id} does not have x/y coordinates. Skipping this trace.`
9642
+ );
9643
+ return null;
9644
+ }
9645
+ if (portB.x === void 0 || portB.y === void 0) {
9646
+ console.error(
9647
+ `(source_port_id: ${portB.source_port_id}) for trace ${trace.source_trace_id} does not have x/y coordinates. Skipping this trace.`
9648
+ );
9649
+ return null;
9650
+ }
9639
9651
  const layerA = portA.layers?.[0] ?? "top";
9640
9652
  const layerB = portB.layers?.[0] ?? "top";
9641
9653
  const matchingHints = traceHints.filter(
@@ -18576,7 +18588,7 @@ import { identity as identity6 } from "transformation-matrix";
18576
18588
  var package_default = {
18577
18589
  name: "@tscircuit/core",
18578
18590
  type: "module",
18579
- version: "0.0.878",
18591
+ version: "0.0.879",
18580
18592
  types: "dist/index.d.ts",
18581
18593
  main: "dist/index.js",
18582
18594
  module: "dist/index.js",
@@ -18640,7 +18652,7 @@ var package_default = {
18640
18652
  "circuit-json-to-gltf": "^0.0.31",
18641
18653
  "circuit-json-to-simple-3d": "^0.0.9",
18642
18654
  "circuit-json-to-spice": "^0.0.25",
18643
- "circuit-to-svg": "^0.0.279",
18655
+ "circuit-to-svg": "^0.0.280",
18644
18656
  concurrently: "^9.1.2",
18645
18657
  "connectivity-map": "^1.0.0",
18646
18658
  debug: "^4.3.6",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.879",
4
+ "version": "0.0.880",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -65,7 +65,7 @@
65
65
  "circuit-json-to-gltf": "^0.0.31",
66
66
  "circuit-json-to-simple-3d": "^0.0.9",
67
67
  "circuit-json-to-spice": "^0.0.25",
68
- "circuit-to-svg": "^0.0.279",
68
+ "circuit-to-svg": "^0.0.280",
69
69
  "concurrently": "^9.1.2",
70
70
  "connectivity-map": "^1.0.0",
71
71
  "debug": "^4.3.6",