@tscircuit/props 0.0.673 → 0.0.674

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
@@ -942,7 +942,14 @@ export interface FabricationNoteDimensionProps extends Omit<
942
942
  from: string | Point;
943
943
  to: string | Point;
944
944
  text?: string;
945
+ /** Offset distance in mm, or a unit-bearing string. Defaults to no offset. */
945
946
  offset?: string | number;
947
+ /**
948
+ * Unitless direction in footprint-local coordinates (+X right, +Y up).
949
+ * Preserved as supplied; omitted uses the perpendicular to from -> to.
950
+ * The direction rotates/mirrors with the footprint, without translation.
951
+ */
952
+ offsetDirection?: { x: number; y: number };
946
953
  font?: "tscircuit2024";
947
954
  fontSize?: string | number;
948
955
  color?: string;
@@ -1532,7 +1539,14 @@ export interface PcbNoteDimensionProps extends Omit<
1532
1539
  from: string | Point;
1533
1540
  to: string | Point;
1534
1541
  text?: string;
1542
+ /** Offset distance in mm, or a unit-bearing string. Defaults to no offset. */
1535
1543
  offset?: string | number;
1544
+ /**
1545
+ * Unitless direction in footprint-local coordinates (+X right, +Y up).
1546
+ * Preserved as supplied; omitted uses the perpendicular to from -> to.
1547
+ * The direction rotates/mirrors with the footprint, without translation.
1548
+ */
1549
+ offsetDirection?: { x: number; y: number };
1536
1550
  font?: "tscircuit2024";
1537
1551
  fontSize?: string | number;
1538
1552
  color?: string;
package/dist/index.d.ts CHANGED
@@ -202807,7 +202807,17 @@ interface FabricationNoteDimensionProps extends Omit<PcbLayoutProps, "pcbLeftEdg
202807
202807
  from: string | Point;
202808
202808
  to: string | Point;
202809
202809
  text?: string;
202810
+ /** Offset distance in mm, or a unit-bearing string. Defaults to no offset. */
202810
202811
  offset?: string | number;
202812
+ /**
202813
+ * Unitless direction in footprint-local coordinates (+X right, +Y up).
202814
+ * Preserved as supplied; omitted uses the perpendicular to from -> to.
202815
+ * The direction rotates/mirrors with the footprint, without translation.
202816
+ */
202817
+ offsetDirection?: {
202818
+ x: number;
202819
+ y: number;
202820
+ };
202811
202821
  font?: "tscircuit2024";
202812
202822
  fontSize?: string | number;
202813
202823
  color?: string;
@@ -202905,6 +202915,16 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
202905
202915
  }>]>;
202906
202916
  text: z.ZodOptional<z.ZodString>;
202907
202917
  offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
202918
+ offsetDirection: z.ZodOptional<z.ZodObject<{
202919
+ x: z.ZodNumber;
202920
+ y: z.ZodNumber;
202921
+ }, "strip", z.ZodTypeAny, {
202922
+ x: number;
202923
+ y: number;
202924
+ }, {
202925
+ x: number;
202926
+ y: number;
202927
+ }>>;
202908
202928
  font: z.ZodOptional<z.ZodEnum<["tscircuit2024"]>>;
202909
202929
  fontSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
202910
202930
  color: z.ZodOptional<z.ZodString>;
@@ -202951,6 +202971,10 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
202951
202971
  centerToCenter?: true | undefined;
202952
202972
  color?: string | undefined;
202953
202973
  text?: string | undefined;
202974
+ offsetDirection?: {
202975
+ x: number;
202976
+ y: number;
202977
+ } | undefined;
202954
202978
  arrowSize?: number | undefined;
202955
202979
  units?: "in" | "mm" | undefined;
202956
202980
  outerEdgeToEdge?: true | undefined;
@@ -202995,6 +203019,10 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
202995
203019
  centerToCenter?: true | undefined;
202996
203020
  color?: string | undefined;
