@tscircuit/props 0.0.543 → 0.0.544
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 +45 -0
- package/dist/index.d.ts +157 -2
- package/dist/index.js +105 -93
- package/dist/index.js.map +1 -1
- package/lib/components/silkscreen-graphic.ts +56 -0
- package/lib/index.ts +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -94,6 +94,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
94
94
|
| `<schematictable />` | [`SchematicTableProps`](#schematictableprops-schematictable) |
|
|
95
95
|
| `<schematictext />` | [`SchematicTextProps`](#schematictextprops-schematictext) |
|
|
96
96
|
| `<silkscreencircle />` | [`SilkscreenCircleProps`](#silkscreencircleprops-silkscreencircle) |
|
|
97
|
+
| `<silkscreengraphic />` | [`SilkscreenGraphicProps`](#silkscreengraphicprops-silkscreengraphic) |
|
|
97
98
|
| `<silkscreenline />` | [`SilkscreenLineProps`](#silkscreenlineprops-silkscreenline) |
|
|
98
99
|
| `<silkscreenpath />` | [`SilkscreenPathProps`](#silkscreenpathprops-silkscreenpath) |
|
|
99
100
|
| `<silkscreenrect />` | [`SilkscreenRectProps`](#silkscreenrectprops-silkscreenrect) |
|
|
@@ -1633,6 +1634,50 @@ export type SilkscreenCircleProps = z.input<typeof silkscreenCircleProps>;
|
|
|
1633
1634
|
|
|
1634
1635
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/silkscreen-circle.ts)
|
|
1635
1636
|
|
|
1637
|
+
### SilkscreenGraphicProps `<silkscreengraphic />`
|
|
1638
|
+
|
|
1639
|
+
```ts
|
|
1640
|
+
export interface SilkscreenGraphicProps {
|
|
1641
|
+
/**
|
|
1642
|
+
* URL or static-file import for the source image. tscircuit/core converts the
|
|
1643
|
+
* image into the pcb_silkscreen_graphic BRep in circuit-json.
|
|
1644
|
+
*/
|
|
1645
|
+
imageUrl: string;
|
|
1646
|
+
/** Width of the rendered silkscreen graphic on the PCB. */
|
|
1647
|
+
width: Distance;
|
|
1648
|
+
/** Height of the rendered silkscreen graphic on the PCB. */
|
|
1649
|
+
height: Distance;
|
|
1650
|
+
/** PCB layer for the silkscreen graphic. */
|
|
1651
|
+
layer?: VisibleLayer;
|
|
1652
|
+
pcbX?: string | number;
|
|
1653
|
+
pcbY?: string | number;
|
|
1654
|
+
pcbLeftEdgeX?: string | number;
|
|
1655
|
+
pcbRightEdgeX?: string | number;
|
|
1656
|
+
pcbTopEdgeY?: string | number;
|
|
1657
|
+
pcbBottomEdgeY?: string | number;
|
|
1658
|
+
pcbOffsetX?: string | number;
|
|
1659
|
+
pcbOffsetY?: string | number;
|
|
1660
|
+
pcbRotation?: string | number;
|
|
1661
|
+
pcbPositionAnchor?: string;
|
|
1662
|
+
pcbPositionMode?:
|
|
1663
|
+
| "relative_to_group_anchor"
|
|
1664
|
+
| "auto"
|
|
1665
|
+
| "relative_to_board_anchor"
|
|
1666
|
+
| "relative_to_component_anchor";
|
|
1667
|
+
shouldBeOnEdgeOfBoard?: boolean;
|
|
1668
|
+
pcbMarginTop?: string | number;
|
|
1669
|
+
pcbMarginRight?: string | number;
|
|
1670
|
+
pcbMarginBottom?: string | number;
|
|
1671
|
+
pcbMarginLeft?: string | number;
|
|
1672
|
+
pcbMarginX?: string | number;
|
|
1673
|
+
pcbMarginY?: string | number;
|
|
1674
|
+
pcbRelative?: boolean;
|
|
1675
|
+
relative?: boolean;
|
|
1676
|
+
}
|
|
1677
|
+
```
|
|
1678
|
+
|
|
1679
|
+
[Source](https://github.com/tscircuit/props/blob/main/lib/components/silkscreen-graphic.ts)
|
|
1680
|
+
|
|
1636
1681
|
### SilkscreenLineProps `<silkscreenline />`
|
|
1637
1682
|
|
|
1638
1683
|
```ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
|
-
import { LayerRef, LayerRefInput, SourceNet, PcbPort, SourcePort, PcbComponent, SourceComponentBase, AnyCircuitElement, CircuitJsonError, Point as Point$1, RouteHintPoint, PcbTrace, AnySourceComponent, RouteHintPointInput } from 'circuit-json';
|
|
4
|
+
import { LayerRef, LayerRefInput, SourceNet, PcbPort, SourcePort, PcbComponent, SourceComponentBase, AnyCircuitElement, CircuitJsonError, Point as Point$1, RouteHintPoint, PcbTrace, AnySourceComponent, VisibleLayer, RouteHintPointInput } from 'circuit-json';
|
|
5
5
|
|
|
6
6
|
declare const direction: z.ZodEnum<["up", "down", "left", "right"]>;
|
|
7
7
|
type Direction = "up" | "down" | "left" | "right";
|
|
@@ -184231,6 +184231,161 @@ declare const silkscreenCircleProps: z.ZodObject<Omit<{
|
|
|
184231
184231
|
}>;
|
|
184232
184232
|
type SilkscreenCircleProps = z.input<typeof silkscreenCircleProps>;
|
|
184233
184233
|
|
|
184234
|
+
interface SilkscreenGraphicProps {
|
|
184235
|
+
/**
|
|
184236
|
+
* URL or static-file import for the source image. tscircuit/core converts the
|
|
184237
|
+
* image into the pcb_silkscreen_graphic BRep in circuit-json.
|
|
184238
|
+
*/
|
|
184239
|
+
imageUrl: string;
|
|
184240
|
+
/** Width of the rendered silkscreen graphic on the PCB. */
|
|
184241
|
+
width: Distance;
|
|
184242
|
+
/** Height of the rendered silkscreen graphic on the PCB. */
|
|
184243
|
+
height: Distance;
|
|
184244
|
+
/** PCB layer for the silkscreen graphic. */
|
|
184245
|
+
layer?: VisibleLayer;
|
|
184246
|
+
pcbX?: string | number;
|
|
184247
|
+
pcbY?: string | number;
|
|
184248
|
+
pcbLeftEdgeX?: string | number;
|
|
184249
|
+
pcbRightEdgeX?: string | number;
|
|
184250
|
+
pcbTopEdgeY?: string | number;
|
|
184251
|
+
pcbBottomEdgeY?: string | number;
|
|
184252
|
+
pcbOffsetX?: string | number;
|
|
184253
|
+
pcbOffsetY?: string | number;
|
|
184254
|
+
pcbRotation?: string | number;
|
|
184255
|
+
pcbPositionAnchor?: string;
|
|
184256
|
+
pcbPositionMode?: "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor";
|
|
184257
|
+
shouldBeOnEdgeOfBoard?: boolean;
|
|
184258
|
+
pcbMarginTop?: string | number;
|
|
184259
|
+
pcbMarginRight?: string | number;
|
|
184260
|
+
pcbMarginBottom?: string | number;
|
|
184261
|
+
pcbMarginLeft?: string | number;
|
|
184262
|
+
pcbMarginX?: string | number;
|
|
184263
|
+
pcbMarginY?: string | number;
|
|
184264
|
+
pcbRelative?: boolean;
|
|
184265
|
+
relative?: boolean;
|
|
184266
|
+
}
|
|
184267
|
+
declare const silkscreenGraphicProps: z.ZodObject<Omit<{
|
|
184268
|
+
pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
184269
|
+
pcbY: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
184270
|
+
pcbLeftEdgeX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
184271
|
+
pcbRightEdgeX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
184272
|
+
pcbTopEdgeY: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
184273
|
+
pcbBottomEdgeY: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
184274
|
+
pcbOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184275
|
+
pcbOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184276
|
+
pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184277
|
+
pcbPositionAnchor: z.ZodOptional<z.ZodString>;
|
|
184278
|
+
pcbPositionMode: z.ZodOptional<z.ZodEnum<["relative_to_group_anchor", "auto", "relative_to_board_anchor", "relative_to_component_anchor"]>>;
|
|
184279
|
+
shouldBeOnEdgeOfBoard: z.ZodOptional<z.ZodBoolean>;
|
|
184280
|
+
layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
184281
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
184282
|
+
}, "strip", z.ZodTypeAny, {
|
|
184283
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
184284
|
+
}, {
|
|
184285
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
184286
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
184287
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
184288
|
+
}>>;
|
|
184289
|
+
pcbMarginTop: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184290
|
+
pcbMarginRight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184291
|
+
pcbMarginBottom: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184292
|
+
pcbMarginLeft: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184293
|
+
pcbMarginX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184294
|
+
pcbMarginY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184295
|
+
pcbStyle: z.ZodOptional<z.ZodObject<{
|
|
184296
|
+
silkscreenFontSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184297
|
+
viaPadDiameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184298
|
+
viaHoleDiameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
184299
|
+
silkscreenTextPosition: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["centered", "outside", "none"]>, z.ZodObject<{
|
|
184300
|
+
offsetX: z.ZodNumber;
|
|
184301
|
+
offsetY: z.ZodNumber;
|
|
184302
|
+
}, "strip", z.ZodTypeAny, {
|
|
184303
|
+
offsetX: number;
|
|
184304
|
+
offsetY: number;
|
|
184305
|
+
}, {
|
|
184306
|
+
offsetX: number;
|
|
184307
|
+
offsetY: number;
|
|
184308
|
+
}>]>>;
|
|
184309
|
+
silkscreenTextVisibility: z.ZodOptional<z.ZodEnum<["hidden", "visible", "inherit"]>>;
|
|
184310
|
+
}, "strip", z.ZodTypeAny, {
|
|
184311
|
+
silkscreenFontSize?: number | undefined;
|
|
184312
|
+
viaPadDiameter?: number | undefined;
|
|
184313
|
+
viaHoleDiameter?: number | undefined;
|
|
184314
|
+
silkscreenTextPosition?: "centered" | "outside" | "none" | {
|
|
184315
|
+
offsetX: number;
|
|
184316
|
+
offsetY: number;
|
|
184317
|
+
} | undefined;
|
|
184318
|
+
silkscreenTextVisibility?: "hidden" | "visible" | "inherit" | undefined;
|
|
184319
|
+
}, {
|
|
184320
|
+
silkscreenFontSize?: string | number | undefined;
|
|
184321
|
+
viaPadDiameter?: string | number | undefined;
|
|
184322
|
+
viaHoleDiameter?: string | number | undefined;
|
|
184323
|
+
silkscreenTextPosition?: "centered" | "outside" | "none" | {
|
|
184324
|
+
offsetX: number;
|
|
184325
|
+
offsetY: number;
|
|
184326
|
+
} | undefined;
|
|
184327
|
+
silkscreenTextVisibility?: "hidden" | "visible" | "inherit" | undefined;
|
|
184328
|
+
}>>;
|
|
184329
|
+
pcbSx: z.ZodOptional<z.ZodType<PcbSx, z.ZodTypeDef, PcbSx>>;
|
|
184330
|
+
pcbRelative: z.ZodOptional<z.ZodBoolean>;
|
|
184331
|
+
relative: z.ZodOptional<z.ZodBoolean>;
|
|
184332
|
+
}, "layer" | "pcbStyle" | "pcbSx"> & {
|
|
184333
|
+
imageUrl: z.ZodType<string, z.ZodTypeDef, string>;
|
|
184334
|
+
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
184335
|
+
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
184336
|
+
layer: z.ZodOptional<z.ZodEnum<["top", "bottom"]>>;
|
|
184337
|
+
}, "strip", z.ZodTypeAny, {
|
|
184338
|
+
width: number;
|
|
184339
|
+
height: number;
|
|
184340
|
+
imageUrl: string;
|
|
184341
|
+
layer?: "top" | "bottom" | undefined;
|
|
184342
|
+
pcbX?: string | number | undefined;
|
|
184343
|
+
pcbY?: string | number | undefined;
|
|
184344
|
+
pcbLeftEdgeX?: string | number | undefined;
|
|
184345
|
+
pcbRightEdgeX?: string | number | undefined;
|
|
184346
|
+
pcbTopEdgeY?: string | number | undefined;
|
|
184347
|
+
pcbBottomEdgeY?: string | number | undefined;
|
|
184348
|
+
pcbOffsetX?: number | undefined;
|
|
184349
|
+
pcbOffsetY?: number | undefined;
|
|
184350
|
+
pcbRotation?: number | undefined;
|
|
184351
|
+
pcbPositionAnchor?: string | undefined;
|
|
184352
|
+
pcbPositionMode?: "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor" | undefined;
|
|
184353
|
+
shouldBeOnEdgeOfBoard?: boolean | undefined;
|
|
184354
|
+
pcbMarginTop?: number | undefined;
|
|
184355
|
+
pcbMarginRight?: number | undefined;
|
|
184356
|
+
pcbMarginBottom?: number | undefined;
|
|
184357
|
+
pcbMarginLeft?: number | undefined;
|
|
184358
|
+
pcbMarginX?: number | undefined;
|
|
184359
|
+
pcbMarginY?: number | undefined;
|
|
184360
|
+
pcbRelative?: boolean | undefined;
|
|
184361
|
+
relative?: boolean | undefined;
|
|
184362
|
+
}, {
|
|
184363
|
+
width: string | number;
|
|
184364
|
+
height: string | number;
|
|
184365
|
+
imageUrl: string;
|
|
184366
|
+
layer?: "top" | "bottom" | undefined;
|
|
184367
|
+
pcbX?: string | number | undefined;
|
|
184368
|
+
pcbY?: string | number | undefined;
|
|
184369
|
+
pcbLeftEdgeX?: string | number | undefined;
|
|
184370
|
+
pcbRightEdgeX?: string | number | undefined;
|
|
184371
|
+
pcbTopEdgeY?: string | number | undefined;
|
|
184372
|
+
pcbBottomEdgeY?: string | number | undefined;
|
|
184373
|
+
pcbOffsetX?: string | number | undefined;
|
|
184374
|
+
pcbOffsetY?: string | number | undefined;
|
|
184375
|
+
pcbRotation?: string | number | undefined;
|
|
184376
|
+
pcbPositionAnchor?: string | undefined;
|
|
184377
|
+
pcbPositionMode?: "relative_to_group_anchor" | "auto" | "relative_to_board_anchor" | "relative_to_component_anchor" | undefined;
|
|
184378
|
+
shouldBeOnEdgeOfBoard?: boolean | undefined;
|
|
184379
|
+
pcbMarginTop?: string | number | undefined;
|
|
184380
|
+
pcbMarginRight?: string | number | undefined;
|
|
184381
|
+
pcbMarginBottom?: string | number | undefined;
|
|
184382
|
+
pcbMarginLeft?: string | number | undefined;
|
|
184383
|
+
pcbMarginX?: string | number | undefined;
|
|
184384
|
+
pcbMarginY?: string | number | undefined;
|
|
184385
|
+
pcbRelative?: boolean | undefined;
|
|
184386
|
+
relative?: boolean | undefined;
|
|
184387
|
+
}>;
|
|
184388
|
+
|
|
184234
184389
|
declare const routeHintPointProps: z.ZodObject<{
|
|
184235
184390
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
184236
184391
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -185600,4 +185755,4 @@ interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBas
|
|
|
185600
185755
|
}
|
|
185601
185756
|
declare const projectConfig: z.ZodType<ProjectConfig>;
|
|
185602
185757
|
|
|
185603
|
-
export { type AnalogSimulationProps, type AutocompleteString, type AutorouterConfig, type AutorouterDefinition, type AutorouterInstance, type AutorouterPreset, type AutorouterProp, type AutoroutingPhaseProps, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BasicFootprint, type BatteryPinLabels, type BatteryProps, type BoardColor, type BoardColorPreset, type BoardProps, type Border, type BreakoutPointProps, type BreakoutProps, type CadAssemblyProps, type CadAssemblyPropsInput, type CadModelAxisDirection, type CadModelBase, type CadModelGlb, type CadModelGltf, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelProps, type CadModelPropsInput, type CadModelStep, type CadModelStl, type CadModelWrl, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CircleCutoutProps, type CircleHoleProps, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircuitJson, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConnectorProps, type ConstrainedLayoutProps, type ConstraintProps, type CopperPourProps, type CopperPourPropsInput, type CopperTextProps, type 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 CutoutProps, type CutoutPropsInput, type DiodePinLabels, type DiodeProps, type Direction, type DirectionAlongEdge, type DrcCheckProps, type EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditPcbGroupLocationEvent, type EditPcbGroupLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, type EditSchematicGroupLocationEvent, type EditSchematicGroupLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type FabricationNoteDimensionProps, type FabricationNoteDimensionPropsInput, type FabricationNotePathProps, type FabricationNoteRectProps, type FabricationNoteTextProps, type FabricationNoteTextPropsInput, type 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 InductorPinLabels, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredFuseProps, type InferredHoleProps, type InferredSchematicArcProps, type InferredSchematicBoxProps, type InferredSchematicCircleProps, type InferredSchematicLineProps, type InferredSchematicPathProps, type InferredSchematicRectProps, type InferredSchematicSectionProps, type InferredSchematicTextProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type InferredTestpointProps, type InferredViaProps, type InterconnectProps, 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 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 NonSubcircuitGroupProps, type OpAmpPinLabels, type OpAmpProps, type OvalPlatedHoleProps, type PanelProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbNoteDimensionProps, type PcbNoteDimensionPropsInput, type PcbNoteLineProps, type PcbNoteLinePropsInput, type PcbNotePathProps, type PcbNotePathPropsInput, type PcbNoteRectProps, type PcbNoteRectPropsInput, type PcbNoteTextProps, type PcbNoteTextPropsInput, type PcbPositionMode, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbStyle, type PcbSx, type PcbSxSelector, type PcbSxValue, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillHoleProps, type PillPlatedHoleProps, 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 ProjectConfig, type PushButtonProps, type RectCutoutProps, type RectHoleProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedRectSmtPadProps, type RoutingTolerances, type SchStyle, 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 SchematicSectionProps, type SchematicSymbolSize, type SchematicTableProps, type SchematicTextProps, type SelectionResult, type SelectionResultComponent, type SelectionResultNet, type SelectionResultPort, type Selectors, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SimpleRouteJson, type SmtPadProps, type SolderJumperProps, type SolderPasteProps, type SpiceEngine, type SpiceEngineSimulationResult, type SpiceModelElement, type SpiceModelProps, 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 TransistorPinLabels, type TransistorProps, type ViaProps, type VoltageProbeProps, type VoltageSourcePinLabels, type VoltageSourceProps, type WaveShape, analogSimulationProps, autorouterConfig, autorouterEffortLevel, autorouterPreset, autorouterProp, autoroutingPhaseProps, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, border, breakoutPointProps, breakoutProps, bugProps, cadModelAxisDirection, cadModelAxisDirections, cadModelBase, cadModelGlb, cadModelGltf, cadModelJscad, cadModelObj, cadModelProp, cadModelStep, cadModelStl, cadModelWrl, cadassemblyProps, cadmodelProps, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleCutoutProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, connectorProps, constrainedLayoutProps, constraintProps, copperPourProps, copperTextProps, courtyardCircleProps, courtyardOutlineProps, courtyardPillProps, courtyardRectProps, crystalPins, crystalProps, currentSourcePinLabels, currentSourcePins, currentSourceProps, customDrcCheckFn, cutoutProps, 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, explicitPinSideDefinition, fabricationNoteDimensionProps, fabricationNotePathProps, fabricationNoteRectProps, fabricationNoteTextProps, fiducialProps, footprintInsertionDirection, footprintProp, footprintProps, footprinterStringExamples, fusePinLabels, fuseProps, groupProps, holeProps, inductorPins, inductorProps, interconnectProps, 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, opampPinLabels, opampPins, opampProps, panelProps, partsEngine, pcbKeepoutProps, pcbLayoutProps, pcbNoteDimensionProps, pcbNoteLineProps, pcbNotePathProps, pcbNoteRectProps, pcbNoteTextProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbStyle, pcbSx, pcbSxValue, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillSmtPadProps, pinAttributeMap, pinCapability, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, pinoutProps, platedHoleProps, platformConfig, point3, polygonCutoutProps, polygonSmtPadProps, portHints, portProps, portRef, potentiometerPinLabels, potentiometerProps, powerSourceProps, projectConfig, pushButtonProps, rectCutoutProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resonatorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, routingTolerances, schStyle, schematicArcProps, schematicBoxProps, schematicCellProps, schematicCircleProps, schematicLineProps, schematicOrientation, schematicPathProps, schematicPinArrangement, schematicPinLabel, schematicPinStyle, schematicPortArrangement, schematicRectProps, schematicRowProps, schematicSectionProps, schematicSymbolSize, schematicTableProps, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, solderjumperProps, spicemodelProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, subpanelProps, supplierProps, switchProps, symbolProp, symbolProps, testpointPins, testpointProps, toolingrailProps, traceHintProps, traceProps, transistorPins, transistorPinsLabels, transistorProps, viaProps, voltageProbeProps, voltageSourcePinLabels, voltageSourcePins, voltageSourceProps };
|
|
185758
|
+
export { type AnalogSimulationProps, type AutocompleteString, type AutorouterConfig, type AutorouterDefinition, type AutorouterInstance, type AutorouterPreset, type AutorouterProp, type AutoroutingPhaseProps, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BasicFootprint, type BatteryPinLabels, type BatteryProps, type BoardColor, type BoardColorPreset, type BoardProps, type Border, type BreakoutPointProps, type BreakoutProps, type CadAssemblyProps, type CadAssemblyPropsInput, type CadModelAxisDirection, type CadModelBase, type CadModelGlb, type CadModelGltf, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelProps, type CadModelPropsInput, type CadModelStep, type CadModelStl, type CadModelWrl, type CapacitorPinLabels, type CapacitorProps, type ChipConnections, type ChipPinLabels, type ChipProps, type ChipPropsSU, type CircleCutoutProps, type CircleHoleProps, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CircuitJson, type CircularHoleWithRectPlatedProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConnectionTarget, type Connections, type ConnectorProps, type ConstrainedLayoutProps, type ConstraintProps, type CopperPourProps, type CopperPourPropsInput, type CopperTextProps, type 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 CutoutProps, type CutoutPropsInput, type DiodePinLabels, type DiodeProps, type Direction, type DirectionAlongEdge, type DrcCheckProps, type EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditPcbGroupLocationEvent, type EditPcbGroupLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, type EditSchematicGroupLocationEvent, type EditSchematicGroupLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type FabricationNoteDimensionProps, type FabricationNoteDimensionPropsInput, type FabricationNotePathProps, type FabricationNoteRectProps, type FabricationNoteTextProps, type FabricationNoteTextPropsInput, type 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 InductorPinLabels, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredDiodeProps, type InferredFuseProps, type InferredHoleProps, type InferredSchematicArcProps, type InferredSchematicBoxProps, type InferredSchematicCircleProps, type InferredSchematicLineProps, type InferredSchematicPathProps, type InferredSchematicRectProps, type InferredSchematicSectionProps, type InferredSchematicTextProps, type InferredSmtPadProps, type InferredSolderPasteProps, type InferredSwitchProps, type InferredTestpointProps, type InferredViaProps, type InterconnectProps, 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 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 NonSubcircuitGroupProps, type OpAmpPinLabels, type OpAmpProps, type OvalPlatedHoleProps, type PanelProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbNoteDimensionProps, type PcbNoteDimensionPropsInput, type PcbNoteLineProps, type PcbNoteLinePropsInput, type PcbNotePathProps, type PcbNotePathPropsInput, type PcbNoteRectProps, type PcbNoteRectPropsInput, type PcbNoteTextProps, type PcbNoteTextPropsInput, type PcbPositionMode, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbStyle, type PcbSx, type PcbSxSelector, type PcbSxValue, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillHoleProps, type PillPlatedHoleProps, 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 ProjectConfig, type PushButtonProps, type RectCutoutProps, type RectHoleProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorPinLabels, type ResistorProps, type ResonatorPinVariant, type ResonatorProps, type RotatedRectSmtPadProps, type RoutingTolerances, type SchStyle, 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 SchematicSectionProps, 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 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 TransistorPinLabels, type TransistorProps, type ViaProps, type VoltageProbeProps, type VoltageSourcePinLabels, type VoltageSourceProps, type WaveShape, analogSimulationProps, autorouterConfig, autorouterEffortLevel, autorouterPreset, autorouterProp, autoroutingPhaseProps, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, border, breakoutPointProps, breakoutProps, bugProps, cadModelAxisDirection, cadModelAxisDirections, cadModelBase, cadModelGlb, cadModelGltf, cadModelJscad, cadModelObj, cadModelProp, cadModelStep, cadModelStl, cadModelWrl, cadassemblyProps, cadmodelProps, capacitorPinLabels, capacitorPins, capacitorProps, chipProps, circleCutoutProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, connectorProps, constrainedLayoutProps, constraintProps, copperPourProps, copperTextProps, courtyardCircleProps, courtyardOutlineProps, courtyardPillProps, courtyardRectProps, crystalPins, crystalProps, currentSourcePinLabels, currentSourcePins, currentSourceProps, customDrcCheckFn, cutoutProps, 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, explicitPinSideDefinition, fabricationNoteDimensionProps, fabricationNotePathProps, fabricationNoteRectProps, fabricationNoteTextProps, fiducialProps, footprintInsertionDirection, footprintProp, footprintProps, footprinterStringExamples, fusePinLabels, fuseProps, groupProps, holeProps, inductorPins, inductorProps, interconnectProps, 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, opampPinLabels, opampPins, opampProps, panelProps, partsEngine, pcbKeepoutProps, pcbLayoutProps, pcbNoteDimensionProps, pcbNoteLineProps, pcbNotePathProps, pcbNoteRectProps, pcbNoteTextProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbStyle, pcbSx, pcbSxValue, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pillSmtPadProps, pinAttributeMap, pinCapability, pinCompatibleVariant, pinHeaderProps, pinLabelsProp, pinoutProps, platedHoleProps, platformConfig, point3, polygonCutoutProps, polygonSmtPadProps, portHints, portProps, portRef, potentiometerPinLabels, potentiometerProps, powerSourceProps, projectConfig, pushButtonProps, rectCutoutProps, rectSmtPadProps, rectSolderPasteProps, resistorPinLabels, resistorPins, resistorProps, resonatorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, routingTolerances, schStyle, schematicArcProps, schematicBoxProps, schematicCellProps, schematicCircleProps, schematicLineProps, schematicOrientation, schematicPathProps, schematicPinArrangement, schematicPinLabel, schematicPinStyle, schematicPortArrangement, schematicRectProps, schematicRowProps, schematicSectionProps, schematicSymbolSize, schematicTableProps, schematicTextProps, silkscreenCircleProps, silkscreenGraphicProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, solderjumperProps, spicemodelProps, stampboardProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, subpanelProps, supplierProps, switchProps, symbolProp, symbolProps, testpointPins, testpointProps, toolingrailProps, traceHintProps, traceProps, transistorPins, transistorPinsLabels, transistorProps, viaProps, voltageProbeProps, voltageSourcePinLabels, voltageSourcePins, voltageSourceProps };
|
package/dist/index.js
CHANGED
|
@@ -18242,65 +18242,76 @@ var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
|
18242
18242
|
radius: distance42
|
|
18243
18243
|
});
|
|
18244
18244
|
|
|
18245
|
+
// lib/components/silkscreen-graphic.ts
|
|
18246
|
+
import { visible_layer } from "circuit-json";
|
|
18247
|
+
import "zod";
|
|
18248
|
+
var silkscreenGraphicProps = pcbLayoutProps.omit({ layer: true, pcbStyle: true, pcbSx: true }).extend({
|
|
18249
|
+
imageUrl: url,
|
|
18250
|
+
width: distance,
|
|
18251
|
+
height: distance,
|
|
18252
|
+
layer: visible_layer.optional()
|
|
18253
|
+
});
|
|
18254
|
+
expectTypesMatch(true);
|
|
18255
|
+
|
|
18245
18256
|
// lib/components/trace-hint.ts
|
|
18246
18257
|
import { distance as distance43, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
|
|
18247
|
-
import { z as
|
|
18248
|
-
var routeHintPointProps =
|
|
18258
|
+
import { z as z122 } from "zod";
|
|
18259
|
+
var routeHintPointProps = z122.object({
|
|
18249
18260
|
x: distance43,
|
|
18250
18261
|
y: distance43,
|
|
18251
|
-
via:
|
|
18262
|
+
via: z122.boolean().optional(),
|
|
18252
18263
|
toLayer: layer_ref12.optional()
|
|
18253
18264
|
});
|
|
18254
|
-
var traceHintProps =
|
|
18255
|
-
for:
|
|
18265
|
+
var traceHintProps = z122.object({
|
|
18266
|
+
for: z122.string().optional().describe(
|
|
18256
18267
|
"Selector for the port you're targeting, not required if you're inside a trace"
|
|
18257
18268
|
),
|
|
18258
|
-
order:
|
|
18269
|
+
order: z122.number().optional(),
|
|
18259
18270
|
offset: route_hint_point6.or(routeHintPointProps).optional(),
|
|
18260
|
-
offsets:
|
|
18261
|
-
traceWidth:
|
|
18271
|
+
offsets: z122.array(route_hint_point6).or(z122.array(routeHintPointProps)).optional(),
|
|
18272
|
+
traceWidth: z122.number().optional()
|
|
18262
18273
|
});
|
|
18263
18274
|
|
|
18264
18275
|
// lib/components/port.ts
|
|
18265
|
-
import { z as
|
|
18276
|
+
import { z as z123 } from "zod";
|
|
18266
18277
|
var portProps = commonLayoutProps.extend({
|
|
18267
|
-
name:
|
|
18268
|
-
pinNumber:
|
|
18269
|
-
schStemLength:
|
|
18270
|
-
aliases:
|
|
18271
|
-
layer:
|
|
18272
|
-
layers:
|
|
18273
|
-
schX:
|
|
18274
|
-
schY:
|
|
18278
|
+
name: z123.string().optional(),
|
|
18279
|
+
pinNumber: z123.number().optional(),
|
|
18280
|
+
schStemLength: z123.number().optional(),
|
|
18281
|
+
aliases: z123.array(z123.string()).optional(),
|
|
18282
|
+
layer: z123.string().optional(),
|
|
18283
|
+
layers: z123.array(z123.string()).optional(),
|
|
18284
|
+
schX: z123.number().optional(),
|
|
18285
|
+
schY: z123.number().optional(),
|
|
18275
18286
|
direction: direction.optional(),
|
|
18276
|
-
connectsTo:
|
|
18287
|
+
connectsTo: z123.string().or(z123.array(z123.string())).optional(),
|
|
18277
18288
|
kicadPinMetadata: kicadPinMetadata.optional(),
|
|
18278
|
-
hasInversionCircle:
|
|
18289
|
+
hasInversionCircle: z123.boolean().optional()
|
|
18279
18290
|
});
|
|
18280
18291
|
|
|
18281
18292
|
// lib/components/pcb-note-text.ts
|
|
18282
18293
|
import { length as length11 } from "circuit-json";
|
|
18283
|
-
import { z as
|
|
18294
|
+
import { z as z124 } from "zod";
|
|
18284
18295
|
var pcbNoteTextProps = pcbLayoutProps.extend({
|
|
18285
|
-
text:
|
|
18286
|
-
anchorAlignment:
|
|
18287
|
-
font:
|
|
18296
|
+
text: z124.string(),
|
|
18297
|
+
anchorAlignment: z124.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
|
|
18298
|
+
font: z124.enum(["tscircuit2024"]).optional(),
|
|
18288
18299
|
fontSize: length11.optional(),
|
|
18289
|
-
color:
|
|
18300
|
+
color: z124.string().optional()
|
|
18290
18301
|
});
|
|
18291
18302
|
expectTypesMatch(true);
|
|
18292
18303
|
|
|
18293
18304
|
// lib/components/pcb-note-rect.ts
|
|
18294
18305
|
import { distance as distance44 } from "circuit-json";
|
|
18295
|
-
import { z as
|
|
18306
|
+
import { z as z125 } from "zod";
|
|
18296
18307
|
var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18297
18308
|
width: distance44,
|
|
18298
18309
|
height: distance44,
|
|
18299
18310
|
strokeWidth: distance44.optional(),
|
|
18300
|
-
isFilled:
|
|
18301
|
-
hasStroke:
|
|
18302
|
-
isStrokeDashed:
|
|
18303
|
-
color:
|
|
18311
|
+
isFilled: z125.boolean().optional(),
|
|
18312
|
+
hasStroke: z125.boolean().optional(),
|
|
18313
|
+
isStrokeDashed: z125.boolean().optional(),
|
|
18314
|
+
color: z125.string().optional(),
|
|
18304
18315
|
cornerRadius: distance44.optional()
|
|
18305
18316
|
});
|
|
18306
18317
|
expectTypesMatch(true);
|
|
@@ -18310,7 +18321,7 @@ import {
|
|
|
18310
18321
|
length as length12,
|
|
18311
18322
|
route_hint_point as route_hint_point7
|
|
18312
18323
|
} from "circuit-json";
|
|
18313
|
-
import { z as
|
|
18324
|
+
import { z as z126 } from "zod";
|
|
18314
18325
|
var pcbNotePathProps = pcbLayoutProps.omit({
|
|
18315
18326
|
pcbLeftEdgeX: true,
|
|
18316
18327
|
pcbRightEdgeX: true,
|
|
@@ -18322,15 +18333,15 @@ var pcbNotePathProps = pcbLayoutProps.omit({
|
|
|
18322
18333
|
pcbOffsetY: true,
|
|
18323
18334
|
pcbRotation: true
|
|
18324
18335
|
}).extend({
|
|
18325
|
-
route:
|
|
18336
|
+
route: z126.array(route_hint_point7),
|
|
18326
18337
|
strokeWidth: length12.optional(),
|
|
18327
|
-
color:
|
|
18338
|
+
color: z126.string().optional()
|
|
18328
18339
|
});
|
|
18329
18340
|
expectTypesMatch(true);
|
|
18330
18341
|
|
|
18331
18342
|
// lib/components/pcb-note-line.ts
|
|
18332
18343
|
import { distance as distance45 } from "circuit-json";
|
|
18333
|
-
import { z as
|
|
18344
|
+
import { z as z127 } from "zod";
|
|
18334
18345
|
var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
18335
18346
|
pcbLeftEdgeX: true,
|
|
18336
18347
|
pcbRightEdgeX: true,
|
|
@@ -18347,15 +18358,15 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
|
18347
18358
|
x2: distance45,
|
|
18348
18359
|
y2: distance45,
|
|
18349
18360
|
strokeWidth: distance45.optional(),
|
|
18350
|
-
color:
|
|
18351
|
-
isDashed:
|
|
18361
|
+
color: z127.string().optional(),
|
|
18362
|
+
isDashed: z127.boolean().optional()
|
|
18352
18363
|
});
|
|
18353
18364
|
expectTypesMatch(true);
|
|
18354
18365
|
|
|
18355
18366
|
// lib/components/pcb-note-dimension.ts
|
|
18356
18367
|
import { distance as distance46, length as length13 } from "circuit-json";
|
|
18357
|
-
import { z as
|
|
18358
|
-
var dimensionTarget2 =
|
|
18368
|
+
import { z as z128 } from "zod";
|
|
18369
|
+
var dimensionTarget2 = z128.union([z128.string(), point]);
|
|
18359
18370
|
var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
18360
18371
|
pcbLeftEdgeX: true,
|
|
18361
18372
|
pcbRightEdgeX: true,
|
|
@@ -18369,101 +18380,101 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
18369
18380
|
}).extend({
|
|
18370
18381
|
from: dimensionTarget2,
|
|
18371
18382
|
to: dimensionTarget2,
|
|
18372
|
-
text:
|
|
18383
|
+
text: z128.string().optional(),
|
|
18373
18384
|
offset: distance46.optional(),
|
|
18374
|
-
font:
|
|
18385
|
+
font: z128.enum(["tscircuit2024"]).optional(),
|
|
18375
18386
|
fontSize: length13.optional(),
|
|
18376
|
-
color:
|
|
18387
|
+
color: z128.string().optional(),
|
|
18377
18388
|
arrowSize: distance46.optional(),
|
|
18378
|
-
units:
|
|
18379
|
-
outerEdgeToEdge:
|
|
18380
|
-
centerToCenter:
|
|
18381
|
-
innerEdgeToEdge:
|
|
18389
|
+
units: z128.enum(["in", "mm"]).optional(),
|
|
18390
|
+
outerEdgeToEdge: z128.literal(true).optional(),
|
|
18391
|
+
centerToCenter: z128.literal(true).optional(),
|
|
18392
|
+
innerEdgeToEdge: z128.literal(true).optional()
|
|
18382
18393
|
});
|
|
18383
18394
|
expectTypesMatch(
|
|
18384
18395
|
true
|
|
18385
18396
|
);
|
|
18386
18397
|
|
|
18387
18398
|
// lib/platformConfig.ts
|
|
18388
|
-
import { z as
|
|
18389
|
-
var unvalidatedCircuitJson =
|
|
18390
|
-
var footprintLibraryResult =
|
|
18391
|
-
footprintCircuitJson:
|
|
18399
|
+
import { z as z129 } from "zod";
|
|
18400
|
+
var unvalidatedCircuitJson = z129.array(z129.any()).describe("Circuit JSON");
|
|
18401
|
+
var footprintLibraryResult = z129.object({
|
|
18402
|
+
footprintCircuitJson: z129.array(z129.any()),
|
|
18392
18403
|
cadModel: cadModelProp.optional()
|
|
18393
18404
|
});
|
|
18394
|
-
var pathToCircuitJsonFn =
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
).returns(
|
|
18405
|
+
var pathToCircuitJsonFn = z129.function().args(z129.string()).returns(z129.promise(footprintLibraryResult)).or(
|
|
18406
|
+
z129.function().args(
|
|
18407
|
+
z129.string(),
|
|
18408
|
+
z129.object({ resolvedPcbStyle: pcbStyle.optional() }).optional()
|
|
18409
|
+
).returns(z129.promise(footprintLibraryResult))
|
|
18399
18410
|
).describe("A function that takes a path and returns Circuit JSON");
|
|
18400
|
-
var footprintFileParserEntry =
|
|
18401
|
-
loadFromUrl:
|
|
18411
|
+
var footprintFileParserEntry = z129.object({
|
|
18412
|
+
loadFromUrl: z129.function().args(z129.string()).returns(z129.promise(footprintLibraryResult)).describe(
|
|
18402
18413
|
"A function that takes a footprint file URL and returns Circuit JSON"
|
|
18403
18414
|
)
|
|
18404
18415
|
});
|
|
18405
|
-
var spiceEngineSimulationResult =
|
|
18406
|
-
engineVersionString:
|
|
18416
|
+
var spiceEngineSimulationResult = z129.object({
|
|
18417
|
+
engineVersionString: z129.string().optional(),
|
|
18407
18418
|
simulationResultCircuitJson: unvalidatedCircuitJson
|
|
18408
18419
|
});
|
|
18409
|
-
var spiceEngineZod =
|
|
18410
|
-
simulate:
|
|
18420
|
+
var spiceEngineZod = z129.object({
|
|
18421
|
+
simulate: z129.function().args(z129.string()).returns(z129.promise(spiceEngineSimulationResult)).describe(
|
|
18411
18422
|
"A function that takes a SPICE string and returns a simulation result"
|
|
18412
18423
|
)
|
|
18413
18424
|
});
|
|
18414
|
-
var defaultSpiceEngine =
|
|
18425
|
+
var defaultSpiceEngine = z129.custom(
|
|
18415
18426
|
(value) => typeof value === "string"
|
|
18416
18427
|
);
|
|
18417
|
-
var autorouterInstance =
|
|
18418
|
-
run:
|
|
18419
|
-
getOutputSimpleRouteJson:
|
|
18428
|
+
var autorouterInstance = z129.object({
|
|
18429
|
+
run: z129.function().args().returns(z129.promise(z129.unknown())).describe("Run the autorouter"),
|
|
18430
|
+
getOutputSimpleRouteJson: z129.function().args().returns(z129.promise(z129.any())).describe("Get the resulting SimpleRouteJson")
|
|
18420
18431
|
});
|
|
18421
|
-
var autorouterDefinition =
|
|
18422
|
-
createAutorouter:
|
|
18432
|
+
var autorouterDefinition = z129.object({
|
|
18433
|
+
createAutorouter: z129.function().args(z129.any(), z129.any().optional()).returns(z129.union([autorouterInstance, z129.promise(autorouterInstance)])).describe("Create an autorouter instance")
|
|
18423
18434
|
});
|
|
18424
|
-
var platformFetch =
|
|
18425
|
-
var platformConfig =
|
|
18435
|
+
var platformFetch = z129.custom((value) => typeof value === "function").describe("A fetch-like function to use for platform requests");
|
|
18436
|
+
var platformConfig = z129.object({
|
|
18426
18437
|
partsEngine: partsEngine.optional(),
|
|
18427
18438
|
autorouter: autorouterProp.optional(),
|
|
18428
|
-
autorouterMap:
|
|
18439
|
+
autorouterMap: z129.record(z129.string(), autorouterDefinition).optional(),
|
|
18429
18440
|
registryApiUrl: url.optional(),
|
|
18430
18441
|
cloudAutorouterUrl: url.optional(),
|
|
18431
|
-
projectName:
|
|
18442
|
+
projectName: z129.string().optional(),
|
|
18432
18443
|
projectBaseUrl: url.optional(),
|
|
18433
|
-
version:
|
|
18444
|
+
version: z129.string().optional(),
|
|
18434
18445
|
url: url.optional(),
|
|
18435
|
-
printBoardInformationToSilkscreen:
|
|
18436
|
-
includeBoardFiles:
|
|
18446
|
+
printBoardInformationToSilkscreen: z129.boolean().optional(),
|
|
18447
|
+
includeBoardFiles: z129.array(z129.string()).describe(
|
|
18437
18448
|
'The board files to automatically build with "tsci build", defaults to ["**/*.circuit.tsx"]. Can be an array of files or globs'
|
|
18438
18449
|
).optional(),
|
|
18439
|
-
snapshotsDir:
|
|
18450
|
+
snapshotsDir: z129.string().describe(
|
|
18440
18451
|
'The directory where snapshots are stored for "tsci snapshot", defaults to "tests/__snapshots__"'
|
|
18441
18452
|
).optional(),
|
|
18442
18453
|
defaultSpiceEngine: defaultSpiceEngine.optional(),
|
|
18443
|
-
unitPreference:
|
|
18444
|
-
localCacheEngine:
|
|
18445
|
-
pcbDisabled:
|
|
18446
|
-
routingDisabled:
|
|
18447
|
-
schematicDisabled:
|
|
18448
|
-
partsEngineDisabled:
|
|
18449
|
-
drcChecksDisabled:
|
|
18450
|
-
netlistDrcChecksDisabled:
|
|
18451
|
-
routingDrcChecksDisabled:
|
|
18452
|
-
placementDrcChecksDisabled:
|
|
18453
|
-
pinSpecificationDrcChecksDisabled:
|
|
18454
|
-
spiceEngineMap:
|
|
18455
|
-
footprintLibraryMap:
|
|
18456
|
-
|
|
18457
|
-
|
|
18454
|
+
unitPreference: z129.enum(["mm", "in", "mil"]).optional(),
|
|
18455
|
+
localCacheEngine: z129.any().optional(),
|
|
18456
|
+
pcbDisabled: z129.boolean().optional(),
|
|
18457
|
+
routingDisabled: z129.boolean().optional(),
|
|
18458
|
+
schematicDisabled: z129.boolean().optional(),
|
|
18459
|
+
partsEngineDisabled: z129.boolean().optional(),
|
|
18460
|
+
drcChecksDisabled: z129.boolean().optional(),
|
|
18461
|
+
netlistDrcChecksDisabled: z129.boolean().optional(),
|
|
18462
|
+
routingDrcChecksDisabled: z129.boolean().optional(),
|
|
18463
|
+
placementDrcChecksDisabled: z129.boolean().optional(),
|
|
18464
|
+
pinSpecificationDrcChecksDisabled: z129.boolean().optional(),
|
|
18465
|
+
spiceEngineMap: z129.record(z129.string(), spiceEngineZod).optional(),
|
|
18466
|
+
footprintLibraryMap: z129.record(
|
|
18467
|
+
z129.string(),
|
|
18468
|
+
z129.union([
|
|
18458
18469
|
pathToCircuitJsonFn,
|
|
18459
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
18470
|
+
z129.record(
|
|
18471
|
+
z129.string(),
|
|
18472
|
+
z129.union([unvalidatedCircuitJson, pathToCircuitJsonFn])
|
|
18462
18473
|
)
|
|
18463
18474
|
])
|
|
18464
18475
|
).optional(),
|
|
18465
|
-
footprintFileParserMap:
|
|
18466
|
-
resolveProjectStaticFileImportUrl:
|
|
18476
|
+
footprintFileParserMap: z129.record(z129.string(), footprintFileParserEntry).optional(),
|
|
18477
|
+
resolveProjectStaticFileImportUrl: z129.function().args(z129.string()).returns(z129.promise(z129.string())).describe(
|
|
18467
18478
|
"A function that returns a string URL for static files for the project"
|
|
18468
18479
|
).optional(),
|
|
18469
18480
|
platformFetch: platformFetch.optional()
|
|
@@ -18676,6 +18687,7 @@ export {
|
|
|
18676
18687
|
schematicTableProps,
|
|
18677
18688
|
schematicTextProps,
|
|
18678
18689
|
silkscreenCircleProps,
|
|
18690
|
+
silkscreenGraphicProps,
|
|
18679
18691
|
silkscreenLineProps,
|
|
18680
18692
|
silkscreenPathProps,
|
|
18681
18693
|
silkscreenRectProps,
|