@tscircuit/core 0.0.838 → 0.0.840

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 (3) hide show
  1. package/dist/index.d.ts +1966 -20
  2. package/dist/index.js +16 -13
  3. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1970,7 +1970,7 @@ var SmtPad = class extends PrimitiveComponent2 {
1970
1970
  shape: "rotated_rect",
1971
1971
  width: props.width,
1972
1972
  height: props.height,
1973
- corner_radius: props.cornerRadius ?? 0,
1973
+ corner_radius: props.cornerRadius ?? void 0,
1974
1974
  x: position.x,
1975
1975
  y: position.y,
1976
1976
  ccw_rotation: finalRotationDegrees,
@@ -1987,7 +1987,7 @@ var SmtPad = class extends PrimitiveComponent2 {
1987
1987
  shape: "rect",
1988
1988
  width: isRotated90Degrees ? props.height : props.width,
1989
1989
  height: isRotated90Degrees ? props.width : props.height,
1990
- corner_radius: props.cornerRadius ?? 0,
1990
+ corner_radius: props.cornerRadius ?? void 0,
1991
1991
  port_hints: props.portHints.map((ph) => ph.toString()),
1992
1992
  is_covered_with_solder_mask: isCoveredWithSolderMask,
1993
1993
  x: position.x,
@@ -2037,7 +2037,7 @@ var SmtPad = class extends PrimitiveComponent2 {
2037
2037
  shape: "rotated_rect",
2038
2038
  width: props.width,
2039
2039
  height: props.height,
2040
- corner_radius: props.cornerRadius ?? 0,
2040
+ corner_radius: props.cornerRadius ?? void 0,
2041
2041
  x: position.x,
2042
2042
  y: position.y,
2043
2043
  ccw_rotation: padRotation,
@@ -12343,7 +12343,7 @@ var debug7 = Debug9("Group_doInitialSchematicTraceRender");
12343
12343
  function applyTracesFromSolverOutput(args) {
12344
12344
  const { group, solver, pinIdToSchematicPortId, userNetIdToSck } = args;
12345
12345
  const { db } = group.root;
12346
- const traces = solver.traceLabelOverlapAvoidanceSolver?.getOutput().traces ?? solver.schematicTraceLinesSolver?.solvedTracePaths;
12346
+ const traces = solver.traceCleanupSolver?.getOutput().traces ?? solver.traceLabelOverlapAvoidanceSolver?.getOutput().traces ?? solver.schematicTraceLinesSolver?.solvedTracePaths;
12347
12347
  const pendingTraces = [];
12348
12348
  debug7(`Traces inside SchematicTraceSolver output: ${(traces ?? []).length}`);
12349
12349
  for (const solvedTracePath of traces ?? []) {
@@ -12467,7 +12467,7 @@ function applyNetLabelPlacements(args) {
12467
12467
  schematicPortIdsWithRoutedTraces
12468
12468
  } = args;
12469
12469
  const { db } = group.root;
12470
- const netLabelPlacements = solver.traceLabelOverlapAvoidanceSolver?.getOutput().netLabelPlacements ?? [];
12470
+ const netLabelPlacements = solver.netLabelPlacementSolver?.netLabelPlacements ?? solver.traceLabelOverlapAvoidanceSolver?.getOutput().netLabelPlacements ?? [];
12471
12471
  const globalConnMap = solver.mspConnectionPairSolver.globalConnMap;
12472
12472
  for (const placement of netLabelPlacements) {
12473
12473
  debug8(`processing placement: ${placement.netId}`);
@@ -15014,7 +15014,8 @@ var FabricationNoteRect = class extends PrimitiveComponent2 {
15014
15014
  has_stroke: hasStroke,
15015
15015
  is_stroke_dashed: props.isStrokeDashed ?? false,
15016
15016
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
15017
- pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
15017
+ pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0,
15018
+ corner_radius: props.cornerRadius ?? void 0
15018
15019
  });
15019
15020
  this.fabrication_note_rect_id = fabrication_note_rect.pcb_fabrication_note_rect_id;
15020
15021
  }
@@ -15274,7 +15275,8 @@ var PcbNoteRect = class extends PrimitiveComponent2 {
15274
15275
  is_filled: props.isFilled ?? false,
15275
15276
  has_stroke: props.hasStroke ?? true,
15276
15277
  is_stroke_dashed: props.isStrokeDashed ?? false,
15277
- color: props.color
15278
+ color: props.color,
15279
+ corner_radius: props.cornerRadius ?? void 0
15278
15280
  });
15279
15281
  this.pcb_note_rect_id = pcb_note_rect.pcb_note_rect_id;
15280
15282
  }
@@ -16084,7 +16086,8 @@ var SilkscreenRect = class extends PrimitiveComponent2 {
16084
16086
  subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
16085
16087
  pcb_group_id: this?.getGroup()?.pcb_group_id ?? void 0,
16086
16088
  stroke_width: props.strokeWidth ?? 0.1,
16087
- is_filled: props.filled ?? false
16089
+ is_filled: props.filled ?? false,
16090
+ corner_radius: props.cornerRadius ?? void 0
16088
16091
  });
16089
16092
  this.pcb_silkscreen_rect_id = pcb_silkscreen_rect.pcb_silkscreen_rect_id;
16090
16093
  }
