@tscircuit/props 0.0.711 → 0.0.713

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
@@ -2545,7 +2545,8 @@ export interface SymbolProps {
2545
2545
  * Source sizing bounds in the local symbol coordinate space (mm, +X right, +Y up).
2546
2546
  * With width/height, maps the bounds center to the symbol position; all artwork
2547
2547
  * and ports use the same transform. Omitted uses automatic bounds including ports.
2548
- * maxX must exceed minX and maxY must exceed minY. No aliases; no change to existing defaults.
2548
+ * maxX must exceed minX and maxY must exceed minY. Other shapes are rejected
2549
+ * with a diagnostic listing the required bounds. No aliases; existing defaults are unchanged.
2549
2550
  */
2550
2551
  viewbox?: {
2551
2552
  minX: number | string;
package/dist/index.d.ts CHANGED
@@ -477,6 +477,8 @@ declare const assemblyDrawingPartViewProps: z.ZodEffects<z.ZodEffects<z.ZodObjec
477
477
  }>;
478
478
  type InferredAssemblyDrawingPartViewProps = z.input<typeof assemblyDrawingPartViewProps>;
479
479
 
480
+ declare const dimensionAnchor: z.ZodEnum<["center", "left", "right", "top", "bottom"]>;
481
+ type AssemblyDrawingDimensionAnchor = z.infer<typeof dimensionAnchor>;
480
482
  /** Authoring intent for a dimension of model geometry or a part view's extent.
481
483
  * Core resolves geometry, measurement text and paper placement in a follow-up.
482
484
  */
@@ -489,32 +491,65 @@ interface AssemblyDrawingDimensionProps {
489
491
  widthOfView?: boolean;
490
492
  /** Request the selected geometry's height in the view. Conflicts with edgeRef and widthOfView=true. */
491
493
  heightOfView?: boolean;
494
+ /** Paired selectors for holes, boards or named model outlines. Both are required; conflicts with edgeRef and true view targets. */
495
+ fromRef?: string;
496
+ toRef?: string;
497
+ /** Anchor on the reference's projected bounds. Defaults to center; directions are relative to the drawing view, not CAD world axes. */
498
+ fromAnchor?: AssemblyDrawingDimensionAnchor;
499
+ toAnchor?: AssemblyDrawingDimensionAnchor;
500
+ /** Measure separation on the view's horizontal (x) or vertical (y) axis. Omitted chooses the larger separation, x on ties. Requires paired references. */
501
+ axis?: "x" | "y";
492
502
  }
493
503
  declare const assemblyDrawingDimensionProps: z.ZodEffects<z.ZodObject<{
494
504
  name: z.ZodOptional<z.ZodString>;
495
505
  edgeRef: z.ZodOptional<z.ZodString>;
496
506
  widthOfView: z.ZodOptional<z.ZodBoolean>;
497
507
  heightOfView: z.ZodOptional<z.ZodBoolean>;
508
+ fromRef: z.ZodOptional<z.ZodString>;
509
+ toRef: z.ZodOptional<z.ZodString>;
510
+ fromAnchor: z.ZodOptional<z.ZodEnum<["center", "left", "right", "top", "bottom"]>>;
511
+ toAnchor: z.ZodOptional<z.ZodEnum<["center", "left", "right", "top", "bottom"]>>;
512
+ axis: z.ZodOptional<z.ZodEnum<["x", "y"]>>;
498
513
  }, "strip", z.ZodTypeAny, {
499
514
  name?: string | undefined;
515
+ axis?: "x" | "y" | undefined;
500
516
  edgeRef?: string | undefined;
501
517
  widthOfView?: boolean | undefined;
502
518
  heightOfView?: boolean | undefined;
519
+ fromRef?: string | undefined;
520
+ toRef?: string | undefined;
521
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
522
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
503
523
  }, {
504
524
  name?: string | undefined;
525
+ axis?: "x" | "y" | undefined;
505
526
  edgeRef?: string | undefined;
506
527
  widthOfView?: boolean | undefined;
507
528
  heightOfView?: boolean | undefined;
529
+ fromRef?: string | undefined;
530
+ toRef?: string | undefined;
531
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
532
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
508
533
  }>, {
509
534
  name?: string | undefined;
535
+ axis?: "x" | "y" | undefined;
510
536
  edgeRef?: string | undefined;
511
537
  widthOfView?: boolean | undefined;
512
538
  heightOfView?: boolean | undefined;
539
+ fromRef?: string | undefined;
540
+ toRef?: string | undefined;
541
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
542
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
513
543
  }, {
514
544
  name?: string | undefined;
545
+ axis?: "x" | "y" | undefined;
515
546
  edgeRef?: string | undefined;
516
547
  widthOfView?: boolean | undefined;
517
548
  heightOfView?: boolean | undefined;
549
+ fromRef?: string | undefined;
550
+ toRef?: string | undefined;
551
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
552
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
518
553
  }>;
519
554
  type InferredAssemblyDrawingDimensionProps = z.input<typeof assemblyDrawingDimensionProps>;
520
555
 
@@ -796,26 +831,51 @@ declare const assemblyDrawingProps: {
796
831
  edgeRef: zod.ZodOptional<zod.ZodString>;
797
832
  widthOfView: zod.ZodOptional<zod.ZodBoolean>;
798
833
  heightOfView: zod.ZodOptional<zod.ZodBoolean>;
834
+ fromRef: zod.ZodOptional<zod.ZodString>;
835
+ toRef: zod.ZodOptional<zod.ZodString>;
836
+ fromAnchor: zod.ZodOptional<zod.ZodEnum<["center", "left", "right", "top", "bottom"]>>;
837
+ toAnchor: zod.ZodOptional<zod.ZodEnum<["center", "left", "right", "top", "bottom"]>>;
838
+ axis: zod.ZodOptional<zod.ZodEnum<["x", "y"]>>;
799
839
  }, "strip", zod.ZodTypeAny, {
800
840
  name?: string | undefined;
841
+ axis?: "x" | "y" | undefined;
801
842
  edgeRef?: string | undefined;
802
843
  widthOfView?: boolean | undefined;
803
844
  heightOfView?: boolean | undefined;
845
+ fromRef?: string | undefined;
846
+ toRef?: string | undefined;
847
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
848
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
804
849
  }, {
805
850
  name?: string | undefined;
851
+ axis?: "x" | "y" | undefined;
806
852
  edgeRef?: string | undefined;
807
853
  widthOfView?: boolean | undefined;
808
854
  heightOfView?: boolean | undefined;
855
+ fromRef?: string | undefined;
856
+ toRef?: string | undefined;
857
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
858
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
809
859
  }>, {
810
860
  name?: string | undefined;
861
+ axis?: "x" | "y" | undefined;
811
862
  edgeRef?: string | undefined;
812
863
  widthOfView?: boolean | undefined;
813
864
  heightOfView?: boolean | undefined;
865
+ fromRef?: string | undefined;
866
+ toRef?: string | undefined;
867
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
868
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
814
869
  }, {
815
870
  name?: string | undefined;
871
+ axis?: "x" | "y" | undefined;
816
872
  edgeRef?: string | undefined;
817
873
  widthOfView?: boolean | undefined;
818
874
  heightOfView?: boolean | undefined;
875
+ fromRef?: string | undefined;
876
+ toRef?: string | undefined;
877
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
878
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
819
879
  }>;
820
880
  };
