@tscircuit/props 0.0.330 → 0.0.331

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -47358,6 +47358,51 @@ declare const voltageSourceProps: z.ZodObject<{
47358
47358
  }>;
47359
47359
  declare const voltageSourcePins: readonly ["pin1", "left", "anode", "pos", "pin2", "right", "cathode", "neg"];
47360
47360
 
47361
+ declare const schematicArcProps: z.ZodObject<{
47362
+ center: z.ZodObject<{
47363
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47364
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47365
+ }, "strip", z.ZodTypeAny, {
47366
+ x: number;
47367
+ y: number;
47368
+ }, {
47369
+ x: string | number;
47370
+ y: string | number;
47371
+ }>;
47372
+ radius: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47373
+ startAngleDegrees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47374
+ endAngleDegrees: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47375
+ direction: z.ZodDefault<z.ZodEnum<["clockwise", "counterclockwise"]>>;
47376
+ strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
47377
+ color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
47378
+ isDashed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
47379
+ }, "strip", z.ZodTypeAny, {
47380
+ direction: "clockwise" | "counterclockwise";
47381
+ center: {
47382
+ x: number;
47383
+ y: number;
47384
+ };
47385
+ color: string;
47386
+ radius: number;
47387
+ startAngleDegrees: number;
47388
+ endAngleDegrees: number;
47389
+ isDashed: boolean;
47390
+ strokeWidth?: number | undefined;
47391
+ }, {
47392
+ center: {
47393
+ x: string | number;
47394
+ y: string | number;
47395
+ };
47396
+ radius: string | number;
47397
+ startAngleDegrees: string | number;
47398
+ endAngleDegrees: string | number;
47399
+ direction?: "clockwise" | "counterclockwise" | undefined;
47400
+ strokeWidth?: string | number | undefined;
47401
+ color?: string | undefined;
47402
+ isDashed?: boolean | undefined;
47403
+ }>;
47404
+ type SchematicArcProps = z.input<typeof schematicArcProps>;
47405
+
47361
47406
  declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
47362
47407
  schX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
47363
47408
  schY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
@@ -47480,21 +47525,120 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
47480
47525
  }>;
47481
47526
  type SchematicBoxProps = z.input<typeof schematicBoxProps>;
47482
47527
 