@@ -17703,7 +17706,7 @@ import { identity as identity6 } from "transformation-matrix";
17703
17706
  var package_default = {
17704
17707
  name: "@tscircuit/core",
17705
17708
  type: "module",
17706
- version: "0.0.837",
17709
+ version: "0.0.839",
17707
17710
  types: "dist/index.d.ts",
17708
17711
  main: "dist/index.js",
17709
17712
  module: "dist/index.js",
@@ -17746,10 +17749,10 @@ var package_default = {
17746
17749
  "@tscircuit/math-utils": "^0.0.29",
17747
17750
  "@tscircuit/miniflex": "^0.0.4",
17748
17751
  "@tscircuit/ngspice-spice-engine": "^0.0.2",
17749
- "@tscircuit/props": "^0.0.384",
17752
+ "@tscircuit/props": "^0.0.387",
17750
17753
  "@tscircuit/schematic-autolayout": "^0.0.6",
17751
17754
  "@tscircuit/schematic-match-adapt": "^0.0.16",
17752
- "@tscircuit/schematic-trace-solver": "^0.0.41",
17755
+ "@tscircuit/schematic-trace-solver": "^0.0.43",
17753
17756
  "@types/bun": "^1.2.16",
17754
17757
  "@types/debug": "^4.1.12",
17755
17758
  "@types/react": "^19.1.8",
@@ -17759,13 +17762,13 @@ var package_default = {
17759
17762
  "bun-match-svg": "0.0.12",
17760
17763
  "calculate-elbow": "^0.0.12",
17761
17764
  "chokidar-cli": "^3.0.0",
17762
- "circuit-json": "^0.0.295",
17765
+ "circuit-json": "^0.0.297",
17763
17766
  "circuit-json-to-bpc": "^0.0.13",
17764
17767
  "circuit-json-to-connectivity-map": "^0.0.22",
17765
17768
  "circuit-json-to-gltf": "^0.0.31",
17766
17769
  "circuit-json-to-simple-3d": "^0.0.9",
17767
17770
  "circuit-json-to-spice": "^0.0.16",
17768
- "circuit-to-svg": "^0.0.253",
17771
+ "circuit-to-svg": "^0.0.260",
17769
17772
  concurrently: "^9.1.2",
17770
17773
  "connectivity-map": "^1.0.0",
17771
17774
  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.838",
4
+ "version": "0.0.840",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -44,10 +44,10 @@
44
44
  "@tscircuit/math-utils": "^0.0.29",
45
45
  "@tscircuit/miniflex": "^0.0.4",
46
46
  "@tscircuit/ngspice-spice-engine": "^0.0.2",
47
- "@tscircuit/props": "^0.0.384",
47
+ "@tscircuit/props": "^0.0.387",
48
48
  "@tscircuit/schematic-autolayout": "^0.0.6",
49
49
  "@tscircuit/schematic-match-adapt": "^0.0.16",
50
- "@tscircuit/schematic-trace-solver": "^0.0.41",
50
+ "@tscircuit/schematic-trace-solver": "^0.0.43",
51
51
  "@types/bun": "^1.2.16",
52
52
  "@types/debug": "^4.1.12",
53
53
  "@types/react": "^19.1.8",
@@ -57,13 +57,13 @@
57
57
  "bun-match-svg": "0.0.12",
58
58
  "calculate-elbow": "^0.0.12",
59
59
  "chokidar-cli": "^3.0.0",
60
- "circuit-json": "^0.0.295",
60
+ "circuit-json": "^0.0.297",
61
61
  "circuit-json-to-bpc": "^0.0.13",
62
62
  "circuit-json-to-connectivity-map": "^0.0.22",
63
63
  "circuit-json-to-gltf": "^0.0.31",
64
64
  "circuit-json-to-simple-3d": "^0.0.9",
65
65
  "circuit-json-to-spice": "^0.0.16",
66
- "circuit-to-svg": "^0.0.253",
66
+ "circuit-to-svg": "^0.0.260",
67
67
  "concurrently": "^9.1.2",
68
68
  "connectivity-map": "^1.0.0",
69
69
  "debug": "^4.3.6",