@tscircuit/core 0.0.947 → 0.0.948

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
@@ -180,6 +180,7 @@ interface SimpleRouteConnection {
180
180
  interface SimpleRouteJson {
181
181
  layerCount: number;
182
182
  minTraceWidth: number;
183
+ nominalTraceWidth?: number;
183
184
  obstacles: Obstacle[];
184
185
  connections: Array<SimpleRouteConnection>;
185
186
  bounds: {
@@ -2161,6 +2162,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
2161
2162
  bomDisabled: zod.ZodOptional<zod.ZodBoolean>;
2162
2163
  defaultTraceWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2163
2164
  minTraceWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2165
+ nominalTraceWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2164
2166
  partsEngine: zod.ZodOptional<zod.ZodType<_tscircuit_props.PartsEngine, zod.ZodTypeDef, _tscircuit_props.PartsEngine>>;
2165
2167
  pcbRouteCache: zod.ZodOptional<zod.ZodType<_tscircuit_props.PcbRouteCache, zod.ZodTypeDef, _tscircuit_props.PcbRouteCache>>;
2166
2168
  autorouter: zod.ZodOptional<zod.ZodType<_tscircuit_props.AutorouterProp, zod.ZodTypeDef, _tscircuit_props.AutorouterProp>>;
@@ -2336,6 +2338,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
2336
2338
  pcbWidth?: number | undefined;
2337
2339
  pcbHeight?: number | undefined;
2338
2340
  minTraceWidth?: number | undefined;
2341
+ nominalTraceWidth?: number | undefined;
2339
2342
  schWidth?: number | undefined;
2340
2343
  schHeight?: number | undefined;
2341
2344
  pcbLayout?: {
@@ -2655,6 +2658,7 @@ declare class Board extends Group<typeof boardProps> implements BoardI, Subcircu
2655
2658
  pcbWidth?: string | number | undefined;
2656
2659
  pcbHeight?: string | number | undefined;
2657
2660
  minTraceWidth?: string | number | undefined;
2661
+ nominalTraceWidth?: string | number | undefined;
2658
2662
  schWidth?: string | number | undefined;
2659
2663
  schHeight?: string | number | undefined;
2660
2664
  pcbLayout?: {
@@ -3016,6 +3020,7 @@ declare class Panel extends Group<typeof panelProps> {
3016
3020
  pcbWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
3017
3021
  pcbHeight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
3018
3022
  minTraceWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
3023
+ nominalTraceWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
3019
3024
  schWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
3020
3025
  schHeight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
3021
3026
  pcbLayout: zod.ZodOptional<zod.ZodObject<{
@@ -3567,6 +3572,7 @@ declare class Panel extends Group<typeof panelProps> {
3567
3572
  pcbWidth?: number | undefined;
3568
3573
  pcbHeight?: number | undefined;
3569
3574
  minTraceWidth?: number | undefined;
3575
+ nominalTraceWidth?: number | undefined;
3570
3576
  schWidth?: number | undefined;
3571
3577
  schHeight?: number | undefined;
3572
3578
  pcbLayout?: {
@@ -3839,6 +3845,7 @@ declare class Panel extends Group<typeof panelProps> {
3839
3845
  pcbWidth?: string | number | undefined;
3840
3846
  pcbHeight?: string | number | undefined;
3841
3847
  minTraceWidth?: string | number | undefined;
3848
+ nominalTraceWidth?: string | number | undefined;
3842
3849
  schWidth?: string | number | undefined;
3843
3850
  schHeight?: string | number | undefined;
3844
3851
  pcbLayout?: {
@@ -45706,11 +45713,12 @@ declare const applyEditEvents: ({ circuitJson, editEvents, }: {
45706
45713
  /**
45707
45714
  * This function can only be called in the PcbTraceRender phase or later
45708
45715
  */
45709
- declare const getSimpleRouteJsonFromCircuitJson: ({ db, circuitJson, subcircuit_id, minTraceWidth, }: {
45716
+ declare const getSimpleRouteJsonFromCircuitJson: ({ db, circuitJson, subcircuit_id, minTraceWidth, nominalTraceWidth, }: {
45710
45717
  db?: CircuitJsonUtilObjects;
45711
45718
  circuitJson?: AnyCircuitElement[];
45712
45719
  subcircuit_id?: string | null;
45713
45720
  minTraceWidth?: number;
45721
+ nominalTraceWidth?: number;
45714
45722
  }) => {
45715
45723
  simpleRouteJson: SimpleRouteJson;
45716
45724
  connMap: ConnectivityMap;
package/dist/index.js CHANGED
@@ -10171,7 +10171,8 @@ var getSimpleRouteJsonFromCircuitJson = ({
10171
10171
  db,
10172
10172
  circuitJson,
10173
10173
  subcircuit_id,
10174
- minTraceWidth = 0.1
10174
+ minTraceWidth = 0.1,
10175
+ nominalTraceWidth
10175
10176
  }) => {
10176
10177
  if (!db && circuitJson) {
10177
10178
  db = su4(circuitJson);
@@ -10502,6 +10503,7 @@ var getSimpleRouteJsonFromCircuitJson = ({
10502
10503
  // subcircuit
10503
10504
  layerCount: board?.num_layers ?? 2,
10504
10505
  minTraceWidth,
10506
+ nominalTraceWidth,
10505
10507
  outline: board?.outline?.map((point2) => ({ ...point2 }))
10506
10508
  },
10507
10509
  connMap
@@ -14197,6 +14199,7 @@ var Group6 = class extends NormalComponent3 {
14197
14199
  input_simple_route_json: getSimpleRouteJsonFromCircuitJson({
14198
14200
  db,
14199
14201
  minTraceWidth: this.props.autorouter?.minTraceWidth ?? 0.15,
14202
+ nominalTraceWidth: this.props.nominalTraceWidth,
14200
14203
  subcircuit_id: this.subcircuit_id
14201
14204
  }).simpleRouteJson,
14202
14205
  subcircuit_id: this.subcircuit_id
@@ -14300,6 +14303,7 @@ var Group6 = class extends NormalComponent3 {
14300
14303
  const { simpleRouteJson } = getSimpleRouteJsonFromCircuitJson({
14301
14304
  db,
14302
14305
  minTraceWidth: this.props.autorouter?.minTraceWidth ?? 0.15,
14306
+ nominalTraceWidth: this.props.nominalTraceWidth,
14303
14307
  subcircuit_id: this.subcircuit_id
14304
14308
  });
14305
14309
  if (debug11.enabled) {
@@ -20300,7 +20304,7 @@ import { identity as identity5 } from "transformation-matrix";
20300
20304
  var package_default = {
20301
20305
  name: "@tscircuit/core",
20302
20306
  type: "module",
20303
- version: "0.0.946",
20307
+ version: "0.0.947",
20304
20308
  types: "dist/index.d.ts",
20305
20309
  main: "dist/index.js",
20306
20310
  module: "dist/index.js",
@@ -20331,7 +20335,7 @@ var package_default = {
20331
20335
  devDependencies: {
20332
20336
  "@biomejs/biome": "^1.8.3",
20333
20337
  "@resvg/resvg-js": "^2.6.2",
20334
- "@tscircuit/capacity-autorouter": "^0.0.204",
20338
+ "@tscircuit/capacity-autorouter": "^0.0.206",
20335
20339
  "@tscircuit/checks": "^0.0.87",
20336
20340
  "@tscircuit/circuit-json-util": "^0.0.73",
20337
20341
  "@tscircuit/common": "^0.0.20",
@@ -20343,7 +20347,7 @@ var package_default = {
20343
20347
  "@tscircuit/math-utils": "^0.0.29",
20344
20348
  "@tscircuit/miniflex": "^0.0.4",
20345
20349
  "@tscircuit/ngspice-spice-engine": "^0.0.8",
20346
- "@tscircuit/props": "^0.0.438",
20350
+ "@tscircuit/props": "^0.0.440",
20347
20351
  "@tscircuit/schematic-match-adapt": "^0.0.16",
20348
20352
  "@tscircuit/schematic-trace-solver": "^v0.0.45",
20349
20353
  "@tscircuit/solver-utils": "^0.0.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.947",
4
+ "version": "0.0.948",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -32,7 +32,7 @@
32
32
  "devDependencies": {
33
33
  "@biomejs/biome": "^1.8.3",
34
34
  "@resvg/resvg-js": "^2.6.2",
35
- "@tscircuit/capacity-autorouter": "^0.0.204",
35
+ "@tscircuit/capacity-autorouter": "^0.0.206",
36
36
  "@tscircuit/checks": "^0.0.87",
37
37
  "@tscircuit/circuit-json-util": "^0.0.73",
38
38
  "@tscircuit/common": "^0.0.20",
@@ -44,7 +44,7 @@
44
44
  "@tscircuit/math-utils": "^0.0.29",
45
45
  "@tscircuit/miniflex": "^0.0.4",
46
46
  "@tscircuit/ngspice-spice-engine": "^0.0.8",
47
- "@tscircuit/props": "^0.0.438",
47
+ "@tscircuit/props": "^0.0.440",
48
48
  "@tscircuit/schematic-match-adapt": "^0.0.16",
49
49
  "@tscircuit/schematic-trace-solver": "^v0.0.45",
50
50
  "@tscircuit/solver-utils": "^0.0.3",