@tscircuit/props 0.0.386 → 0.0.388

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
@@ -979,6 +979,7 @@ export interface PcbNoteRectProps extends Omit<PcbLayoutProps, "pcbRotation"> {
979
979
  hasStroke?: boolean;
980
980
  isStrokeDashed?: boolean;
981
981
  color?: string;
982
+ cornerRadius?: string | number;
982
983
  }
983
984
  ```
984
985
 
package/dist/index.d.ts CHANGED
@@ -5426,9 +5426,9 @@ interface AutorouterConfig {
5426
5426
  groupMode?: "sequential_trace" | "subcircuit" | /** @deprecated Use "sequential_trace" */ "sequential-trace";
5427
5427
  local?: boolean;
5428
5428
  algorithmFn?: (simpleRouteJson: any) => Promise<any>;
5429
- preset?: "sequential_trace" | "subcircuit" | "auto" | "auto_local" | "auto_cloud" | "freerouting" | /** @deprecated Use "sequential_trace" */ "sequential-trace" | /** @deprecated Use "auto_local" */ "auto-local" | /** @deprecated Use "auto_cloud" */ "auto-cloud";
5429
+ preset?: "sequential_trace" | "subcircuit" | "auto" | "auto_local" | "auto_cloud" | "freerouting" | "laser_prefab" | /** @deprecated Use "sequential_trace" */ "sequential-trace" | /** @deprecated Use "auto_local" */ "auto-local" | /** @deprecated Use "auto_cloud" */ "auto-cloud";
5430
5430
  }
5431
- type AutorouterPreset = "sequential_trace" | "subcircuit" | "auto" | "auto_local" | "auto_cloud" | "freerouting" | "sequential-trace" | "auto-local" | "auto-cloud";
5431
+ type AutorouterPreset = "sequential_trace" | "subcircuit" | "auto" | "auto_local" | "auto_cloud" | "freerouting" | "laser_prefab" | "sequential-trace" | "auto-local" | "auto-cloud";
5432
5432
  type AutorouterProp = AutorouterConfig | AutocompleteString<AutorouterPreset>;
5433
5433
  declare const autorouterConfig: z.ZodObject<{
5434
5434
  serverUrl: z.ZodOptional<z.ZodString>;
@@ -5439,7 +5439,7 @@ declare const autorouterConfig: z.ZodObject<{
5439
5439
  traceClearance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
5440
5440
  groupMode: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "sequential-trace"]>>;
5441
5441
  algorithmFn: z.ZodOptional<z.ZodType<(simpleRouteJson: any) => Promise<any>, z.ZodTypeDef, (simpleRouteJson: any) => Promise<any>>>;
5442
- preset: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "auto", "auto_local", "auto_cloud", "freerouting", "sequential-trace", "auto-local", "auto-cloud"]>>;
5442
+ preset: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "auto", "auto_local", "auto_cloud", "freerouting", "laser_prefab", "sequential-trace", "auto-local", "auto-cloud"]>>;
5443
5443
  local: z.ZodOptional<z.ZodBoolean>;
5444
5444
  }, "strip", z.ZodTypeAny, {
5445
5445
  serverUrl?: string | undefined;
@@ -5450,7 +5450,7 @@ declare const autorouterConfig: z.ZodObject<{
5450
5450
  traceClearance?: number | undefined;
5451
5451
  groupMode?: "sequential_trace" | "subcircuit" | "sequential-trace" | undefined;
5452
5452
  algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
5453
- preset?: "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "freerouting" | "auto-local" | "auto-cloud" | undefined;
5453
+ preset?: "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "freerouting" | "laser_prefab" | "auto-local" | "auto-cloud" | undefined;
5454
5454
  local?: boolean | undefined;
5455
5455
  }, {
5456
5456
  serverUrl?: string | undefined;
@@ -5461,10 +5461,10 @@ declare const autorouterConfig: z.ZodObject<{
5461
5461
  traceClearance?: string | number | undefined;
5462
5462
  groupMode?: "sequential_trace" | "subcircuit" | "sequential-trace" | undefined;
5463
5463
  algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
5464
- preset?: "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "freerouting" | "auto-local" | "auto-cloud" | undefined;
5464
+ preset?: "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "freerouting" | "laser_prefab" | "auto-local" | "auto-cloud" | undefined;
5465
5465
  local?: boolean | undefined;
5466
5466
  }>;
5467
- declare const autorouterPreset: z.ZodUnion<[z.ZodLiteral<"sequential_trace">, z.ZodLiteral<"subcircuit">, z.ZodLiteral<"auto">, z.ZodLiteral<"auto_local">, z.ZodLiteral<"auto_cloud">, z.ZodLiteral<"freerouting">, z.ZodLiteral<"sequential-trace">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>;
5467
+ declare const autorouterPreset: z.ZodUnion<[z.ZodLiteral<"sequential_trace">, z.ZodLiteral<"subcircuit">, z.ZodLiteral<"auto">, z.ZodLiteral<"auto_local">, z.ZodLiteral<"auto_cloud">, z.ZodLiteral<"freerouting">, z.ZodLiteral<"laser_prefab">, z.ZodLiteral<"sequential-trace">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>;
5468
5468
  declare const autorouterProp: z.ZodType<AutorouterProp>;
5469
5469
  interface SubcircuitGroupProps extends BaseGroupProps {
5470
5470
  manualEdits?: ManualEditsFileInput;
@@ -56552,6 +56552,7 @@ declare const silkscreenRectProps: z.ZodObject<Omit<{
56552
56552
  strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
56553
56553
  width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
56554
56554
  height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
56555
+ cornerRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
56555
56556
  }, "strip", z.ZodTypeAny, {
56556
56557
  width: number;
56557
56558
  height: number;
@@ -56579,6 +56580,7 @@ declare const silkscreenRectProps: z.ZodObject<Omit<{
56579
56580
  pcbRelative?: boolean | undefined;
56580
56581
  relative?: boolean | undefined;
56581
56582
  strokeWidth?: number | undefined;
56583
+ cornerRadius?: number | undefined;
56582
56584
  filled?: boolean | undefined;
56583
56585
  stroke?: "none" | "dashed" | "solid" | undefined;
56584
56586
  }, {
@@ -56610,6 +56612,7 @@ declare const silkscreenRectProps: z.ZodObject<Omit<{
56610
56612
  pcbRelative?: boolean | undefined;
56611
56613
  relative?: boolean | undefined;
56612
56614
  strokeWidth?: string | number | undefined;
56615
+ cornerRadius?: string | number | undefined;
56613
56616
  filled?: boolean | undefined;
56614
56617
  stroke?: "none" | "dashed" | "solid" | undefined;
56615
56618
  }>;
package/dist/index.js CHANGED
@@ -526,6 +526,7 @@ var autorouterConfig = z28.object({
526
526
  "auto_local",
527
527
  "auto_cloud",
528
528
  "freerouting",
529
+ "laser_prefab",
529
530
  "sequential-trace",
530
531
  "auto-local",
531
532
  "auto-cloud"
@@ -539,6 +540,8 @@ var autorouterPreset = z28.union([
539
540
  z28.literal("auto_local"),
540
541
  z28.literal("auto_cloud"),
541
542
  z28.literal("freerouting"),
543
+ z28.literal("laser_prefab"),
544
+ // Prefabricated PCB with laser copper ablation
542
545
  z28.literal("sequential-trace"),
543
546
  z28.literal("auto-local"),
544
547
  z28.literal("auto-cloud")
@@ -2031,7 +2034,8 @@ var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
2031
2034
  stroke: z97.enum(["dashed", "solid", "none"]).optional(),
2032
2035
  strokeWidth: distance33.optional(),
2033
2036
  width: distance33,
2034
- height: distance33
2037
+ height: distance33,
2038
+ cornerRadius: distance33.optional()
2035
2039
  });
2036
2040
 
2037
2041
  // lib/components/silkscreen-circle.ts