@tscircuit/core 0.0.326 → 0.0.328

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 +9 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3890,6 +3890,7 @@ var Group = class extends NormalComponent {
3890
3890
  return traces.length > 0;
3891
3891
  }
3892
3892
  async _runEffectMakeHttpAutoroutingRequest() {
3893
+ const { db } = this.root;
3893
3894
  const debug4 = Debug5("tscircuit:core:_runEffectMakeHttpAutoroutingRequest");
3894
3895
  const props = this._parsedProps;
3895
3896
  const autorouterConfig = this._getAutorouterConfig();
@@ -3980,6 +3981,10 @@ var Group = class extends NormalComponent {
3980
3981
  break;
3981
3982
  }
3982
3983
  if (job.has_error) {
3984
+ db.pcb_autorouting_error.insert({
3985
+ pcb_error_id: autorouting_job.autorouting_job_id,
3986
+ message: job.error?.message ?? JSON.stringify(job.error)
3987
+ });
3983
3988
  throw new Error(`Autorouting job failed: ${JSON.stringify(job.error)}`);
3984
3989
  }
3985
3990
  await new Promise((resolve) => setTimeout(resolve, 100));
@@ -6187,7 +6192,8 @@ var SilkscreenCircle = class extends PrimitiveComponent {
6187
6192
  },
6188
6193
  radius: props.radius,
6189
6194
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
6190
- pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
6195
+ pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0,
6196
+ stroke_width: props.strokeWidth ?? 0.1
6191
6197
  });
6192
6198
  this.pcb_silkscreen_circle_id = pcb_silkscreen_circle.pcb_silkscreen_circle_id;
6193
6199
  }
@@ -6224,7 +6230,8 @@ var SilkscreenRect = class extends PrimitiveComponent {
6224
6230
  width: props.width,
6225
6231
  height: props.height,
6226
6232
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
6227
- pcb_group_id: this?.getGroup()?.pcb_group_id ?? void 0
6233
+ pcb_group_id: this?.getGroup()?.pcb_group_id ?? void 0,
6234
+ stroke_width: props.strokeWidth ?? 0.1
6228
6235
  });
6229
6236
  this.pcb_silkscreen_rect_id = pcb_silkscreen_rect.pcb_silkscreen_rect_id;
6230
6237
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.326",
4
+ "version": "0.0.328",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -58,7 +58,7 @@
58
58
  "@tscircuit/props": "^0.0.152",
59
59
  "@tscircuit/schematic-autolayout": "^0.0.6",
60
60
  "@tscircuit/soup-util": "^0.0.41",
61
- "circuit-json": "^0.0.139",
61
+ "circuit-json": "^0.0.142",
62
62
  "circuit-json-to-connectivity-map": "^0.0.17",
63
63
  "format-si-unit": "^0.0.3",
64
64
  "nanoid": "^5.0.7",