821
881
 
@@ -24424,26 +24484,51 @@ declare const assemblyProps: {
24424
24484
  edgeRef: zod.ZodOptional<zod.ZodString>;
24425
24485
  widthOfView: zod.ZodOptional<zod.ZodBoolean>;
24426
24486
  heightOfView: zod.ZodOptional<zod.ZodBoolean>;
24487
+ fromRef: zod.ZodOptional<zod.ZodString>;
24488
+ toRef: zod.ZodOptional<zod.ZodString>;
24489
+ fromAnchor: zod.ZodOptional<zod.ZodEnum<["center", "left", "right", "top", "bottom"]>>;
24490
+ toAnchor: zod.ZodOptional<zod.ZodEnum<["center", "left", "right", "top", "bottom"]>>;
24491
+ axis: zod.ZodOptional<zod.ZodEnum<["x", "y"]>>;
24427
24492
  }, "strip", zod.ZodTypeAny, {
24428
24493
  name?: string | undefined;
24494
+ axis?: "x" | "y" | undefined;
24429
24495
  edgeRef?: string | undefined;
24430
24496
  widthOfView?: boolean | undefined;
24431
24497
  heightOfView?: boolean | undefined;
24498
+ fromRef?: string | undefined;
24499
+ toRef?: string | undefined;
24500
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
24501
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
24432
24502
  }, {
24433
24503
  name?: string | undefined;
24504
+ axis?: "x" | "y" | undefined;
24434
24505
  edgeRef?: string | undefined;
24435
24506
  widthOfView?: boolean | undefined;
24436
24507
  heightOfView?: boolean | undefined;
24508
+ fromRef?: string | undefined;
24509
+ toRef?: string | undefined;
24510
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
24511
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
24437
24512
  }>, {
24438
24513
  name?: string | undefined;
24514
+ axis?: "x" | "y" | undefined;
24439
24515
  edgeRef?: string | undefined;
24440
24516
  widthOfView?: boolean | undefined;
24441
24517
  heightOfView?: boolean | undefined;
24518
+ fromRef?: string | undefined;
24519
+ toRef?: string | undefined;
24520
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
24521
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
24442
24522
  }, {
24443
24523
  name?: string | undefined;
24524
+ axis?: "x" | "y" | undefined;
24444
24525
  edgeRef?: string | undefined;
24445
24526
  widthOfView?: boolean | undefined;
24446
24527
  heightOfView?: boolean | undefined;
24528
+ fromRef?: string | undefined;
24529
+ toRef?: string | undefined;
24530
+ fromAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
24531
+ toAnchor?: "left" | "right" | "center" | "top" | "bottom" | undefined;
24447
24532
  }>;
24448
24533
  };
