@tscircuit/props 0.0.326 → 0.0.328

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
@@ -550,8 +550,17 @@ export interface BaseGroupProps extends CommonLayoutProps, LayoutConfig {
550
550
  ### HoleProps `<hole />`
551
551
 
552
552
  ```ts
553
- export interface HoleProps extends Omit<PcbLayoutProps, "pcbRotation"> {
553
+ export type HoleProps = CircleHoleProps | PillHoleProps;
554
+ ```
555
+
556
+ [Source](https://github.com/tscircuit/props/blob/main/lib/components/hole.ts)
557
+
558
+ ### CircleHoleProps `<hole />`
559
+
560
+ ```ts
561
+ export interface CircleHoleProps extends PcbLayoutProps {
554
562
  name?: string;
563
+ shape?: "circle";
555
564
  diameter?: Distance;
556
565
  radius?: Distance;
557
566
  }
@@ -559,6 +568,19 @@ export interface HoleProps extends Omit<PcbLayoutProps, "pcbRotation"> {
559
568
 
560
569
  [Source](https://github.com/tscircuit/props/blob/main/lib/components/hole.ts)
561
570
 
571
+ ### PillHoleProps `<hole />`
572
+
573
+ ```ts
574
+ export interface PillHoleProps extends PcbLayoutProps {
575
+ name?: string;
576
+ shape: "pill";
577
+ width: Distance;
578
+ height: Distance;
579
+ }
580
+ ```
581
+
582
+ [Source](https://github.com/tscircuit/props/blob/main/lib/components/hole.ts)
583
+
562
584
  ### InductorProps `<inductor />`
563
585
 
564
586
  ```ts
package/dist/index.d.ts CHANGED
@@ -22333,7 +22333,7 @@ interface CirclePlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "la
22333
22333
  outerDiameter: number | string;
22334
22334
  portHints?: PortHints;
22335
22335
  }
22336
- interface OvalPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
22336
+ interface OvalPlatedHoleProps extends Omit<PcbLayoutProps, "layer"> {
22337
22337
  name?: string;
22338
22338
  connectsTo?: string | string[];
22339
22339
  shape: "oval";
@@ -22476,7 +22476,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
22476
22476
  pcbMarginY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
22477
22477
  pcbRelative: z.ZodOptional<z.ZodBoolean>;
22478
22478
  relative: z.ZodOptional<z.ZodBoolean>;
22479
- }, "pcbRotation" | "layer"> & {
22479
+ }, "layer"> & {
22480
22480
  name: z.ZodOptional<z.ZodString>;
22481
22481
  connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
22482
22482
  shape: z.ZodLiteral<"oval">;
@@ -22493,6 +22493,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
22493
22493
  outerHeight: number;
22494
22494
  pcbX?: number | undefined;
22495
22495
  pcbY?: number | undefined;
22496
+ pcbRotation?: number | undefined;
22496
22497
  pcbPositionAnchor?: string | undefined;
22497
22498
  pcbMarginTop?: number | undefined;
22498
22499
  pcbMarginRight?: number | undefined;
@@ -22517,6 +22518,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
22517
22518
  holeHeight: string | number;
22518
22519
  pcbX?: string | number | undefined;
22519
22520
  pcbY?: string | number | undefined;
22521
+ pcbRotation?: string | number | undefined;
22520
22522
  pcbPositionAnchor?: string | undefined;
22521
22523
  pcbMarginTop?: string | number | undefined;
22522
22524
  pcbMarginRight?: string | number | undefined;
@@ -22797,6 +22799,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
22797
22799
  outerHeight: number;
22798
22800
  pcbX?: number | undefined;
22799
22801
  pcbY?: number | undefined;
22802
+ pcbRotation?: number | undefined;
22800
22803
  pcbPositionAnchor?: string | undefined;
22801
22804
  pcbMarginTop?: number | undefined;
22802
22805
  pcbMarginRight?: number | undefined;
@@ -22909,6 +22912,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
22909
22912
  holeHeight: string | number;
22910
22913
  pcbX?: string | number | undefined;
22911
22914
  pcbY?: string | number | undefined;
22915
+ pcbRotation?: string | number | undefined;
22912
22916
  pcbPositionAnchor?: string | undefined;
22913
22917
  pcbMarginTop?: string | number | undefined;
22914
22918
  pcbMarginRight?: string | number | undefined;
@@ -30935,12 +30939,20 @@ declare const solderPasteProps: z.ZodUnion<[z.ZodObject<Omit<{
30935
30939
  }>]>;
30936
30940
  type InferredSolderPasteProps = z.input<typeof solderPasteProps>;
30937
30941
 
30938
- interface HoleProps extends Omit<PcbLayoutProps, "pcbRotation"> {
30942
+ interface CircleHoleProps extends PcbLayoutProps {
30939
30943
  name?: string;
30944
+ shape?: "circle";
30940
30945
  diameter?: Distance;
30941
30946
  radius?: Distance;
30942
30947
  }
30943
- declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
30948
+ interface PillHoleProps extends PcbLayoutProps {
30949
+ name?: string;
30950
+ shape: "pill";
30951
+ width: Distance;
30952
+ height: Distance;
30953
+ }
30954
+ type HoleProps = CircleHoleProps | PillHoleProps;
30955
+ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
30944
30956
  pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
30945
30957
  pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
30946
30958
  pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -30962,13 +30974,15 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
30962
30974
  pcbMarginY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
30963
30975
  pcbRelative: z.ZodOptional<z.ZodBoolean>;
30964
30976
  relative: z.ZodOptional<z.ZodBoolean>;
30965
- }, "pcbRotation"> & {
30977
+ } & {
30966
30978
  name: z.ZodOptional<z.ZodString>;
30979
+ shape: z.ZodOptional<z.ZodLiteral<"circle">>;
30967
30980
  diameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
30968
30981
  radius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
30969
30982
  }, "strip", z.ZodTypeAny, {
30970
30983
  pcbX?: number | undefined;
30971
30984
  pcbY?: number | undefined;
30985
+ pcbRotation?: number | undefined;
30972
30986
  pcbPositionAnchor?: string | undefined;
30973
30987
  layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
30974
30988
  pcbMarginTop?: number | undefined;
@@ -30980,11 +30994,13 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
30980
30994
  pcbRelative?: boolean | undefined;
30981
30995
  relative?: boolean | undefined;
30982
30996
  name?: string | undefined;
30997
+ shape?: "circle" | undefined;
30983
30998
  radius?: number | undefined;
30984
30999
  diameter?: number | undefined;
30985
31000
  }, {
30986
31001
  pcbX?: string | number | undefined;
30987
31002
  pcbY?: string | number | undefined;
31003
+ pcbRotation?: string | number | undefined;
30988
31004
  pcbPositionAnchor?: string | undefined;
30989
31005
  layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
30990
31006
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -30998,6 +31014,7 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
30998
31014
  pcbRelative?: boolean | undefined;
30999
31015
  relative?: boolean | undefined;
31000
31016
  name?: string | undefined;
31017
+ shape?: "circle" | undefined;
31001
31018
  radius?: string | number | undefined;
31002
31019
  diameter?: string | number | undefined;
31003
31020
  }>, {
@@ -31005,6 +31022,7 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
31005
31022
  radius: number;
31006
31023
  pcbX?: number | undefined;
31007
31024
  pcbY?: number | undefined;
31025
+ pcbRotation?: number | undefined;
31008
31026
  pcbPositionAnchor?: string | undefined;
31009
31027
  layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
31010
31028
  pcbMarginTop?: number | undefined;
@@ -31016,9 +31034,11 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
31016
31034
  pcbRelative?: boolean | undefined;
31017
31035
  relative?: boolean | undefined;
31018
31036
  name?: string | undefined;
31037
+ shape?: "circle" | undefined;
31019
31038
  }, {
31020
31039
  pcbX?: string | number | undefined;
31021
31040
  pcbY?: string | number | undefined;
31041
+ pcbRotation?: string | number | undefined;
31022
31042
  pcbPositionAnchor?: string | undefined;
31023
31043
  layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
31024
31044
  name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
@@ -31032,9 +31052,75 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
31032
31052
  pcbRelative?: boolean | undefined;
31033
31053
  relative?: boolean | undefined;
31034
31054
  name?: string | undefined;
31055
+ shape?: "circle" | undefined;
31035
31056
  radius?: string | number | undefined;
31036
31057
  diameter?: string | number | undefined;
31037
- }>;
31058
+ }>, z.ZodObject<{
31059
+ pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31060
+ pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31061
+ pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31062
+ pcbPositionAnchor: z.ZodOptional<z.ZodString>;
31063
+ layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
31064
+ name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
31065
+ }, "strip", z.ZodTypeAny, {
31066
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
31067
+ }, {
31068
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
31069
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
31070
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
31071
+ }>>;
31072
+ pcbMarginTop: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31073
+ pcbMarginRight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31074
+ pcbMarginBottom: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31075
+ pcbMarginLeft: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31076
+ pcbMarginX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31077
+ pcbMarginY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
31078
+ pcbRelative: z.ZodOptional<z.ZodBoolean>;
31079
+ relative: z.ZodOptional<z.ZodBoolean>;
31080
+ } & {
31081
+ name: z.ZodOptional<z.ZodString>;
31082
+ shape: z.ZodLiteral<"pill">;
31083
+ width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
31084
+ height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
31085
+ }, "strip", z.ZodTypeAny, {
31086
+ shape: "pill";
31087
+ width: number;
31088
+ height: number;
31089
+ pcbX?: number | undefined;
31090
+ pcbY?: number | undefined;
31091
+ pcbRotation?: number | undefined;
31092
+ pcbPositionAnchor?: string | undefined;
31093
+ layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
31094
+ pcbMarginTop?: number | undefined;
31095
+ pcbMarginRight?: number | undefined;
31096
+ pcbMarginBottom?: number | undefined;
31097
+ pcbMarginLeft?: number | undefined;
31098
+ pcbMarginX?: number | undefined;
31099
+ pcbMarginY?: number | undefined;
31100
+ pcbRelative?: boolean | undefined;
31101
+ relative?: boolean | undefined;
31102
+ name?: string | undefined;
31103
+ }, {
31104
+ shape: "pill";
31105
+ width: string | number;
31106
+ height: string | number;
31107
+ pcbX?: string | number | undefined;
31108
+ pcbY?: string | number | undefined;
31109
+ pcbRotation?: string | number | undefined;
31110
+ pcbPositionAnchor?: string | undefined;
31111
+ layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
31112
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
31113
+ } | undefined;
31114
+ pcbMarginTop?: string | number | undefined;
31115
+ pcbMarginRight?: string | number | undefined;
31116
+ pcbMarginBottom?: string | number | undefined;
31117
+ pcbMarginLeft?: string | number | undefined;
31118
+ pcbMarginX?: string | number | undefined;
31119
+ pcbMarginY?: string | number | undefined;
31120
+ pcbRelative?: boolean | undefined;
31121
+ relative?: boolean | undefined;
31122
+ name?: string | undefined;
31123
+ }>]>;
31038
31124
  type InferredHoleProps = z.input<typeof holeProps>;
