@tscircuit/core 0.0.91 → 0.0.92

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/dist/index.d.ts CHANGED
@@ -89,6 +89,7 @@ declare abstract class Renderable implements IRenderable {
89
89
  }
90
90
 
91
91
  interface BaseComponentConfig {
92
+ componentName: string;
92
93
  schematicSymbolName?: BaseSymbolName | null;
93
94
  zodProps: ZodType;
94
95
  sourceFtype?: AnySourceComponent["ftype"] | null;
@@ -105,8 +106,8 @@ declare abstract class PrimitiveComponent<ZodProps extends ZodType = any> extend
105
106
  get config(): BaseComponentConfig;
106
107
  props: z.input<ZodProps>;
107
108
  _parsedProps: z.infer<ZodProps>;
108
- componentName: string;
109
- lowercaseComponentName: string;
109
+ get componentName(): string;
110
+ get lowercaseComponentName(): string;
110
111
  externallyAddedAliases: string[];
111
112
  /**
112
113
  * An subcircuit is self-contained. All the selectors inside
@@ -261,7 +262,16 @@ declare const netProps: z.ZodObject<{
261
262
  }>;
262
263
  declare class Net extends PrimitiveComponent<typeof netProps> {
263
264
  source_net_id?: string;
264
- componentName: string;
265
+ get config(): {
266
+ componentName: string;
267
+ zodProps: z.ZodObject<{
268
+ name: z.ZodString;
269
+ }, "strip", z.ZodTypeAny, {
270
+ name: string;
271
+ }, {
272
+ name: string;
273
+ }>;
274
+ };
265
275
  getPortSelector(): string;
266
276
  doInitialSourceRender(): void;
267
277
  /**
@@ -290,7 +300,6 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> {
290
300
  pcb_trace_id: string | null;
291
301
  schematic_trace_id: string | null;
292
302
  _portsRoutedOnPcb: Port[];
293
- componentName: string;
294
303
  constructor(props: z.input<typeof traceProps>);
295
304
  get config(): {
296
305
  zodProps: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
@@ -473,6 +482,7 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> {
473
482
  } | undefined;
474
483
  }[] | undefined;
475
484
  }>]>;
485
+ componentName: string;
476
486
  };
477
487
  _getTracePortOrNetSelectorListFromProps(): string[];
478
488
  getTracePortPathSelectors(): string[];
@@ -536,7 +546,22 @@ declare class Port extends PrimitiveComponent<typeof portProps> {
536
546
  schematicSymbolPortDef: SchSymbol["ports"][number] | null;
537
547
  matchedComponents: PrimitiveComponent[];
538
548
  facingDirection: "up" | "down" | "left" | "right" | null;
539
- componentName: string;
549
+ get config(): {
550
+ componentName: string;
551
+ zodProps: z.ZodObject<{
552
+ name: z.ZodOptional<z.ZodString>;
553
+ pinNumber: z.ZodOptional<z.ZodNumber>;
554
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ name?: string | undefined;
557
+ pinNumber?: number | undefined;
558
+ aliases?: string[] | undefined;
559
+ }, {
560
+ name?: string | undefined;
561
+ pinNumber?: number | undefined;
562
+ aliases?: string[] | undefined;
563
+ }>;
564
+ };
540
565
  constructor(props: z.input<typeof portProps>);
541
566
  _getGlobalPcbPositionBeforeLayout(): {
542
567
  x: number;
@@ -687,16 +712,16 @@ declare class NormalComponent<ZodProps extends ZodType = any, PortNames extends
687
712
  declare class Group<Props extends z.ZodType<any, any, any> = typeof groupProps> extends NormalComponent<Props> {
688
713
  get config(): {
689
714
  zodProps: Props;
715
+ componentName: string;
690
716
  };
691
- componentName: string;
692
717
  doInitialCreateTraceHintsFromProps(): void;
693
718
  }
694
719
 
695
720
  declare class Board extends Group<typeof boardProps> {
696
721
  pcb_board_id: string | null;
697
- componentName: string;
698
722
  get isSubcircuit(): boolean;
699
723
  get config(): {
724
+ componentName: string;
700
725
  zodProps: z.ZodObject<{
701
726
  width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
702
727
  height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -755,7 +780,10 @@ declare class Board extends Group<typeof boardProps> {
755
780
  }
756
781
 
757
782
  declare class Footprint extends PrimitiveComponent<typeof footprintProps> {
758
- componentName: string;
783
+ get config(): {
784
+ componentName: string;
785
+ zodProps: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
786
+ };
759
787
  /**
760
788
  * A footprint is a constrainedlayout, the db elements are adjusted according
761
789
  * to any constraints that are defined.
@@ -767,8 +795,8 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
767
795
  pcb_smtpad_id: string | null;
768
796
  matchedPort: Port | null;
769
797
  isPcbPrimitive: boolean;
770
- componentName: string;
771
798
  get config(): {
799
+ componentName: string;
772
800
  zodProps: zod.ZodUnion<[zod.ZodObject<zod.objectUtil.extendShape<Omit<{
773
801
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
774
802
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -873,8 +901,8 @@ type PassivePorts = TwoPinPorts;
873
901
  type PolarizedPassivePorts = PassivePorts | "anode" | "cathode" | "pos" | "neg";
874
902
 
875
903
  declare class Resistor extends NormalComponent<typeof resistorProps, PassivePorts> {
876
- componentName: string;
877
904
  get config(): {
905
+ componentName: string;
878
906
  schematicSymbolName: BaseSymbolName;
879
907
  zodProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
880
908
  pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -1296,6 +1324,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
1296
1324
 
1297
1325
  declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts> {
1298
1326
  get config(): {
1327
+ componentName: string;
1299
1328
  schematicSymbolName: BaseSymbolName;
1300
1329
  zodProps: zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
1301
1330
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -1696,7 +1725,6 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
1696
1725
  }>;
1697
1726
  sourceFtype: Ftype;
1698
1727
  };
1699
- componentName: string;
1700
1728
  pos: Port;
1701
1729
  pin1: Port;
1702
1730
  anode: Port;
@@ -1709,6 +1737,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, TwoPinPorts> {
1709
1737
  pin1: Port;
1710
1738
  pin2: Port;
1711
1739
  get config(): {
1740
+ componentName: string;
1712
1741
  zodProps: zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
1713
1742
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
1714
1743
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -2104,13 +2133,13 @@ declare class Diode extends NormalComponent<typeof diodeProps, TwoPinPorts> {
2104
2133
  }>;
2105
2134
  sourceFtype: Ftype;
2106
2135
  };
2107
- componentName: string;
2108
2136
  initPorts(): void;
2109
2137
  }
2110
2138
 
2111
2139
  type PortNames = "1" | "2" | "pin1" | "pin2" | "left" | "right" | "anode" | "cathode";
2112
2140
  declare class Capacitor extends NormalComponent<typeof capacitorProps, PortNames> {
2113
2141
  get config(): {
2142
+ componentName: string;
2114
2143
  zodProps: zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
2115
2144
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2116
2145
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -2510,7 +2539,6 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PortNames
2510
2539
  }>;
2511
2540
  sourceFtype: "simple_capacitor";
2512
2541
  };
2513
- componentName: string;
2514
2542
  pin1: Port;
2515
2543
  pin2: Port;
2516
2544
  doInitialCreateNetsFromProps(): void;
@@ -2520,7 +2548,186 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PortNames
2520
2548
 
2521
2549
  declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
2522
2550
  matchedPort: Port | null;
2523
- componentName: string;
2551
+ get config(): {
2552
+ componentName: string;
2553
+ zodProps: zod.ZodObject<{
2554
+ for: zod.ZodOptional<zod.ZodString>;
2555
+ order: zod.ZodOptional<zod.ZodNumber>;
2556
+ offset: zod.ZodOptional<zod.ZodUnion<[zod.ZodObject<{
2557
+ x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
2558
+ y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
2559
+ via: zod.ZodOptional<zod.ZodBoolean>;
2560
+ to_layer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
2561
+ name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
2562
+ }, "strip", zod.ZodTypeAny, {
2563
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2564
+ }, {
2565
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2566
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2567
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2568
+ }>>;
2569
+ trace_width: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2570
+ }, "strip", zod.ZodTypeAny, {
2571
+ x: number;
2572
+ y: number;
2573
+ trace_width?: number | undefined;
2574
+ via?: boolean | undefined;
2575
+ to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
2576
+ }, {
2577
+ x: string | number;
2578
+ y: string | number;
2579
+ trace_width?: string | number | undefined;
2580
+ via?: boolean | undefined;
2581
+ to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2582
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2583
+ } | undefined;
2584
+ }>, zod.ZodObject<{
2585
+ x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
2586
+ y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
2587
+ via: zod.ZodOptional<zod.ZodBoolean>;
2588
+ toLayer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
2589
+ name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
2590
+ }, "strip", zod.ZodTypeAny, {
2591
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2592
+ }, {
2593
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2594
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2595
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2596
+ }>>;
2597
+ }, "strip", zod.ZodTypeAny, {
2598
+ x: number;
2599
+ y: number;
2600
+ toLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
2601
+ via?: boolean | undefined;
2602
+ }, {
2603
+ x: string | number;
2604
+ y: string | number;
2605
+ toLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2606
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2607
+ } | undefined;
2608
+ via?: boolean | undefined;
2609
+ }>]>>;
2610
+ offsets: zod.ZodOptional<zod.ZodUnion<[zod.ZodArray<zod.ZodObject<{
2611
+ x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
2612
+ y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
2613
+ via: zod.ZodOptional<zod.ZodBoolean>;
2614
+ to_layer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
2615
+ name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
2616
+ }, "strip", zod.ZodTypeAny, {
2617
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2618
+ }, {
2619
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2620
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2621
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2622
+ }>>;
2623
+ trace_width: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2624
+ }, "strip", zod.ZodTypeAny, {
2625
+ x: number;
2626
+ y: number;
2627
+ trace_width?: number | undefined;
2628
+ via?: boolean | undefined;
2629
+ to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
2630
+ }, {
2631
+ x: string | number;
2632
+ y: string | number;
2633
+ trace_width?: string | number | undefined;
2634
+ via?: boolean | undefined;
2635
+ to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2636
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2637
+ } | undefined;
2638
+ }>, "many">, zod.ZodArray<zod.ZodObject<{
2639
+ x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
2640
+ y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
2641
+ via: zod.ZodOptional<zod.ZodBoolean>;
2642
+ toLayer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
2643
+ name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
2644
+ }, "strip", zod.ZodTypeAny, {
2645
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2646
+ }, {
2647
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2648
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2649
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2650
+ }>>;
2651
+ }, "strip", zod.ZodTypeAny, {
2652
+ x: number;
2653
+ y: number;
2654
+ toLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
2655
+ via?: boolean | undefined;
2656
+ }, {
2657
+ x: string | number;
2658
+ y: string | number;
2659
+ toLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2660
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2661
+ } | undefined;
2662
+ via?: boolean | undefined;
2663
+ }>, "many">]>>;
2664
+ traceWidth: zod.ZodOptional<zod.ZodNumber>;
2665
+ }, "strip", zod.ZodTypeAny, {
2666
+ for?: string | undefined;
2667
+ order?: number | undefined;
2668
+ offset?: {
2669
+ x: number;
2670
+ y: number;
2671
+ trace_width?: number | undefined;
2672
+ via?: boolean | undefined;
2673
+ to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
2674
+ } | {
2675
+ x: number;
2676
+ y: number;
2677
+ toLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
2678
+ via?: boolean | undefined;
2679
+ } | undefined;
2680
+ offsets?: {
2681
+ x: number;
2682
+ y: number;
2683
+ trace_width?: number | undefined;
2684
+ via?: boolean | undefined;
2685
+ to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
2686
+ }[] | {
2687
+ x: number;
2688
+ y: number;
2689
+ toLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
2690
+ via?: boolean | undefined;
2691
+ }[] | undefined;
2692
+ traceWidth?: number | undefined;
2693
+ }, {
2694
+ for?: string | undefined;
2695
+ order?: number | undefined;
2696
+ offset?: {
2697
+ x: string | number;
2698
+ y: string | number;
2699
+ trace_width?: string | number | undefined;
2700
+ via?: boolean | undefined;
2701
+ to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2702
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2703
+ } | undefined;
2704
+ } | {
2705
+ x: string | number;
2706
+ y: string | number;
2707
+ toLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2708
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2709
+ } | undefined;
2710
+ via?: boolean | undefined;
2711
+ } | undefined;
2712
+ offsets?: {
2713
+ x: string | number;
2714
+ y: string | number;
2715
+ trace_width?: string | number | undefined;
2716
+ via?: boolean | undefined;
2717
+ to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2718
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2719
+ } | undefined;
2720
+ }[] | {
2721
+ x: string | number;
2722
+ y: string | number;
2723
+ toLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
2724
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
2725
+ } | undefined;
2726
+ via?: boolean | undefined;
2727
+ }[] | undefined;
2728
+ traceWidth?: number | undefined;
2729
+ }>;
2730
+ };
2524
2731
  doInitialPortMatching(): void;
2525
2732
  getPcbRouteHints(): Array<RouteHintPoint>;
2526
2733
  doInitialPcbTraceHintRender(): void;
@@ -2541,6 +2748,7 @@ interface SchematicBoxDimensions {
2541
2748
  declare class Chip<PinLabels extends string = never> extends NormalComponent<typeof chipProps, PinLabels> {
2542
2749
  schematicDimensions: SchematicBoxDimensions | null;
2543
2750
  get config(): {
2751
+ componentName: string;
2544
2752
  zodProps: zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
2545
2753
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
2546
2754
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -3141,7 +3349,6 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
3141
3349
  schHeight?: string | number | undefined;
3142
3350
  }>;
3143
3351
  };
3144
- componentName: string;
3145
3352
  doInitialSourceRender(): void;
3146
3353
  doInitialSchematicComponentRender(): void;
3147
3354
  doInitialPcbComponentRender(): void;
@@ -3150,6 +3357,7 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
3150
3357
  declare class Jumper<PinLabels extends string = never> extends NormalComponent<typeof jumperProps, PinLabels> {
3151
3358
  schematicDimensions: SchematicBoxDimensions | null;
3152
3359
  get config(): {
3360
+ componentName: string;
3153
3361
  zodProps: zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
3154
3362
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
3155
3363
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -3753,7 +3961,6 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
3753
3961
  schDirection?: "left" | "right" | undefined;
3754
3962
  }>;
3755
3963
  };
3756
- componentName: string;
3757
3964
  doInitialSourceRender(): void;
3758
3965
  doInitialSchematicComponentRender(): void;
3759
3966
  doInitialPcbComponentRender(): void;
@@ -3761,8 +3968,8 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
3761
3968
 
3762
3969
  declare class SilkscreenPath extends PrimitiveComponent<typeof silkscreenPathProps> {
3763
3970
  pcb_silkscreen_path_id: string | null;
3764
- componentName: string;
3765
3971
  get config(): {
3972
+ componentName: string;
3766
3973
  zodProps: zod.ZodObject<zod.objectUtil.extendShape<Omit<{
3767
3974
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
3768
3975
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -3840,8 +4047,8 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
3840
4047
  pcb_plated_hole_id: string | null;
3841
4048
  matchedPort: Port | null;
3842
4049
  isPcbPrimitive: boolean;
3843
- componentName: string;
3844
4050
  get config(): {
4051
+ componentName: string;
3845
4052
  zodProps: zod.ZodUnion<[zod.ZodObject<zod.objectUtil.extendShape<Omit<{
3846
4053
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
3847
4054
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -3951,8 +4158,8 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
3951
4158
  declare const edgeSpecifiers: readonly ["leftedge", "rightedge", "topedge", "bottomedge", "center"];
3952
4159
  type EdgeSpecifier = (typeof edgeSpecifiers)[number];
3953
4160
  declare class Constraint extends PrimitiveComponent<typeof constraintProps> {
3954
- componentName: string;
3955
4161
  get config(): {
4162
+ componentName: string;
3956
4163
  zodProps: z.ZodUnion<[z.ZodObject<{
3957
4164
  pcb: z.ZodOptional<z.ZodLiteral<true>>;
3958
4165
  xDist: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -4035,8 +4242,8 @@ declare class Constraint extends PrimitiveComponent<typeof constraintProps> {
4035
4242
  declare class Hole extends PrimitiveComponent<typeof holeProps> {
4036
4243
  pcb_hole_id: string | null;
4037
4244
  isPcbPrimitive: boolean;
4038
- componentName: string;
4039
4245
  get config(): {
4246
+ componentName: string;
4040
4247
  zodProps: zod.ZodEffects<zod.ZodObject<zod.objectUtil.extendShape<Omit<{
4041
4248
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
4042
4249
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -4115,7 +4322,48 @@ declare class Hole extends PrimitiveComponent<typeof holeProps> {
4115
4322
 
4116
4323
  declare class SilkscreenText extends PrimitiveComponent<typeof silkscreenTextProps> {
4117
4324
  isPcbPrimitive: boolean;
4118
- componentName: string;
4325
+ get config(): {
4326
+ componentName: string;
4327
+ zodProps: zod.ZodObject<zod.objectUtil.extendShape<{
4328
+ pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
4329
+ pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
4330
+ pcbRotation: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
4331
+ layer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
4332
+ name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
4333
+ }, "strip", zod.ZodTypeAny, {
4334
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4335
+ }, {
4336
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4337
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
4338
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4339
+ }>>;
4340
+ }, {
4341
+ text: zod.ZodString;
4342
+ anchorAlignment: zod.ZodDefault<zod.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
4343
+ font: zod.ZodOptional<zod.ZodEnum<["tscircuit2024"]>>;
4344
+ fontSize: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
4345
+ }>, "strip", zod.ZodTypeAny, {
4346
+ text: string;
4347
+ anchorAlignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
4348
+ pcbX?: number | undefined;
4349
+ pcbY?: number | undefined;
4350
+ pcbRotation?: number | undefined;
4351
+ layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
4352
+ font?: "tscircuit2024" | undefined;
4353
+ fontSize?: number | undefined;
4354
+ }, {
4355
+ text: string;
4356
+ pcbX?: string | number | undefined;
4357
+ pcbY?: string | number | undefined;
4358
+ pcbRotation?: string | number | undefined;
4359
+ layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
4360
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4361
+ } | undefined;
4362
+ anchorAlignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
4363
+ font?: "tscircuit2024" | undefined;
4364
+ fontSize?: string | number | undefined;
4365
+ }>;
4366
+ };
4119
4367
  doInitialPcbPrimitiveRender(): void;
4120
4368
  getPcbSize(): {
4121
4369
  width: number;
@@ -4126,8 +4374,8 @@ declare class SilkscreenText extends PrimitiveComponent<typeof silkscreenTextPro
4126
4374
  declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
4127
4375
  pcb_keepout_id: string | null;
4128
4376
  isPcbPrimitive: boolean;
4129
- componentName: string;
4130
4377
  get config(): {
4378
+ componentName: string;
4131
4379
  zodProps: zod.ZodUnion<[zod.ZodObject<zod.objectUtil.extendShape<Omit<{
4132
4380
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
4133
4381
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
@@ -4199,14 +4447,58 @@ declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
4199
4447
  }
4200
4448
 
4201
4449
  declare class FabricationNoteText extends PrimitiveComponent<typeof fabricationNoteTextProps> {
4202
- componentName: string;
4450
+ get config(): {
4451
+ componentName: string;
4452
+ zodProps: zod.ZodObject<zod.objectUtil.extendShape<{
4453
+ pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
4454
+ pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
4455
+ pcbRotation: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
4456
+ layer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
4457
+ name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
4458
+ }, "strip", zod.ZodTypeAny, {
4459
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4460
+ }, {
4461
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4462
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
4463
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4464
+ }>>;
4465
+ }, {
4466
+ text: zod.ZodString;
4467
+ anchorAlignment: zod.ZodDefault<zod.ZodEnum<["center", "top_left", "top_right", "bottom_left", "bottom_right"]>>;
4468
+ font: zod.ZodOptional<zod.ZodEnum<["tscircuit2024"]>>;
4469
+ fontSize: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
4470
+ color: zod.ZodOptional<zod.ZodString>;
4471
+ }>, "strip", zod.ZodTypeAny, {
4472
+ text: string;
4473
+ anchorAlignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
4474
+ pcbX?: number | undefined;
4475
+ pcbY?: number | undefined;
4476
+ pcbRotation?: number | undefined;
4477
+ layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
4478
+ color?: string | undefined;
4479
+ font?: "tscircuit2024" | undefined;
4480
+ fontSize?: number | undefined;
4481
+ }, {
4482
+ text: string;
4483
+ pcbX?: string | number | undefined;
4484
+ pcbY?: string | number | undefined;
4485
+ pcbRotation?: string | number | undefined;
4486
+ layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
4487
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
4488
+ } | undefined;
4489
+ color?: string | undefined;
4490
+ anchorAlignment?: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right" | undefined;
4491
+ font?: "tscircuit2024" | undefined;
4492
+ fontSize?: string | number | undefined;
4493
+ }>;
4494
+ };
4203
4495
  doInitialPcbPrimitiveRender(): void;
4204
4496
  }
4205
4497
 
4206
4498
  declare class FabricationNotePath extends PrimitiveComponent<typeof fabricationNotePathProps> {
4207
- componentName: string;
4208
4499
  fabrication_note_path_id: string | null;
4209
4500
  get config(): {
4501
+ componentName: string;
4210
4502
  zodProps: zod.ZodObject<zod.objectUtil.extendShape<Omit<{
4211
4503
  pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
4212
4504
  pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
package/dist/index.js CHANGED
@@ -34,6 +34,9 @@ __export(components_exports, {
34
34
  TraceHint: () => TraceHint
35
35
  });
36
36
 
37
+ // lib/components/primitive-components/Footprint.ts
38
+ import { footprintProps } from "@tscircuit/props";
39
+
37
40
  // lib/components/base-components/PrimitiveComponent.ts
38
41
  import { z } from "zod";
39
42
  import { symbols } from "schematic-symbols";
@@ -177,13 +180,18 @@ var PrimitiveComponent = class extends Renderable {
177
180
  childrenPendingRemoval;
178
181
  get config() {
179
182
  return {
183
+ componentName: "",
180
184
  zodProps: z.object({}).passthrough()
181
185
  };
182
186
  }
183
187
  props;
184
188
  _parsedProps;
185
- componentName = "";
186
- lowercaseComponentName = "";
189
+ get componentName() {
190
+ return this.config.componentName;
191
+ }
192
+ get lowercaseComponentName() {
193
+ return this.componentName.toLowerCase();
194
+ }
187
195
  externallyAddedAliases;
188
196
  /**
189
197
  * An subcircuit is self-contained. All the selectors inside
@@ -220,10 +228,6 @@ var PrimitiveComponent = class extends Renderable {
220
228
  this._parsedProps = this.config.zodProps.parse(
221
229
  props ?? {}
222
230
  );
223
- if (!this.componentName) {
224
- this.componentName = this.constructor.name;
225
- }
226
- this.lowercaseComponentName = this.componentName.toLowerCase();
227
231
  }
228
232
  setProps(props) {
229
233
  const newProps = this.config.zodProps.parse({
@@ -573,7 +577,12 @@ import * as kiwi from "@lume/kiwi";
573
577
  import Debug from "debug";
574
578
  var debug = Debug("tscircuit:core:footprint");
575
579
  var Footprint = class extends PrimitiveComponent {
576
- componentName = "Footprint";
580
+ get config() {
581
+ return {
582
+ componentName: "Footprint",
583
+ zodProps: footprintProps
584
+ };
585
+ }
577
586
  /**
578
587
  * A footprint is a constrainedlayout, the db elements are adjusted according
579
588
  * to any constraints that are defined.
@@ -802,7 +811,12 @@ var Port = class extends PrimitiveComponent {
802
811
  schematicSymbolPortDef = null;
803
812
  matchedComponents;
804
813
  facingDirection = null;
805
- componentName = "Port";
814
+ get config() {
815
+ return {
816
+ componentName: "Port",
817
+ zodProps: portProps
818
+ };
819
+ }
806
820
  constructor(props) {
807
821
  if (!props.name && props.pinNumber) props.name = `pin${props.pinNumber}`;
808
822
  if (!props.name) {
@@ -1164,9 +1178,9 @@ var SmtPad = class extends PrimitiveComponent {
1164
1178
  pcb_smtpad_id = null;
1165
1179
  matchedPort = null;
1166
1180
  isPcbPrimitive = true;
1167
- componentName = "SmtPad";
1168
1181
  get config() {
1169
1182
  return {
1183
+ componentName: "SmtPad",
1170
1184
  zodProps: smtPadProps
1171
1185
  };
1172
1186
  }
@@ -1295,9 +1309,9 @@ import { silkscreenPathProps } from "@tscircuit/props";
1295
1309
  import { applyToPoint as applyToPoint4 } from "transformation-matrix";
1296
1310
  var SilkscreenPath = class extends PrimitiveComponent {
1297
1311
  pcb_silkscreen_path_id = null;
1298
- componentName = "SilkscreenPath";
1299
1312
  get config() {
1300
1313
  return {
1314
+ componentName: "SilkscreenPath",
1301
1315
  zodProps: silkscreenPathProps
1302
1316
  };
1303
1317
  }
@@ -1337,9 +1351,9 @@ var PlatedHole = class extends PrimitiveComponent {
1337
1351
  pcb_plated_hole_id = null;
1338
1352
  matchedPort = null;
1339
1353
  isPcbPrimitive = true;
1340
- componentName = "PlatedHole";
1341
1354
  get config() {
1342
1355
  return {
1356
+ componentName: "PlatedHole",
1343
1357
  zodProps: platedHoleProps
1344
1358
  };
1345
1359
  }
@@ -1432,9 +1446,9 @@ import { decomposeTSR as decomposeTSR2 } from "transformation-matrix";
1432
1446
  var Keepout = class extends PrimitiveComponent {
1433
1447
  pcb_keepout_id = null;
1434
1448
  isPcbPrimitive = true;
1435
- componentName = "Keepout";
1436
1449
  get config() {
1437
1450
  return {
1451
+ componentName: "Keepout",
1438
1452
  zodProps: pcbKeepoutProps
1439
1453
  };
1440
1454
  }
@@ -1567,7 +1581,12 @@ var netProps = z3.object({
1567
1581
  });
1568
1582
  var Net = class extends PrimitiveComponent {
1569
1583
  source_net_id;
1570
- componentName = "Net";
1584
+ get config() {
1585
+ return {
1586
+ componentName: "Net",
1587
+ zodProps: netProps
1588
+ };
1589
+ }
1571
1590
  getPortSelector() {
1572
1591
  return `net.${this.props.name}`;
1573
1592
  }
@@ -2113,11 +2132,16 @@ import "transformation-matrix";
2113
2132
  import "zod";
2114
2133
 
2115
2134
  // lib/components/primitive-components/TraceHint.ts
2116
- import "@tscircuit/props";
2135
+ import { traceHintProps } from "@tscircuit/props";
2117
2136
  import { applyToPoint as applyToPoint5 } from "transformation-matrix";
2118
2137
  var TraceHint = class extends PrimitiveComponent {
2119
2138
  matchedPort = null;
2120
- componentName = "TraceHint";
2139
+ get config() {
2140
+ return {
2141
+ componentName: "TraceHint",
2142
+ zodProps: traceHintProps
2143
+ };
2144
+ }
2121
2145
  doInitialPortMatching() {
2122
2146
  const { db } = this.root;
2123
2147
  const { _parsedProps: props, parent } = this;
@@ -2171,10 +2195,10 @@ var TraceHint = class extends PrimitiveComponent {
2171
2195
  var Group = class extends NormalComponent {
2172
2196
  get config() {
2173
2197
  return {
2174
- zodProps: groupProps
2198
+ zodProps: groupProps,
2199
+ componentName: "Group"
2175
2200
  };
2176
2201
  }
2177
- componentName = "Group";
2178
2202
  doInitialCreateTraceHintsFromProps() {
2179
2203
  const { _parsedProps: props } = this;
2180
2204
  const { db } = this.root;
@@ -2196,12 +2220,12 @@ var Group = class extends NormalComponent {
2196
2220
  // lib/components/normal-components/Board.ts
2197
2221
  var Board = class extends Group {
2198
2222
  pcb_board_id = null;
2199
- componentName = "Board";
2200
2223
  get isSubcircuit() {
2201
2224
  return true;
2202
2225
  }
2203
2226
  get config() {
2204
2227
  return {
2228
+ componentName: "Board",
2205
2229
  zodProps: boardProps
2206
2230
  };
2207
2231
  }
@@ -2439,14 +2463,14 @@ var Trace = class extends PrimitiveComponent {
2439
2463
  pcb_trace_id = null;
2440
2464
  schematic_trace_id = null;
2441
2465
  _portsRoutedOnPcb;
2442
- componentName = "Trace";
2443
2466
  constructor(props) {
2444
2467
  super(props);
2445
2468
  this._portsRoutedOnPcb = [];
2446
2469
  }
2447
2470
  get config() {
2448
2471
  return {
2449
- zodProps: traceProps
2472
+ zodProps: traceProps,
2473
+ componentName: "Trace"
2450
2474
  };
2451
2475
  }
2452
2476
  _getTracePortOrNetSelectorListFromProps() {
@@ -2878,9 +2902,9 @@ searched component ${targetComponent.getString()}, which has ports: ${targetComp
2878
2902
 
2879
2903
  // lib/components/normal-components/Resistor.ts
2880
2904
  var Resistor = class extends NormalComponent {
2881
- componentName = "Resistor";
2882
2905
  get config() {
2883
2906
  return {
2907
+ componentName: "Resistor",
2884
2908
  schematicSymbolName: "boxresistor",
2885
2909
  zodProps: resistorProps,
2886
2910
  sourceFtype: "simple_resistor"
@@ -2927,12 +2951,12 @@ import { ledProps } from "@tscircuit/props";
2927
2951
  var Led = class extends NormalComponent {
2928
2952
  get config() {
2929
2953
  return {
2954
+ componentName: "Led",
2930
2955
  schematicSymbolName: "led",
2931
2956
  zodProps: ledProps,
2932
2957
  sourceFtype: "simple_diode"
2933
2958
  };
2934
2959
  }
2935
- componentName = "Led";
2936
2960
  pos = this.portMap.pin1;
2937
2961
  pin1 = this.portMap.pin1;
2938
2962
  anode = this.portMap.pin1;
@@ -2960,11 +2984,11 @@ var Diode = class extends NormalComponent {
2960
2984
  get config() {
2961
2985
  return {
2962
2986
  // schematicSymbolName: "diode" as BaseSymbolName,
2987
+ componentName: "Diode",
2963
2988
  zodProps: diodeProps,
2964
2989
  sourceFtype: "simple_diode"
2965
2990
  };
2966
2991
  }
2967
- componentName = "Diode";
2968
2992
  initPorts() {
2969
2993
  this.add(new Port({ name: "pin1", aliases: ["1", "pin1"] }));
2970
2994
  this.add(new Port({ name: "pin2", aliases: ["2", "pin2"] }));
@@ -2976,12 +3000,12 @@ import { ledProps as ledProps2 } from "@tscircuit/props";
2976
3000
  var Capacitor = class extends NormalComponent {
2977
3001
  get config() {
2978
3002
  return {
3003
+ componentName: "Capacitor",
2979
3004
  // schematicSymbolName: BASE_SYMBOLS.capacitor,
2980
3005
  zodProps: ledProps2,
2981
3006
  sourceFtype: FTYPE.simple_capacitor
2982
3007
  };
2983
3008
  }
2984
- componentName = "Capacitor";
2985
3009
  pin1 = this.portMap.pin1;
2986
3010
  pin2 = this.portMap.pin2;
2987
3011
  doInitialCreateNetsFromProps() {
@@ -3314,10 +3338,10 @@ var Chip = class extends NormalComponent {
3314
3338
  schematicDimensions = null;
3315
3339
  get config() {
3316
3340
  return {
3341
+ componentName: "Chip",
3317
3342
  zodProps: chipProps
3318
3343
  };
3319
3344
  }
3320
- componentName = "Chip";
3321
3345
  doInitialSourceRender() {
3322
3346
  const { db } = this.root;
3323
3347
  const { _parsedProps: props } = this;
@@ -3384,10 +3408,10 @@ var Jumper = class extends NormalComponent {
3384
3408
  schematicDimensions = null;
3385
3409
  get config() {
3386
3410
  return {
3411
+ componentName: "Jumper",
3387
3412
  zodProps: jumperProps
3388
3413
  };
3389
3414
  }
3390
- componentName = "Jumper";
3391
3415
  doInitialSourceRender() {
3392
3416
  const { db } = this.root;
3393
3417
  const { _parsedProps: props } = this;
@@ -3463,9 +3487,9 @@ var edgeSpecifiers = [
3463
3487
  "center"
3464
3488
  ];
3465
3489
  var Constraint2 = class extends PrimitiveComponent {
3466
- componentName = "Constraint";
3467
3490
  get config() {
3468
3491
  return {
3492
+ componentName: "Constraint",
3469
3493
  zodProps: constraintProps
3470
3494
  };
3471
3495
  }
@@ -3520,9 +3544,9 @@ import { holeProps } from "@tscircuit/props";
3520
3544
  var Hole = class extends PrimitiveComponent {
3521
3545
  pcb_hole_id = null;
3522
3546
  isPcbPrimitive = true;
3523
- componentName = "Hole";
3524
3547
  get config() {
3525
3548
  return {
3549
+ componentName: "Hole",
3526
3550
  zodProps: holeProps
3527
3551
  };
3528
3552
  }
@@ -3569,10 +3593,15 @@ var Hole = class extends PrimitiveComponent {
3569
3593
  };
3570
3594
 
3571
3595
  // lib/components/primitive-components/SilkscreenText.ts
3572
- import "@tscircuit/props";
3596
+ import { silkscreenTextProps } from "@tscircuit/props";
3573
3597
  var SilkscreenText = class extends PrimitiveComponent {
3574
3598
  isPcbPrimitive = true;
3575
- componentName = "SilkscreenText";
3599
+ get config() {
3600
+ return {
3601
+ componentName: "SilkscreenText",
3602
+ zodProps: silkscreenTextProps
3603
+ };
3604
+ }
3576
3605
  doInitialPcbPrimitiveRender() {
3577
3606
  const { db } = this.root;
3578
3607
  const { _parsedProps: props } = this;
@@ -3603,9 +3632,14 @@ var SilkscreenText = class extends PrimitiveComponent {
3603
3632
  };
3604
3633
 
3605
3634
  // lib/components/primitive-components/FabricationNoteText.ts
3606
- import "@tscircuit/props";
3635
+ import { fabricationNoteTextProps } from "@tscircuit/props";
3607
3636
  var FabricationNoteText = class extends PrimitiveComponent {
3608
- componentName = "FabricationNoteText";
3637
+ get config() {
3638
+ return {
3639
+ componentName: "FabricationNoteText",
3640
+ zodProps: fabricationNoteTextProps
3641
+ };
3642
+ }
3609
3643
  doInitialPcbPrimitiveRender() {
3610
3644
  const { db } = this.root;
3611
3645
  const { _parsedProps: props } = this;
@@ -3630,10 +3664,10 @@ var FabricationNoteText = class extends PrimitiveComponent {
3630
3664
  import { fabricationNotePathProps } from "@tscircuit/props";
3631
3665
  import { applyToPoint as applyToPoint6 } from "transformation-matrix";
3632
3666
  var FabricationNotePath = class extends PrimitiveComponent {
3633
- componentName = "FabricationNotePath";
3634
3667
  fabrication_note_path_id = null;
3635
3668
  get config() {
3636
3669
  return {
3670
+ componentName: "FabricationNotePath",
3637
3671
  zodProps: fabricationNotePathProps
3638
3672
  };
3639
3673
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.91",
4
+ "version": "0.0.92",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",