@tscircuit/props 0.0.631 → 0.0.633

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
 
@@ -1740,6 +1745,8 @@ export interface SchematicBoxProps {
1740
1745
  chipRef?: string;
1741
1746
  pinLabels?: PinLabelsProp;
1742
1747
  schPinArrangement?: SchematicPinArrangement;
1748
+ /** Per-pin schematic margin overrides keyed by pin number or label. */
1749
+ schPinStyle?: SchematicPinStyle;
1743
1750
  schX?: Distance;
1744
1751
  schY?: Distance;
1745
1752
  schSectionName?: string;
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
  /**
@@ -216961,6 +216969,34 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
216961
216969
  topPinCount?: number | undefined;
216962
216970
  bottomPinCount?: number | undefined;
216963
216971
  }>>;
216972
+ schPinStyle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
216973
+ marginLeft: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
216974
+ marginRight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
216975
+ marginTop: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
216976
+ marginBottom: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
216977
+ leftMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
216978
+ rightMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
216979
+ topMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
216980
+ bottomMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
216981
+ }, "strip", z.ZodTypeAny, {
216982
+ marginLeft?: number | undefined;
216983
+ marginRight?: number | undefined;
216984
+ marginTop?: number | undefined;
216985
+ marginBottom?: number | undefined;
216986
+ leftMargin?: number | undefined;
216987
+ rightMargin?: number | undefined;
216988
+ topMargin?: number | undefined;
216989
+ bottomMargin?: number | undefined;
216990
+ }, {
216991
+ marginLeft?: string | number | undefined;
216992
+ marginRight?: string | number | undefined;
216993
+ marginTop?: string | number | undefined;
216994
+ marginBottom?: string | number | undefined;
216995
+ leftMargin?: string | number | undefined;
216996
+ rightMargin?: string | number | undefined;
216997
+ topMargin?: string | number | undefined;
216998
+ bottomMargin?: string | number | undefined;
216999
+ }>>>;
216964
217000
  schX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
216965
217001
  schY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
216966
217002
  schSectionName: z.ZodOptional<z.ZodString>;
@@ -217021,6 +217057,16 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
217021
217057
  topPinCount?: number | undefined;
217022
217058
  bottomPinCount?: number | undefined;
217023
217059
  } | undefined;
217060
+ schPinStyle?: Record<string, {
217061
+ marginLeft?: number | undefined;
217062
+ marginRight?: number | undefined;
217063
+ marginTop?: number | undefined;
217064
+ marginBottom?: number | undefined;
217065
+ leftMargin?: number | undefined;
217066
+ rightMargin?: number | undefined;
217067
+ topMargin?: number | undefined;
217068
+ bottomMargin?: number | undefined;
217069
+ }> | undefined;
217024
217070
  title?: string | undefined;
217025
217071
  pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
217026
217072
  chipRef?: string | undefined;
@@ -217066,6 +217112,16 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
217066
217112
  topPinCount?: number | undefined;
217067
217113
  bottomPinCount?: number | undefined;
217068
217114
  } | undefined;
217115
+ schPinStyle?: Record<string, {
217116
+ marginLeft?: string | number | undefined;
217117
+ marginRight?: string | number | undefined;
217118
+ marginTop?: string | number | undefined;
217119
+ marginBottom?: string | number | undefined;
217120
+ leftMargin?: string | number | undefined;
217121
+ rightMargin?: string | number | undefined;
217122
+ topMargin?: string | number | undefined;
217123
+ bottomMargin?: string | number | undefined;
217124
+ }> | undefined;
217069
217125
  title?: string | undefined;
217070
217126
  pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
217071
217127
  chipRef?: string | undefined;
@@ -217117,6 +217173,16 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
217117
217173
  topPinCount?: number | undefined;
217118
217174
  bottomPinCount?: number | undefined;
217119
217175
  } | undefined;
217176
+ schPinStyle?: Record<string, {
217177
+ marginLeft?: number | undefined;
217178
+ marginRight?: number | undefined;
217179
+ marginTop?: number | undefined;
217180
+ marginBottom?: number | undefined;
217181
+ leftMargin?: number | undefined;
217182
+ rightMargin?: number | undefined;
217183
+ topMargin?: number | undefined;
217184
+ bottomMargin?: number | undefined;
217185
+ }> | undefined;
217120
217186
  title?: string | undefined;
217121
217187
  pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
217122
217188
  chipRef?: string | undefined;
@@ -217162,6 +217228,16 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
217162
217228
  topPinCount?: number | undefined;
217163
217229
  bottomPinCount?: number | undefined;
217164
217230
  } | undefined;
217231
+ schPinStyle?: Record<string, {
217232
+ marginLeft?: string | number | undefined;
217233
+ marginRight?: string | number | undefined;
217234
+ marginTop?: string | number | undefined;
217235
+ marginBottom?: string | number | undefined;
217236
+ leftMargin?: string | number | undefined;
217237
+ rightMargin?: string | number | undefined;
217238
+ topMargin?: string | number | undefined;
217239
+ bottomMargin?: string | number | undefined;
217240
+ }> | undefined;
217165
217241
  title?: string | undefined;
217166
217242
  pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
217167
217243
  chipRef?: string | undefined;
@@ -217213,6 +217289,16 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
217213
217289
  topPinCount?: number | undefined;
217214
217290
  bottomPinCount?: number | undefined;
217215
217291
  } | undefined;
217292
+ schPinStyle?: Record<string, {
217293
+ marginLeft?: number | undefined;
217294
+ marginRight?: number | undefined;
217295
+ marginTop?: number | undefined;
217296
+ marginBottom?: number | undefined;
217297
+ leftMargin?: number | undefined;
217298
+ rightMargin?: number | undefined;
217299
+ topMargin?: number | undefined;
217300
+ bottomMargin?: number | undefined;
217301
+ }> | undefined;
217216
217302
  title?: string | undefined;
217217
217303
  pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
217218
217304
  chipRef?: string | undefined;
@@ -217258,6 +217344,16 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
217258
217344
  topPinCount?: number | undefined;
217259
217345
  bottomPinCount?: number | undefined;
217260
217346
  } | undefined;
217347
+ schPinStyle?: Record<string, {
217348
+ marginLeft?: string | number | undefined;
217349
+ marginRight?: string | number | undefined;
217350
+ marginTop?: string | number | undefined;
217351
+ marginBottom?: string | number | undefined;
217352
+ leftMargin?: string | number | undefined;
217353
+ rightMargin?: string | number | undefined;
217354
+ topMargin?: string | number | undefined;
217355
+ bottomMargin?: string | number | undefined;
217356
+ }> | undefined;
217261
217357
  title?: string | undefined;
217262
217358
  pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
217263
217359
  chipRef?: string | undefined;
@@ -217273,6 +217369,8 @@ interface SchematicBoxProps {
217273
217369
  chipRef?: string;
217274
217370
  pinLabels?: PinLabelsProp;
217275
217371
  schPinArrangement?: SchematicPinArrangement;
217372
+ /** Per-pin schematic margin overrides keyed by pin number or label. */
217373
+ schPinStyle?: SchematicPinStyle;
217276
217374
  schX?: Distance;
217277
217375
  schY?: Distance;
217278
217376
  schSectionName?: string;
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);
@@ -18568,6 +18572,7 @@ var schematicBoxProps = z120.object({
18568
18572
  chipRef: z120.string().optional(),
18569
18573
  pinLabels: pinLabelsProp.optional(),
18570
18574
  schPinArrangement: schematicPinArrangement.optional(),
18575
+ schPinStyle: schematicPinStyle.optional(),
18571
18576
  schX: distance33.optional(),
18572
18577
  schY: distance33.optional(),
18573
18578
  schSectionName: z120.string().optional(),