31039
31125
 
31040
31126
  declare const portRef: z.ZodUnion<[z.ZodString, z.ZodType<{
@@ -48274,4 +48360,4 @@ interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBas
48274
48360
  }
48275
48361
  declare const projectConfig: z.ZodType<ProjectConfig>;
48276
48362
 
48277
- export { type AutocompleteString, type AutorouterConfig, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BasicFootprint, type BatteryPinLabels, type BatteryProps, 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 CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConnectorProps, type ConstrainedLayoutProps, type ConstraintProps, type CopperPourProps, type CopperPourPropsInput, 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 FabricationNotePathProps, type FabricationNoteTextProps, 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 PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, 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 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 SchematicBoxProps, type SchematicCellProps, 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 SchematicRowProps, type SchematicTableProps, type SchematicTextProps, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SmtPadProps, type SolderJumperProps, type SolderPasteProps, 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 VoltageSourcePinLabels, type VoltageSourceProps, type WaveShape, autorouterConfig, 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, 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, fabricationNotePathProps, 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, partsEngine, pcbKeepoutProps, pcbLayoutProps, 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, schematicBoxProps, schematicCellProps, schematicLineProps, schematicOrientation, schematicPathProps, schematicPinArrangement, schematicPinLabel, schematicPinStyle, schematicPortArrangement, 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, voltageSourcePinLabels, voltageSourcePins, voltageSourceProps };
48363
+ export { type AutocompleteString, type AutorouterConfig, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BasicFootprint, type BatteryPinLabels, type BatteryProps, 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 CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConnectorProps, type ConstrainedLayoutProps, type ConstraintProps, type CopperPourProps, type CopperPourPropsInput, 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 FabricationNotePathProps, type FabricationNoteTextProps, 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 PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, 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 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 SchematicBoxProps, type SchematicCellProps, 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 SchematicRowProps, type SchematicTableProps, type SchematicTextProps, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SmtPadProps, type SolderJumperProps, type SolderPasteProps, 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 VoltageSourcePinLabels, type VoltageSourceProps, type WaveShape, autorouterConfig, 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, 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, fabricationNotePathProps, 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, partsEngine, pcbKeepoutProps, pcbLayoutProps, 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, schematicBoxProps, schematicCellProps, schematicLineProps, schematicOrientation, schematicPathProps, schematicPinArrangement, schematicPinLabel, schematicPinStyle, schematicPortArrangement, 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, voltageSourcePinLabels, voltageSourcePins, voltageSourceProps };
package/dist/index.js CHANGED
@@ -751,7 +751,7 @@ var platedHoleProps = z34.discriminatedUnion("shape", [
751
751
  outerDiameter: distance11,
752
752
  portHints: portHints.optional()
753
753
  }),
754
- pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
754
+ pcbLayoutProps.omit({ layer: true }).extend({
755
755
  name: z34.string().optional(),
756
756
  connectsTo: z34.string().or(z34.array(z34.string())).optional(),
757
757
  shape: z34.literal("oval"),
@@ -1086,8 +1086,9 @@ expectTypesMatch(true);
1086
1086
 
1087
1087
  // lib/components/hole.ts
1088
1088
  import { z as z47 } from "zod";
1089
- var holeProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
1089
+ var circleHoleProps = pcbLayoutProps.extend({
1090
1090
  name: z47.string().optional(),
1091
+ shape: z47.literal("circle").optional(),
1091
1092
  diameter: distance.optional(),
1092
1093
  radius: distance.optional()
1093
1094
  }).transform((d) => ({
@@ -1095,6 +1096,13 @@ var holeProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
1095
1096
  diameter: d.diameter ?? 2 * d.radius,
1096
1097
  radius: d.radius ?? d.diameter / 2
1097
1098
  }));
1099
+ var pillHoleProps = pcbLayoutProps.extend({
1100
+ name: z47.string().optional(),
1101
+ shape: z47.literal("pill"),
1102
+ width: distance,
1103
+ height: distance
1104
+ });
1105
+ var holeProps = z47.union([circleHoleProps, pillHoleProps]);
1098
1106
  expectTypesMatch(true);
1099
1107
 
1100
1108
  // lib/components/trace.ts