@tscircuit/props 0.0.327 → 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 +23 -1
- package/dist/index.d.ts +87 -5
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/lib/components/hole.ts +22 -3
- package/package.json +1 -1
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
|
|
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
|
@@ -30939,12 +30939,20 @@ declare const solderPasteProps: z.ZodUnion<[z.ZodObject<Omit<{
|
|
|
30939
30939
|
}>]>;
|
|
30940
30940
|
type InferredSolderPasteProps = z.input<typeof solderPasteProps>;
|
|
30941
30941
|
|
|
30942
|
-
interface
|
|
30942
|
+
interface CircleHoleProps extends PcbLayoutProps {
|
|
30943
30943
|
name?: string;
|
|
30944
|
+
shape?: "circle";
|
|
30944
30945
|
diameter?: Distance;
|
|
30945
30946
|
radius?: Distance;
|
|
30946
30947
|
}
|
|
30947
|
-
|
|
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<{
|
|
30948
30956
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
30949
30957
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
30950
30958
|
pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -30966,13 +30974,15 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
|
|
|
30966
30974
|
pcbMarginY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
30967
30975
|
pcbRelative: z.ZodOptional<z.ZodBoolean>;
|
|
30968
30976
|
relative: z.ZodOptional<z.ZodBoolean>;
|
|
30969
|
-
}
|
|
30977
|
+
} & {
|
|
30970
30978
|
name: z.ZodOptional<z.ZodString>;
|
|
30979
|
+
shape: z.ZodOptional<z.ZodLiteral<"circle">>;
|
|
30971
30980
|
diameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
30972
30981
|
radius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
30973
30982
|
}, "strip", z.ZodTypeAny, {
|
|
30974
30983
|
pcbX?: number | undefined;
|
|
30975
30984
|
pcbY?: number | undefined;
|
|
30985
|
+
pcbRotation?: number | undefined;
|
|
30976
30986
|
pcbPositionAnchor?: string | undefined;
|
|
30977
30987
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
30978
30988
|
pcbMarginTop?: number | undefined;
|
|
@@ -30984,11 +30994,13 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
|
|
|
30984
30994
|
pcbRelative?: boolean | undefined;
|
|
30985
30995
|
relative?: boolean | undefined;
|
|
30986
30996
|
name?: string | undefined;
|
|
30997
|
+
shape?: "circle" | undefined;
|
|
30987
30998
|
radius?: number | undefined;
|
|
30988
30999
|
diameter?: number | undefined;
|
|
30989
31000
|
}, {
|
|
30990
31001
|
pcbX?: string | number | undefined;
|
|
30991
31002
|
pcbY?: string | number | undefined;
|
|
31003
|
+
pcbRotation?: string | number | undefined;
|
|
30992
31004
|
pcbPositionAnchor?: string | undefined;
|
|
30993
31005
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
30994
31006
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -31002,6 +31014,7 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
|
|
|
31002
31014
|
pcbRelative?: boolean | undefined;
|
|
31003
31015
|
relative?: boolean | undefined;
|
|
31004
31016
|
name?: string | undefined;
|
|
31017
|
+
shape?: "circle" | undefined;
|
|
31005
31018
|
radius?: string | number | undefined;
|
|
31006
31019
|
diameter?: string | number | undefined;
|
|
31007
31020
|
}>, {
|
|
@@ -31009,6 +31022,7 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
|
|
|
31009
31022
|
radius: number;
|
|
31010
31023
|
pcbX?: number | undefined;
|
|
31011
31024
|
pcbY?: number | undefined;
|
|
31025
|
+
pcbRotation?: number | undefined;
|
|
31012
31026
|
pcbPositionAnchor?: string | undefined;
|
|
31013
31027
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
31014
31028
|
pcbMarginTop?: number | undefined;
|
|
@@ -31020,9 +31034,11 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
|
|
|
31020
31034
|
pcbRelative?: boolean | undefined;
|
|
31021
31035
|
relative?: boolean | undefined;
|
|
31022
31036
|
name?: string | undefined;
|
|
31037
|
+
shape?: "circle" | undefined;
|
|
31023
31038
|
}, {
|
|
31024
31039
|
pcbX?: string | number | undefined;
|
|
31025
31040
|
pcbY?: string | number | undefined;
|
|
31041
|
+
pcbRotation?: string | number | undefined;
|
|
31026
31042
|
pcbPositionAnchor?: string | undefined;
|
|
31027
31043
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
31028
31044
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -31036,9 +31052,75 @@ declare const holeProps: z.ZodEffects<z.ZodObject<Omit<{
|
|
|
31036
31052
|
pcbRelative?: boolean | undefined;
|
|
31037
31053
|
relative?: boolean | undefined;
|
|
31038
31054
|
name?: string | undefined;
|
|
31055
|
+
shape?: "circle" | undefined;
|
|
31039
31056
|
radius?: string | number | undefined;
|
|
31040
31057
|
diameter?: string | number | undefined;
|
|
31041
|
-
}
|
|
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
|
+
}>]>;
|
|
31042
31124
|
type InferredHoleProps = z.input<typeof holeProps>;
|
|
31043
31125
|
|
|
31044
31126
|
declare const portRef: z.ZodUnion<[z.ZodString, z.ZodType<{
|
|
@@ -48278,4 +48360,4 @@ interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBas
|
|
|
48278
48360
|
}
|
|
48279
48361
|
declare const projectConfig: z.ZodType<ProjectConfig>;
|
|
48280
48362
|
|
|
48281
|
-
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
|
@@ -1086,8 +1086,9 @@ expectTypesMatch(true);
|
|
|
1086
1086
|
|
|
1087
1087
|
// lib/components/hole.ts
|
|
1088
1088
|
import { z as z47 } from "zod";
|
|
1089
|
-
var
|
|
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
|