@tscircuit/props 0.0.387 → 0.0.389

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
 
@@ -1518,6 +1519,7 @@ export interface ViaProps extends CommonLayoutProps {
1518
1519
  holeDiameter: number | string;
1519
1520
  outerDiameter: number | string;
1520
1521
  connectsTo?: string | string[];
1522
+ netIsAssignable?: boolean;
1521
1523
  }
1522
1524
  ```
1523
1525
 
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;
@@ -49771,6 +49771,7 @@ interface ViaProps extends CommonLayoutProps {
49771
49771
  holeDiameter: number | string;
49772
49772
  outerDiameter: number | string;
49773
49773
  connectsTo?: string | string[];
49774
+ netIsAssignable?: boolean;
49774
49775
  }
49775
49776
  declare const viaProps: z.ZodObject<{
49776
49777
  pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -49860,6 +49861,7 @@ declare const viaProps: z.ZodObject<{
49860
49861
  holeDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
49861
49862
  outerDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
49862
49863
  connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
49864
+ netIsAssignable: z.ZodOptional<z.ZodBoolean>;
49863
49865
  }, "strip", z.ZodTypeAny, {
49864
49866
  holeDiameter: number;
49865
49867
  outerDiameter: number;
@@ -49903,6 +49905,7 @@ declare const viaProps: z.ZodObject<{
49903
49905
  schRelative?: boolean | undefined;
49904
49906
  name?: string | undefined;
49905
49907
  connectsTo?: string | string[] | undefined;
49908
+ netIsAssignable?: boolean | undefined;
49906
49909
  }, {
49907
49910
  holeDiameter: string | number;
49908
49911
  outerDiameter: string | number;
@@ -49952,6 +49955,7 @@ declare const viaProps: z.ZodObject<{
49952
49955
  schRelative?: boolean | undefined;
49953
49956
  name?: string | undefined;
49954
49957
  connectsTo?: string | string[] | undefined;
49958
+ netIsAssignable?: boolean | undefined;
49955
49959
  }>;
49956
49960
  type InferredViaProps = z.input<typeof viaProps>;
49957
49961
 
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")
@@ -1645,7 +1648,8 @@ var viaProps = commonLayoutProps.extend({
1645
1648
  toLayer: layer_ref5,
1646
1649
  holeDiameter: distance19,
1647
1650
  outerDiameter: distance19,
1648
- connectsTo: z72.string().or(z72.array(z72.string())).optional()
1651
+ connectsTo: z72.string().or(z72.array(z72.string())).optional(),
1652
+ netIsAssignable: z72.boolean().optional()
1649
1653
  });
1650
1654
  expectTypesMatch(true);
1651
1655