@tscircuit/props 0.0.426 → 0.0.428

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
@@ -228,6 +228,7 @@ export interface BoardProps extends Omit<
228
228
  borderRadius?: Distance;
229
229
  thickness?: Distance;
230
230
  boardAnchorPosition?: Point;
231
+ anchorAlignment?: z.infer<typeof ninePointAnchor>;
231
232
  boardAnchorAlignment?: z.infer<typeof ninePointAnchor>;
232
233
  /** Color applied to both top and bottom solder masks */
233
234
  solderMaskColor?: BoardColor;
@@ -961,6 +962,7 @@ export interface PanelProps extends Omit<
961
962
  width?: Distance;
962
963
  height?: Distance;
963
964
  children?: BaseGroupProps["children"];
965
+ anchorAlignment?: z.infer<typeof ninePointAnchor>;
964
966
  /**
965
967
  * If true, prevent a solder mask from being applied to this panel.
966
968
  */
package/dist/index.d.ts CHANGED
@@ -11833,6 +11833,7 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
11833
11833
  borderRadius?: Distance;
11834
11834
  thickness?: Distance;
11835
11835
  boardAnchorPosition?: Point;
11836
+ anchorAlignment?: z.infer<typeof ninePointAnchor>;
11836
11837
  boardAnchorAlignment?: z.infer<typeof ninePointAnchor>;
11837
11838
  /** Color applied to both top and bottom solder masks */
11838
11839
  solderMaskColor?: BoardColor;
@@ -12588,6 +12589,7 @@ declare const boardProps: z.ZodObject<Omit<{
12588
12589
  x: string | number;
12589
12590
  y: string | number;
12590
12591
  }>>;
12592
+ anchorAlignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
12591
12593
  boardAnchorAlignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
12592
12594
  title: z.ZodOptional<z.ZodString>;
12593
12595
  solderMaskColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
@@ -12906,6 +12908,7 @@ declare const boardProps: z.ZodObject<Omit<{
12906
12908
  x: number;
12907
12909
  y: number;
12908
12910
  } | undefined;
12911
+ anchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
12909
12912
  boardAnchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
12910
12913
  solderMaskColor?: BoardColor | undefined;
12911
12914
  topSolderMaskColor?: BoardColor | undefined;
@@ -13225,6 +13228,7 @@ declare const boardProps: z.ZodObject<Omit<{
13225
13228
  x: string | number;
13226
13229
  y: string | number;
13227
13230
  } | undefined;
13231
+ anchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
13228
13232
  boardAnchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
13229
13233
  solderMaskColor?: BoardColor | undefined;
13230
13234
  topSolderMaskColor?: BoardColor | undefined;
@@ -13240,6 +13244,7 @@ interface PanelProps extends Omit<BaseGroupProps, "height" | "layoutMode" | "wid
13240
13244
  width?: Distance;
13241
13245
  height?: Distance;
13242
13246
  children?: BaseGroupProps["children"];
13247
+ anchorAlignment?: z.infer<typeof ninePointAnchor>;
13243
13248
  /**
13244
13249
  * If true, prevent a solder mask from being applied to this panel.
13245
13250
  */
