@tscircuit/core 0.0.89 → 0.0.91
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 +35 -14
- package/dist/index.js +37 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -261,6 +261,7 @@ declare const netProps: z.ZodObject<{
|
|
|
261
261
|
}>;
|
|
262
262
|
declare class Net extends PrimitiveComponent<typeof netProps> {
|
|
263
263
|
source_net_id?: string;
|
|
264
|
+
componentName: string;
|
|
264
265
|
getPortSelector(): string;
|
|
265
266
|
doInitialSourceRender(): void;
|
|
266
267
|
/**
|
|
@@ -289,6 +290,7 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> {
|
|
|
289
290
|
pcb_trace_id: string | null;
|
|
290
291
|
schematic_trace_id: string | null;
|
|
291
292
|
_portsRoutedOnPcb: Port[];
|
|
293
|
+
componentName: string;
|
|
292
294
|
constructor(props: z.input<typeof traceProps>);
|
|
293
295
|
get config(): {
|
|
294
296
|
zodProps: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -534,6 +536,7 @@ declare class Port extends PrimitiveComponent<typeof portProps> {
|
|
|
534
536
|
schematicSymbolPortDef: SchSymbol["ports"][number] | null;
|
|
535
537
|
matchedComponents: PrimitiveComponent[];
|
|
536
538
|
facingDirection: "up" | "down" | "left" | "right" | null;
|
|
539
|
+
componentName: string;
|
|
537
540
|
constructor(props: z.input<typeof portProps>);
|
|
538
541
|
_getGlobalPcbPositionBeforeLayout(): {
|
|
539
542
|
x: number;
|
|
@@ -664,6 +667,20 @@ declare class NormalComponent<ZodProps extends ZodType = any, PortNames extends
|
|
|
664
667
|
*
|
|
665
668
|
*/
|
|
666
669
|
doInitialPortDiscovery(): void;
|
|
670
|
+
_getPcbCircuitJsonBounds(): {
|
|
671
|
+
center: {
|
|
672
|
+
x: number;
|
|
673
|
+
y: number;
|
|
674
|
+
};
|
|
675
|
+
bounds: {
|
|
676
|
+
left: number;
|
|
677
|
+
top: number;
|
|
678
|
+
right: number;
|
|
679
|
+
bottom: number;
|
|
680
|
+
};
|
|
681
|
+
width: number;
|
|
682
|
+
height: number;
|
|
683
|
+
};
|
|
667
684
|
doInitialCadModelRender(): void;
|
|
668
685
|
}
|
|
669
686
|
|
|
@@ -671,11 +688,13 @@ declare class Group<Props extends z.ZodType<any, any, any> = typeof groupProps>
|
|
|
671
688
|
get config(): {
|
|
672
689
|
zodProps: Props;
|
|
673
690
|
};
|
|
691
|
+
componentName: string;
|
|
674
692
|
doInitialCreateTraceHintsFromProps(): void;
|
|
675
693
|
}
|
|
676
694
|
|
|
677
695
|
declare class Board extends Group<typeof boardProps> {
|
|
678
696
|
pcb_board_id: string | null;
|
|
697
|
+
componentName: string;
|
|
679
698
|
get isSubcircuit(): boolean;
|
|
680
699
|
get config(): {
|
|
681
700
|
zodProps: z.ZodObject<{
|
|
@@ -736,6 +755,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
736
755
|
}
|
|
737
756
|
|
|
738
757
|
declare class Footprint extends PrimitiveComponent<typeof footprintProps> {
|
|
758
|
+
componentName: string;
|
|
739
759
|
/**
|
|
740
760
|
* A footprint is a constrainedlayout, the db elements are adjusted according
|
|
741
761
|
* to any constraints that are defined.
|
|
@@ -747,6 +767,7 @@ declare class SmtPad extends PrimitiveComponent<typeof smtPadProps> {
|
|
|
747
767
|
pcb_smtpad_id: string | null;
|
|
748
768
|
matchedPort: Port | null;
|
|
749
769
|
isPcbPrimitive: boolean;
|
|
770
|
+
componentName: string;
|
|
750
771
|
get config(): {
|
|
751
772
|
zodProps: zod.ZodUnion<[zod.ZodObject<zod.objectUtil.extendShape<Omit<{
|
|
752
773
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -852,6 +873,7 @@ type PassivePorts = TwoPinPorts;
|
|
|
852
873
|
type PolarizedPassivePorts = PassivePorts | "anode" | "cathode" | "pos" | "neg";
|
|
853
874
|
|
|
854
875
|
declare class Resistor extends NormalComponent<typeof resistorProps, PassivePorts> {
|
|
876
|
+
componentName: string;
|
|
855
877
|
get config(): {
|
|
856
878
|
schematicSymbolName: BaseSymbolName;
|
|
857
879
|
zodProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -1674,6 +1696,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
|
|
|
1674
1696
|
}>;
|
|
1675
1697
|
sourceFtype: Ftype;
|
|
1676
1698
|
};
|
|
1699
|
+
componentName: string;
|
|
1677
1700
|
pos: Port;
|
|
1678
1701
|
pin1: Port;
|
|
1679
1702
|
anode: Port;
|
|
@@ -2081,6 +2104,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, TwoPinPorts> {
|
|
|
2081
2104
|
}>;
|
|
2082
2105
|
sourceFtype: Ftype;
|
|
2083
2106
|
};
|
|
2107
|
+
componentName: string;
|
|
2084
2108
|
initPorts(): void;
|
|
2085
2109
|
}
|
|
2086
2110
|
|
|
@@ -2486,6 +2510,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PortNames
|
|
|
2486
2510
|
}>;
|
|
2487
2511
|
sourceFtype: "simple_capacitor";
|
|
2488
2512
|
};
|
|
2513
|
+
componentName: string;
|
|
2489
2514
|
pin1: Port;
|
|
2490
2515
|
pin2: Port;
|
|
2491
2516
|
doInitialCreateNetsFromProps(): void;
|
|
@@ -2495,6 +2520,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, PortNames
|
|
|
2495
2520
|
|
|
2496
2521
|
declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
|
|
2497
2522
|
matchedPort: Port | null;
|
|
2523
|
+
componentName: string;
|
|
2498
2524
|
doInitialPortMatching(): void;
|
|
2499
2525
|
getPcbRouteHints(): Array<RouteHintPoint>;
|
|
2500
2526
|
doInitialPcbTraceHintRender(): void;
|
|
@@ -3115,23 +3141,10 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
|
|
|
3115
3141
|
schHeight?: string | number | undefined;
|
|
3116
3142
|
}>;
|
|
3117
3143
|
};
|
|
3144
|
+
componentName: string;
|
|
3118
3145
|
doInitialSourceRender(): void;
|
|
3119
3146
|
doInitialSchematicComponentRender(): void;
|
|
3120
3147
|
doInitialPcbComponentRender(): void;
|
|
3121
|
-
_getPcbCircuitJsonBounds(): {
|
|
3122
|
-
center: {
|
|
3123
|
-
x: number;
|
|
3124
|
-
y: number;
|
|
3125
|
-
};
|
|
3126
|
-
bounds: {
|
|
3127
|
-
left: number;
|
|
3128
|
-
top: number;
|
|
3129
|
-
right: number;
|
|
3130
|
-
bottom: number;
|
|
3131
|
-
};
|
|
3132
|
-
width: number;
|
|
3133
|
-
height: number;
|
|
3134
|
-
};
|
|
3135
3148
|
}
|
|
3136
3149
|
|
|
3137
3150
|
declare class Jumper<PinLabels extends string = never> extends NormalComponent<typeof jumperProps, PinLabels> {
|
|
@@ -3740,6 +3753,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
|
|
|
3740
3753
|
schDirection?: "left" | "right" | undefined;
|
|
3741
3754
|
}>;
|
|
3742
3755
|
};
|
|
3756
|
+
componentName: string;
|
|
3743
3757
|
doInitialSourceRender(): void;
|
|
3744
3758
|
doInitialSchematicComponentRender(): void;
|
|
3745
3759
|
doInitialPcbComponentRender(): void;
|
|
@@ -3747,6 +3761,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
|
|
|
3747
3761
|
|
|
3748
3762
|
declare class SilkscreenPath extends PrimitiveComponent<typeof silkscreenPathProps> {
|
|
3749
3763
|
pcb_silkscreen_path_id: string | null;
|
|
3764
|
+
componentName: string;
|
|
3750
3765
|
get config(): {
|
|
3751
3766
|
zodProps: zod.ZodObject<zod.objectUtil.extendShape<Omit<{
|
|
3752
3767
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -3825,6 +3840,7 @@ declare class PlatedHole extends PrimitiveComponent<typeof platedHoleProps> {
|
|
|
3825
3840
|
pcb_plated_hole_id: string | null;
|
|
3826
3841
|
matchedPort: Port | null;
|
|
3827
3842
|
isPcbPrimitive: boolean;
|
|
3843
|
+
componentName: string;
|
|
3828
3844
|
get config(): {
|
|
3829
3845
|
zodProps: zod.ZodUnion<[zod.ZodObject<zod.objectUtil.extendShape<Omit<{
|
|
3830
3846
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -4019,6 +4035,7 @@ declare class Constraint extends PrimitiveComponent<typeof constraintProps> {
|
|
|
4019
4035
|
declare class Hole extends PrimitiveComponent<typeof holeProps> {
|
|
4020
4036
|
pcb_hole_id: string | null;
|
|
4021
4037
|
isPcbPrimitive: boolean;
|
|
4038
|
+
componentName: string;
|
|
4022
4039
|
get config(): {
|
|
4023
4040
|
zodProps: zod.ZodEffects<zod.ZodObject<zod.objectUtil.extendShape<Omit<{
|
|
4024
4041
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -4098,6 +4115,7 @@ declare class Hole extends PrimitiveComponent<typeof holeProps> {
|
|
|
4098
4115
|
|
|
4099
4116
|
declare class SilkscreenText extends PrimitiveComponent<typeof silkscreenTextProps> {
|
|
4100
4117
|
isPcbPrimitive: boolean;
|
|
4118
|
+
componentName: string;
|
|
4101
4119
|
doInitialPcbPrimitiveRender(): void;
|
|
4102
4120
|
getPcbSize(): {
|
|
4103
4121
|
width: number;
|
|
@@ -4108,6 +4126,7 @@ declare class SilkscreenText extends PrimitiveComponent<typeof silkscreenTextPro
|
|
|
4108
4126
|
declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
|
|
4109
4127
|
pcb_keepout_id: string | null;
|
|
4110
4128
|
isPcbPrimitive: boolean;
|
|
4129
|
+
componentName: string;
|
|
4111
4130
|
get config(): {
|
|
4112
4131
|
zodProps: zod.ZodUnion<[zod.ZodObject<zod.objectUtil.extendShape<Omit<{
|
|
4113
4132
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -4180,10 +4199,12 @@ declare class Keepout extends PrimitiveComponent<typeof pcbKeepoutProps> {
|
|
|
4180
4199
|
}
|
|
4181
4200
|
|
|
4182
4201
|
declare class FabricationNoteText extends PrimitiveComponent<typeof fabricationNoteTextProps> {
|
|
4202
|
+
componentName: string;
|
|
4183
4203
|
doInitialPcbPrimitiveRender(): void;
|
|
4184
4204
|
}
|
|
4185
4205
|
|
|
4186
4206
|
declare class FabricationNotePath extends PrimitiveComponent<typeof fabricationNotePathProps> {
|
|
4207
|
+
componentName: string;
|
|
4187
4208
|
fabrication_note_path_id: string | null;
|
|
4188
4209
|
get config(): {
|
|
4189
4210
|
zodProps: zod.ZodObject<zod.objectUtil.extendShape<Omit<{
|
package/dist/index.js
CHANGED
|
@@ -573,6 +573,7 @@ import * as kiwi from "@lume/kiwi";
|
|
|
573
573
|
import Debug from "debug";
|
|
574
574
|
var debug = Debug("tscircuit:core:footprint");
|
|
575
575
|
var Footprint = class extends PrimitiveComponent {
|
|
576
|
+
componentName = "Footprint";
|
|
576
577
|
/**
|
|
577
578
|
* A footprint is a constrainedlayout, the db elements are adjusted according
|
|
578
579
|
* to any constraints that are defined.
|
|
@@ -801,6 +802,7 @@ var Port = class extends PrimitiveComponent {
|
|
|
801
802
|
schematicSymbolPortDef = null;
|
|
802
803
|
matchedComponents;
|
|
803
804
|
facingDirection = null;
|
|
805
|
+
componentName = "Port";
|
|
804
806
|
constructor(props) {
|
|
805
807
|
if (!props.name && props.pinNumber) props.name = `pin${props.pinNumber}`;
|
|
806
808
|
if (!props.name) {
|
|
@@ -1162,6 +1164,7 @@ var SmtPad = class extends PrimitiveComponent {
|
|
|
1162
1164
|
pcb_smtpad_id = null;
|
|
1163
1165
|
matchedPort = null;
|
|
1164
1166
|
isPcbPrimitive = true;
|
|
1167
|
+
componentName = "SmtPad";
|
|
1165
1168
|
get config() {
|
|
1166
1169
|
return {
|
|
1167
1170
|
zodProps: smtPadProps
|
|
@@ -1292,6 +1295,7 @@ import { silkscreenPathProps } from "@tscircuit/props";
|
|
|
1292
1295
|
import { applyToPoint as applyToPoint4 } from "transformation-matrix";
|
|
1293
1296
|
var SilkscreenPath = class extends PrimitiveComponent {
|
|
1294
1297
|
pcb_silkscreen_path_id = null;
|
|
1298
|
+
componentName = "SilkscreenPath";
|
|
1295
1299
|
get config() {
|
|
1296
1300
|
return {
|
|
1297
1301
|
zodProps: silkscreenPathProps
|
|
@@ -1333,6 +1337,7 @@ var PlatedHole = class extends PrimitiveComponent {
|
|
|
1333
1337
|
pcb_plated_hole_id = null;
|
|
1334
1338
|
matchedPort = null;
|
|
1335
1339
|
isPcbPrimitive = true;
|
|
1340
|
+
componentName = "PlatedHole";
|
|
1336
1341
|
get config() {
|
|
1337
1342
|
return {
|
|
1338
1343
|
zodProps: platedHoleProps
|
|
@@ -1427,6 +1432,7 @@ import { decomposeTSR as decomposeTSR2 } from "transformation-matrix";
|
|
|
1427
1432
|
var Keepout = class extends PrimitiveComponent {
|
|
1428
1433
|
pcb_keepout_id = null;
|
|
1429
1434
|
isPcbPrimitive = true;
|
|
1435
|
+
componentName = "Keepout";
|
|
1430
1436
|
get config() {
|
|
1431
1437
|
return {
|
|
1432
1438
|
zodProps: pcbKeepoutProps
|
|
@@ -1561,6 +1567,7 @@ var netProps = z3.object({
|
|
|
1561
1567
|
});
|
|
1562
1568
|
var Net = class extends PrimitiveComponent {
|
|
1563
1569
|
source_net_id;
|
|
1570
|
+
componentName = "Net";
|
|
1564
1571
|
getPortSelector() {
|
|
1565
1572
|
return `net.${this.props.name}`;
|
|
1566
1573
|
}
|
|
@@ -2039,6 +2046,22 @@ var NormalComponent = class extends PrimitiveComponent {
|
|
|
2039
2046
|
this.add(newPort);
|
|
2040
2047
|
}
|
|
2041
2048
|
}
|
|
2049
|
+
_getPcbCircuitJsonBounds() {
|
|
2050
|
+
const { db } = this.root;
|
|
2051
|
+
if (!this.pcb_component_id) return super._getPcbCircuitJsonBounds();
|
|
2052
|
+
const pcb_component = db.pcb_component.get(this.pcb_component_id);
|
|
2053
|
+
return {
|
|
2054
|
+
center: { x: pcb_component.center.x, y: pcb_component.center.y },
|
|
2055
|
+
bounds: {
|
|
2056
|
+
left: pcb_component.center.x - pcb_component.width / 2,
|
|
2057
|
+
top: pcb_component.center.y - pcb_component.height / 2,
|
|
2058
|
+
right: pcb_component.center.x + pcb_component.width / 2,
|
|
2059
|
+
bottom: pcb_component.center.y + pcb_component.height / 2
|
|
2060
|
+
},
|
|
2061
|
+
width: pcb_component.width,
|
|
2062
|
+
height: pcb_component.height
|
|
2063
|
+
};
|
|
2064
|
+
}
|
|
2042
2065
|
doInitialCadModelRender() {
|
|
2043
2066
|
const { db } = this.root;
|
|
2044
2067
|
const { boardThickness = 0 } = this.root?._getBoard() ?? {};
|
|
@@ -2094,6 +2117,7 @@ import "@tscircuit/props";
|
|
|
2094
2117
|
import { applyToPoint as applyToPoint5 } from "transformation-matrix";
|
|
2095
2118
|
var TraceHint = class extends PrimitiveComponent {
|
|
2096
2119
|
matchedPort = null;
|
|
2120
|
+
componentName = "TraceHint";
|
|
2097
2121
|
doInitialPortMatching() {
|
|
2098
2122
|
const { db } = this.root;
|
|
2099
2123
|
const { _parsedProps: props, parent } = this;
|
|
@@ -2150,6 +2174,7 @@ var Group = class extends NormalComponent {
|
|
|
2150
2174
|
zodProps: groupProps
|
|
2151
2175
|
};
|
|
2152
2176
|
}
|
|
2177
|
+
componentName = "Group";
|
|
2153
2178
|
doInitialCreateTraceHintsFromProps() {
|
|
2154
2179
|
const { _parsedProps: props } = this;
|
|
2155
2180
|
const { db } = this.root;
|
|
@@ -2171,6 +2196,7 @@ var Group = class extends NormalComponent {
|
|
|
2171
2196
|
// lib/components/normal-components/Board.ts
|
|
2172
2197
|
var Board = class extends Group {
|
|
2173
2198
|
pcb_board_id = null;
|
|
2199
|
+
componentName = "Board";
|
|
2174
2200
|
get isSubcircuit() {
|
|
2175
2201
|
return true;
|
|
2176
2202
|
}
|
|
@@ -2413,6 +2439,7 @@ var Trace = class extends PrimitiveComponent {
|
|
|
2413
2439
|
pcb_trace_id = null;
|
|
2414
2440
|
schematic_trace_id = null;
|
|
2415
2441
|
_portsRoutedOnPcb;
|
|
2442
|
+
componentName = "Trace";
|
|
2416
2443
|
constructor(props) {
|
|
2417
2444
|
super(props);
|
|
2418
2445
|
this._portsRoutedOnPcb = [];
|
|
@@ -2851,6 +2878,7 @@ searched component ${targetComponent.getString()}, which has ports: ${targetComp
|
|
|
2851
2878
|
|
|
2852
2879
|
// lib/components/normal-components/Resistor.ts
|
|
2853
2880
|
var Resistor = class extends NormalComponent {
|
|
2881
|
+
componentName = "Resistor";
|
|
2854
2882
|
get config() {
|
|
2855
2883
|
return {
|
|
2856
2884
|
schematicSymbolName: "boxresistor",
|
|
@@ -2904,6 +2932,7 @@ var Led = class extends NormalComponent {
|
|
|
2904
2932
|
sourceFtype: "simple_diode"
|
|
2905
2933
|
};
|
|
2906
2934
|
}
|
|
2935
|
+
componentName = "Led";
|
|
2907
2936
|
pos = this.portMap.pin1;
|
|
2908
2937
|
pin1 = this.portMap.pin1;
|
|
2909
2938
|
anode = this.portMap.pin1;
|
|
@@ -2935,6 +2964,7 @@ var Diode = class extends NormalComponent {
|
|
|
2935
2964
|
sourceFtype: "simple_diode"
|
|
2936
2965
|
};
|
|
2937
2966
|
}
|
|
2967
|
+
componentName = "Diode";
|
|
2938
2968
|
initPorts() {
|
|
2939
2969
|
this.add(new Port({ name: "pin1", aliases: ["1", "pin1"] }));
|
|
2940
2970
|
this.add(new Port({ name: "pin2", aliases: ["2", "pin2"] }));
|
|
@@ -2951,6 +2981,7 @@ var Capacitor = class extends NormalComponent {
|
|
|
2951
2981
|
sourceFtype: FTYPE.simple_capacitor
|
|
2952
2982
|
};
|
|
2953
2983
|
}
|
|
2984
|
+
componentName = "Capacitor";
|
|
2954
2985
|
pin1 = this.portMap.pin1;
|
|
2955
2986
|
pin2 = this.portMap.pin2;
|
|
2956
2987
|
doInitialCreateNetsFromProps() {
|
|
@@ -3286,6 +3317,7 @@ var Chip = class extends NormalComponent {
|
|
|
3286
3317
|
zodProps: chipProps
|
|
3287
3318
|
};
|
|
3288
3319
|
}
|
|
3320
|
+
componentName = "Chip";
|
|
3289
3321
|
doInitialSourceRender() {
|
|
3290
3322
|
const { db } = this.root;
|
|
3291
3323
|
const { _parsedProps: props } = this;
|
|
@@ -3344,22 +3376,6 @@ var Chip = class extends NormalComponent {
|
|
|
3344
3376
|
});
|
|
3345
3377
|
this.pcb_component_id = pcb_component.pcb_component_id;
|
|
3346
3378
|
}
|
|
3347
|
-
_getPcbCircuitJsonBounds() {
|
|
3348
|
-
const { db } = this.root;
|
|
3349
|
-
if (!this.pcb_component_id) return super._getPcbCircuitJsonBounds();
|
|
3350
|
-
const pcb_component = db.pcb_component.get(this.pcb_component_id);
|
|
3351
|
-
return {
|
|
3352
|
-
center: { x: pcb_component.center.x, y: pcb_component.center.y },
|
|
3353
|
-
bounds: {
|
|
3354
|
-
left: pcb_component.center.x - pcb_component.width / 2,
|
|
3355
|
-
top: pcb_component.center.y - pcb_component.height / 2,
|
|
3356
|
-
right: pcb_component.center.x + pcb_component.width / 2,
|
|
3357
|
-
bottom: pcb_component.center.y + pcb_component.height / 2
|
|
3358
|
-
},
|
|
3359
|
-
width: pcb_component.width,
|
|
3360
|
-
height: pcb_component.height
|
|
3361
|
-
};
|
|
3362
|
-
}
|
|
3363
3379
|
};
|
|
3364
3380
|
|
|
3365
3381
|
// lib/components/normal-components/Jumper.ts
|
|
@@ -3371,6 +3387,7 @@ var Jumper = class extends NormalComponent {
|
|
|
3371
3387
|
zodProps: jumperProps
|
|
3372
3388
|
};
|
|
3373
3389
|
}
|
|
3390
|
+
componentName = "Jumper";
|
|
3374
3391
|
doInitialSourceRender() {
|
|
3375
3392
|
const { db } = this.root;
|
|
3376
3393
|
const { _parsedProps: props } = this;
|
|
@@ -3503,6 +3520,7 @@ import { holeProps } from "@tscircuit/props";
|
|
|
3503
3520
|
var Hole = class extends PrimitiveComponent {
|
|
3504
3521
|
pcb_hole_id = null;
|
|
3505
3522
|
isPcbPrimitive = true;
|
|
3523
|
+
componentName = "Hole";
|
|
3506
3524
|
get config() {
|
|
3507
3525
|
return {
|
|
3508
3526
|
zodProps: holeProps
|
|
@@ -3554,6 +3572,7 @@ var Hole = class extends PrimitiveComponent {
|
|
|
3554
3572
|
import "@tscircuit/props";
|
|
3555
3573
|
var SilkscreenText = class extends PrimitiveComponent {
|
|
3556
3574
|
isPcbPrimitive = true;
|
|
3575
|
+
componentName = "SilkscreenText";
|
|
3557
3576
|
doInitialPcbPrimitiveRender() {
|
|
3558
3577
|
const { db } = this.root;
|
|
3559
3578
|
const { _parsedProps: props } = this;
|
|
@@ -3586,6 +3605,7 @@ var SilkscreenText = class extends PrimitiveComponent {
|
|
|
3586
3605
|
// lib/components/primitive-components/FabricationNoteText.ts
|
|
3587
3606
|
import "@tscircuit/props";
|
|
3588
3607
|
var FabricationNoteText = class extends PrimitiveComponent {
|
|
3608
|
+
componentName = "FabricationNoteText";
|
|
3589
3609
|
doInitialPcbPrimitiveRender() {
|
|
3590
3610
|
const { db } = this.root;
|
|
3591
3611
|
const { _parsedProps: props } = this;
|
|
@@ -3610,6 +3630,7 @@ var FabricationNoteText = class extends PrimitiveComponent {
|
|
|
3610
3630
|
import { fabricationNotePathProps } from "@tscircuit/props";
|
|
3611
3631
|
import { applyToPoint as applyToPoint6 } from "transformation-matrix";
|
|
3612
3632
|
var FabricationNotePath = class extends PrimitiveComponent {
|
|
3633
|
+
componentName = "FabricationNotePath";
|
|
3613
3634
|
fabrication_note_path_id = null;
|
|
3614
3635
|
get config() {
|
|
3615
3636
|
return {
|