@tscircuit/props 0.0.373 → 0.0.375
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
|
@@ -518,6 +518,7 @@ export interface FabricationNoteDimensionProps
|
|
|
518
518
|
fontSize?: string | number;
|
|
519
519
|
color?: string;
|
|
520
520
|
arrowSize?: string | number;
|
|
521
|
+
units?: "in" | "mm";
|
|
521
522
|
}
|
|
522
523
|
```
|
|
523
524
|
|
|
@@ -908,6 +909,7 @@ export interface PcbNoteDimensionProps
|
|
|
908
909
|
fontSize?: string | number;
|
|
909
910
|
color?: string;
|
|
910
911
|
arrowSize?: string | number;
|
|
912
|
+
units?: "in" | "mm";
|
|
911
913
|
}
|
|
912
914
|
```
|
|
913
915
|
|
|
@@ -1455,6 +1457,7 @@ export interface TestpointProps extends CommonComponentProps {
|
|
|
1455
1457
|
* Height of the pad when padShape is rect
|
|
1456
1458
|
*/
|
|
1457
1459
|
height?: number | string;
|
|
1460
|
+
connections?: TestpointConnections;
|
|
1458
1461
|
}
|
|
1459
1462
|
```
|
|
1460
1463
|
|
package/dist/index.d.ts
CHANGED
|
@@ -46520,6 +46520,7 @@ interface FabricationNoteDimensionProps extends Omit<PcbLayoutProps, "pcbX" | "p
|
|
|
46520
46520
|
fontSize?: string | number;
|
|
46521
46521
|
color?: string;
|
|
46522
46522
|
arrowSize?: string | number;
|
|
46523
|
+
units?: "in" | "mm";
|
|
46523
46524
|
}
|
|
46524
46525
|
declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
46525
46526
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -46573,6 +46574,7 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46573
46574
|
fontSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
46574
46575
|
color: z.ZodOptional<z.ZodString>;
|
|
46575
46576
|
arrowSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
46577
|
+
units: z.ZodOptional<z.ZodEnum<["in", "mm"]>>;
|
|
46576
46578
|
}, "strip", z.ZodTypeAny, {
|
|
46577
46579
|
from: string | {
|
|
46578
46580
|
x: number;
|
|
@@ -46599,6 +46601,7 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46599
46601
|
fontSize?: number | undefined;
|
|
46600
46602
|
offset?: number | undefined;
|
|
46601
46603
|
arrowSize?: number | undefined;
|
|
46604
|
+
units?: "in" | "mm" | undefined;
|
|
46602
46605
|
}, {
|
|
46603
46606
|
from: string | {
|
|
46604
46607
|
x: string | number;
|
|
@@ -46627,6 +46630,7 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46627
46630
|
fontSize?: string | number | undefined;
|
|
46628
46631
|
offset?: string | number | undefined;
|
|
46629
46632
|
arrowSize?: string | number | undefined;
|
|
46633
|
+
units?: "in" | "mm" | undefined;
|
|
46630
46634
|
}>;
|
|
46631
46635
|
type FabricationNoteDimensionPropsInput = z.input<typeof fabricationNoteDimensionProps>;
|
|
46632
46636
|
|
|
@@ -46834,6 +46838,16 @@ declare const viaProps: z.ZodObject<{
|
|
|
46834
46838
|
}>;
|
|
46835
46839
|
type InferredViaProps = z.input<typeof viaProps>;
|
|
46836
46840
|
|
|
46841
|
+
declare const testpointPins: readonly ["pin1"];
|
|
46842
|
+
type TestpointPinLabels = (typeof testpointPins)[number];
|
|
46843
|
+
declare const testpointConnectionsProp: z.ZodObject<{
|
|
46844
|
+
pin1: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>;
|
|
46845
|
+
}, "strict", z.ZodTypeAny, {
|
|
46846
|
+
pin1: string | readonly string[] | string[];
|
|
46847
|
+
}, {
|
|
46848
|
+
pin1: string | readonly string[] | string[];
|
|
46849
|
+
}>;
|
|
46850
|
+
type TestpointConnections = z.infer<typeof testpointConnectionsProp>;
|
|
46837
46851
|
interface TestpointProps extends CommonComponentProps {
|
|
46838
46852
|
/**
|
|
46839
46853
|
* The footprint variant of the testpoint either a surface pad or through-hole
|
|
@@ -46859,6 +46873,7 @@ interface TestpointProps extends CommonComponentProps {
|
|
|
46859
46873
|
* Height of the pad when padShape is rect
|
|
46860
46874
|
*/
|
|
46861
46875
|
height?: number | string;
|
|
46876
|
+
connections?: TestpointConnections;
|
|
46862
46877
|
}
|
|
46863
46878
|
declare const testpointProps: z.ZodEffects<z.ZodObject<{
|
|
46864
46879
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -47516,6 +47531,13 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
|
|
|
47516
47531
|
highlightColor?: string | undefined;
|
|
47517
47532
|
}>>>;
|
|
47518
47533
|
} & {
|
|
47534
|
+
connections: z.ZodOptional<z.ZodObject<{
|
|
47535
|
+
pin1: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>;
|
|
47536
|
+
}, "strict", z.ZodTypeAny, {
|
|
47537
|
+
pin1: string | readonly string[] | string[];
|
|
47538
|
+
}, {
|
|
47539
|
+
pin1: string | readonly string[] | string[];
|
|
47540
|
+
}>>;
|
|
47519
47541
|
footprintVariant: z.ZodOptional<z.ZodEnum<["pad", "through_hole"]>>;
|
|
47520
47542
|
padShape: z.ZodDefault<z.ZodOptional<z.ZodEnum<["rect", "circle"]>>>;
|
|
47521
47543
|
padDiameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -47707,6 +47729,9 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
|
|
|
47707
47729
|
obstructsWithinBounds?: boolean | undefined;
|
|
47708
47730
|
width?: number | undefined;
|
|
47709
47731
|
height?: number | undefined;
|
|
47732
|
+
connections?: {
|
|
47733
|
+
pin1: string | readonly string[] | string[];
|
|
47734
|
+
} | undefined;
|
|
47710
47735
|
holeDiameter?: number | undefined;
|
|
47711
47736
|
footprintVariant?: "pad" | "through_hole" | undefined;
|
|
47712
47737
|
padDiameter?: number | undefined;
|
|
@@ -47896,6 +47921,9 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
|
|
|
47896
47921
|
obstructsWithinBounds?: boolean | undefined;
|
|
47897
47922
|
width?: string | number | undefined;
|
|
47898
47923
|
height?: string | number | undefined;
|
|
47924
|
+
connections?: {
|
|
47925
|
+
pin1: string | readonly string[] | string[];
|
|
47926
|
+
} | undefined;
|
|
47899
47927
|
holeDiameter?: string | number | undefined;
|
|
47900
47928
|
padShape?: "circle" | "rect" | undefined;
|
|
47901
47929
|
footprintVariant?: "pad" | "through_hole" | undefined;
|
|
@@ -48085,6 +48113,9 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
|
|
|
48085
48113
|
obstructsWithinBounds?: boolean | undefined;
|
|
48086
48114
|
width?: number | undefined;
|
|
48087
48115
|
height?: number | undefined;
|
|
48116
|
+
connections?: {
|
|
48117
|
+
pin1: string | readonly string[] | string[];
|
|
48118
|
+
} | undefined;
|
|
48088
48119
|
holeDiameter?: number | undefined;
|
|
48089
48120
|
footprintVariant?: "pad" | "through_hole" | undefined;
|
|
48090
48121
|
padDiameter?: number | undefined;
|
|
@@ -48274,6 +48305,9 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
|
|
|
48274
48305
|
obstructsWithinBounds?: boolean | undefined;
|
|
48275
48306
|
width?: string | number | undefined;
|
|
48276
48307
|
height?: string | number | undefined;
|
|
48308
|
+
connections?: {
|
|
48309
|
+
pin1: string | readonly string[] | string[];
|
|
48310
|
+
} | undefined;
|
|
48277
48311
|
holeDiameter?: string | number | undefined;
|
|
48278
48312
|
padShape?: "circle" | "rect" | undefined;
|
|
48279
48313
|
footprintVariant?: "pad" | "through_hole" | undefined;
|
|
@@ -53520,6 +53554,7 @@ interface PcbNoteDimensionProps extends Omit<PcbLayoutProps, "pcbX" | "pcbY" | "
|
|
|
53520
53554
|
fontSize?: string | number;
|
|
53521
53555
|
color?: string;
|
|
53522
53556
|
arrowSize?: string | number;
|
|
53557
|
+
units?: "in" | "mm";
|
|
53523
53558
|
}
|
|
53524
53559
|
declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
53525
53560
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -53573,6 +53608,7 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53573
53608
|
fontSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
53574
53609
|
color: z.ZodOptional<z.ZodString>;
|
|
53575
53610
|
arrowSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
53611
|
+
units: z.ZodOptional<z.ZodEnum<["in", "mm"]>>;
|
|
53576
53612
|
}, "strip", z.ZodTypeAny, {
|
|
53577
53613
|
from: string | {
|
|
53578
53614
|
x: number;
|
|
@@ -53599,6 +53635,7 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53599
53635
|
fontSize?: number | undefined;
|
|
53600
53636
|
offset?: number | undefined;
|
|
53601
53637
|
arrowSize?: number | undefined;
|
|
53638
|
+
units?: "in" | "mm" | undefined;
|
|
53602
53639
|
}, {
|
|
53603
53640
|
from: string | {
|
|
53604
53641
|
x: string | number;
|
|
@@ -53627,6 +53664,7 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53627
53664
|
fontSize?: string | number | undefined;
|
|
53628
53665
|
offset?: string | number | undefined;
|
|
53629
53666
|
arrowSize?: string | number | undefined;
|
|
53667
|
+
units?: "in" | "mm" | undefined;
|
|
53630
53668
|
}>;
|
|
53631
53669
|
type PcbNoteDimensionPropsInput = z.input<typeof pcbNoteDimensionProps>;
|
|
53632
53670
|
|
|
@@ -53681,4 +53719,4 @@ interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBas
|
|
|
53681
53719
|
}
|
|
53682
53720
|
declare const projectConfig: z.ZodType<ProjectConfig>;
|
|
53683
53721
|
|
|
53684
|
-
export { type AnalogSimulationProps, type AutocompleteString, type AutorouterConfig, type AutorouterDefinition, type AutorouterInstance, type AutorouterPreset, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BasicFootprint, type BatteryPinLabels, type BatteryProps, type BoardColor, type BoardColorPreset, type BoardProps, type Border, type BreakoutPointProps, type BreakoutProps, type CadAssemblyProps, type CadAssemblyPropsInput, type CadModelBase, type CadModelGlb, type CadModelGltf, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelProps, type CadModelPropsInput, type CadModelStep, type CadModelStl, type CadModelWrl, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CircleCutoutProps, type CircleHoleProps, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircuitJson, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConnectorProps, type ConstrainedLayoutProps, type ConstraintProps, type CopperPourProps, type CopperPourPropsInput, type CourtyardOutlineProps, type CourtyardRectProps, type CrystalPinLabels, type CrystalProps, type CutoutProps, type CutoutPropsInput, type DiodePinLabels, type DiodeProps, type Direction, type DirectionAlongEdge, type EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditPcbGroupLocationEvent, type EditPcbGroupLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, type EditSchematicGroupLocationEvent, type EditSchematicGroupLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type FabricationNoteDimensionProps, type FabricationNoteDimensionPropsInput, type FabricationNotePathProps, type FabricationNoteRectProps, type FabricationNoteTextProps, type FabricationNoteTextPropsInput, type FootprintFileParserEntry, type FootprintLibraryResult, type FootprintProp, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type FusePinLabels, type FuseProps, type GroupProps, type HoleProps, type InductorPinLabels, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredFuseProps, type InferredHoleProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type InferredTestpointProps, type InferredViaProps, type JumperProps, type KicadAutocompleteStringPath, type KicadPath, type LayoutConfig, type LedPinLabels, type LedProps, type ManualEditEvent, type ManualEditEventInput, type ManualEditsFile, type ManualEditsFileInput, type ManualPcbPlacement, type ManualPcbPlacementInput, type ManualSchematicPlacement, type ManualSchematicPlacementInput, type ManualTraceHint, type ManualTraceHintInput, type MosfetPinLabels, type MosfetProps, type NetAliasProps, type NetLabelProps, type NetProps, type NonSubcircuitGroupProps, type OvalPlatedHoleProps, type PanelProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbNoteDimensionProps, type PcbNoteDimensionPropsInput, type PcbNoteLineProps, type PcbNoteLinePropsInput, type PcbNotePathProps, type PcbNotePathPropsInput, type PcbNoteRectProps, type PcbNoteRectPropsInput, type PcbNoteTextProps, type PcbNoteTextPropsInput, type PcbPositionMode, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillHoleProps, type PillPlatedHoleProps, type PillSmtPadProps, type PillWithRectPadPlatedHoleProps, type PinAttributeMap, type PinCompatibleVariant, type PinHeaderProps, type PinLabelFromPinLabelMap, type PinLabelsProp, type PinSideDefinition, type PinVariant, type PinoutProps, type PlatedHoleProps, type PlatformConfig, type PolygonCutoutProps, type PolygonSmtPadProps, type PortHints, type PortProps, type PositionMode, type PotentiometerPinVariant, type PotentiometerProps, type PowerSourceProps, type ProjectConfig, type PushButtonProps, type RectCutoutProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedRectSmtPadProps, type SchematicArcProps, type SchematicBoxProps, type SchematicCellProps, type SchematicCircleProps, type SchematicLineProps, type SchematicOrientation, type SchematicPathProps, type SchematicPinArrangement, type SchematicPinArrangementWithPinCounts, type SchematicPinArrangementWithSides, type SchematicPinArrangementWithSizes, type SchematicPinLabel, type SchematicPinStyle, type SchematicPortArrangement, type SchematicPortArrangementWithPinCounts, type SchematicPortArrangementWithSides, type SchematicPortArrangementWithSizes, type SchematicRectProps, type SchematicRowProps, type SchematicTableProps, type SchematicTextProps, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SimpleRouteJson, type SmtPadProps, type SolderJumperProps, type SolderPasteProps, type SpiceEngine, type SpiceEngineSimulationResult, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type SymbolProp, type SymbolProps, type SymbolPropsInput, type TestpointProps, type TraceHintProps, type TraceProps, type TransistorPinLabels, type TransistorProps, type ViaProps, type VoltageProbeProps, type VoltageSourcePinLabels, type VoltageSourceProps, type WaveShape, analogSimulationProps, autorouterConfig, autorouterPreset, autorouterProp, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, border, breakoutPointProps, breakoutProps, bugProps, cadModelBase, cadModelGlb, cadModelGltf, cadModelJscad, cadModelObj, cadModelProp, cadModelStep, cadModelStl, cadModelWrl, cadassemblyProps, cadmodelProps, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleCutoutProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, connectorProps, constrainedLayoutProps, constraintProps, copperPourProps, courtyardOutlineProps, courtyardRectProps, crystalPins, crystalProps, cutoutProps, diodePins, diodeProps, direction, directionAlongEdge, distanceOrMultiplier, edit_component_location_event, edit_pcb_component_location_event, edit_pcb_group_location_event, edit_schematic_component_location_event, edit_schematic_group_location_event, edit_trace_hint_event, explicitPinSideDefinition, fabricationNoteDimensionProps, fabricationNotePathProps, fabricationNoteRectProps, fabricationNoteTextProps, footprintProp, footprintProps, fusePinLabels, fuseProps, groupProps, holeProps, inductorPins, inductorProps, jumperProps, layoutConfig, ledPins, ledProps, lrPins, lrPolarPins, manual_edit_event, manual_edits_file, manual_pcb_placement, manual_schematic_placement, manual_trace_hint, mosfetPins, mosfetProps, netAliasProps, netLabelProps, netProps, ninePointAnchor, panelProps, partsEngine, pcbKeepoutProps, pcbLayoutProps, pcbNoteDimensionProps, pcbNoteLineProps, pcbNotePathProps, pcbNoteRectProps, pcbNoteTextProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillSmtPadProps, pinAttributeMap, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, pinoutProps, platedHoleProps, platformConfig, point3, polygonCutoutProps, polygonSmtPadProps, portHints, portProps, portRef, potentiometerProps, powerSourceProps, projectConfig, pushButtonProps, rectCutoutProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resonatorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, schematicArcProps, schematicBoxProps, schematicCellProps, schematicCircleProps, schematicLineProps, schematicOrientation, schematicPathProps, schematicPinArrangement, schematicPinLabel, schematicPinStyle, schematicPortArrangement, schematicRectProps, schematicRowProps, schematicTableProps, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, solderjumperProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, symbolProp, symbolProps, testpointProps, traceHintProps, traceProps, transistorPins, transistorPinsLabels, transistorProps, viaProps, voltageProbeProps, voltageSourcePinLabels, voltageSourcePins, voltageSourceProps };
|
|
53722
|
+
export { type AnalogSimulationProps, type AutocompleteString, type AutorouterConfig, type AutorouterDefinition, type AutorouterInstance, type AutorouterPreset, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BasicFootprint, type BatteryPinLabels, type BatteryProps, type BoardColor, type BoardColorPreset, type BoardProps, type Border, type BreakoutPointProps, type BreakoutProps, type CadAssemblyProps, type CadAssemblyPropsInput, type CadModelBase, type CadModelGlb, type CadModelGltf, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelProps, type CadModelPropsInput, type CadModelStep, type CadModelStl, type CadModelWrl, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CircleCutoutProps, type CircleHoleProps, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircuitJson, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConnectorProps, type ConstrainedLayoutProps, type ConstraintProps, type CopperPourProps, type CopperPourPropsInput, type CourtyardOutlineProps, type CourtyardRectProps, type CrystalPinLabels, type CrystalProps, type CutoutProps, type CutoutPropsInput, type DiodePinLabels, type DiodeProps, type Direction, type DirectionAlongEdge, type EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditPcbGroupLocationEvent, type EditPcbGroupLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, type EditSchematicGroupLocationEvent, type EditSchematicGroupLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type FabricationNoteDimensionProps, type FabricationNoteDimensionPropsInput, type FabricationNotePathProps, type FabricationNoteRectProps, type FabricationNoteTextProps, type FabricationNoteTextPropsInput, type FootprintFileParserEntry, type FootprintLibraryResult, type FootprintProp, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type FusePinLabels, type FuseProps, type GroupProps, type HoleProps, type InductorPinLabels, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredFuseProps, type InferredHoleProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type InferredTestpointProps, type InferredViaProps, type JumperProps, type KicadAutocompleteStringPath, type KicadPath, type LayoutConfig, type LedPinLabels, type LedProps, type ManualEditEvent, type ManualEditEventInput, type ManualEditsFile, type ManualEditsFileInput, type ManualPcbPlacement, type ManualPcbPlacementInput, type ManualSchematicPlacement, type ManualSchematicPlacementInput, type ManualTraceHint, type ManualTraceHintInput, type MosfetPinLabels, type MosfetProps, type NetAliasProps, type NetLabelProps, type NetProps, type NonSubcircuitGroupProps, type OvalPlatedHoleProps, type PanelProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbNoteDimensionProps, type PcbNoteDimensionPropsInput, type PcbNoteLineProps, type PcbNoteLinePropsInput, type PcbNotePathProps, type PcbNotePathPropsInput, type PcbNoteRectProps, type PcbNoteRectPropsInput, type PcbNoteTextProps, type PcbNoteTextPropsInput, type PcbPositionMode, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillHoleProps, type PillPlatedHoleProps, type PillSmtPadProps, type PillWithRectPadPlatedHoleProps, type PinAttributeMap, type PinCompatibleVariant, type PinHeaderProps, type PinLabelFromPinLabelMap, type PinLabelsProp, type PinSideDefinition, type PinVariant, type PinoutProps, type PlatedHoleProps, type PlatformConfig, type PolygonCutoutProps, type PolygonSmtPadProps, type PortHints, type PortProps, type PositionMode, type PotentiometerPinVariant, type PotentiometerProps, type PowerSourceProps, type ProjectConfig, type PushButtonProps, type RectCutoutProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedRectSmtPadProps, type SchematicArcProps, type SchematicBoxProps, type SchematicCellProps, type SchematicCircleProps, type SchematicLineProps, type SchematicOrientation, type SchematicPathProps, type SchematicPinArrangement, type SchematicPinArrangementWithPinCounts, type SchematicPinArrangementWithSides, type SchematicPinArrangementWithSizes, type SchematicPinLabel, type SchematicPinStyle, type SchematicPortArrangement, type SchematicPortArrangementWithPinCounts, type SchematicPortArrangementWithSides, type SchematicPortArrangementWithSizes, type SchematicRectProps, type SchematicRowProps, type SchematicTableProps, type SchematicTextProps, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SimpleRouteJson, type SmtPadProps, type SolderJumperProps, type SolderPasteProps, type SpiceEngine, type SpiceEngineSimulationResult, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type SymbolProp, type SymbolProps, type SymbolPropsInput, type TestpointConnections, type TestpointPinLabels, type TestpointProps, type TraceHintProps, type TraceProps, type TransistorPinLabels, type TransistorProps, type ViaProps, type VoltageProbeProps, type VoltageSourcePinLabels, type VoltageSourceProps, type WaveShape, analogSimulationProps, autorouterConfig, autorouterPreset, autorouterProp, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, border, breakoutPointProps, breakoutProps, bugProps, cadModelBase, cadModelGlb, cadModelGltf, cadModelJscad, cadModelObj, cadModelProp, cadModelStep, cadModelStl, cadModelWrl, cadassemblyProps, cadmodelProps, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleCutoutProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, connectorProps, constrainedLayoutProps, constraintProps, copperPourProps, courtyardOutlineProps, courtyardRectProps, crystalPins, crystalProps, cutoutProps, diodePins, diodeProps, direction, directionAlongEdge, distanceOrMultiplier, edit_component_location_event, edit_pcb_component_location_event, edit_pcb_group_location_event, edit_schematic_component_location_event, edit_schematic_group_location_event, edit_trace_hint_event, explicitPinSideDefinition, fabricationNoteDimensionProps, fabricationNotePathProps, fabricationNoteRectProps, fabricationNoteTextProps, footprintProp, footprintProps, fusePinLabels, fuseProps, groupProps, holeProps, inductorPins, inductorProps, jumperProps, layoutConfig, ledPins, ledProps, lrPins, lrPolarPins, manual_edit_event, manual_edits_file, manual_pcb_placement, manual_schematic_placement, manual_trace_hint, mosfetPins, mosfetProps, netAliasProps, netLabelProps, netProps, ninePointAnchor, panelProps, partsEngine, pcbKeepoutProps, pcbLayoutProps, pcbNoteDimensionProps, pcbNoteLineProps, pcbNotePathProps, pcbNoteRectProps, pcbNoteTextProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillSmtPadProps, pinAttributeMap, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, pinoutProps, platedHoleProps, platformConfig, point3, polygonCutoutProps, polygonSmtPadProps, portHints, portProps, portRef, potentiometerProps, powerSourceProps, projectConfig, pushButtonProps, rectCutoutProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resonatorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, schematicArcProps, schematicBoxProps, schematicCellProps, schematicCircleProps, schematicLineProps, schematicOrientation, schematicPathProps, schematicPinArrangement, schematicPinLabel, schematicPinStyle, schematicPortArrangement, schematicRectProps, schematicRowProps, schematicTableProps, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, solderjumperProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, symbolProp, symbolProps, testpointPins, testpointProps, traceHintProps, traceProps, transistorPins, transistorPinsLabels, transistorProps, viaProps, voltageProbeProps, voltageSourcePinLabels, voltageSourcePins, voltageSourceProps };
|
package/dist/index.js
CHANGED
|
@@ -1599,7 +1599,8 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
1599
1599
|
font: z69.enum(["tscircuit2024"]).optional(),
|
|
1600
1600
|
fontSize: length5.optional(),
|
|
1601
1601
|
color: z69.string().optional(),
|
|
1602
|
-
arrowSize: distance16.optional()
|
|
1602
|
+
arrowSize: distance16.optional(),
|
|
1603
|
+
units: z69.enum(["in", "mm"]).optional()
|
|
1603
1604
|
});
|
|
1604
1605
|
expectTypesMatch(true);
|
|
1605
1606
|
|
|
@@ -1628,7 +1629,12 @@ expectTypesMatch(true);
|
|
|
1628
1629
|
// lib/components/testpoint.ts
|
|
1629
1630
|
import { distance as distance19 } from "circuit-json";
|
|
1630
1631
|
import { z as z72 } from "zod";
|
|
1632
|
+
var testpointPins = ["pin1"];
|
|
1633
|
+
var testpointConnectionsProp = z72.object({
|
|
1634
|
+
pin1: connectionTarget
|
|
1635
|
+
}).strict();
|
|
1631
1636
|
var testpointProps = commonComponentProps.extend({
|
|
1637
|
+
connections: testpointConnectionsProp.optional(),
|
|
1632
1638
|
footprintVariant: z72.enum(["pad", "through_hole"]).optional(),
|
|
1633
1639
|
padShape: z72.enum(["rect", "circle"]).optional().default("circle"),
|
|
1634
1640
|
padDiameter: distance19.optional(),
|
|
@@ -2115,7 +2121,8 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
2115
2121
|
font: z103.enum(["tscircuit2024"]).optional(),
|
|
2116
2122
|
fontSize: length11.optional(),
|
|
2117
2123
|
color: z103.string().optional(),
|
|
2118
|
-
arrowSize: distance37.optional()
|
|
2124
|
+
arrowSize: distance37.optional(),
|
|
2125
|
+
units: z103.enum(["in", "mm"]).optional()
|
|
2119
2126
|
});
|
|
2120
2127
|
expectTypesMatch(
|
|
2121
2128
|
true
|
|
@@ -2362,6 +2369,7 @@ export {
|
|
|
2362
2369
|
switchProps,
|
|
2363
2370
|
symbolProp,
|
|
2364
2371
|
symbolProps,
|
|
2372
|
+
testpointPins,
|
|
2365
2373
|
testpointProps,
|
|
2366
2374
|
traceHintProps,
|
|
2367
2375
|
traceProps,
|