@tscircuit/props 0.0.401 → 0.0.403

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
@@ -1625,6 +1625,7 @@ export interface PlatformConfig {
1625
1625
  footprintFileParserMap?: Record<string, FootprintFileParserEntry>;
1626
1626
 
1627
1627
  resolveProjectStaticFileImportUrl?: (path: string) => Promise<string>;
1628
+ nodeModulesResolver?: (modulePath: string) => Promise<string | null>;
1628
1629
  }
1629
1630
  ```
1630
1631
 
package/dist/index.d.ts CHANGED
@@ -25019,7 +25019,20 @@ interface PillWithRectPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotati
25019
25019
  holeOffsetX?: number | string;
25020
25020
  holeOffsetY?: number | string;
25021
25021
  }
25022
- type PlatedHoleProps = CirclePlatedHoleProps | OvalPlatedHoleProps | PillPlatedHoleProps | CircularHoleWithRectPlatedProps | PillWithRectPadPlatedHoleProps;
25022
+ interface HoleWithPolygonPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
25023
+ name?: string;
25024
+ connectsTo?: string | string[];
25025
+ shape: "hole_with_polygon_pad";
25026
+ holeShape: "circle" | "oval" | "pill" | "rotated_pill";
25027
+ holeDiameter?: number | string;
25028
+ holeWidth?: number | string;
25029
+ holeHeight?: number | string;
25030
+ padOutline: Point[];
25031
+ holeOffsetX: number | string;
25032
+ holeOffsetY: number | string;
25033
+ portHints?: PortHints;
25034
+ }
25035
+ type PlatedHoleProps = CirclePlatedHoleProps | OvalPlatedHoleProps | PillPlatedHoleProps | CircularHoleWithRectPlatedProps | PillWithRectPadPlatedHoleProps | HoleWithPolygonPadPlatedHoleProps;
25023
25036
  declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
25024
25037
  pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25025
25038
  pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -25683,6 +25696,154 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
25683
25696
  portHints?: (string | number)[] | undefined;
25684
25697
  holeOffsetX?: string | number | undefined;
25685
25698
  holeOffsetY?: string | number | undefined;
25699
+ }>, z.ZodObject<Omit<{
25700
+ pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25701
+ pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25702
+ pcbOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25703
+ pcbOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25704
+ pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25705
+ pcbPositionAnchor: z.ZodOptional<z.ZodString>;
25706
+ pcbPositionMode: z.ZodOptional<z.ZodEnum<["relative_to_group_anchor", "auto", "relative_to_board_anchor", "relative_to_component_anchor"]>>;
25707
+ layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
25708
+ name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
25709
+ }, "strip", z.ZodTypeAny, {
25710
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
25711
+ }, {
25712
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
25713
+ }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
25714
+ name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
25715
+ }>>;
25716
+ pcbMarginTop: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25717
+ pcbMarginRight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25718
+ pcbMarginBottom: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25719
+ pcbMarginLeft: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25720
+ pcbMarginX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25721
+ pcbMarginY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25722
+ pcbStyle: z.ZodOptional<z.ZodObject<{
25723
+ silkscreenFontSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25724
+ silkscreenTextPosition: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["centered", "outside", "none"]>, z.ZodObject<{
25725
+ offsetX: z.ZodNumber;
25726
+ offsetY: z.ZodNumber;
25727
+ }, "strip", z.ZodTypeAny, {
25728
+ offsetX: number;
25729
+ offsetY: number;
25730
+ }, {
25731
+ offsetX: number;
25732
+ offsetY: number;
25733
+ }>]>>;
25734
+ silkscreenTextVisibility: z.ZodOptional<z.ZodEnum<["hidden", "visible", "inherit"]>>;
25735
+ }, "strip", z.ZodTypeAny, {
25736
+ silkscreenFontSize?: number | undefined;
25737
+ silkscreenTextPosition?: "centered" | "outside" | "none" | {
25738
+ offsetX: number;
25739
+ offsetY: number;
25740
+ } | undefined;
25741
+ silkscreenTextVisibility?: "hidden" | "visible" | "inherit" | undefined;
25742
+ }, {
25743
+ silkscreenFontSize?: string | number | undefined;
25744
+ silkscreenTextPosition?: "centered" | "outside" | "none" | {
25745
+ offsetX: number;
25746
+ offsetY: number;
25747
+ } | undefined;
25748
+ silkscreenTextVisibility?: "hidden" | "visible" | "inherit" | undefined;
25749
+ }>>;
25750
+ pcbRelative: z.ZodOptional<z.ZodBoolean>;
25751
+ relative: z.ZodOptional<z.ZodBoolean>;
25752
+ }, "pcbRotation" | "layer"> & {
25753
+ name: z.ZodOptional<z.ZodString>;
25754
+ connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
25755
+ shape: z.ZodLiteral<"hole_with_polygon_pad">;
25756
+ holeShape: z.ZodEnum<["circle", "oval", "pill", "rotated_pill"]>;
25757
+ holeDiameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25758
+ holeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25759
+ holeHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
25760
+ padOutline: z.ZodArray<z.ZodObject<{
25761
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
25762
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
25763
+ }, "strip", z.ZodTypeAny, {
25764
+ x: number;
25765
+ y: number;
25766
+ }, {
25767
+ x: string | number;
25768
+ y: string | number;
25769
+ }>, "many">;
25770
+ holeOffsetX: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
25771
+ holeOffsetY: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
25772
+ portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
25773
+ }, "strip", z.ZodTypeAny, {
25774
+ shape: "hole_with_polygon_pad";
25775
+ holeOffsetX: number;
25776
+ holeOffsetY: number;
25777
+ holeShape: "circle" | "oval" | "pill" | "rotated_pill";
25778
+ padOutline: {
25779
+ x: number;
25780
+ y: number;
25781
+ }[];
25782
+ pcbX?: number | undefined;
25783
+ pcbY?: number | undefined;
25784
+ pcbOffsetX?: number | undefined;
25785
+ pcbOffsetY?: number | undefined;
25786
+ pcbPositionAnchor?: string | undefined;
25787
+ pcbPositionMode?: "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor" | undefined;
25788
+ pcbMarginTop?: number | undefined;
25789
+ pcbMarginRight?: number | undefined;
25790
+ pcbMarginBottom?: number | undefined;
25791
+ pcbMarginLeft?: number | undefined;
25792
+ pcbMarginX?: number | undefined;
25793
+ pcbMarginY?: number | undefined;
25794
+ pcbStyle?: {
25795
+ silkscreenFontSize?: number | undefined;
25796
+ silkscreenTextPosition?: "centered" | "outside" | "none" | {
25797
+ offsetX: number;
25798
+ offsetY: number;
25799
+ } | undefined;
25800
+ silkscreenTextVisibility?: "hidden" | "visible" | "inherit" | undefined;
25801
+ } | undefined;
25802
+ pcbRelative?: boolean | undefined;
25803
+ relative?: boolean | undefined;
25804
+ name?: string | undefined;
25805
+ connectsTo?: string | string[] | undefined;
25806
+ holeDiameter?: number | undefined;
25807
+ portHints?: (string | number)[] | undefined;
25808
+ holeWidth?: number | undefined;
25809
+ holeHeight?: number | undefined;
25810
+ }, {
25811
+ shape: "hole_with_polygon_pad";
25812
+ holeOffsetX: string | number;
25813
+ holeOffsetY: string | number;
25814
+ holeShape: "circle" | "oval" | "pill" | "rotated_pill";
25815
+ padOutline: {
25816
+ x: string | number;
25817
+ y: string | number;
25818
+ }[];
25819
+ pcbX?: string | number | undefined;
25820
+ pcbY?: string | number | undefined;
25821
+ pcbOffsetX?: string | number | undefined;
25822
+ pcbOffsetY?: string | number | undefined;
25823
+ pcbPositionAnchor?: string | undefined;
25824
+ pcbPositionMode?: "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor" | undefined;
25825
+ pcbMarginTop?: string | number | undefined;
25826
+ pcbMarginRight?: string | number | undefined;
25827
+ pcbMarginBottom?: string | number | undefined;
25828
+ pcbMarginLeft?: string | number | undefined;
25829
+ pcbMarginX?: string | number | undefined;
25830
+ pcbMarginY?: string | number | undefined;
25831
+ pcbStyle?: {
25832
+ silkscreenFontSize?: string | number | undefined;
25833
+ silkscreenTextPosition?: "centered" | "outside" | "none" | {
25834
+ offsetX: number;
25835
+ offsetY: number;
25836
+ } | undefined;
25837
+ silkscreenTextVisibility?: "hidden" | "visible" | "inherit" | undefined;
25838
+ } | undefined;
25839
+ pcbRelative?: boolean | undefined;
25840
+ relative?: boolean | undefined;
25841
+ name?: string | undefined;
25842
+ connectsTo?: string | string[] | undefined;
25843
+ holeDiameter?: string | number | undefined;
25844
+ portHints?: (string | number)[] | undefined;
25845
+ holeWidth?: string | number | undefined;
25846
+ holeHeight?: string | number | undefined;
25686
25847
  }>]>, {
25687
25848
  shape: "circle";
25688
25849
  holeDiameter: number;
@@ -25853,6 +26014,43 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
25853
26014
  portHints?: (string | number)[] | undefined;
25854
26015
  holeOffsetX?: number | undefined;
25855
26016
  holeOffsetY?: number | undefined;
26017
+ } | {
26018
+ shape: "hole_with_polygon_pad";
26019
+ holeOffsetX: number;
26020
+ holeOffsetY: number;
26021
+ holeShape: "circle" | "oval" | "pill" | "rotated_pill";
26022
+ padOutline: {
26023
+ x: number;
26024
+ y: number;
26025
+ }[];
26026
+ pcbX?: number | undefined;
26027
+ pcbY?: number | undefined;
26028
+ pcbOffsetX?: number | undefined;
26029
+ pcbOffsetY?: number | undefined;
26030
+ pcbPositionAnchor?: string | undefined;
26031
+ pcbPositionMode?: "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor" | undefined;
26032
+ pcbMarginTop?: number | undefined;
26033
+ pcbMarginRight?: number | undefined;
26034
+ pcbMarginBottom?: number | undefined;
26035
+ pcbMarginLeft?: number | undefined;
26036
+ pcbMarginX?: number | undefined;
26037
+ pcbMarginY?: number | undefined;
26038
+ pcbStyle?: {
26039
+ silkscreenFontSize?: number | undefined;
26040
+ silkscreenTextPosition?: "centered" | "outside" | "none" | {
26041
+ offsetX: number;
26042
+ offsetY: number;
26043
+ } | undefined;
26044
+ silkscreenTextVisibility?: "hidden" | "visible" | "inherit" | undefined;
26045
+ } | undefined;
26046
+ pcbRelative?: boolean | undefined;
26047
+ relative?: boolean | undefined;
26048
+ name?: string | undefined;
26049
+ connectsTo?: string | string[] | undefined;
26050
+ holeDiameter?: number | undefined;
26051
+ portHints?: (string | number)[] | undefined;
26052
+ holeWidth?: number | undefined;
26053
+ holeHeight?: number | undefined;
25856
26054
  }, {
25857
26055
  shape: "circle";
25858
26056
  holeDiameter: string | number;
@@ -26023,6 +26221,43 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
26023
26221
  portHints?: (string | number)[] | undefined;
26024
26222
  holeOffsetX?: string | number | undefined;
26025
26223
  holeOffsetY?: string | number | undefined;
26224
+ } | {
26225
+ shape: "hole_with_polygon_pad";
26226
+ holeOffsetX: string | number;
26227
+ holeOffsetY: string | number;
26228
+ holeShape: "circle" | "oval" | "pill" | "rotated_pill";
26229
+ padOutline: {
26230
+ x: string | number;
26231
+ y: string | number;
26232
+ }[];
26233
+ pcbX?: string | number | undefined;
26234
+ pcbY?: string | number | undefined;
26235
+ pcbOffsetX?: string | number | undefined;
26236
+ pcbOffsetY?: string | number | undefined;
26237
+ pcbPositionAnchor?: string | undefined;
26238
+ pcbPositionMode?: "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor" | undefined;
26239
+ pcbMarginTop?: string | number | undefined;
26240
+ pcbMarginRight?: string | number | undefined;
26241
+ pcbMarginBottom?: string | number | undefined;
26242
+ pcbMarginLeft?: string | number | undefined;
26243
+ pcbMarginX?: string | number | undefined;
26244
+ pcbMarginY?: string | number | undefined;
26245
+ pcbStyle?: {
26246
+ silkscreenFontSize?: string | number | undefined;
26247
+ silkscreenTextPosition?: "centered" | "outside" | "none" | {
26248
+ offsetX: number;
26249
+ offsetY: number;
26250
+ } | undefined;
26251
+ silkscreenTextVisibility?: "hidden" | "visible" | "inherit" | undefined;
26252
+ } | undefined;
26253
+ pcbRelative?: boolean | undefined;
26254
+ relative?: boolean | undefined;
26255
+ name?: string | undefined;
26256
+ connectsTo?: string | string[] | undefined;
26257
+ holeDiameter?: string | number | undefined;
26258
+ portHints?: (string | number)[] | undefined;
26259
+ holeWidth?: string | number | undefined;
26260
+ holeHeight?: string | number | undefined;
26026
26261
  }>;
26027
26262
 
26028
26263
  declare const resistorPinLabels: readonly ["pin1", "pin2", "pos", "neg"];
@@ -58095,7 +58330,7 @@ interface PlatformConfig {
58095
58330
  }) => Promise<FootprintLibraryResult>)>>;
58096
58331
  footprintFileParserMap?: Record<string, FootprintFileParserEntry>;
58097
58332
  resolveProjectStaticFileImportUrl?: (path: string) => Promise<string>;
58098
- nodeModulesResolver?: (modulePath: string) => Promise<string>;
58333
+ nodeModulesResolver?: (modulePath: string) => Promise<string | null>;
58099
58334
  }
58100
58335
  declare const platformConfig: z.ZodType<PlatformConfig>;
58101
58336
 
@@ -58103,4 +58338,4 @@ interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBas
58103
58338
  }
58104
58339
  declare const projectConfig: z.ZodType<ProjectConfig>;
58105
58340
 
58106
- 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 CopperTextProps, 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 PcbStyle, 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 RectHoleProps, 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, copperTextProps, 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, pcbStyle, 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 };
58341
+ 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 CopperTextProps, 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 HoleWithPolygonPadPlatedHoleProps, 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 PcbStyle, 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 RectHoleProps, 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, copperTextProps, 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, pcbStyle, 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
@@ -898,6 +898,19 @@ var platedHoleProps = z37.discriminatedUnion("shape", [
898
898
  portHints: portHints.optional(),
899
899
  holeOffsetX: distance12.optional(),
900
900
  holeOffsetY: distance12.optional()
901
+ }),
902
+ pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
903
+ name: z37.string().optional(),
904
+ connectsTo: z37.string().or(z37.array(z37.string())).optional(),
905
+ shape: z37.literal("hole_with_polygon_pad"),
906
+ holeShape: z37.enum(["circle", "oval", "pill", "rotated_pill"]),
907
+ holeDiameter: distance12.optional(),
908
+ holeWidth: distance12.optional(),
909
+ holeHeight: distance12.optional(),
910
+ padOutline: z37.array(point),
911
+ holeOffsetX: distance12,
912
+ holeOffsetY: distance12,
913
+ portHints: portHints.optional()
901
914
  })
902
915
  ]).refine((a) => {
903
916
  if ("innerWidth" in a && a.innerWidth !== void 0) {