@tscircuit/props 0.0.678 → 0.0.679

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
@@ -1518,6 +1518,14 @@ export interface PcbBendProps {
1518
1518
  bendAngle: number | string;
1519
1519
  /** Positive neutral-surface radius, in mm or a distance string. */
1520
1520
  bendRadius: Distance;
1521
+ /**
1522
+ * Radius of circular tear-relief cutouts centered at both bend endpoints in
1523
+ * the flat PCB. Removes material to round the edge where each cutout meets
1524
+ * the board outline. Finite and positive, in mm or a distance string;
1525
+ * parsed to mm. Omit to leave the outline unchanged (no tear reliefs).
1526
+ * Independent of bendRadius and bendSide; no aliases or conflicting props.
1527
+ */
1528
+ tearReliefRadius?: Distance;
1521
1529
  /** Moving side, looking from (x1, y1) toward (x2, y2) in the flat layout. */
1522
1530
  bendSide: "left" | "right";
1523
1531
  }
package/dist/index.d.ts CHANGED
@@ -41963,7 +41963,7 @@ declare const boardProps: z.ZodObject<{
41963
41963
  schematicDisabled?: boolean | undefined;
41964
41964
  }>;
41965
41965
 
41966
- /** A bend on a flat flex PCB. Does not change fabrication coordinates. */
41966
+ /** A bend on a flat flex PCB, with optional tear-relief cutouts. */
41967
41967
  interface PcbBendProps {
41968
41968
  name?: string;
41969
41969
  /** Start/end of the bend-zone centerline in the parent PCB coordinate system. */
@@ -41975,6 +41975,14 @@ interface PcbBendProps {
41975
41975
  bendAngle: number | string;
41976
41976
  /** Positive neutral-surface radius, in mm or a distance string. */
41977
41977
  bendRadius: Distance;
41978
+ /**
41979
+ * Radius of circular tear-relief cutouts centered at both bend endpoints in
41980
+ * the flat PCB. Removes material to round the edge where each cutout meets
41981
+ * the board outline. Finite and positive, in mm or a distance string;
41982
+ * parsed to mm. Omit to leave the outline unchanged (no tear reliefs).
41983
+ * Independent of bendRadius and bendSide; no aliases or conflicting props.
41984
+ */
41985
+ tearReliefRadius?: Distance;
41978
41986
  /** Moving side, looking from (x1, y1) toward (x2, y2) in the flat layout. */
41979
41987
  bendSide: "left" | "right";
41980
41988
  }
@@ -41986,6 +41994,7 @@ declare const pcbBendProps: z.ZodEffects<z.ZodObject<{
41986
41994
  y2: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
41987
41995
  bendAngle: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
41988
41996
  bendRadius: z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>;
41997
+ tearReliefRadius: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
41989
41998
  bendSide: z.ZodEnum<["left", "right"]>;
41990
41999
  }, "strip", z.ZodTypeAny, {
41991
42000
  x1: number;
@@ -41996,6 +42005,7 @@ declare const pcbBendProps: z.ZodEffects<z.ZodObject<{
41996
42005
  bendRadius: number;
41997
42006
  bendSide: "left" | "right";
41998
42007
  name?: string | undefined;
42008
+ tearReliefRadius?: number | undefined;
41999
42009
  }, {
42000
42010
  x1: string | number;
42001
42011
  y1: string | number;
@@ -42005,6 +42015,7 @@ declare const pcbBendProps: z.ZodEffects<z.ZodObject<{
42005
42015
  bendRadius: string | number;
42006
42016
  bendSide: "left" | "right";
42007
42017
  name?: string | undefined;
42018
+ tearReliefRadius?: string | number | undefined;
42008
42019
  }>, {
42009
42020
  x1: number;
42010
42021
  y1: number;
@@ -42014,6 +42025,7 @@ declare const pcbBendProps: z.ZodEffects<z.ZodObject<{
42014
42025
  bendRadius: number;
42015
42026
  bendSide: "left" | "right";
42016
42027
  name?: string | undefined;
42028
+ tearReliefRadius?: number | undefined;
42017
42029
  }, {
42018
42030
  x1: string | number;
42019
42031
  y1: string | number;
@@ -42023,6 +42035,7 @@ declare const pcbBendProps: z.ZodEffects<z.ZodObject<{
42023
42035
  bendRadius: string | number;
42024
42036
  bendSide: "left" | "right";
42025
42037
  name?: string | undefined;
42038
+ tearReliefRadius?: string | number | undefined;
42026
42039
  }>;
42027
42040
  type PcbBendPropsInput = z.input<typeof pcbBendProps>;
42028
42041
 
package/dist/index.js CHANGED
@@ -16891,6 +16891,7 @@ var pcbBendProps = z47.object({
16891
16891
  y2: finiteDistance,
16892
16892
  bendAngle: rotation3.pipe(z47.number().finite()),
16893
16893
  bendRadius: distance.pipe(z47.number().finite().positive()),
16894
+ tearReliefRadius: distance.pipe(z47.number().finite().positive()).optional(),
16894
16895
  bendSide: z47.enum(["left", "right"])
16895
16896
  }).refine(({ x1, y1, x2, y2 }) => x1 !== x2 || y1 !== y2, {
16896
16897
  message: "Bend centerline endpoints must be distinct",