@tscircuit/props 0.0.539 → 0.0.541
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 +5 -4
- package/dist/index.d.ts +23 -19
- package/dist/index.js +34 -32
- package/dist/index.js.map +1 -1
- package/lib/components/chip.ts +4 -4
- package/lib/components/schematic-section.ts +3 -0
- package/lib/components/spicemodel.ts +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ resistorProps.parse({ resistance: "10k" } as ResistorPropsInput);
|
|
|
101
101
|
| `<smtpad />` | [`RectSmtPadProps`](#rectsmtpadprops-smtpad) |
|
|
102
102
|
| `<solderjumper />` | [`SolderJumperProps`](#solderjumperprops-solderjumper) |
|
|
103
103
|
| `<solderpaste />` | [`RectSolderPasteProps`](#rectsolderpasteprops-solderpaste) |
|
|
104
|
-
| `<spicemodel />` | [`
|
|
104
|
+
| `<spicemodel />` | [`SpiceModelProps`](#spicemodelprops-spicemodel) |
|
|
105
105
|
| `<stampboard />` | [`StampboardProps`](#stampboardprops-stampboard) |
|
|
106
106
|
| `<subcircuit />` | [`SubcircuitProps`](#subcircuitprops-subcircuit) |
|
|
107
107
|
| `<subpanel />` | [`SubpanelProps`](#subpanelprops-subpanel) |
|
|
@@ -416,7 +416,7 @@ export interface ChipPropsSU<
|
|
|
416
416
|
*/
|
|
417
417
|
noConnect?: readonly PinLabel[] | PinLabel[];
|
|
418
418
|
connections?: Connections<PinLabel>;
|
|
419
|
-
spiceModel?:
|
|
419
|
+
spiceModel?: SpiceModelElement;
|
|
420
420
|
}
|
|
421
421
|
```
|
|
422
422
|
|
|
@@ -1584,6 +1584,7 @@ export interface SchematicRowProps {
|
|
|
1584
1584
|
export interface SchematicSectionProps {
|
|
1585
1585
|
displayName?: string;
|
|
1586
1586
|
name: string;
|
|
1587
|
+
sectionTitleFontSize?: number | string;
|
|
1587
1588
|
}
|
|
1588
1589
|
```
|
|
1589
1590
|
|
|
@@ -1715,10 +1716,10 @@ export interface RectSolderPasteProps extends Omit<
|
|
|
1715
1716
|
|
|
1716
1717
|
[Source](https://github.com/tscircuit/props/blob/main/lib/components/solderpaste.ts)
|
|
1717
1718
|
|
|
1718
|
-
###
|
|
1719
|
+
### SpiceModelProps `<spicemodel />`
|
|
1719
1720
|
|
|
1720
1721
|
```ts
|
|
1721
|
-
export interface
|
|
1722
|
+
export interface SpiceModelProps {
|
|
1722
1723
|
source: string;
|
|
1723
1724
|
spicePinMapping?: Record<string, string>;
|
|
1724
1725
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -29527,7 +29527,7 @@ declare const breakoutProps: z.ZodObject<{
|
|
|
29527
29527
|
schMatchAdapt?: boolean | undefined;
|
|
29528
29528
|
}>;
|
|
29529
29529
|
|
|
29530
|
-
interface
|
|
29530
|
+
interface SpiceModelProps {
|
|
29531
29531
|
source: string;
|
|
29532
29532
|
spicePinMapping?: Record<string, string>;
|
|
29533
29533
|
}
|
|
@@ -29548,7 +29548,7 @@ interface PinCompatibleVariant {
|
|
|
29548
29548
|
manufacturerPartNumber?: string;
|
|
29549
29549
|
supplierPartNumber?: SupplierPartNumbers;
|
|
29550
29550
|
}
|
|
29551
|
-
type
|
|
29551
|
+
type SpiceModelElement = ReactElement<SpiceModelProps>;
|
|
29552
29552
|
interface ChipPropsSU<PinLabel extends SchematicPinLabel = SchematicPinLabel> extends CommonComponentProps<PinLabel> {
|
|
29553
29553
|
manufacturerPartNumber?: string;
|
|
29554
29554
|
pinLabels?: PinLabelsProp<SchematicPinLabel, PinLabel>;
|
|
@@ -29578,7 +29578,7 @@ interface ChipPropsSU<PinLabel extends SchematicPinLabel = SchematicPinLabel> ex
|
|
|
29578
29578
|
*/
|
|
29579
29579
|
noConnect?: readonly PinLabel[] | PinLabel[];
|
|
29580
29580
|
connections?: Connections<PinLabel>;
|
|
29581
|
-
spiceModel?:
|
|
29581
|
+
spiceModel?: SpiceModelElement;
|
|
29582
29582
|
}
|
|
29583
29583
|
type ChipProps<PinLabelMap extends PinLabelsProp | string = string> = ChipPropsSU<PinLabelMap extends PinLabelsProp ? PinLabelFromPinLabelMap<PinLabelMap> | keyof PinLabelMap : PinLabelMap>;
|
|
29584
29584
|
/**
|
|
@@ -33275,7 +33275,7 @@ declare const chipProps: z.ZodObject<{
|
|
|
33275
33275
|
noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
|
|
33276
33276
|
noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
|
|
33277
33277
|
connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
33278
|
-
spiceModel: z.ZodOptional<z.ZodType<
|
|
33278
|
+
spiceModel: z.ZodOptional<z.ZodType<SpiceModelElement, z.ZodTypeDef, SpiceModelElement>>;
|
|
33279
33279
|
}, "strip", z.ZodTypeAny, {
|
|
33280
33280
|
name: string;
|
|
33281
33281
|
symbol?: SymbolProp | undefined;
|
|
@@ -33930,7 +33930,7 @@ declare const chipProps: z.ZodObject<{
|
|
|
33930
33930
|
}[] | undefined;
|
|
33931
33931
|
noSchematicRepresentation?: boolean | undefined;
|
|
33932
33932
|
noConnect?: readonly string[] | string[] | undefined;
|
|
33933
|
-
spiceModel?:
|
|
33933
|
+
spiceModel?: SpiceModelElement | undefined;
|
|
33934
33934
|
}, {
|
|
33935
33935
|
name: string;
|
|
33936
33936
|
symbol?: SymbolProp | undefined;
|
|
@@ -34587,7 +34587,7 @@ declare const chipProps: z.ZodObject<{
|
|
|
34587
34587
|
}[] | undefined;
|
|
34588
34588
|
noSchematicRepresentation?: boolean | undefined;
|
|
34589
34589
|
noConnect?: readonly string[] | string[] | undefined;
|
|
34590
|
-
spiceModel?:
|
|
34590
|
+
spiceModel?: SpiceModelElement | undefined;
|
|
34591
34591
|
}>;
|
|
34592
34592
|
/**
|
|
34593
34593
|
* @deprecated Use ChipProps instead.
|
|
@@ -38246,7 +38246,7 @@ declare const bugProps: z.ZodObject<{
|
|
|
38246
38246
|
noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
|
|
38247
38247
|
noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
|
|
38248
38248
|
connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
38249
|
-
spiceModel: z.ZodOptional<z.ZodType<
|
|
38249
|
+
spiceModel: z.ZodOptional<z.ZodType<SpiceModelElement, z.ZodTypeDef, SpiceModelElement>>;
|
|
38250
38250
|
}, "strip", z.ZodTypeAny, {
|
|
38251
38251
|
name: string;
|
|
38252
38252
|
symbol?: SymbolProp | undefined;
|
|
@@ -38901,7 +38901,7 @@ declare const bugProps: z.ZodObject<{
|
|
|
38901
38901
|
}[] | undefined;
|
|
38902
38902
|
noSchematicRepresentation?: boolean | undefined;
|
|
38903
38903
|
noConnect?: readonly string[] | string[] | undefined;
|
|
38904
|
-
spiceModel?:
|
|
38904
|
+
spiceModel?: SpiceModelElement | undefined;
|
|
38905
38905
|
}, {
|
|
38906
38906
|
name: string;
|
|
38907
38907
|
symbol?: SymbolProp | undefined;
|
|
@@ -39558,7 +39558,7 @@ declare const bugProps: z.ZodObject<{
|
|
|
39558
39558
|
}[] | undefined;
|
|
39559
39559
|
noSchematicRepresentation?: boolean | undefined;
|
|
39560
39560
|
noConnect?: readonly string[] | string[] | undefined;
|
|
39561
|
-
spiceModel?:
|
|
39561
|
+
spiceModel?: SpiceModelElement | undefined;
|
|
39562
39562
|
}>;
|
|
39563
39563
|
type InferredChipProps = z.input<typeof chipProps>;
|
|
39564
39564
|
|
|
@@ -43216,7 +43216,7 @@ declare const pinoutProps: z.ZodObject<{
|
|
|
43216
43216
|
noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
|
|
43217
43217
|
noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
|
|
43218
43218
|
connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
43219
|
-
spiceModel: z.ZodOptional<z.ZodType<
|
|
43219
|
+
spiceModel: z.ZodOptional<z.ZodType<SpiceModelElement, z.ZodTypeDef, SpiceModelElement>>;
|
|
43220
43220
|
}, "strip", z.ZodTypeAny, {
|
|
43221
43221
|
name: string;
|
|
43222
43222
|
symbol?: SymbolProp | undefined;
|
|
@@ -43871,7 +43871,7 @@ declare const pinoutProps: z.ZodObject<{
|
|
|
43871
43871
|
}[] | undefined;
|
|
43872
43872
|
noSchematicRepresentation?: boolean | undefined;
|
|
43873
43873
|
noConnect?: readonly string[] | string[] | undefined;
|
|
43874
|
-
spiceModel?:
|
|
43874
|
+
spiceModel?: SpiceModelElement | undefined;
|
|
43875
43875
|
}, {
|
|
43876
43876
|
name: string;
|
|
43877
43877
|
symbol?: SymbolProp | undefined;
|
|
@@ -44528,7 +44528,7 @@ declare const pinoutProps: z.ZodObject<{
|
|
|
44528
44528
|
}[] | undefined;
|
|
44529
44529
|
noSchematicRepresentation?: boolean | undefined;
|
|
44530
44530
|
noConnect?: readonly string[] | string[] | undefined;
|
|
44531
|
-
spiceModel?:
|
|
44531
|
+
spiceModel?: SpiceModelElement | undefined;
|
|
44532
44532
|
}>;
|
|
44533
44533
|
interface PinoutProps<PinLabelMap extends PinLabelsProp | string = string> extends ChipProps<PinLabelMap> {
|
|
44534
44534
|
}
|
|
@@ -58126,7 +58126,7 @@ declare const connectorProps: z.ZodObject<{
|
|
|
58126
58126
|
noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
|
|
58127
58127
|
noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
|
|
58128
58128
|
connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
58129
|
-
spiceModel: z.ZodOptional<z.ZodType<
|
|
58129
|
+
spiceModel: z.ZodOptional<z.ZodType<SpiceModelElement, z.ZodTypeDef, SpiceModelElement>>;
|
|
58130
58130
|
} & {
|
|
58131
58131
|
standard: z.ZodOptional<z.ZodEnum<["usb_c", "m2"]>>;
|
|
58132
58132
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -58783,7 +58783,7 @@ declare const connectorProps: z.ZodObject<{
|
|
|
58783
58783
|
}[] | undefined;
|
|
58784
58784
|
noSchematicRepresentation?: boolean | undefined;
|
|
58785
58785
|
noConnect?: readonly string[] | string[] | undefined;
|
|
58786
|
-
spiceModel?:
|
|
58786
|
+
spiceModel?: SpiceModelElement | undefined;
|
|
58787
58787
|
standard?: "usb_c" | "m2" | undefined;
|
|
58788
58788
|
}, {
|
|
58789
58789
|
name: string;
|
|
@@ -59441,7 +59441,7 @@ declare const connectorProps: z.ZodObject<{
|
|
|
59441
59441
|
}[] | undefined;
|
|
59442
59442
|
noSchematicRepresentation?: boolean | undefined;
|
|
59443
59443
|
noConnect?: readonly string[] | string[] | undefined;
|
|
59444
|
-
spiceModel?:
|
|
59444
|
+
spiceModel?: SpiceModelElement | undefined;
|
|
59445
59445
|
standard?: "usb_c" | "m2" | undefined;
|
|
59446
59446
|
}>;
|
|
59447
59447
|
|
|
@@ -118875,7 +118875,7 @@ declare const pushButtonProps: z.ZodObject<{
|
|
|
118875
118875
|
noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
|
|
118876
118876
|
noConnect: z.ZodOptional<z.ZodUnion<[z.ZodReadonly<z.ZodArray<z.ZodString, "many">>, z.ZodArray<z.ZodString, "many">]>>;
|
|
118877
118877
|
connections: z.ZodOptional<z.ZodPipeline<z.ZodType<Partial<Record<string, string | string[] | readonly string[]>>, z.ZodTypeDef, Partial<Record<string, string | string[] | readonly string[]>>>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
118878
|
-
spiceModel: z.ZodOptional<z.ZodType<
|
|
118878
|
+
spiceModel: z.ZodOptional<z.ZodType<SpiceModelElement, z.ZodTypeDef, SpiceModelElement>>;
|
|
118879
118879
|
}, "strip", z.ZodTypeAny, {
|
|
118880
118880
|
name: string;
|
|
118881
118881
|
symbol?: SymbolProp | undefined;
|
|
@@ -119530,7 +119530,7 @@ declare const pushButtonProps: z.ZodObject<{
|
|
|
119530
119530
|
}[] | undefined;
|
|
119531
119531
|
noSchematicRepresentation?: boolean | undefined;
|
|
119532
119532
|
noConnect?: readonly string[] | string[] | undefined;
|
|
119533
|
-
spiceModel?:
|
|
119533
|
+
spiceModel?: SpiceModelElement | undefined;
|
|
119534
119534
|
}, {
|
|
119535
119535
|
name: string;
|
|
119536
119536
|
symbol?: SymbolProp | undefined;
|
|
@@ -120187,7 +120187,7 @@ declare const pushButtonProps: z.ZodObject<{
|
|
|
120187
120187
|
}[] | undefined;
|
|
120188
120188
|
noSchematicRepresentation?: boolean | undefined;
|
|
120189
120189
|
noConnect?: readonly string[] | string[] | undefined;
|
|
120190
|
-
spiceModel?:
|
|
120190
|
+
spiceModel?: SpiceModelElement | undefined;
|
|
120191
120191
|
}>;
|
|
120192
120192
|
|
|
120193
120193
|
type SubcircuitProps = SubcircuitGroupProps;
|
|
@@ -183242,16 +183242,20 @@ interface SchematicCellProps {
|
|
|
183242
183242
|
interface SchematicSectionProps {
|
|
183243
183243
|
displayName?: string;
|
|
183244
183244
|
name: string;
|
|
183245
|
+
sectionTitleFontSize?: number | string;
|
|
183245
183246
|
}
|
|
183246
183247
|
declare const schematicSectionProps: z.ZodObject<{
|
|
183247
183248
|
displayName: z.ZodOptional<z.ZodString>;
|
|
183248
183249
|
name: z.ZodString;
|
|
183250
|
+
sectionTitleFontSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
183249
183251
|
}, "strip", z.ZodTypeAny, {
|
|
183250
183252
|
name: string;
|
|
183251
183253
|
displayName?: string | undefined;
|
|
183254
|
+
sectionTitleFontSize?: number | undefined;
|
|
183252
183255
|
}, {
|
|
183253
183256
|
name: string;
|
|
183254
183257
|
displayName?: string | undefined;
|
|
183258
|
+
sectionTitleFontSize?: string | number | undefined;
|
|
183255
183259
|
}>;
|
|
183256
183260
|
type InferredSchematicSectionProps = z.input<typeof schematicSectionProps>;
|
|
183257
183261
|
|
|
@@ -185584,4 +185588,4 @@ interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBas
|
|
|
185584
185588
|
}
|
|
185585
185589
|
declare const projectConfig: z.ZodType<ProjectConfig>;
|
|
185586
185590
|
|
|
185587
|
-
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 };
|
|
185591
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -18139,10 +18139,12 @@ var schematicCellProps = z114.object({
|
|
|
18139
18139
|
expectTypesMatch(true);
|
|
18140
18140
|
|
|
18141
18141
|
// lib/components/schematic-section.ts
|
|
18142
|
+
import { distance as distance39 } from "circuit-json";
|
|
18142
18143
|
import { z as z115 } from "zod";
|
|
18143
18144
|
var schematicSectionProps = z115.object({
|
|
18144
18145
|
displayName: z115.string().optional(),
|
|
18145
|
-
name: z115.string()
|
|
18146
|
+
name: z115.string(),
|
|
18147
|
+
sectionTitleFontSize: distance39.optional()
|
|
18146
18148
|
});
|
|
18147
18149
|
expectTypesMatch(
|
|
18148
18150
|
true
|
|
@@ -18200,7 +18202,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
|
|
|
18200
18202
|
});
|
|
18201
18203
|
|
|
18202
18204
|
// lib/components/silkscreen-line.ts
|
|
18203
|
-
import { distance as
|
|
18205
|
+
import { distance as distance40 } from "circuit-json";
|
|
18204
18206
|
var silkscreenLineProps = pcbLayoutProps.omit({
|
|
18205
18207
|
pcbX: true,
|
|
18206
18208
|
pcbY: true,
|
|
@@ -18208,41 +18210,41 @@ var silkscreenLineProps = pcbLayoutProps.omit({
|
|
|
18208
18210
|
pcbOffsetY: true,
|
|
18209
18211
|
pcbRotation: true
|
|
18210
18212
|
}).extend({
|
|
18211
|
-
strokeWidth:
|
|
18212
|
-
x1:
|
|
18213
|
-
y1:
|
|
18214
|
-
x2:
|
|
18215
|
-
y2:
|
|
18213
|
+
strokeWidth: distance40,
|
|
18214
|
+
x1: distance40,
|
|
18215
|
+
y1: distance40,
|
|
18216
|
+
x2: distance40,
|
|
18217
|
+
y2: distance40
|
|
18216
18218
|
});
|
|
18217
18219
|
|
|
18218
18220
|
// lib/components/silkscreen-rect.ts
|
|
18219
|
-
import { distance as
|
|
18221
|
+
import { distance as distance41 } from "circuit-json";
|
|
18220
18222
|
import { z as z119 } from "zod";
|
|
18221
18223
|
var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18222
18224
|
filled: z119.boolean().default(true).optional(),
|
|
18223
18225
|
stroke: z119.enum(["dashed", "solid", "none"]).optional(),
|
|
18224
|
-
strokeWidth:
|
|
18225
|
-
width:
|
|
18226
|
-
height:
|
|
18227
|
-
cornerRadius:
|
|
18226
|
+
strokeWidth: distance41.optional(),
|
|
18227
|
+
width: distance41,
|
|
18228
|
+
height: distance41,
|
|
18229
|
+
cornerRadius: distance41.optional()
|
|
18228
18230
|
});
|
|
18229
18231
|
|
|
18230
18232
|
// lib/components/silkscreen-circle.ts
|
|
18231
|
-
import { distance as
|
|
18233
|
+
import { distance as distance42 } from "circuit-json";
|
|
18232
18234
|
import { z as z120 } from "zod";
|
|
18233
18235
|
var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18234
18236
|
isFilled: z120.boolean().optional(),
|
|
18235
18237
|
isOutline: z120.boolean().optional(),
|
|
18236
|
-
strokeWidth:
|
|
18237
|
-
radius:
|
|
18238
|
+
strokeWidth: distance42.optional(),
|
|
18239
|
+
radius: distance42
|
|
18238
18240
|
});
|
|
18239
18241
|
|
|
18240
18242
|
// lib/components/trace-hint.ts
|
|
18241
|
-
import { distance as
|
|
18243
|
+
import { distance as distance43, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
|
|
18242
18244
|
import { z as z121 } from "zod";
|
|
18243
18245
|
var routeHintPointProps = z121.object({
|
|
18244
|
-
x:
|
|
18245
|
-
y:
|
|
18246
|
+
x: distance43,
|
|
18247
|
+
y: distance43,
|
|
18246
18248
|
via: z121.boolean().optional(),
|
|
18247
18249
|
toLayer: layer_ref12.optional()
|
|
18248
18250
|
});
|
|
@@ -18286,17 +18288,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
|
|
|
18286
18288
|
expectTypesMatch(true);
|
|
18287
18289
|
|
|
18288
18290
|
// lib/components/pcb-note-rect.ts
|
|
18289
|
-
import { distance as
|
|
18291
|
+
import { distance as distance44 } from "circuit-json";
|
|
18290
18292
|
import { z as z124 } from "zod";
|
|
18291
18293
|
var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18292
|
-
width:
|
|
18293
|
-
height:
|
|
18294
|
-
strokeWidth:
|
|
18294
|
+
width: distance44,
|
|
18295
|
+
height: distance44,
|
|
18296
|
+
strokeWidth: distance44.optional(),
|
|
18295
18297
|
isFilled: z124.boolean().optional(),
|
|
18296
18298
|
hasStroke: z124.boolean().optional(),
|
|
18297
18299
|
isStrokeDashed: z124.boolean().optional(),
|
|
18298
18300
|
color: z124.string().optional(),
|
|
18299
|
-
cornerRadius:
|
|
18301
|
+
cornerRadius: distance44.optional()
|
|
18300
18302
|
});
|
|
18301
18303
|
expectTypesMatch(true);
|
|
18302
18304
|
|
|
@@ -18324,7 +18326,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
|
|
|
18324
18326
|
expectTypesMatch(true);
|
|
18325
18327
|
|
|
18326
18328
|
// lib/components/pcb-note-line.ts
|
|
18327
|
-
import { distance as
|
|
18329
|
+
import { distance as distance45 } from "circuit-json";
|
|
18328
18330
|
import { z as z126 } from "zod";
|
|
18329
18331
|
var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
18330
18332
|
pcbLeftEdgeX: true,
|
|
@@ -18337,18 +18339,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
|
18337
18339
|
pcbOffsetY: true,
|
|
18338
18340
|
pcbRotation: true
|
|
18339
18341
|
}).extend({
|
|
18340
|
-
x1:
|
|
18341
|
-
y1:
|
|
18342
|
-
x2:
|
|
18343
|
-
y2:
|
|
18344
|
-
strokeWidth:
|
|
18342
|
+
x1: distance45,
|
|
18343
|
+
y1: distance45,
|
|
18344
|
+
x2: distance45,
|
|
18345
|
+
y2: distance45,
|
|
18346
|
+
strokeWidth: distance45.optional(),
|
|
18345
18347
|
color: z126.string().optional(),
|
|
18346
18348
|
isDashed: z126.boolean().optional()
|
|
18347
18349
|
});
|
|
18348
18350
|
expectTypesMatch(true);
|
|
18349
18351
|
|
|
18350
18352
|
// lib/components/pcb-note-dimension.ts
|
|
18351
|
-
import { distance as
|
|
18353
|
+
import { distance as distance46, length as length13 } from "circuit-json";
|
|
18352
18354
|
import { z as z127 } from "zod";
|
|
18353
18355
|
var dimensionTarget2 = z127.union([z127.string(), point]);
|
|
18354
18356
|
var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
@@ -18365,11 +18367,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
18365
18367
|
from: dimensionTarget2,
|
|
18366
18368
|
to: dimensionTarget2,
|
|
18367
18369
|
text: z127.string().optional(),
|
|
18368
|
-
offset:
|
|
18370
|
+
offset: distance46.optional(),
|
|
18369
18371
|
font: z127.enum(["tscircuit2024"]).optional(),
|
|
18370
18372
|
fontSize: length13.optional(),
|
|
18371
18373
|
color: z127.string().optional(),
|
|
18372
|
-
arrowSize:
|
|
18374
|
+
arrowSize: distance46.optional(),
|
|
18373
18375
|
units: z127.enum(["in", "mm"]).optional(),
|
|
18374
18376
|
outerEdgeToEdge: z127.literal(true).optional(),
|
|
18375
18377
|
centerToCenter: z127.literal(true).optional(),
|