@@ -13798,6 +13803,7 @@ declare const panelProps: z.ZodObject<Omit<{
13798
13803
  width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
13799
13804
  height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
13800
13805
  children: z.ZodOptional<z.ZodAny>;
13806
+ anchorAlignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
13801
13807
  noSolderMask: z.ZodOptional<z.ZodBoolean>;
13802
13808
  panelizationMethod: z.ZodOptional<z.ZodEnum<["tab-routing", "none"]>>;
13803
13809
  boardGap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -14068,6 +14074,7 @@ declare const panelProps: z.ZodObject<Omit<{
14068
14074
  schGap?: string | number | undefined;
14069
14075
  schPack?: boolean | undefined;
14070
14076
  schMatchAdapt?: boolean | undefined;
14077
+ anchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
14071
14078
  noSolderMask?: boolean | undefined;
14072
14079
  panelizationMethod?: "none" | "tab-routing" | undefined;
14073
14080
  boardGap?: number | undefined;
@@ -14338,6 +14345,7 @@ declare const panelProps: z.ZodObject<Omit<{
14338
14345
  schGap?: string | number | undefined;
14339
14346
  schPack?: boolean | undefined;
14340
14347
  schMatchAdapt?: boolean | undefined;
14348
+ anchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
14341
14349
  noSolderMask?: boolean | undefined;
14342
14350
  panelizationMethod?: "none" | "tab-routing" | undefined;
14343
14351
  boardGap?: string | number | undefined;
@@ -14892,6 +14900,7 @@ declare const subpanelProps: z.ZodObject<Omit<{
14892
14900
  width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
14893
14901
  height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
14894
14902
  children: z.ZodOptional<z.ZodAny>;
14903
+ anchorAlignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
14895
14904
  noSolderMask: z.ZodOptional<z.ZodBoolean>;
14896
14905
  panelizationMethod: z.ZodOptional<z.ZodEnum<["tab-routing", "none"]>>;
14897
14906
  boardGap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -15162,6 +15171,7 @@ declare const subpanelProps: z.ZodObject<Omit<{
15162
15171
  schGap?: string | number | undefined;
15163
15172
  schPack?: boolean | undefined;
15164
15173
  schMatchAdapt?: boolean | undefined;
15174
+ anchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
15165
15175
  noSolderMask?: boolean | undefined;
15166
15176
  panelizationMethod?: "none" | "tab-routing" | undefined;
15167
15177
  boardGap?: number | undefined;
@@ -15432,6 +15442,7 @@ declare const subpanelProps: z.ZodObject<Omit<{
15432
15442
  schGap?: string | number | undefined;
15433
15443
  schPack?: boolean | undefined;
15434
15444
  schMatchAdapt?: boolean | undefined;
15445
+ anchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
15435
15446
  noSolderMask?: boolean | undefined;
15436
15447
  panelizationMethod?: "none" | "tab-routing" | undefined;
15437
15448
  boardGap?: string | number | undefined;
@@ -34997,6 +35008,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
34997
35008
  x: string | number;
34998
35009
  y: string | number;
34999
35010
  }>>;
35011
+ anchorAlignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
35000
35012
  boardAnchorAlignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
35001
35013
  title: z.ZodOptional<z.ZodString>;
35002
35014
  solderMaskColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
@@ -35330,6 +35342,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
35330
35342
  x: number;
35331
35343
  y: number;
35332
35344
  } | undefined;
35345
+ anchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
35333
35346
  boardAnchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
35334
35347
  solderMaskColor?: BoardColor | undefined;
35335
35348
  topSolderMaskColor?: BoardColor | undefined;
@@ -35659,6 +35672,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
35659
35672
  x: string | number;
35660
35673
  y: string | number;
35661
35674
  } | undefined;
35675
+ anchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
35662
35676
  boardAnchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
35663
35677
  solderMaskColor?: BoardColor | undefined;
35664
35678
  topSolderMaskColor?: BoardColor | undefined;
@@ -55578,8 +55592,8 @@ declare const fabricationNoteTextProps: z.ZodObject<{
55578
55592
  fontSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
55579
55593
  color: z.ZodOptional<z.ZodString>;
55580
55594
  }, "strip", z.ZodTypeAny, {
55581
- text: string;
55582
55595
  anchorAlignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
55596
+ text: string;
55583
55597
  pcbX?: string | number | undefined;
55584
55598
  pcbY?: string | number | undefined;
55585
55599
  pcbLeftEdgeX?: string | number | undefined;
@@ -55647,8 +55661,8 @@ declare const fabricationNoteTextProps: z.ZodObject<{
55647
55661
  } | undefined;
55648
55662
  pcbRelative?: boolean | undefined;
55649
55663
  relative?: boolean | undefined;
55650
- color?: string | undefined;
55651
55664
  anchorAlignment?: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right" | undefined;
55665
+ color?: string | undefined;
55652
55666
  font?: "tscircuit2024" | undefined;
55653
55667
  fontSize?: string | number | undefined;
55654
55668
  }>;
@@ -62890,9 +62904,11 @@ declare const copperTextProps: z.ZodObject<{
62890
62904
  }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
62891
62905
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
62892
62906
  }>, "many">>;
62907
+ knockout: z.ZodOptional<z.ZodBoolean>;
62908
+ mirrored: z.ZodOptional<z.ZodBoolean>;
62893
62909
  }, "strip", z.ZodTypeAny, {
62894
- text: string;
62895
62910
  anchorAlignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
62911
+ text: string;
62896
62912
  pcbX?: string | number | undefined;
62897
62913
  pcbY?: string | number | undefined;
62898
62914
  pcbLeftEdgeX?: string | number | undefined;
@@ -62926,6 +62942,8 @@ declare const copperTextProps: z.ZodObject<{
62926
62942
  layers?: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[] | undefined;
62927
62943
  font?: "tscircuit2024" | undefined;
62928
62944
  fontSize?: number | undefined;
62945
+ knockout?: boolean | undefined;
62946
+ mirrored?: boolean | undefined;
62929
62947
  }, {
62930
62948
  text: string;
62931
62949
  pcbX?: string | number | undefined;
@@ -62966,6 +62984,8 @@ declare const copperTextProps: z.ZodObject<{
62966
62984
  anchorAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
62967
62985
  font?: "tscircuit2024" | undefined;
62968
62986
  fontSize?: string | number | undefined;
62987
+ knockout?: boolean | undefined;
62988
+ mirrored?: boolean | undefined;
62969
62989
  }>;
62970
62990
  type CopperTextProps = z.input<typeof copperTextProps>;
62971
62991
 
@@ -63056,8 +63076,8 @@ declare const silkscreenTextProps: z.ZodObject<{
63056
63076
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
63057
63077
  }>, "many">>;
63058
63078
  }, "strip", z.ZodTypeAny, {
63059
- text: string;
63060
63079
  anchorAlignment: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
63080
+ text: string;
63061
63081
  pcbX?: string | number | undefined;
63062
63082
  pcbY?: string | number | undefined;
63063
63083
  pcbLeftEdgeX?: string | number | undefined;
@@ -64213,8 +64233,8 @@ declare const pcbNoteTextProps: z.ZodObject<{
64213
64233
  fontSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
64214
64234
  color: z.ZodOptional<z.ZodString>;
64215
64235
  }, "strip", z.ZodTypeAny, {
64216
- text: string;
64217
64236
  anchorAlignment: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right";
64237
+ text: string;
64218
64238
  pcbX?: string | number | undefined;
64219
64239
  pcbY?: string | number | undefined;
64220
64240
  pcbLeftEdgeX?: string | number | undefined;
@@ -64282,8 +64302,8 @@ declare const pcbNoteTextProps: z.ZodObject<{
64282
64302
  } | undefined;
64283
64303
  pcbRelative?: boolean | undefined;
64284
64304
  relative?: boolean | undefined;
64285
- color?: string | undefined;
64286
64305
  anchorAlignment?: "top_left" | "top_right" | "center" | "bottom_left" | "bottom_right" | undefined;
64306
+ color?: string | undefined;
64287
64307
  font?: "tscircuit2024" | undefined;
64288
64308
  fontSize?: string | number | undefined;
64289
64309
  }>;
package/dist/index.js CHANGED
@@ -748,7 +748,8 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
748
748
  borderRadius: distance.optional(),
749
749
  thickness: distance.optional(),
750
750
  boardAnchorPosition: point.optional(),
751
- boardAnchorAlignment: ninePointAnchor.optional(),
751
+ anchorAlignment: ninePointAnchor.optional(),
752
+ boardAnchorAlignment: ninePointAnchor.optional().describe("Prefer using anchorAlignment when possible"),
752
753
  title: z31.string().optional(),
753
754
  solderMaskColor: boardColor.optional(),
754
755
  topSolderMaskColor: boardColor.optional(),
@@ -772,6 +773,7 @@ var panelProps = baseGroupProps.omit({
772
773
  width: distance.optional(),
773
774
  height: distance.optional(),
774
775
  children: z32.any().optional(),
776
+ anchorAlignment: ninePointAnchor.optional(),
775
777
  noSolderMask: z32.boolean().optional(),
776
778
  panelizationMethod: z32.enum(["tab-routing", "none"]).optional(),
777
779
  boardGap: distance.optional(),
@@ -2161,7 +2163,9 @@ var copperTextProps = pcbLayoutProps.extend({
2161
2163
  anchorAlignment: ninePointAnchor.default("center"),
2162
2164
  font: z100.enum(["tscircuit2024"]).optional(),
2163
2165
  fontSize: length7.optional(),
2164
- layers: z100.array(layer_ref8).optional()
2166
+ layers: z100.array(layer_ref8).optional(),
2167
+ knockout: z100.boolean().optional(),
2168
+ mirrored: z100.boolean().optional()
2165
2169
  });
2166
2170
 
2167
2171
  // lib/components/silkscreen-text.ts