47528
+ declare const schematicCircleProps: z.ZodObject<{
47529
+ center: z.ZodObject<{
47530
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47531
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47532
+ }, "strip", z.ZodTypeAny, {
47533
+ x: number;
47534
+ y: number;
47535
+ }, {
47536
+ x: string | number;
47537
+ y: string | number;
47538
+ }>;
47539
+ radius: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47540
+ strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
47541
+ color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
47542
+ isFilled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
47543
+ fillColor: z.ZodOptional<z.ZodString>;
47544
+ isDashed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
47545
+ }, "strip", z.ZodTypeAny, {
47546
+ center: {
47547
+ x: number;
47548
+ y: number;
47549
+ };
47550
+ color: string;
47551
+ radius: number;
47552
+ isDashed: boolean;
47553
+ isFilled: boolean;
47554
+ strokeWidth?: number | undefined;
47555
+ fillColor?: string | undefined;
47556
+ }, {
47557
+ center: {
47558
+ x: string | number;
47559
+ y: string | number;
47560
+ };
47561
+ radius: string | number;
47562
+ strokeWidth?: string | number | undefined;
47563
+ color?: string | undefined;
47564
+ isDashed?: boolean | undefined;
47565
+ isFilled?: boolean | undefined;
47566
+ fillColor?: string | undefined;
47567
+ }>;
47568
+ type SchematicCircleProps = z.input<typeof schematicCircleProps>;
47569
+
47570
+ declare const schematicRectProps: z.ZodObject<{
47571
+ center: z.ZodObject<{
47572
+ x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47573
+ y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47574
+ }, "strip", z.ZodTypeAny, {
47575
+ x: number;
47576
+ y: number;
47577
+ }, {
47578
+ x: string | number;
47579
+ y: string | number;
47580
+ }>;
47581
+ width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47582
+ height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47583
+ rotation: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
47584
+ strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
47585
+ color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
47586
+ isFilled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
47587
+ fillColor: z.ZodOptional<z.ZodString>;
47588
+ isDashed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
47589
+ }, "strip", z.ZodTypeAny, {
47590
+ center: {
47591
+ x: number;
47592
+ y: number;
47593
+ };
47594
+ width: number;
47595
+ height: number;
47596
+ color: string;
47597
+ isDashed: boolean;
47598
+ isFilled: boolean;
47599
+ rotation: number;
47600
+ strokeWidth?: number | undefined;
47601
+ fillColor?: string | undefined;
47602
+ }, {
47603
+ center: {
47604
+ x: string | number;
47605
+ y: string | number;
47606
+ };
47607
+ width: string | number;
47608
+ height: string | number;
47609
+ strokeWidth?: string | number | undefined;
47610
+ color?: string | undefined;
47611
+ isDashed?: boolean | undefined;
47612
+ isFilled?: boolean | undefined;
47613
+ fillColor?: string | undefined;
47614
+ rotation?: string | number | undefined;
47615
+ }>;
47616
+ type SchematicRectProps = z.input<typeof schematicRectProps>;
47617
+
47483
47618
  declare const schematicLineProps: z.ZodObject<{
47484
47619
  x1: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47485
47620
  y1: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47486
47621
  x2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47487
47622
  y2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
47623
+ strokeWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
47624
+ color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
47625
+ isDashed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
47488
47626
  }, "strip", z.ZodTypeAny, {
47627
+ color: string;
47628
+ isDashed: boolean;
47489
47629
  x1: number;
47490
47630
  y1: number;
47491
47631
  x2: number;
47492
47632
  y2: number;
47633
+ strokeWidth?: number | undefined;
47493
47634
  }, {
47494
47635
  x1: string | number;
47495
47636
  y1: string | number;
47496
47637
  x2: string | number;
47497
47638
  y2: string | number;
47639
+ strokeWidth?: string | number | undefined;
47640
+ color?: string | undefined;
47641
+ isDashed?: boolean | undefined;
47498
47642
  }>;
47499
47643
  type SchematicLineProps = z.input<typeof schematicLineProps>;
47500
47644
 
@@ -48383,4 +48527,4 @@ interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBas
48383
48527
  }
48384
48528
  declare const projectConfig: z.ZodType<ProjectConfig>;
48385
48529
 
