@tscircuit/props 0.0.630 → 0.0.632

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/README.md CHANGED
@@ -422,6 +422,11 @@ export interface BreakoutProps
422
422
  paddingRight?: Distance;
423
423
  paddingTop?: Distance;
424
424
  paddingBottom?: Distance;
425
+ /**
426
+ * Minimum clearance between this fanout boundary and another fanout
427
+ * boundary. Fanout boundaries may never overlap, even when this is omitted.
428
+ */
429
+ fanoutMargin?: Distance;
425
430
  }
426
431
  ```
427
432
 
package/dist/index.d.ts CHANGED
@@ -31545,6 +31545,11 @@ interface BreakoutProps extends Omit<SubcircuitGroupProps, "subcircuit">, Fanout
31545
31545
  paddingRight?: Distance;
31546
31546
  paddingTop?: Distance;
31547
31547
  paddingBottom?: Distance;
31548
+ /**
31549
+ * Minimum clearance between this fanout boundary and another fanout
31550
+ * boundary. Fanout boundaries may never overlap, even when this is omitted.
31551
+ */
31552
+ fanoutMargin?: Distance;
31548
31553
  }
31549
31554
  declare const breakoutProps: z.ZodObject<{
31550
31555
  pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
@@ -32353,6 +32358,7 @@ declare const breakoutProps: z.ZodObject<{
32353
32358
  paddingRight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
32354
32359
  paddingTop: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
32355
32360
  paddingBottom: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
32361
+ fanoutMargin: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, number, string | number>>;
32356
32362
  }, "strip", z.ZodTypeAny, {
32357
32363
  autorouter: AutorouterProp;
32358
32364
  symbol?: SymbolProp | undefined;
@@ -32683,6 +32689,7 @@ declare const breakoutProps: z.ZodObject<{
32683
32689
  } | undefined;
32684
32690
  fanoutRoutingLayers?: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8")[] | undefined;
32685
32691
  fanoutPourNetMap?: Partial<Record<"top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8", string | string[]>> | undefined;
32692
+ fanoutMargin?: number | undefined;
32686
32693
  }, {
32687
32694
  symbol?: SymbolProp | undefined;
32688
32695
  width?: string | number | undefined;
@@ -33021,6 +33028,7 @@ declare const breakoutProps: z.ZodObject<{
33021
33028
  fanoutPourNetMap?: Partial<Record<"top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8" | {
33022
33029
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | "inner7" | "inner8";
33023
33030
  }, string | string[]>> | undefined;
33031
+ fanoutMargin?: string | number | undefined;
33024
33032
  }>;
33025
33033
 
33026
33034
  /**
@@ -219125,6 +219133,7 @@ declare const portProps: z.ZodObject<{
219125
219133
  name: z.ZodOptional<z.ZodString>;
219126
219134
  pinNumber: z.ZodOptional<z.ZodNumber>;
219127
219135
  schStemLength: z.ZodOptional<z.ZodNumber>;
219136
+ schPinLabelFontSize: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["default", "sm"]>, z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, number, string | number>]>>;
219128
219137
  aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
219129
219138
  layer: z.ZodOptional<z.ZodString>;
219130
219139
  layers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -219207,6 +219216,7 @@ declare const portProps: z.ZodObject<{
219207
219216
  connectsTo?: string | string[] | undefined;
219208
219217
  pinNumber?: number | undefined;
219209
219218
  schStemLength?: number | undefined;
219219
+ schPinLabelFontSize?: number | "default" | "sm" | undefined;
219210
219220
  aliases?: string[] | undefined;
219211
219221
  kicadPinMetadata?: {
219212
219222
  electricalType?: "input" | "output" | "bidirectional" | "tri_state" | "passive" | "free" | "unspecified" | "power_in" | "power_out" | "open_collector" | "open_emitter" | "no_connect" | undefined;
@@ -219271,6 +219281,7 @@ declare const portProps: z.ZodObject<{
219271
219281
  connectsTo?: string | string[] | undefined;
219272
219282
  pinNumber?: number | undefined;
219273
219283
  schStemLength?: number | undefined;
219284
+ schPinLabelFontSize?: string | number | undefined;
219274
219285
  aliases?: string[] | undefined;
219275
219286
  kicadPinMetadata?: {
219276
219287
  electricalType?: "input" | "output" | "bidirectional" | "tri_state" | "passive" | "free" | "unspecified" | "power_in" | "power_out" | "open_collector" | "open_emitter" | "no_connect" | undefined;
package/dist/index.js CHANGED
@@ -16686,6 +16686,9 @@ expectTypesMatch(true);
16686
16686
 
16687
16687
  // lib/components/breakout.ts
16688
16688
  import "zod";
16689
+ var nonnegativeFanoutMargin = distance.refine((value) => value >= 0, {
16690
+ message: "Fanout margin cannot be negative"
16691
+ });
16689
16692
  var breakoutProps = subcircuitGroupProps.extend({
16690
16693
  autorouter: autorouterProp.default("fanout"),
16691
16694
  padding: distance.optional(),
@@ -16693,6 +16696,7 @@ var breakoutProps = subcircuitGroupProps.extend({
16693
16696
  paddingRight: distance.optional(),
16694
16697
  paddingTop: distance.optional(),
16695
16698
  paddingBottom: distance.optional(),
16699
+ fanoutMargin: nonnegativeFanoutMargin.optional(),
16696
16700
  ...fanoutProps.shape
16697
16701
  });
16698
16702
  expectTypesMatch(true);
@@ -18891,11 +18895,17 @@ var traceHintProps = z139.object({
18891
18895
  });
18892
18896
 
18893
18897
  // lib/components/port.ts
18898
+ import { distance as distance47 } from "circuit-json";
18894
18899
  import { z as z140 } from "zod";
18895
18900
  var portProps = commonLayoutProps.extend({
18896
18901
  name: z140.string().optional(),
18897
18902
  pinNumber: z140.number().optional(),
18898
18903
  schStemLength: z140.number().optional(),
18904
+ schPinLabelFontSize: z140.enum(["default", "sm"]).or(
18905
+ distance47.refine((value) => Number.isFinite(value) && value > 0, {
18906
+ message: "Schematic pin-label font size must be positive and finite"
18907
+ })
18908
+ ).optional(),
18899
18909
  aliases: z140.array(z140.string()).optional(),
18900
18910
  layer: z140.string().optional(),
18901
18911
  layers: z140.array(z140.string()).optional(),
@@ -18920,17 +18930,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
18920
18930
  expectTypesMatch(true);
18921
18931
 
18922
18932
  // lib/components/pcb-note-rect.ts
18923
- import { distance as distance47 } from "circuit-json";
18933
+ import { distance as distance48 } from "circuit-json";
18924
18934
  import { z as z142 } from "zod";
18925
18935
  var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
18926
- width: distance47,
18927
- height: distance47,
18928
- strokeWidth: distance47.optional(),
18936
+ width: distance48,
18937
+ height: distance48,
18938
+ strokeWidth: distance48.optional(),
18929
18939
  isFilled: z142.boolean().optional(),
18930
18940
  hasStroke: z142.boolean().optional(),
18931
18941
  isStrokeDashed: z142.boolean().optional(),
18932
18942
  color: z142.string().optional(),
18933
- cornerRadius: distance47.optional()
18943
+ cornerRadius: distance48.optional()
18934
18944
  });
18935
18945
  expectTypesMatch(true);
18936
18946
 
@@ -18958,7 +18968,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
18958
18968
  expectTypesMatch(true);
18959
18969
 
18960
18970
  // lib/components/pcb-note-line.ts
18961
- import { distance as distance48 } from "circuit-json";
18971
+ import { distance as distance49 } from "circuit-json";
18962
18972
  import { z as z144 } from "zod";
18963
18973
  var pcbNoteLineProps = pcbLayoutProps.omit({
18964
18974
  pcbLeftEdgeX: true,
@@ -18971,18 +18981,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
18971
18981
  pcbOffsetY: true,
18972
18982
  pcbRotation: true
18973
18983
  }).extend({
18974
- x1: distance48,
18975
- y1: distance48,
18976
- x2: distance48,
18977
- y2: distance48,
18978
- strokeWidth: distance48.optional(),
18984
+ x1: distance49,
18985
+ y1: distance49,
18986
+ x2: distance49,
18987
+ y2: distance49,
18988
+ strokeWidth: distance49.optional(),
18979
18989
  color: z144.string().optional(),
18980
18990
  isDashed: z144.boolean().optional()
18981
18991
  });
18982
18992
  expectTypesMatch(true);
18983
18993
 
18984
18994
  // lib/components/pcb-note-dimension.ts
18985
- import { distance as distance49, length as length13 } from "circuit-json";
18995
+ import { distance as distance50, length as length13 } from "circuit-json";
18986
18996
  import { z as z145 } from "zod";
18987
18997
  var dimensionTarget2 = z145.union([z145.string(), point]);
18988
18998
  var pcbNoteDimensionProps = pcbLayoutProps.omit({
@@ -18999,11 +19009,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
18999
19009
  from: dimensionTarget2,
19000
19010
  to: dimensionTarget2,
19001
19011
  text: z145.string().optional(),
19002
- offset: distance49.optional(),
19012
+ offset: distance50.optional(),
19003
19013
  font: z145.enum(["tscircuit2024"]).optional(),
19004
19014
  fontSize: length13.optional(),
19005
19015
  color: z145.string().optional(),
19006
- arrowSize: distance49.optional(),
19016
+ arrowSize: distance50.optional(),
19007
19017
  units: z145.enum(["in", "mm"]).optional(),
19008
19018
  outerEdgeToEdge: z145.literal(true).optional(),
19009
19019
  centerToCenter: z145.literal(true).optional(),