@tscircuit/core 0.0.538 → 0.0.540

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.d.ts CHANGED
@@ -1545,6 +1545,7 @@ declare class Board extends Group<typeof boardProps> {
1545
1545
  serverMode: zod.ZodOptional<zod.ZodEnum<["job", "solve-endpoint"]>>;
1546
1546
  serverCacheEnabled: zod.ZodOptional<zod.ZodBoolean>;
1547
1547
  cache: zod.ZodOptional<zod.ZodType<_tscircuit_props.PcbRouteCache, zod.ZodTypeDef, _tscircuit_props.PcbRouteCache>>;
1548
+ traceClearance: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
1548
1549
  groupMode: zod.ZodOptional<zod.ZodEnum<["sequential-trace", "subcircuit"]>>;
1549
1550
  algorithmFn: zod.ZodOptional<zod.ZodType<(simpleRouteJson: any) => Promise<any>, zod.ZodTypeDef, (simpleRouteJson: any) => Promise<any>>>;
1550
1551
  local: zod.ZodOptional<zod.ZodBoolean>;
@@ -1554,6 +1555,7 @@ declare class Board extends Group<typeof boardProps> {
1554
1555
  serverMode?: "job" | "solve-endpoint" | undefined;
1555
1556
  serverCacheEnabled?: boolean | undefined;
1556
1557
  cache?: _tscircuit_props.PcbRouteCache | undefined;
1558
+ traceClearance?: number | undefined;
1557
1559
  groupMode?: "sequential-trace" | "subcircuit" | undefined;
1558
1560
  algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
1559
1561
  local?: boolean | undefined;
@@ -1563,6 +1565,7 @@ declare class Board extends Group<typeof boardProps> {
1563
1565
  serverMode?: "job" | "solve-endpoint" | undefined;
1564
1566
  serverCacheEnabled?: boolean | undefined;
1565
1567
  cache?: _tscircuit_props.PcbRouteCache | undefined;
1568
+ traceClearance?: string | number | undefined;
1566
1569
  groupMode?: "sequential-trace" | "subcircuit" | undefined;
1567
1570
  algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
1568
1571
  local?: boolean | undefined;
@@ -1740,6 +1743,7 @@ declare class Board extends Group<typeof boardProps> {
1740
1743
  serverMode?: "job" | "solve-endpoint" | undefined;
1741
1744
  serverCacheEnabled?: boolean | undefined;
1742
1745
  cache?: _tscircuit_props.PcbRouteCache | undefined;
1746
+ traceClearance?: number | undefined;
1743
1747
  groupMode?: "sequential-trace" | "subcircuit" | undefined;
1744
1748
  algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
1745
1749
  local?: boolean | undefined;
@@ -1913,6 +1917,7 @@ declare class Board extends Group<typeof boardProps> {
1913
1917
  serverMode?: "job" | "solve-endpoint" | undefined;
1914
1918
  serverCacheEnabled?: boolean | undefined;
1915
1919
  cache?: _tscircuit_props.PcbRouteCache | undefined;
1920
+ traceClearance?: string | number | undefined;
1916
1921
  groupMode?: "sequential-trace" | "subcircuit" | undefined;
1917
1922
  algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
1918
1923
  local?: boolean | undefined;
package/dist/index.js CHANGED
@@ -7789,7 +7789,10 @@ var Group = class extends NormalComponent {
7789
7789
  width: 0,
7790
7790
  height: 0,
7791
7791
  pcb_component_ids: [],
7792
- source_group_id: this.source_group_id
7792
+ source_group_id: this.source_group_id,
7793
+ autorouter_configuration: props.autorouter ? {
7794
+ trace_clearance: props.autorouter.traceClearance
7795
+ } : void 0
7793
7796
  });
7794
7797
  this.pcb_group_id = pcb_group.pcb_group_id;
7795
7798
  for (const child of this.children) {
@@ -10478,14 +10481,15 @@ var SchematicText = class extends PrimitiveComponent2 {
10478
10481
  if (this.root?.schematicDisabled) return;
10479
10482
  const { db } = this.root;
10480
10483
  const { _parsedProps: props } = this;
10484
+ const globalPos = this._getGlobalSchematicPositionBeforeLayout();
10481
10485
  db.schematic_text.insert({
10482
10486
  anchor: props.anchor ?? "center",
10483
10487
  text: props.text,
10484
10488
  font_size: props.fontSize,
10485
10489
  color: props.color || "#000000",
10486
10490
  position: {
10487
- x: props.schX ?? 0,
10488
- y: props.schY ?? 0
10491
+ x: globalPos.x,
10492
+ y: globalPos.y
10489
10493
  },
10490
10494
  rotation: props.schRotation ?? 0
10491
10495
  });
@@ -10697,7 +10701,7 @@ import { identity as identity4 } from "transformation-matrix";
10697
10701
  var package_default = {
10698
10702
  name: "@tscircuit/core",
10699
10703
  type: "module",
10700
- version: "0.0.537",
10704
+ version: "0.0.539",
10701
10705
  types: "dist/index.d.ts",
10702
10706
  main: "dist/index.js",
10703
10707
  module: "dist/index.js",
@@ -10729,7 +10733,7 @@ var package_default = {
10729
10733
  "@tscircuit/layout": "^0.0.28",
10730
10734
  "@tscircuit/log-soup": "^1.0.2",
10731
10735
  "@tscircuit/math-utils": "^0.0.18",
10732
- "@tscircuit/props": "^0.0.246",
10736
+ "@tscircuit/props": "^0.0.248",
10733
10737
  "@tscircuit/schematic-autolayout": "^0.0.6",
10734
10738
  "@tscircuit/schematic-corpus": "^0.0.29",
10735
10739
  "@tscircuit/schematic-match-adapt": "^0.0.16",
@@ -10743,7 +10747,7 @@ var package_default = {
10743
10747
  "bun-match-svg": "0.0.11",
10744
10748
  "calculate-elbow": "^0.0.5",
10745
10749
  "chokidar-cli": "^3.0.0",
10746
- "circuit-json": "^0.0.212",
10750
+ "circuit-json": "^0.0.215",
10747
10751
  "circuit-json-to-bpc": "^0.0.7",
10748
10752
  "circuit-json-to-connectivity-map": "^0.0.22",
10749
10753
  "circuit-json-to-simple-3d": "^0.0.2",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.538",
4
+ "version": "0.0.540",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "@tscircuit/layout": "^0.0.28",
34
34
  "@tscircuit/log-soup": "^1.0.2",
35
35
  "@tscircuit/math-utils": "^0.0.18",
36
- "@tscircuit/props": "^0.0.246",
36
+ "@tscircuit/props": "^0.0.248",
37
37
  "@tscircuit/schematic-autolayout": "^0.0.6",
38
38
  "@tscircuit/schematic-corpus": "^0.0.29",
39
39
  "@tscircuit/schematic-match-adapt": "^0.0.16",
@@ -47,7 +47,7 @@
47
47
  "bun-match-svg": "0.0.11",
48
48
  "calculate-elbow": "^0.0.5",
49
49
  "chokidar-cli": "^3.0.0",
50
- "circuit-json": "^0.0.212",
50
+ "circuit-json": "^0.0.215",
51
51
  "circuit-json-to-bpc": "^0.0.7",
52
52
  "circuit-json-to-connectivity-map": "^0.0.22",
53
53
  "circuit-json-to-simple-3d": "^0.0.2",