48386
- 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 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 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 };
48530
+ 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 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 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 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 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, schematicArcProps, schematicBoxProps, schematicCellProps, schematicCircleProps, schematicLineProps, schematicOrientation, schematicPathProps, schematicPinArrangement, schematicPinLabel, schematicPinStyle, schematicPortArrangement, schematicRectProps, schematicRowProps, schematicTableProps, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, solderjumperProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, symbolProp, symbolProps, testpointProps, traceHintProps, traceProps, transistorPins, transistorPinsLabels, transistorProps, viaProps, voltageSourcePinLabels, voltageSourcePins, voltageSourceProps };
package/dist/index.js CHANGED
@@ -1605,26 +1605,40 @@ var voltageSourceProps = commonComponentProps.extend({
1605
1605
  var voltageSourcePins = lrPolarPins;
1606
1606
  expectTypesMatch(true);
1607
1607
 
1608
- // lib/components/schematic-box.ts
1609
- import { distance as distance19 } from "circuit-json";
1608
+ // lib/components/schematic-arc.ts
1609
+ import { distance as distance19, point as point5, rotation as rotation5 } from "circuit-json";
1610
1610
  import { z as z75 } from "zod";
1611
- var schematicBoxProps = z75.object({
1612
- schX: distance19.optional(),
1613
- schY: distance19.optional(),
1614
- width: distance19.optional(),
1615
- height: distance19.optional(),
1616
- overlay: z75.array(z75.string()).optional(),
1617
- padding: distance19.optional(),
1618
- paddingLeft: distance19.optional(),
1619
- paddingRight: distance19.optional(),
1620
- paddingTop: distance19.optional(),
1621
- paddingBottom: distance19.optional(),
1622
- title: z75.string().optional(),
1611
+ var schematicArcProps = z75.object({
1612
+ center: point5,
1613
+ radius: distance19,
1614
+ startAngleDegrees: rotation5,
1615
+ endAngleDegrees: rotation5,
1616
+ direction: z75.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
1617
+ strokeWidth: distance19.optional(),
1618
+ color: z75.string().optional().default("#000000"),
1619
+ isDashed: z75.boolean().optional().default(false)
1620
+ });
1621
+
1622
+ // lib/components/schematic-box.ts
1623
+ import { distance as distance20 } from "circuit-json";
1624
+ import { z as z76 } from "zod";
1625
+ var schematicBoxProps = z76.object({
1626
+ schX: distance20.optional(),
1627
+ schY: distance20.optional(),
1628
+ width: distance20.optional(),
1629
+ height: distance20.optional(),
1630
+ overlay: z76.array(z76.string()).optional(),
1631
+ padding: distance20.optional(),
1632
+ paddingLeft: distance20.optional(),
1633
+ paddingRight: distance20.optional(),
1634
+ paddingTop: distance20.optional(),
1635
+ paddingBottom: distance20.optional(),
1636
+ title: z76.string().optional(),
1623
1637
  titleAlignment: ninePointAnchor.default("top_left"),
1624
- titleColor: z75.string().optional(),
1625
- titleFontSize: distance19.optional(),
1626
- titleInside: z75.boolean().default(false),
1627
- strokeStyle: z75.enum(["solid", "dashed"]).default("solid")
1638
+ titleColor: z76.string().optional(),
1639
+ titleFontSize: distance20.optional(),
1640
+ titleInside: z76.boolean().default(false),
1641
+ strokeStyle: z76.enum(["solid", "dashed"]).default("solid")
1628
1642
  }).refine(
1629
1643
  (elm) => elm.width !== void 0 && elm.height !== void 0 || Array.isArray(elm.overlay) && elm.overlay.length > 0,
1630
1644
  {
@@ -1637,23 +1651,54 @@ var schematicBoxProps = z75.object({
1637
1651
  }
1638
1652
  );
1639
1653
 
1654
+ // lib/components/schematic-circle.ts
1655
+ import { distance as distance21, point as point6 } from "circuit-json";
1656
+ import { z as z77 } from "zod";
1657
+ var schematicCircleProps = z77.object({
1658
+ center: point6,
1659
+ radius: distance21,
1660
+ strokeWidth: distance21.optional(),
1661
+ color: z77.string().optional().default("#000000"),
1662
+ isFilled: z77.boolean().optional().default(false),
1663
+ fillColor: z77.string().optional(),
1664
+ isDashed: z77.boolean().optional().default(false)
1665
+ });
1666
+
1667
+ // lib/components/schematic-rect.ts
1668
+ import { distance as distance22, point as point7, rotation as rotation6 } from "circuit-json";
1669
+ import { z as z78 } from "zod";
1670
+ var schematicRectProps = z78.object({
1671
+ center: point7,
1672
+ width: distance22,
1673
+ height: distance22,
1674
+ rotation: rotation6.default(0),
1675
+ strokeWidth: distance22.optional(),
1676
+ color: z78.string().optional().default("#000000"),
1677
+ isFilled: z78.boolean().optional().default(false),
1678
+ fillColor: z78.string().optional(),
1679
+ isDashed: z78.boolean().optional().default(false)
1680
+ });
1681
+
1640
1682
  // lib/components/schematic-line.ts
1641
- import { distance as distance20 } from "circuit-json";
1642
- import { z as z76 } from "zod";
1643
- var schematicLineProps = z76.object({
1644
- x1: distance20,
1645
- y1: distance20,
1646
- x2: distance20,
1647
- y2: distance20
1683
+ import { distance as distance23 } from "circuit-json";
1684
+ import { z as z79 } from "zod";
1685
+ var schematicLineProps = z79.object({
1686
+ x1: distance23,
1687
+ y1: distance23,
1688
+ x2: distance23,
1689
+ y2: distance23,
1690
+ strokeWidth: distance23.optional(),
1691
+ color: z79.string().optional().default("#000000"),
1692
+ isDashed: z79.boolean().optional().default(false)
1648
1693
  });
1649
1694
 
1650
1695
  // lib/components/schematic-text.ts
1651
- import { distance as distance21, rotation as rotation5 } from "circuit-json";
1652
- import { z as z78 } from "zod";
1696
+ import { distance as distance24, rotation as rotation7 } from "circuit-json";
1697
+ import { z as z81 } from "zod";
1653
1698
 
1654
1699
  // lib/common/fivePointAnchor.ts
1655
- import { z as z77 } from "zod";
1656
- var fivePointAnchor = z77.enum([
1700
+ import { z as z80 } from "zod";
1701
+ var fivePointAnchor = z80.enum([
1657
1702
  "center",
1658
1703
  "left",
1659
1704
  "right",
@@ -1662,188 +1707,188 @@ var fivePointAnchor = z77.enum([
1662
1707
  ]);
1663
1708
 
1664
1709
  // lib/components/schematic-text.ts
1665
- var schematicTextProps = z78.object({
1666
- schX: distance21.optional(),
1667
- schY: distance21.optional(),
1668
- text: z78.string(),
1669
- fontSize: z78.number().default(1),
1670
- anchor: z78.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
1671
- color: z78.string().default("#000000"),
1672
- schRotation: rotation5.default(0)
1710
+ var schematicTextProps = z81.object({
1711
+ schX: distance24.optional(),
1712
+ schY: distance24.optional(),
1713
+ text: z81.string(),
1714
+ fontSize: z81.number().default(1),
1715
+ anchor: z81.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
1716
+ color: z81.string().default("#000000"),
1717
+ schRotation: rotation7.default(0)
1673
1718
  });
1674
1719
 
1675
1720
  // lib/components/schematic-path.ts
1676
- import { point as point5 } from "circuit-json";
1677
- import { z as z79 } from "zod";
1678
- var schematicPathProps = z79.object({
1679
- points: z79.array(point5),
1680
- isFilled: z79.boolean().optional().default(false),
1681
- fillColor: z79.enum(["red", "blue"]).optional()
1721
+ import { point as point8 } from "circuit-json";
1722
+ import { z as z82 } from "zod";
1723
+ var schematicPathProps = z82.object({
1724
+ points: z82.array(point8),
1725
+ isFilled: z82.boolean().optional().default(false),
1726
+ fillColor: z82.enum(["red", "blue"]).optional()
1682
1727
  });
1683
1728
 
1684
1729
  // lib/components/schematic-table.ts
1685
- import { distance as distance22 } from "circuit-json";
1686
- import { z as z80 } from "zod";
1687
- var schematicTableProps = z80.object({
1688
- schX: distance22.optional(),
1689
- schY: distance22.optional(),
1690
- children: z80.any().optional(),
1691
- cellPadding: distance22.optional(),
1692
- borderWidth: distance22.optional(),
1730
+ import { distance as distance25 } from "circuit-json";
1731
+ import { z as z83 } from "zod";
1732
+ var schematicTableProps = z83.object({
1733
+ schX: distance25.optional(),
1734
+ schY: distance25.optional(),
1735
+ children: z83.any().optional(),
1736
+ cellPadding: distance25.optional(),
1737
+ borderWidth: distance25.optional(),
1693
1738
  anchor: ninePointAnchor.optional(),
1694
- fontSize: distance22.optional()
1739
+ fontSize: distance25.optional()
1695
1740
  });
1696
1741
  expectTypesMatch(true);
1697
1742
 
1698
1743
  // lib/components/schematic-row.ts
1699
- import { distance as distance23 } from "circuit-json";
1700
- import { z as z81 } from "zod";
1701
- var schematicRowProps = z81.object({
1702
- children: z81.any().optional(),
1703
- height: distance23.optional()
1744
+ import { distance as distance26 } from "circuit-json";
1745
+ import { z as z84 } from "zod";
1746
+ var schematicRowProps = z84.object({
1747
+ children: z84.any().optional(),
1748
+ height: distance26.optional()
1704
1749
  });
1705
1750
  expectTypesMatch(true);
1706
1751
 
1707
1752
  // lib/components/schematic-cell.ts
1708
- import { distance as distance24 } from "circuit-json";
1709
- import { z as z82 } from "zod";
1710
- var schematicCellProps = z82.object({
1711
- children: z82.string().optional(),
1712
- horizontalAlign: z82.enum(["left", "center", "right"]).optional(),
1713
- verticalAlign: z82.enum(["top", "middle", "bottom"]).optional(),
1714
- fontSize: distance24.optional(),
1715
- rowSpan: z82.number().optional(),
1716
- colSpan: z82.number().optional(),
1717
- width: distance24.optional(),
1718
- text: z82.string().optional()
1753
+ import { distance as distance27 } from "circuit-json";
1754
+ import { z as z85 } from "zod";
1755
+ var schematicCellProps = z85.object({
1756
+ children: z85.string().optional(),
1757
+ horizontalAlign: z85.enum(["left", "center", "right"]).optional(),
1758
+ verticalAlign: z85.enum(["top", "middle", "bottom"]).optional(),
1759
+ fontSize: distance27.optional(),
1760
+ rowSpan: z85.number().optional(),
1761
+ colSpan: z85.number().optional(),
1762
+ width: distance27.optional(),
1763
+ text: z85.string().optional()
1719
1764
  });
1720
1765
  expectTypesMatch(true);
1721
1766
 
1722
1767
  // lib/components/silkscreen-text.ts
1723
1768
  import { layer_ref as layer_ref8, length as length5 } from "circuit-json";
1724
- import { z as z83 } from "zod";
1769
+ import { z as z86 } from "zod";
1725
1770
  var silkscreenTextProps = pcbLayoutProps.extend({
1726
- text: z83.string(),
1771
+ text: z86.string(),
1727
1772
  anchorAlignment: ninePointAnchor.default("center"),
1728
- font: z83.enum(["tscircuit2024"]).optional(),
1773
+ font: z86.enum(["tscircuit2024"]).optional(),
1729
1774
  fontSize: length5.optional(),
1730
1775
  /**
1731
1776
  * If true, text will knock out underlying silkscreen
1732
1777
  */
1733
- isKnockout: z83.boolean().optional(),
1778
+ isKnockout: z86.boolean().optional(),
1734
1779
  knockoutPadding: length5.optional(),
1735
1780
  knockoutPaddingLeft: length5.optional(),
1736
1781
  knockoutPaddingRight: length5.optional(),
1737
1782
  knockoutPaddingTop: length5.optional(),
1738
1783
  knockoutPaddingBottom: length5.optional(),
1739
- layers: z83.array(layer_ref8).optional()
1784
+ layers: z86.array(layer_ref8).optional()
1740
1785
  });
1741
1786
 
1742
1787
  // lib/components/silkscreen-path.ts
1743
1788
  import { length as length6, route_hint_point as route_hint_point5 } from "circuit-json";
1744
- import { z as z84 } from "zod";
1789
+ import { z as z87 } from "zod";
1745
1790
  var silkscreenPathProps = pcbLayoutProps.omit({ pcbX: true, pcbY: true, pcbRotation: true }).extend({
1746
- route: z84.array(route_hint_point5),
1791
+ route: z87.array(route_hint_point5),
1747
1792
  strokeWidth: length6.optional()
1748
1793
  });
1749
1794
 
1750
1795
  // lib/components/silkscreen-line.ts
1751
- import { distance as distance25 } from "circuit-json";
1796
+ import { distance as distance28 } from "circuit-json";
1752
1797
  var silkscreenLineProps = pcbLayoutProps.omit({ pcbX: true, pcbY: true, pcbRotation: true }).extend({
1753
- strokeWidth: distance25,
1754
- x1: distance25,
1755
- y1: distance25,
1756
- x2: distance25,
1757
- y2: distance25
1798
+ strokeWidth: distance28,
1799
+ x1: distance28,
1800
+ y1: distance28,
1801
+ x2: distance28,
1802
+ y2: distance28
1758
1803
  });
1759
1804
 
1760
1805
  // lib/components/silkscreen-rect.ts
1761
- import { distance as distance26 } from "circuit-json";
1762
- import { z as z85 } from "zod";
1806
+ import { distance as distance29 } from "circuit-json";
1807
+ import { z as z88 } from "zod";
1763
1808
  var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
1764
- filled: z85.boolean().default(true).optional(),
1765
- stroke: z85.enum(["dashed", "solid", "none"]).optional(),
1766
- strokeWidth: distance26.optional(),
1767
- width: distance26,
1768
- height: distance26
1809
+ filled: z88.boolean().default(true).optional(),
1810
+ stroke: z88.enum(["dashed", "solid", "none"]).optional(),
1811
+ strokeWidth: distance29.optional(),
1812
+ width: distance29,
1813
+ height: distance29
1769
1814
  });
1770
1815
 
1771
1816
  // lib/components/silkscreen-circle.ts
1772
- import { distance as distance27 } from "circuit-json";
1773
- import { z as z86 } from "zod";
1817
+ import { distance as distance30 } from "circuit-json";
1818
+ import { z as z89 } from "zod";
1774
1819
  var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
1775
- isFilled: z86.boolean().optional(),
1776
- isOutline: z86.boolean().optional(),
1777
- strokeWidth: distance27.optional(),
1778
- radius: distance27
1820
+ isFilled: z89.boolean().optional(),
1821
+ isOutline: z89.boolean().optional(),
1822
+ strokeWidth: distance30.optional(),
1823
+ radius: distance30
1779
1824
  });
1780
1825
 
1781
1826
  // lib/components/trace-hint.ts
1782
- import { distance as distance28, layer_ref as layer_ref9, route_hint_point as route_hint_point6 } from "circuit-json";
1783
- import { z as z87 } from "zod";
1784
- var routeHintPointProps = z87.object({
1785
- x: distance28,
1786
- y: distance28,
1787
- via: z87.boolean().optional(),
1827
+ import { distance as distance31, layer_ref as layer_ref9, route_hint_point as route_hint_point6 } from "circuit-json";
1828
+ import { z as z90 } from "zod";
1829
+ var routeHintPointProps = z90.object({
1830
+ x: distance31,
1831
+ y: distance31,
1832
+ via: z90.boolean().optional(),
1788
1833
  toLayer: layer_ref9.optional()
1789
1834
  });
1790
- var traceHintProps = z87.object({
1791
- for: z87.string().optional().describe(
1835
+ var traceHintProps = z90.object({
1836
+ for: z90.string().optional().describe(
1792
1837
  "Selector for the port you're targeting, not required if you're inside a trace"
1793
1838
  ),
1794
- order: z87.number().optional(),
1839
+ order: z90.number().optional(),
1795
1840
  offset: route_hint_point6.or(routeHintPointProps).optional(),
1796
- offsets: z87.array(route_hint_point6).or(z87.array(routeHintPointProps)).optional(),
1797
- traceWidth: z87.number().optional()
1841
+ offsets: z90.array(route_hint_point6).or(z90.array(routeHintPointProps)).optional(),
1842
+ traceWidth: z90.number().optional()
1798
1843
  });
1799
1844
 
1800
1845
  // lib/components/port.ts
1801
- import { z as z88 } from "zod";
1846
+ import { z as z91 } from "zod";
1802
1847
  var portProps = commonLayoutProps.extend({
1803
- name: z88.string(),
1804
- pinNumber: z88.number().optional(),
1805
- aliases: z88.array(z88.string()).optional(),
1848
+ name: z91.string(),
1849
+ pinNumber: z91.number().optional(),
1850
+ aliases: z91.array(z91.string()).optional(),
1806
1851
  direction
1807
1852
  });
1808
1853
 
1809
1854
  // lib/platformConfig.ts
1810
- import { z as z89 } from "zod";
1811
- var unvalidatedCircuitJson = z89.array(z89.any()).describe("Circuit JSON");
1812
- var footprintLibraryResult = z89.object({
1813
- footprintCircuitJson: z89.array(z89.any()),
1855
+ import { z as z92 } from "zod";
1856
+ var unvalidatedCircuitJson = z92.array(z92.any()).describe("Circuit JSON");
1857
+ var footprintLibraryResult = z92.object({
1858
+ footprintCircuitJson: z92.array(z92.any()),
1814
1859
  cadModel: cadModelProp.optional()
1815
1860
  });
1816
- var pathToCircuitJsonFn = z89.function().args(z89.string()).returns(z89.promise(footprintLibraryResult)).describe("A function that takes a path and returns Circuit JSON");
1817
- var footprintFileParserEntry = z89.object({
1818
- loadFromUrl: z89.function().args(z89.string()).returns(z89.promise(footprintLibraryResult)).describe(
1861
+ var pathToCircuitJsonFn = z92.function().args(z92.string()).returns(z92.promise(footprintLibraryResult)).describe("A function that takes a path and returns Circuit JSON");
1862
+ var footprintFileParserEntry = z92.object({
1863
+ loadFromUrl: z92.function().args(z92.string()).returns(z92.promise(footprintLibraryResult)).describe(
1819
1864
  "A function that takes a footprint file URL and returns Circuit JSON"
1820
1865
  )
1821
1866
  });
1822
- var platformConfig = z89.object({
1867
+ var platformConfig = z92.object({
1823
1868
  partsEngine: partsEngine.optional(),
1824
1869
  autorouter: autorouterProp.optional(),
1825
- registryApiUrl: z89.string().optional(),
1826
- cloudAutorouterUrl: z89.string().optional(),
1827
- projectName: z89.string().optional(),
1828
- projectBaseUrl: z89.string().optional(),
1829
- version: z89.string().optional(),
1830
- url: z89.string().optional(),
1831
- printBoardInformationToSilkscreen: z89.boolean().optional(),
1832
- localCacheEngine: z89.any().optional(),
1833
- pcbDisabled: z89.boolean().optional(),
1834
- schematicDisabled: z89.boolean().optional(),
1835
- partsEngineDisabled: z89.boolean().optional(),
1836
- footprintLibraryMap: z89.record(
1837
- z89.string(),
1838
- z89.union([
1870
+ registryApiUrl: z92.string().optional(),
1871
+ cloudAutorouterUrl: z92.string().optional(),
1872
+ projectName: z92.string().optional(),
1873
+ projectBaseUrl: z92.string().optional(),
1874
+ version: z92.string().optional(),
1875
+ url: z92.string().optional(),
1876
+ printBoardInformationToSilkscreen: z92.boolean().optional(),
1877
+ localCacheEngine: z92.any().optional(),
1878
+ pcbDisabled: z92.boolean().optional(),
1879
+ schematicDisabled: z92.boolean().optional(),
1880
+ partsEngineDisabled: z92.boolean().optional(),
1881
+ footprintLibraryMap: z92.record(
1882
+ z92.string(),
1883
+ z92.union([
1839
1884
  pathToCircuitJsonFn,
1840
- z89.record(
1841
- z89.string(),
1842
- z89.union([unvalidatedCircuitJson, pathToCircuitJsonFn])
1885
+ z92.record(
1886
+ z92.string(),
1887
+ z92.union([unvalidatedCircuitJson, pathToCircuitJsonFn])
1843
1888
  )
1844
1889
  ])
1845
1890
  ).optional(),
1846
- footprintFileParserMap: z89.record(z89.string(), footprintFileParserEntry).optional()
1891
+ footprintFileParserMap: z92.record(z92.string(), footprintFileParserEntry).optional()
1847
1892
  });
1848
1893
  expectTypesMatch(true);
1849
1894
 
@@ -1973,8 +2018,10 @@ export {
1973
2018
  rotatedRectSmtPadProps,
1974
2019
  rotationPoint3,
1975
2020
  routeHintPointProps,
2021
+ schematicArcProps,
1976
2022
  schematicBoxProps,
1977
2023
  schematicCellProps,
2024
+ schematicCircleProps,
1978
2025
  schematicLineProps,
1979
2026
  schematicOrientation,
1980
2027
  schematicPathProps,
@@ -1982,6 +2029,7 @@ export {
1982
2029
  schematicPinLabel,
1983
2030
  schematicPinStyle,
1984
2031
  schematicPortArrangement,
2032
+ schematicRectProps,
1985
2033
  schematicRowProps,
1986
2034
  schematicTableProps,
1987
2035
  schematicTextProps,