24449
24534
  readonly explosion: {
@@ -168202,7 +168287,8 @@ interface SymbolProps {
168202
168287
  * Source sizing bounds in the local symbol coordinate space (mm, +X right, +Y up).
168203
168288
  * With width/height, maps the bounds center to the symbol position; all artwork
168204
168289
  * and ports use the same transform. Omitted uses automatic bounds including ports.
168205
- * maxX must exceed minX and maxY must exceed minY. No aliases; no change to existing defaults.
168290
+ * maxX must exceed minX and maxY must exceed minY. Other shapes are rejected
168291
+ * with a diagnostic listing the required bounds. No aliases; existing defaults are unchanged.
168206
168292
  */
168207
168293
  viewbox?: {
168208
168294
  minX: number | string;
@@ -168217,7 +168303,17 @@ declare const symbolProps: z.ZodObject<{
168217
168303
  width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
168218
168304
  height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
168219
168305
  fit: z.ZodOptional<z.ZodEnum<["fill", "contain", "stretch"]>>;
168220
- viewbox: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
168306
+ viewbox: z.ZodOptional<z.ZodPipeline<z.ZodType<{
168307
+ minX: string | number;
168308
+ maxX: string | number;
168309
+ minY: string | number;
168310
+ maxY: string | number;
168311
+ }, z.ZodTypeDef, {
168312
+ minX: string | number;
168313
+ maxX: string | number;
168314
+ minY: string | number;
168315
+ maxY: string | number;
168316
+ }>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
168221
168317
  minX: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
168222
168318
  maxX: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
168223
168319
  minY: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -168252,7 +168348,7 @@ declare const symbolProps: z.ZodObject<{
168252
168348
  maxX: string | number;
168253
168349
  minY: string | number;
168254
168350
  maxY: string | number;
168255
- }>>;
168351
+ }>>>;
168256
168352
  name: z.ZodOptional<z.ZodString>;
168257
168353
  }, "strip", z.ZodTypeAny, {
168258
168354
  width?: number | undefined;
@@ -273954,4 +274050,4 @@ interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBas
273954
274050
  }
273955
274051
  declare const projectConfig: z.ZodType<ProjectConfig>;
273956
274052
 
273957
- export { type AmmeterPinLabels, type AmmeterProps, type AnalogAcSweepSimulationProps, type AnalogAnalysisSimulationBaseProps, type AnalogCapacitanceSweepParameterProps, type AnalogCurrentSweepParameterProps, type AnalogDcOperatingPointSimulationProps, type AnalogDcSweepSimulationProps, type AnalogDigitalStimulusProps, type AnalogEyeDiagramProps, type AnalogInductanceSweepParameterProps, type AnalogResistanceSweepParameterProps, type AnalogSimulationProps, type AnalogSweepParameterProps, type AnalogTransientSimulationProps, type AnalogVoltageSweepParameterProps, type AntennaFrequencyBand, type AntennaProps, type AntennaShape, type AssemblyBoltHeadType, type AssemblyBoltProps, type AssemblyBoltPropsInput, type AssemblyCableProps, type AssemblyCablePropsInput, type AssemblyCableStandard, type AssemblySubassemblyProps as AssemblyCadAssemblyProps, type AssemblySubassemblyPropsInput as AssemblyCadAssemblyPropsInput, type AssemblyDeviceProps, type AssemblyDevicePropsInput, type AssemblyDrawingDimensionProps, type AssemblyDrawingPageProps, type AssemblyDrawingPageSize, type AssemblyDrawingPartViewDirection, type AssemblyDrawingPartViewProps, type AssemblyDrawingSectionPlane, type AssemblyDrawingTitleBlockProps, type AssemblyExplosionMoveProps, type AssemblyExplosionMovePropsInput, type AssemblyExplosionStageProps, type AssemblyExplosionStagePropsInput, type AssemblyFastenerProps, type AssemblyFastenerPropsInput, type AssemblyMotorProps, type AssemblyMotorPropsInput, type AssemblyMotorStandard, type AssemblyPartProps, type AssemblyPartPropsInput, type AssemblyPrintedPartProps, type AssemblyPrintedPartPropsInput, type AssemblyReferenceSurfaceProps, type AssemblyReferenceSurfacePropsInput, type AssemblyScreenProps, type AssemblyScreenPropsInput, type AssemblySubassemblyProps, type AssemblySubassemblyPropsInput, type AutocompleteString, type AutorouterConfig, type AutorouterDefinition, type AutorouterInstance, type AutorouterPreset, type AutorouterProp, type AutorouterVersion, type AutoroutingPhaseProps, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BasicFootprint, type BatteryPinLabels, type BatteryProps, type BoardColor, type BoardColorPreset, type BoardMountOrientation, type BoardMountRotationAnchor, type BoardOutlinePoint, type BoardProps, type Border, type BreakoutPointProps, type BreakoutProps, type BusFanoutDirection, type BusFanoutDirectionLiteral, type BusName, type BusProps, type CadAssemblyProps, type CadAssemblyPropsInput, type CadModelAxisDirection, type CadModelBase, type CadModelFootprinterString, type CadModelGlb, type CadModelGltf, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelProps, type CadModelPropsInput, type CadModelStep, type CadModelStl, type CadModelWrl, type CanonicalBusFanoutDirection, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CircleCutoutProps, type CircleEnclosureCutoutApertureProps, type CircleHoleProps, type CirclePlatedHoleProps, type CircleShapeProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircuitJson, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type CommonShapeProps, type ComponentProps, type ConnectionTarget, type Connections, type ConnectorProps, type ConnectorStandard, type ConstrainedLayoutProps, type ConstraintProps, type CopperPourProps, type CopperPourPropsInput, type CopperTextProps, type CourtyardCircleProps, type CourtyardOutlineProps, type CourtyardPillProps, type CourtyardRectProps, type CrystalPinLabels, type CrystalProps, type CurrentSourcePinLabels, type CurrentSourceProps, type CustomDrcCheckContext, type CustomDrcCheckFn, type CustomDrcCheckInput, type CustomDrcConnectable, type CustomDrcSelect, type CustomDrcSelectAll, type CutoutApertureProps, type CutoutProps, type CutoutPropsInput, type DifferentialPairProps, type DiodePinLabels, type DiodePinLabelsProp, type DiodeProps, type Direction, type DirectionAlongEdge, type DirectionalFanoutBoundaryPadding, type DrcCheckProps, type EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditPcbGroupLocationEvent, type EditPcbGroupLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, type EditSchematicGroupLocationEvent, type EditSchematicGroupLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type EnclosureCutoutApertureProps, type EnclosureCutoutApertureShape, type EnclosureFdmBoxProps, type EnclosureFdmBoxPropsInput, type FabricationNoteDimensionProps, type FabricationNoteDimensionPropsInput, type FabricationNotePathProps, type FabricationNoteRectProps, type FabricationNoteTextProps, type FabricationNoteTextPropsInput, type FabricatorDrcCheckParams, type FabricatorEngine, type FanoutBoundaryPadding, type FanoutPourNetMap, type FanoutProps, type FanoutTracePath, type FetchPartAvailabilityParams, type FiducialProps, type FootprintFileParserEntry, type FootprintInsertionDirection, type FootprintLibraryResult, type FootprintProp, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type FootprinterAutocompleteString, type FootprinterStringExample, type FusePinLabels, type FuseProps, type GroupProps, type HoleProps, type HoleWithPolygonPadPlatedHoleProps, type IbisModelDefinition, type IbisModelProps, type IbisPinReferences, type IbisPinRunState, type ImpedanceTarget, type ImplicitBreakoutBounds, type ImplicitBreakoutBus, type ImplicitBreakoutConnection, type ImplicitBreakoutConnectionEndpoint, type ImplicitBreakoutConnectionOrDifferentialPair, type ImplicitBreakoutDifferentialPair, type ImplicitBreakoutEdge, type ImplicitBreakoutPoint, type ImplicitBreakoutPointSolverFn, type ImplicitBreakoutPointSolverInput, type ImplicitBreakoutPointSolverOutput, type ImplicitBreakoutRegion, type ImplicitBreakoutSolverPoint, type InductorPinLabels, type InductorProps, type InferredAssemblyDrawingDimensionProps, type InferredAssemblyDrawingPageProps, type InferredAssemblyDrawingPartViewProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredFuseProps, type InferredHoleProps, type InferredSchematicArcProps, type InferredSchematicBoxProps, type InferredSchematicCircleProps, type InferredSchematicGraphicProps, type InferredSchematicLineProps, type InferredSchematicPathProps, type InferredSchematicRectProps, type InferredSchematicSectionProps, type InferredSchematicSheetProps, type InferredSchematicSymbolProps, type InferredSchematicTextProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type InferredTestpointProps, type InferredViaProps, type InterconnectProps, type InternalCircuitElement, type InternalCircuitProps, type JlcpcbAutocompleteStringPath, type JlcpcbKnownPartNumber, type JumperProps, type KicadAt, type KicadAutocompleteStringPath, type KicadEffects, type KicadFont, type KicadFootprintAttributes, type KicadFootprintMetadata, type KicadFootprintModel, type KicadFootprintPad, type KicadFootprintProperties, type KicadPath, type KicadPinElectricalType, type KicadPinGraphicStyle, type KicadPinMetadata, type KicadProperty, type KicadSymbolEffects, type KicadSymbolMetadata, type KicadSymbolPinNames, type KicadSymbolPinNumbers, type KicadSymbolProperties, type KicadSymbolProperty, type LayoutConfig, type LedPinLabels, type LedProps, type LegacyBusFanoutDirection, type LocalCacheEngine, 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 MountedBoardProps, type NetAliasProps, type NetLabelProps, type NetProps, type NinePointAnchor, type NonSubcircuitGroupProps, type OpAmpPinLabels, type OpAmpProps, type OvalHoleProps, type OvalPlatedHoleProps, type PanelProps, type ParsedEnclosureCutoutApertureProps, type PartAvailability, type PartAvailabilityPlatformFetch, type PartsEngine, type PcbBendProps, type PcbBendPropsInput, 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 PcbPath, type PcbPathPoint, type PcbPositionMode, type PcbReturnCurrentExcitationProps, type PcbReturnCurrentSimulationProps, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbSoldermaskOpeningProps, type PcbSoldermaskOpeningPropsInput, type PcbSpiceChannelProps, type PcbStiffenerProps, type PcbStiffenerPropsInput, type PcbStyle, type PcbSx, type PcbSxSelector, type PcbSxValue, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillEnclosureCutoutApertureProps, type PillHoleProps, type PillPlatedHoleProps, type PillShapeProps, type PillSmtPadProps, type PillWithRectPadPlatedHoleProps, type PinAttributeMap, type PinCapability, type PinCompatibleVariant, type PinHeaderProps, type PinLabelFromPinLabelMap, type PinLabelsProp, type PinSideDefinition, type PinSideDefinitionInput, type PinVariant, type PinoutProps, type PlatedHoleProps, type PlatformConfig, type PolygonCutoutProps, type PolygonSmtPadProps, type PortHints, type PortProps, type PositionMode, type PotentiometerPinLabels, type PotentiometerPinVariant, type PotentiometerProps, type PowerSourceProps, type PreflightRoutingCheckPolicy, type ProjectConfig, type PushButtonProps, type RectCutoutProps, type RectEnclosureCutoutApertureProps, type RectHoleProps, type RectShapeProps, type RectSmtPadProps, type RectSolderPasteProps, type RelativeRouteLength, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedPillSmtPadProps, type RotatedRectSmtPadProps, type RouteLength, type RoutingTolerances, type SchStyle, type SchematicArcProps, type SchematicBoxProps, type SchematicCellProps, type SchematicCircleProps, type SchematicGraphicProps, 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 SchematicSectionProps, type SchematicSheetProps, type SchematicSheetSize, type SchematicSymbolProps, type SchematicSymbolSize, type SchematicTableProps, type SchematicTextProps, type SelectionResult, type SelectionResultComponent, type SelectionResultNet, type SelectionResultPort, type Selectors, type SilkscreenCircleProps, type SilkscreenGraphicProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SimpleRouteJson, type SmtPadProps, type SolderJumperProps, type SolderPasteProps, type SpiceEngine, type SpiceEngineSimulationResult, type SpiceModelElement, type SpiceModelProps, type SpiceOptions, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SubpanelProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type SymbolProp, type SymbolProps, type SymbolPropsInput, type TestpointConnections, type TestpointPinLabels, type TestpointProps, type ToolingrailProps, type TraceHintProps, type TraceProps, type TraceSpacing, type TransistorPinLabels, type TransistorProps, type ViaProps, type VoltageProbeProps, type VoltageSourcePinLabels, type VoltageSourceProps, type WaveShape, ammeterPinLabels, ammeterPins, ammeterProps, analogAcSweepSimulationProps, analogAnalysisSimulationBaseProps, analogCapacitanceSweepParameterProps, analogCurrentSweepParameterProps, analogDcOperatingPointSimulationProps, analogDcSweepSimulationProps, analogDigitalStimulusProps, analogEyeDiagramProps, analogInductanceSweepParameterProps, analogResistanceSweepParameterProps, analogSimulationProps, analogSweepParameterProps, analogTransientSimulationProps, analogVoltageSweepParameterProps, antennaFrequencyBand, antennaFrequencyBands, antennaProps, antennaShape, antennaShapes, assemblyBoltProps, assemblyCableProps, assemblyCadAssemblyProps, assemblyDeviceProps, assemblyDrawingDimensionProps, assemblyDrawingPageProps, assemblyDrawingPageSize, assemblyDrawingPageSizes, assemblyDrawingPartViewProps, assemblyDrawingProps, assemblyDrawingSectionPlane, assemblyDrawingTitleBlockProps, assemblyExplosionMoveProps, assemblyExplosionProps, assemblyExplosionStageProps, assemblyFastenerProps, assemblyMotorProps, assemblyPartProps, assemblyPrintedPartProps, assemblyProps, assemblyReferenceSurfaceProps, assemblyScreenProps, assemblySubassemblyProps, autorouterConfig, autorouterEffortLevel, autorouterPreset, autorouterProp, autoroutingPhaseProps, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardMountOrientation, boardMountRotation, boardMountRotationAnchor, boardOutlinePoint, boardProps, border, breakoutPointProps, breakoutProps, bugProps, busFanoutDirection, busProps, cadModelAxisDirection, cadModelAxisDirections, cadModelBase, cadModelGlb, cadModelGltf, cadModelJscad, cadModelObj, cadModelProp, cadModelStep, cadModelStl, cadModelWrl, cadassemblyProps, cadmodelProps, canonicalBusFanoutDirection, canonicalBusFanoutDirectionValues, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleCutoutProps, circleShapeProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, commonShapeProps, componentProps, connectorProps, connectorStandard, constrainedLayoutProps, constraintProps, copperPourProps, copperTextProps, courtyardCircleProps, courtyardOutlineProps, courtyardPillProps, courtyardRectProps, crystalPins, crystalProps, currentSourcePinLabels, currentSourcePins, currentSourceProps, customDrcCheckFn, cutoutApertureBaseProps, cutoutProps, differentialPairProps, diodePinLabelsProp, diodePins, diodeProps, direction, directionAlongEdge, distanceOrMultiplier, drcCheckProps, 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, enclosureCutoutApertureProps, enclosureCutoutApertureShapes, enclosureFdmBoxProps, enclosureProps, explicitPinSideDefinition, fabricationNoteDimensionProps, fabricationNotePathProps, fabricationNoteRectProps, fabricationNoteTextProps, fabricatorEngine, fanoutBoundaryPadding, fanoutProps, fanoutTracePath, fiducialProps, footprintInsertionDirection, footprintProp, footprintProps, footprinterStringExamples, fusePinLabels, fuseProps, getAssemblyDrawingPageDimensions, groupProps, holeProps, ibisModelAsset, ibisModelDefinition, ibisModelProps, ibisPinReferences, ibisPinRunState, impedanceTarget, inductorPins, inductorProps, interconnectProps, internalCircuitProps, jumperProps, kicadAt, kicadEffects, kicadFont, kicadFootprintAttributes, kicadFootprintKeys, kicadFootprintMetadata, kicadFootprintModel, kicadFootprintPad, kicadFootprintProperties, kicadFootprintStrings, kicadPinElectricalType, kicadPinGraphicStyle, kicadPinMetadata, kicadProperty, kicadSymbolEffects, kicadSymbolMetadata, kicadSymbolPinNames, kicadSymbolPinNumbers, kicadSymbolProperties, kicadSymbolProperty, layoutConfig, ledPins, ledProps, lrPins, lrPolarPins, manual_edit_event, manual_edits_file, manual_pcb_placement, manual_schematic_placement, manual_trace_hint, mosfetPins, mosfetProps, mountedboardProps, netAliasProps, netLabelProps, netProps, ninePointAnchor, noConnectProp, opampPinLabels, opampPins, opampProps, panelProps, partsEngine, pcbBendProps, pcbKeepoutProps, pcbLayoutProps, pcbNoteDimensionProps, pcbNoteLineProps, pcbNotePathProps, pcbNoteRectProps, pcbNoteTextProps, pcbPath, pcbPathPoint, pcbReturnCurrentExcitationProps, pcbReturnCurrentSimulationProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbSoldermaskOpeningProps, pcbSpiceChannelProps, pcbStiffenerProps, pcbStyle, pcbSx, pcbSxValue, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillShapeProps, pillSmtPadProps, pinAttributeMap, pinCapability, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, pinoutProps, platedHoleProps, platformConfig, point3, polygonCutoutProps, polygonSmtPadProps, portHints, portProps, portRef, potentiometerPinLabels, potentiometerProps, powerSourceProps, preflightRoutingCheckPolicy, projectConfig, pushButtonProps, rectCutoutProps, rectShapeProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resolveManufacturerPartNumber, resonatorProps, rotatedPillSmtPadProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, routeLength, routingTolerances, schStyle, schematicArcProps, schematicBoxProps, schematicCellProps, schematicCircleProps, schematicGraphicProps, schematicLineProps, schematicOrientation, schematicPathProps, schematicPinArrangement, schematicPinLabel, schematicPinStyle, schematicPortArrangement, schematicRectProps, schematicRowProps, schematicSectionProps, schematicSheetProps, schematicSymbolProps, schematicSymbolSize, schematicTableProps, schematicTextProps, silkscreenCircleProps, silkscreenGraphicProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, simulationProps, smtPadProps, solderPasteProps, solderjumperProps, spicemodelProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, subpanelProps, supplierProps, switchProps, symbolProp, symbolProps, testpointPins, testpointProps, toolingrailProps, traceHintProps, traceProps, traceSpacing, transistorPins, transistorPinsLabels, transistorProps, viaProps, voltageProbeProps, voltageSourcePinLabels, voltageSourcePins, voltageSourceProps };
274053
+ export { type AmmeterPinLabels, type AmmeterProps, type AnalogAcSweepSimulationProps, type AnalogAnalysisSimulationBaseProps, type AnalogCapacitanceSweepParameterProps, type AnalogCurrentSweepParameterProps, type AnalogDcOperatingPointSimulationProps, type AnalogDcSweepSimulationProps, type AnalogDigitalStimulusProps, type AnalogEyeDiagramProps, type AnalogInductanceSweepParameterProps, type AnalogResistanceSweepParameterProps, type AnalogSimulationProps, type AnalogSweepParameterProps, type AnalogTransientSimulationProps, type AnalogVoltageSweepParameterProps, type AntennaFrequencyBand, type AntennaProps, type AntennaShape, type AssemblyBoltHeadType, type AssemblyBoltProps, type AssemblyBoltPropsInput, type AssemblyCableProps, type AssemblyCablePropsInput, type AssemblyCableStandard, type AssemblySubassemblyProps as AssemblyCadAssemblyProps, type AssemblySubassemblyPropsInput as AssemblyCadAssemblyPropsInput, type AssemblyDeviceProps, type AssemblyDevicePropsInput, type AssemblyDrawingDimensionAnchor, type AssemblyDrawingDimensionProps, type AssemblyDrawingPageProps, type AssemblyDrawingPageSize, type AssemblyDrawingPartViewDirection, type AssemblyDrawingPartViewProps, type AssemblyDrawingSectionPlane, type AssemblyDrawingTitleBlockProps, type AssemblyExplosionMoveProps, type AssemblyExplosionMovePropsInput, type AssemblyExplosionStageProps, type AssemblyExplosionStagePropsInput, type AssemblyFastenerProps, type AssemblyFastenerPropsInput, type AssemblyMotorProps, type AssemblyMotorPropsInput, type AssemblyMotorStandard, type AssemblyPartProps, type AssemblyPartPropsInput, type AssemblyPrintedPartProps, type AssemblyPrintedPartPropsInput, type AssemblyReferenceSurfaceProps, type AssemblyReferenceSurfacePropsInput, type AssemblyScreenProps, type AssemblyScreenPropsInput, type AssemblySubassemblyProps, type AssemblySubassemblyPropsInput, type AutocompleteString, type AutorouterConfig, type AutorouterDefinition, type AutorouterInstance, type AutorouterPreset, type AutorouterProp, type AutorouterVersion, type AutoroutingPhaseProps, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BasicFootprint, type BatteryPinLabels, type BatteryProps, type BoardColor, type BoardColorPreset, type BoardMountOrientation, type BoardMountRotationAnchor, type BoardOutlinePoint, type BoardProps, type Border, type BreakoutPointProps, type BreakoutProps, type BusFanoutDirection, type BusFanoutDirectionLiteral, type BusName, type BusProps, type CadAssemblyProps, type CadAssemblyPropsInput, type CadModelAxisDirection, type CadModelBase, type CadModelFootprinterString, type CadModelGlb, type CadModelGltf, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelProps, type CadModelPropsInput, type CadModelStep, type CadModelStl, type CadModelWrl, type CanonicalBusFanoutDirection, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CircleCutoutProps, type CircleEnclosureCutoutApertureProps, type CircleHoleProps, type CirclePlatedHoleProps, type CircleShapeProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircuitJson, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type CommonShapeProps, type ComponentProps, type ConnectionTarget, type Connections, type ConnectorProps, type ConnectorStandard, type ConstrainedLayoutProps, type ConstraintProps, type CopperPourProps, type CopperPourPropsInput, type CopperTextProps, type CourtyardCircleProps, type CourtyardOutlineProps, type CourtyardPillProps, type CourtyardRectProps, type CrystalPinLabels, type CrystalProps, type CurrentSourcePinLabels, type CurrentSourceProps, type CustomDrcCheckContext, type CustomDrcCheckFn, type CustomDrcCheckInput, type CustomDrcConnectable, type CustomDrcSelect, type CustomDrcSelectAll, type CutoutApertureProps, type CutoutProps, type CutoutPropsInput, type DifferentialPairProps, type DiodePinLabels, type DiodePinLabelsProp, type DiodeProps, type Direction, type DirectionAlongEdge, type DirectionalFanoutBoundaryPadding, type DrcCheckProps, type EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditPcbGroupLocationEvent, type EditPcbGroupLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, type EditSchematicGroupLocationEvent, type EditSchematicGroupLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type EnclosureCutoutApertureProps, type EnclosureCutoutApertureShape, type EnclosureFdmBoxProps, type EnclosureFdmBoxPropsInput, type FabricationNoteDimensionProps, type FabricationNoteDimensionPropsInput, type FabricationNotePathProps, type FabricationNoteRectProps, type FabricationNoteTextProps, type FabricationNoteTextPropsInput, type FabricatorDrcCheckParams, type FabricatorEngine, type FanoutBoundaryPadding, type FanoutPourNetMap, type FanoutProps, type FanoutTracePath, type FetchPartAvailabilityParams, type FiducialProps, type FootprintFileParserEntry, type FootprintInsertionDirection, type FootprintLibraryResult, type FootprintProp, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type FootprinterAutocompleteString, type FootprinterStringExample, type FusePinLabels, type FuseProps, type GroupProps, type HoleProps, type HoleWithPolygonPadPlatedHoleProps, type IbisModelDefinition, type IbisModelProps, type IbisPinReferences, type IbisPinRunState, type ImpedanceTarget, type ImplicitBreakoutBounds, type ImplicitBreakoutBus, type ImplicitBreakoutConnection, type ImplicitBreakoutConnectionEndpoint, type ImplicitBreakoutConnectionOrDifferentialPair, type ImplicitBreakoutDifferentialPair, type ImplicitBreakoutEdge, type ImplicitBreakoutPoint, type ImplicitBreakoutPointSolverFn, type ImplicitBreakoutPointSolverInput, type ImplicitBreakoutPointSolverOutput, type ImplicitBreakoutRegion, type ImplicitBreakoutSolverPoint, type InductorPinLabels, type InductorProps, type InferredAssemblyDrawingDimensionProps, type InferredAssemblyDrawingPageProps, type InferredAssemblyDrawingPartViewProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredFuseProps, type InferredHoleProps, type InferredSchematicArcProps, type InferredSchematicBoxProps, type InferredSchematicCircleProps, type InferredSchematicGraphicProps, type InferredSchematicLineProps, type InferredSchematicPathProps, type InferredSchematicRectProps, type InferredSchematicSectionProps, type InferredSchematicSheetProps, type InferredSchematicSymbolProps, type InferredSchematicTextProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type InferredTestpointProps, type InferredViaProps, type InterconnectProps, type InternalCircuitElement, type InternalCircuitProps, type JlcpcbAutocompleteStringPath, type JlcpcbKnownPartNumber, type JumperProps, type KicadAt, type KicadAutocompleteStringPath, type KicadEffects, type KicadFont, type KicadFootprintAttributes, type KicadFootprintMetadata, type KicadFootprintModel, type KicadFootprintPad, type KicadFootprintProperties, type KicadPath, type KicadPinElectricalType, type KicadPinGraphicStyle, type KicadPinMetadata, type KicadProperty, type KicadSymbolEffects, type KicadSymbolMetadata, type KicadSymbolPinNames, type KicadSymbolPinNumbers, type KicadSymbolProperties, type KicadSymbolProperty, type LayoutConfig, type LedPinLabels, type LedProps, type LegacyBusFanoutDirection, type LocalCacheEngine, 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 MountedBoardProps, type NetAliasProps, type NetLabelProps, type NetProps, type NinePointAnchor, type NonSubcircuitGroupProps, type OpAmpPinLabels, type OpAmpProps, type OvalHoleProps, type OvalPlatedHoleProps, type PanelProps, type ParsedEnclosureCutoutApertureProps, type PartAvailability, type PartAvailabilityPlatformFetch, type PartsEngine, type PcbBendProps, type PcbBendPropsInput, 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 PcbPath, type PcbPathPoint, type PcbPositionMode, type PcbReturnCurrentExcitationProps, type PcbReturnCurrentSimulationProps, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbSoldermaskOpeningProps, type PcbSoldermaskOpeningPropsInput, type PcbSpiceChannelProps, type PcbStiffenerProps, type PcbStiffenerPropsInput, type PcbStyle, type PcbSx, type PcbSxSelector, type PcbSxValue, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillEnclosureCutoutApertureProps, type PillHoleProps, type PillPlatedHoleProps, type PillShapeProps, type PillSmtPadProps, type PillWithRectPadPlatedHoleProps, type PinAttributeMap, type PinCapability, type PinCompatibleVariant, type PinHeaderProps, type PinLabelFromPinLabelMap, type PinLabelsProp, type PinSideDefinition, type PinSideDefinitionInput, type PinVariant, type PinoutProps, type PlatedHoleProps, type PlatformConfig, type PolygonCutoutProps, type PolygonSmtPadProps, type PortHints, type PortProps, type PositionMode, type PotentiometerPinLabels, type PotentiometerPinVariant, type PotentiometerProps, type PowerSourceProps, type PreflightRoutingCheckPolicy, type ProjectConfig, type PushButtonProps, type RectCutoutProps, type RectEnclosureCutoutApertureProps, type RectHoleProps, type RectShapeProps, type RectSmtPadProps, type RectSolderPasteProps, type RelativeRouteLength, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedPillSmtPadProps, type RotatedRectSmtPadProps, type RouteLength, type RoutingTolerances, type SchStyle, type SchematicArcProps, type SchematicBoxProps, type SchematicCellProps, type SchematicCircleProps, type SchematicGraphicProps, 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 SchematicSectionProps, type SchematicSheetProps, type SchematicSheetSize, type SchematicSymbolProps, type SchematicSymbolSize, type SchematicTableProps, type SchematicTextProps, type SelectionResult, type SelectionResultComponent, type SelectionResultNet, type SelectionResultPort, type Selectors, type SilkscreenCircleProps, type SilkscreenGraphicProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SimpleRouteJson, type SmtPadProps, type SolderJumperProps, type SolderPasteProps, type SpiceEngine, type SpiceEngineSimulationResult, type SpiceModelElement, type SpiceModelProps, type SpiceOptions, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SubpanelProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type SymbolProp, type SymbolProps, type SymbolPropsInput, type TestpointConnections, type TestpointPinLabels, type TestpointProps, type ToolingrailProps, type TraceHintProps, type TraceProps, type TraceSpacing, type TransistorPinLabels, type TransistorProps, type ViaProps, type VoltageProbeProps, type VoltageSourcePinLabels, type VoltageSourceProps, type WaveShape, ammeterPinLabels, ammeterPins, ammeterProps, analogAcSweepSimulationProps, analogAnalysisSimulationBaseProps, analogCapacitanceSweepParameterProps, analogCurrentSweepParameterProps, analogDcOperatingPointSimulationProps, analogDcSweepSimulationProps, analogDigitalStimulusProps, analogEyeDiagramProps, analogInductanceSweepParameterProps, analogResistanceSweepParameterProps, analogSimulationProps, analogSweepParameterProps, analogTransientSimulationProps, analogVoltageSweepParameterProps, antennaFrequencyBand, antennaFrequencyBands, antennaProps, antennaShape, antennaShapes, assemblyBoltProps, assemblyCableProps, assemblyCadAssemblyProps, assemblyDeviceProps, assemblyDrawingDimensionProps, assemblyDrawingPageProps, assemblyDrawingPageSize, assemblyDrawingPageSizes, assemblyDrawingPartViewProps, assemblyDrawingProps, assemblyDrawingSectionPlane, assemblyDrawingTitleBlockProps, assemblyExplosionMoveProps, assemblyExplosionProps, assemblyExplosionStageProps, assemblyFastenerProps, assemblyMotorProps, assemblyPartProps, assemblyPrintedPartProps, assemblyProps, assemblyReferenceSurfaceProps, assemblyScreenProps, assemblySubassemblyProps, autorouterConfig, autorouterEffortLevel, autorouterPreset, autorouterProp, autoroutingPhaseProps, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardMountOrientation, boardMountRotation, boardMountRotationAnchor, boardOutlinePoint, boardProps, border, breakoutPointProps, breakoutProps, bugProps, busFanoutDirection, busProps, cadModelAxisDirection, cadModelAxisDirections, cadModelBase, cadModelGlb, cadModelGltf, cadModelJscad, cadModelObj, cadModelProp, cadModelStep, cadModelStl, cadModelWrl, cadassemblyProps, cadmodelProps, canonicalBusFanoutDirection, canonicalBusFanoutDirectionValues, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleCutoutProps, circleShapeProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, commonShapeProps, componentProps, connectorProps, connectorStandard, constrainedLayoutProps, constraintProps, copperPourProps, copperTextProps, courtyardCircleProps, courtyardOutlineProps, courtyardPillProps, courtyardRectProps, crystalPins, crystalProps, currentSourcePinLabels, currentSourcePins, currentSourceProps, customDrcCheckFn, cutoutApertureBaseProps, cutoutProps, differentialPairProps, diodePinLabelsProp, diodePins, diodeProps, direction, directionAlongEdge, distanceOrMultiplier, drcCheckProps, 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, enclosureCutoutApertureProps, enclosureCutoutApertureShapes, enclosureFdmBoxProps, enclosureProps, explicitPinSideDefinition, fabricationNoteDimensionProps, fabricationNotePathProps, fabricationNoteRectProps, fabricationNoteTextProps, fabricatorEngine, fanoutBoundaryPadding, fanoutProps, fanoutTracePath, fiducialProps, footprintInsertionDirection, footprintProp, footprintProps, footprinterStringExamples, fusePinLabels, fuseProps, getAssemblyDrawingPageDimensions, groupProps, holeProps, ibisModelAsset, ibisModelDefinition, ibisModelProps, ibisPinReferences, ibisPinRunState, impedanceTarget, inductorPins, inductorProps, interconnectProps, internalCircuitProps, jumperProps, kicadAt, kicadEffects, kicadFont, kicadFootprintAttributes, kicadFootprintKeys, kicadFootprintMetadata, kicadFootprintModel, kicadFootprintPad, kicadFootprintProperties, kicadFootprintStrings, kicadPinElectricalType, kicadPinGraphicStyle, kicadPinMetadata, kicadProperty, kicadSymbolEffects, kicadSymbolMetadata, kicadSymbolPinNames, kicadSymbolPinNumbers, kicadSymbolProperties, kicadSymbolProperty, layoutConfig, ledPins, ledProps, lrPins, lrPolarPins, manual_edit_event, manual_edits_file, manual_pcb_placement, manual_schematic_placement, manual_trace_hint, mosfetPins, mosfetProps, mountedboardProps, netAliasProps, netLabelProps, netProps, ninePointAnchor, noConnectProp, opampPinLabels, opampPins, opampProps, panelProps, partsEngine, pcbBendProps, pcbKeepoutProps, pcbLayoutProps, pcbNoteDimensionProps, pcbNoteLineProps, pcbNotePathProps, pcbNoteRectProps, pcbNoteTextProps, pcbPath, pcbPathPoint, pcbReturnCurrentExcitationProps, pcbReturnCurrentSimulationProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbSoldermaskOpeningProps, pcbSpiceChannelProps, pcbStiffenerProps, pcbStyle, pcbSx, pcbSxValue, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillShapeProps, pillSmtPadProps, pinAttributeMap, pinCapability, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, pinoutProps, platedHoleProps, platformConfig, point3, polygonCutoutProps, polygonSmtPadProps, portHints, portProps, portRef, potentiometerPinLabels, potentiometerProps, powerSourceProps, preflightRoutingCheckPolicy, projectConfig, pushButtonProps, rectCutoutProps, rectShapeProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resolveManufacturerPartNumber, resonatorProps, rotatedPillSmtPadProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, routeLength, routingTolerances, schStyle, schematicArcProps, schematicBoxProps, schematicCellProps, schematicCircleProps, schematicGraphicProps, schematicLineProps, schematicOrientation, schematicPathProps, schematicPinArrangement, schematicPinLabel, schematicPinStyle, schematicPortArrangement, schematicRectProps, schematicRowProps, schematicSectionProps, schematicSheetProps, schematicSymbolProps, schematicSymbolSize, schematicTableProps, schematicTextProps, silkscreenCircleProps, silkscreenGraphicProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, simulationProps, smtPadProps, solderPasteProps, solderjumperProps, spicemodelProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, subpanelProps, supplierProps, switchProps, symbolProp, symbolProps, testpointPins, testpointProps, toolingrailProps, traceHintProps, traceProps, traceSpacing, transistorPins, transistorPinsLabels, transistorProps, viaProps, voltageProbeProps, voltageSourcePinLabels, voltageSourcePins, voltageSourceProps };
package/dist/index.js CHANGED
@@ -185,21 +185,38 @@ expectTypesMatch(true);
185
185
 
186
186
  // lib/assembly/drawing/dimension.ts
187
187
  import { z as z8 } from "zod";
188
+ var dimensionAnchor = z8.enum(["center", "left", "right", "top", "bottom"]);
188
189
  var assemblyDrawingDimensionProps = z8.object({
189
190
  name: z8.string().optional(),
190
191
  edgeRef: z8.string().trim().min(1).optional(),
191
192
  widthOfView: z8.boolean().optional(),
192
- heightOfView: z8.boolean().optional()
193
+ heightOfView: z8.boolean().optional(),
194
+ fromRef: z8.string().trim().min(1).optional(),
195
+ toRef: z8.string().trim().min(1).optional(),
196
+ fromAnchor: dimensionAnchor.optional(),
197
+ toAnchor: dimensionAnchor.optional(),
198
+ axis: z8.enum(["x", "y"]).optional()
193
199
  }).superRefine((dimension, ctx) => {
194
200
  const targets = [
195
201
  dimension.edgeRef !== void 0,
196
202
  dimension.widthOfView === true,
197
- dimension.heightOfView === true
203
+ dimension.heightOfView === true,
204
+ dimension.fromRef !== void 0 || dimension.toRef !== void 0
198
205
  ].filter(Boolean).length;
199
206
  if (targets !== 1)
200
207
  ctx.addIssue({
201
208
  code: "custom",
202
- message: "Specify exactly one of edgeRef, widthOfView=true, or heightOfView=true"
209
+ message: "Specify exactly one of edgeRef, widthOfView=true, heightOfView=true, or paired fromRef/toRef"
210
+ });
211
+ if (dimension.fromRef === void 0 !== (dimension.toRef === void 0))
212
+ ctx.addIssue({
213
+ code: "custom",
214
+ message: "fromRef and toRef must be specified together"
215
+ });
216
+ if ((dimension.axis !== void 0 || dimension.fromAnchor !== void 0 || dimension.toAnchor !== void 0) && (dimension.fromRef === void 0 || dimension.toRef === void 0))
217
+ ctx.addIssue({
218
+ code: "custom",
219
+ message: "axis, fromAnchor and toAnchor require paired fromRef/toRef"
203
220
  });
204
221
  });
205
222
  expectTypesMatch(true);
@@ -18705,23 +18722,29 @@ expectTypesMatch(true);
18705
18722
 
18706
18723
  // lib/components/symbol.ts
18707
18724
  import { z as z100 } from "zod";
18725
+ var symbolViewboxBounds = z100.object({
18726
+ minX: distance,
18727
+ maxX: distance,
18728
+ minY: distance,
18729
+ maxY: distance
18730
+ }).refine((bounds) => bounds.maxX > bounds.minX, {
18731
+ message: "viewbox maxX must exceed minX",
18732
+ path: ["maxX"]
18733
+ }).refine((bounds) => bounds.maxY > bounds.minY, {
18734
+ message: "viewbox maxY must exceed minY",
18735
+ path: ["maxY"]
18736
+ });
18708
18737
  var symbolProps = z100.object({
18709
18738
  originalFacingDirection: z100.enum(["up", "down", "left", "right"]).default("right").optional(),
18710
18739
  width: distance.optional(),
18711
18740
  height: distance.optional(),
18712
18741
  fit: z100.enum(["fill", "contain", "stretch"]).optional(),
18713
- viewbox: z100.object({
18714
- minX: distance,
18715
- maxX: distance,
18716
- minY: distance,
18717
- maxY: distance
18718
- }).refine((bounds) => bounds.maxX > bounds.minX, {
18719
- message: "viewbox maxX must exceed minX",
18720
- path: ["maxX"]
18721
- }).refine((bounds) => bounds.maxY > bounds.minY, {
18722
- message: "viewbox maxY must exceed minY",
18723
- path: ["maxY"]
18724
- }).optional(),
18742
+ viewbox: z100.custom(
18743
+ (bounds) => typeof bounds === "object" && bounds !== null && "minX" in bounds && "maxX" in bounds && "minY" in bounds && "maxY" in bounds,
18744
+ {
18745
+ message: "viewbox requires { minX, maxX, minY, maxY } bounds in the local symbol coordinate space."
18746
+ }
18747
+ ).pipe(symbolViewboxBounds).optional(),
18725
18748
  name: z100.string().optional()
18726
18749
  });
18727
18750
  expectTypesMatch(true);