202997
203021
  text?: string | undefined;
203022
+ offsetDirection?: {
203023
+ x: number;
203024
+ y: number;
203025
+ } | undefined;
202998
203026
  arrowSize?: string | number | undefined;
202999
203027
  units?: "in" | "mm" | undefined;
203000
203028
  outerEdgeToEdge?: true | undefined;
@@ -241208,7 +241236,17 @@ interface PcbNoteDimensionProps extends Omit<PcbLayoutProps, "pcbLeftEdgeX" | "p
241208
241236
  from: string | Point;
241209
241237
  to: string | Point;
241210
241238
  text?: string;
241239
+ /** Offset distance in mm, or a unit-bearing string. Defaults to no offset. */
241211
241240
  offset?: string | number;
241241
+ /**
241242
+ * Unitless direction in footprint-local coordinates (+X right, +Y up).
241243
+ * Preserved as supplied; omitted uses the perpendicular to from -> to.
241244
+ * The direction rotates/mirrors with the footprint, without translation.
241245
+ */
241246
+ offsetDirection?: {
241247
+ x: number;
241248
+ y: number;
241249
+ };
241212
241250
  font?: "tscircuit2024";
241213
241251
  fontSize?: string | number;
241214
241252
  color?: string;
@@ -241306,6 +241344,16 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
241306
241344
  }>]>;
241307
241345
  text: z.ZodOptional<z.ZodString>;
241308
241346
  offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
241347
+ offsetDirection: z.ZodOptional<z.ZodObject<{
241348
+ x: z.ZodNumber;
241349
+ y: z.ZodNumber;
241350
+ }, "strip", z.ZodTypeAny, {
241351
+ x: number;
241352
+ y: number;
241353
+ }, {
241354
+ x: number;
241355
+ y: number;
241356
+ }>>;
241309
241357
  font: z.ZodOptional<z.ZodEnum<["tscircuit2024"]>>;
241310
241358
  fontSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
241311
241359
  color: z.ZodOptional<z.ZodString>;
@@ -241352,6 +241400,10 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
241352
241400
  centerToCenter?: true | undefined;
241353
241401
  color?: string | undefined;
241354
241402
  text?: string | undefined;
241403
+ offsetDirection?: {
241404
+ x: number;
241405
+ y: number;
241406
+ } | undefined;
241355
241407
  arrowSize?: number | undefined;
241356
241408
  units?: "in" | "mm" | undefined;
241357
241409
  outerEdgeToEdge?: true | undefined;
@@ -241396,6 +241448,10 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
241396
241448
  centerToCenter?: true | undefined;
241397
241449
  color?: string | undefined;
241398
241450
  text?: string | undefined;
241451
+ offsetDirection?: {
241452
+ x: number;
241453
+ y: number;
241454
+ } | undefined;
241399
241455
  arrowSize?: string | number | undefined;
241400
241456
  units?: "in" | "mm" | undefined;
241401
241457
  outerEdgeToEdge?: true | undefined;
package/dist/index.js CHANGED
@@ -18631,6 +18631,7 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
18631
18631
  to: dimensionTarget,
18632
18632
  text: z108.string().optional(),
18633
18633
  offset: distance24.optional(),
18634
+ offsetDirection: z108.object({ x: z108.number().finite(), y: z108.number().finite() }).optional(),
18634
18635
  font: z108.enum(["tscircuit2024"]).optional(),
18635
18636
  fontSize: length6.optional(),
18636
18637
  color: z108.string().optional(),
@@ -19449,6 +19450,7 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
19449
19450
  to: dimensionTarget2,
19450
19451
  text: z153.string().optional(),
19451
19452
  offset: distance51.optional(),
19453
+ offsetDirection: z153.object({ x: z153.number().finite(), y: z153.number().finite() }).optional(),
19452
19454
  font: z153.enum(["tscircuit2024"]).optional(),
19453
19455
  fontSize: length13.optional(),
19454
19456
  color: z153.string().optional(),