@tscircuit/props 0.0.546 → 0.0.548
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 +8 -0
- package/dist/index.d.ts +101 -1
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/lib/components/analogsimulation.ts +18 -0
- package/lib/components/voltageprobe.ts +18 -0
- package/lib/components/voltagesource.ts +11 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -207,8 +207,10 @@ export interface SubcircuitGroupProps extends BaseGroupProps {
|
|
|
207
207
|
export interface AnalogSimulationProps {
|
|
208
208
|
simulationType?: "spice_transient_analysis";
|
|
209
209
|
duration?: number | string;
|
|
210
|
+
startTime?: number | string;
|
|
210
211
|
timePerStep?: number | string;
|
|
211
212
|
spiceEngine?: AutocompleteString<"spicey" | "ngspice">;
|
|
213
|
+
spiceOptions?: SpiceOptions;
|
|
212
214
|
}
|
|
213
215
|
```
|
|
214
216
|
|
|
@@ -1940,6 +1942,7 @@ export interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
|
|
|
1940
1942
|
connectsTo: string;
|
|
1941
1943
|
referenceTo?: string;
|
|
1942
1944
|
color?: string;
|
|
1945
|
+
display?: VoltageProbeDisplayOptions;
|
|
1943
1946
|
}
|
|
1944
1947
|
```
|
|
1945
1948
|
|
|
@@ -1957,6 +1960,11 @@ export interface VoltageSourceProps<
|
|
|
1957
1960
|
waveShape?: WaveShape;
|
|
1958
1961
|
phase?: number | string;
|
|
1959
1962
|
dutyCycle?: number | string;
|
|
1963
|
+
pulseDelay?: number | string;
|
|
1964
|
+
riseTime?: number | string;
|
|
1965
|
+
fallTime?: number | string;
|
|
1966
|
+
pulseWidth?: number | string;
|
|
1967
|
+
period?: number | string;
|
|
1960
1968
|
connections?: Connections<VoltageSourcePinLabels>;
|
|
1961
1969
|
}
|
|
1962
1970
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -121752,24 +121752,63 @@ declare const subcircuitProps: z.ZodObject<{
|
|
|
121752
121752
|
interface AnalogSimulationProps {
|
|
121753
121753
|
simulationType?: "spice_transient_analysis";
|
|
121754
121754
|
duration?: number | string;
|
|
121755
|
+
startTime?: number | string;
|
|
121755
121756
|
timePerStep?: number | string;
|
|
121756
121757
|
spiceEngine?: AutocompleteString<"spicey" | "ngspice">;
|
|
121758
|
+
spiceOptions?: SpiceOptions;
|
|
121759
|
+
}
|
|
121760
|
+
interface SpiceOptions {
|
|
121761
|
+
method?: "trap" | "gear";
|
|
121762
|
+
reltol?: number | string;
|
|
121763
|
+
abstol?: number | string;
|
|
121764
|
+
vntol?: number | string;
|
|
121757
121765
|
}
|
|
121758
121766
|
declare const analogSimulationProps: z.ZodObject<{
|
|
121759
121767
|
simulationType: z.ZodDefault<z.ZodLiteral<"spice_transient_analysis">>;
|
|
121760
121768
|
duration: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
121769
|
+
startTime: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
121761
121770
|
timePerStep: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
121762
121771
|
spiceEngine: z.ZodOptional<z.ZodType<AutocompleteString<"spicey" | "ngspice">, z.ZodTypeDef, AutocompleteString<"spicey" | "ngspice">>>;
|
|
121772
|
+
spiceOptions: z.ZodOptional<z.ZodObject<{
|
|
121773
|
+
method: z.ZodOptional<z.ZodEnum<["trap", "gear"]>>;
|
|
121774
|
+
reltol: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
121775
|
+
abstol: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
121776
|
+
vntol: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
121777
|
+
}, "strip", z.ZodTypeAny, {
|
|
121778
|
+
method?: "trap" | "gear" | undefined;
|
|
121779
|
+
reltol?: string | number | undefined;
|
|
121780
|
+
abstol?: string | number | undefined;
|
|
121781
|
+
vntol?: string | number | undefined;
|
|
121782
|
+
}, {
|
|
121783
|
+
method?: "trap" | "gear" | undefined;
|
|
121784
|
+
reltol?: string | number | undefined;
|
|
121785
|
+
abstol?: string | number | undefined;
|
|
121786
|
+
vntol?: string | number | undefined;
|
|
121787
|
+
}>>;
|
|
121763
121788
|
}, "strip", z.ZodTypeAny, {
|
|
121764
121789
|
simulationType: "spice_transient_analysis";
|
|
121765
121790
|
duration?: number | undefined;
|
|
121791
|
+
startTime?: number | undefined;
|
|
121766
121792
|
timePerStep?: number | undefined;
|
|
121767
121793
|
spiceEngine?: AutocompleteString<"spicey" | "ngspice"> | undefined;
|
|
121794
|
+
spiceOptions?: {
|
|
121795
|
+
method?: "trap" | "gear" | undefined;
|
|
121796
|
+
reltol?: string | number | undefined;
|
|
121797
|
+
abstol?: string | number | undefined;
|
|
121798
|
+
vntol?: string | number | undefined;
|
|
121799
|
+
} | undefined;
|
|
121768
121800
|
}, {
|
|
121769
121801
|
duration?: string | number | undefined;
|
|
121770
121802
|
simulationType?: "spice_transient_analysis" | undefined;
|
|
121803
|
+
startTime?: string | number | undefined;
|
|
121771
121804
|
timePerStep?: string | number | undefined;
|
|
121772
121805
|
spiceEngine?: AutocompleteString<"spicey" | "ngspice"> | undefined;
|
|
121806
|
+
spiceOptions?: {
|
|
121807
|
+
method?: "trap" | "gear" | undefined;
|
|
121808
|
+
reltol?: string | number | undefined;
|
|
121809
|
+
abstol?: string | number | undefined;
|
|
121810
|
+
vntol?: string | number | undefined;
|
|
121811
|
+
} | undefined;
|
|
121773
121812
|
}>;
|
|
121774
121813
|
|
|
121775
121814
|
interface AutoroutingPhaseProps extends RoutingTolerances {
|
|
@@ -169256,6 +169295,11 @@ interface VoltageSourceProps<PinLabel extends string = string> extends CommonCom
|
|
|
169256
169295
|
waveShape?: WaveShape;
|
|
169257
169296
|
phase?: number | string;
|
|
169258
169297
|
dutyCycle?: number | string;
|
|
169298
|
+
pulseDelay?: number | string;
|
|
169299
|
+
riseTime?: number | string;
|
|
169300
|
+
fallTime?: number | string;
|
|
169301
|
+
pulseWidth?: number | string;
|
|
169302
|
+
period?: number | string;
|
|
169259
169303
|
connections?: Connections<VoltageSourcePinLabels>;
|
|
169260
169304
|
}
|
|
169261
169305
|
declare const voltageSourceProps: z.ZodObject<{
|
|
@@ -172623,6 +172667,11 @@ declare const voltageSourceProps: z.ZodObject<{
|
|
|
172623
172667
|
waveShape: z.ZodOptional<z.ZodEnum<["sinewave", "square", "triangle", "sawtooth"]>>;
|
|
172624
172668
|
phase: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
172625
172669
|
dutyCycle: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, z.ZodNumber>>;
|
|
172670
|
+
pulseDelay: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
172671
|
+
riseTime: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
172672
|
+
fallTime: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
172673
|
+
pulseWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
172674
|
+
period: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
172626
172675
|
connections: z.ZodOptional<z.ZodRecord<z.ZodEnum<["pin1", "pin2", "pos", "neg"]>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>;
|
|
172627
172676
|
}, "strip", z.ZodTypeAny, {
|
|
172628
172677
|
name: string;
|
|
@@ -173208,6 +173257,11 @@ declare const voltageSourceProps: z.ZodObject<{
|
|
|
173208
173257
|
waveShape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
173209
173258
|
phase?: number | undefined;
|
|
173210
173259
|
dutyCycle?: number | undefined;
|
|
173260
|
+
pulseDelay?: number | undefined;
|
|
173261
|
+
riseTime?: number | undefined;
|
|
173262
|
+
fallTime?: number | undefined;
|
|
173263
|
+
pulseWidth?: number | undefined;
|
|
173264
|
+
period?: number | undefined;
|
|
173211
173265
|
}, {
|
|
173212
173266
|
name: string;
|
|
173213
173267
|
symbol?: SymbolProp | undefined;
|
|
@@ -173794,6 +173848,11 @@ declare const voltageSourceProps: z.ZodObject<{
|
|
|
173794
173848
|
waveShape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
|
|
173795
173849
|
phase?: string | number | undefined;
|
|
173796
173850
|
dutyCycle?: string | number | undefined;
|
|
173851
|
+
pulseDelay?: string | number | undefined;
|
|
173852
|
+
riseTime?: string | number | undefined;
|
|
173853
|
+
fallTime?: string | number | undefined;
|
|
173854
|
+
pulseWidth?: string | number | undefined;
|
|
173855
|
+
period?: string | number | undefined;
|
|
173797
173856
|
}>;
|
|
173798
173857
|
declare const voltageSourcePins: readonly ["pin1", "left", "anode", "pos", "pin2", "right", "cathode", "neg"];
|
|
173799
173858
|
|
|
@@ -178352,6 +178411,14 @@ interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
|
|
|
178352
178411
|
connectsTo: string;
|
|
178353
178412
|
referenceTo?: string;
|
|
178354
178413
|
color?: string;
|
|
178414
|
+
display?: VoltageProbeDisplayOptions;
|
|
178415
|
+
}
|
|
178416
|
+
interface VoltageProbeDisplayOptions {
|
|
178417
|
+
label?: string;
|
|
178418
|
+
center?: number;
|
|
178419
|
+
offsetDivs?: number;
|
|
178420
|
+
unitsPerDiv?: number;
|
|
178421
|
+
color?: string;
|
|
178355
178422
|
}
|
|
178356
178423
|
declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
178357
178424
|
pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
@@ -181716,6 +181783,25 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
181716
181783
|
connectsTo: z.ZodString;
|
|
181717
181784
|
referenceTo: z.ZodOptional<z.ZodString>;
|
|
181718
181785
|
color: z.ZodOptional<z.ZodString>;
|
|
181786
|
+
display: z.ZodOptional<z.ZodObject<{
|
|
181787
|
+
label: z.ZodOptional<z.ZodString>;
|
|
181788
|
+
center: z.ZodOptional<z.ZodNumber>;
|
|
181789
|
+
offsetDivs: z.ZodOptional<z.ZodNumber>;
|
|
181790
|
+
unitsPerDiv: z.ZodOptional<z.ZodNumber>;
|
|
181791
|
+
color: z.ZodOptional<z.ZodString>;
|
|
181792
|
+
}, "strip", z.ZodTypeAny, {
|
|
181793
|
+
center?: number | undefined;
|
|
181794
|
+
color?: string | undefined;
|
|
181795
|
+
label?: string | undefined;
|
|
181796
|
+
offsetDivs?: number | undefined;
|
|
181797
|
+
unitsPerDiv?: number | undefined;
|
|
181798
|
+
}, {
|
|
181799
|
+
center?: number | undefined;
|
|
181800
|
+
color?: string | undefined;
|
|
181801
|
+
label?: string | undefined;
|
|
181802
|
+
offsetDivs?: number | undefined;
|
|
181803
|
+
unitsPerDiv?: number | undefined;
|
|
181804
|
+
}>>;
|
|
181719
181805
|
}, "strip", z.ZodTypeAny, {
|
|
181720
181806
|
connectsTo: string;
|
|
181721
181807
|
symbol?: SymbolProp | undefined;
|
|
@@ -182296,6 +182382,13 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
182296
182382
|
schSectionName?: string | undefined;
|
|
182297
182383
|
color?: string | undefined;
|
|
182298
182384
|
referenceTo?: string | undefined;
|
|
182385
|
+
display?: {
|
|
182386
|
+
center?: number | undefined;
|
|
182387
|
+
color?: string | undefined;
|
|
182388
|
+
label?: string | undefined;
|
|
182389
|
+
offsetDivs?: number | undefined;
|
|
182390
|
+
unitsPerDiv?: number | undefined;
|
|
182391
|
+
} | undefined;
|
|
182299
182392
|
}, {
|
|
182300
182393
|
connectsTo: string;
|
|
182301
182394
|
symbol?: SymbolProp | undefined;
|
|
@@ -182878,6 +182971,13 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
182878
182971
|
schSectionName?: string | undefined;
|
|
182879
182972
|
color?: string | undefined;
|
|
182880
182973
|
referenceTo?: string | undefined;
|
|
182974
|
+
display?: {
|
|
182975
|
+
center?: number | undefined;
|
|
182976
|
+
color?: string | undefined;
|
|
182977
|
+
label?: string | undefined;
|
|
182978
|
+
offsetDivs?: number | undefined;
|
|
182979
|
+
unitsPerDiv?: number | undefined;
|
|
182980
|
+
} | undefined;
|
|
182881
182981
|
}>;
|
|
182882
182982
|
|
|
182883
182983
|
declare const schematicArcProps: z.ZodObject<{
|
|
@@ -185915,4 +186015,4 @@ interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBas
|
|
|
185915
186015
|
}
|
|
185916
186016
|
declare const projectConfig: z.ZodType<ProjectConfig>;
|
|
185917
186017
|
|
|
185918
|
-
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 OvalHoleProps, 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 };
|
|
186018
|
+
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 OvalHoleProps, 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 SpiceOptions, type StampboardProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SubpanelProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type SymbolProp, type SymbolProps, type SymbolPropsInput, type TestpointConnections, type TestpointPinLabels, type TestpointProps, type ToolingrailProps, type TraceHintProps, type TraceProps, type TransistorPinLabels, type TransistorProps, type ViaProps, type VoltageProbeDisplayOptions, 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
|
@@ -17391,11 +17391,19 @@ import { z as z74 } from "zod";
|
|
|
17391
17391
|
var spiceEngine = z74.custom(
|
|
17392
17392
|
(value) => typeof value === "string"
|
|
17393
17393
|
);
|
|
17394
|
+
var spiceOptions = z74.object({
|
|
17395
|
+
method: z74.enum(["trap", "gear"]).optional(),
|
|
17396
|
+
reltol: z74.union([z74.number(), z74.string()]).optional(),
|
|
17397
|
+
abstol: z74.union([z74.number(), z74.string()]).optional(),
|
|
17398
|
+
vntol: z74.union([z74.number(), z74.string()]).optional()
|
|
17399
|
+
});
|
|
17394
17400
|
var analogSimulationProps = z74.object({
|
|
17395
17401
|
simulationType: z74.literal("spice_transient_analysis").default("spice_transient_analysis"),
|
|
17396
17402
|
duration: ms.optional(),
|
|
17403
|
+
startTime: ms.optional(),
|
|
17397
17404
|
timePerStep: ms.optional(),
|
|
17398
|
-
spiceEngine: spiceEngine.optional()
|
|
17405
|
+
spiceEngine: spiceEngine.optional(),
|
|
17406
|
+
spiceOptions: spiceOptions.optional()
|
|
17399
17407
|
});
|
|
17400
17408
|
expectTypesMatch(
|
|
17401
17409
|
true
|
|
@@ -17904,7 +17912,7 @@ var powerSourceProps = commonComponentProps.extend({
|
|
|
17904
17912
|
});
|
|
17905
17913
|
|
|
17906
17914
|
// lib/components/voltagesource.ts
|
|
17907
|
-
import { frequency as frequency4, rotation as rotation5, voltage as voltage4 } from "circuit-json";
|
|
17915
|
+
import { frequency as frequency4, ms as ms3, rotation as rotation5, voltage as voltage4 } from "circuit-json";
|
|
17908
17916
|
import { z as z100 } from "zod";
|
|
17909
17917
|
var voltageSourcePinLabels = ["pin1", "pin2", "pos", "neg"];
|
|
17910
17918
|
var percentage = z100.union([z100.string(), z100.number()]).transform((val) => {
|
|
@@ -17925,6 +17933,11 @@ var voltageSourceProps = commonComponentProps.extend({
|
|
|
17925
17933
|
waveShape: z100.enum(["sinewave", "square", "triangle", "sawtooth"]).optional(),
|
|
17926
17934
|
phase: rotation5.optional(),
|
|
17927
17935
|
dutyCycle: percentage.optional(),
|
|
17936
|
+
pulseDelay: ms3.optional(),
|
|
17937
|
+
riseTime: ms3.optional(),
|
|
17938
|
+
fallTime: ms3.optional(),
|
|
17939
|
+
pulseWidth: ms3.optional(),
|
|
17940
|
+
period: ms3.optional(),
|
|
17928
17941
|
connections: createConnectionsProp(voltageSourcePinLabels).optional()
|
|
17929
17942
|
});
|
|
17930
17943
|
var voltageSourcePins = lrPolarPins;
|
|
@@ -17963,7 +17976,14 @@ var voltageProbeProps = commonComponentProps.omit({ name: true }).extend({
|
|
|
17963
17976
|
name: z102.string().optional(),
|
|
17964
17977
|
connectsTo: z102.string(),
|
|
17965
17978
|
referenceTo: z102.string().optional(),
|
|
17966
|
-
color: z102.string().optional()
|
|
17979
|
+
color: z102.string().optional(),
|
|
17980
|
+
display: z102.object({
|
|
17981
|
+
label: z102.string().optional(),
|
|
17982
|
+
center: z102.number().optional(),
|
|
17983
|
+
offsetDivs: z102.number().optional(),
|
|
17984
|
+
unitsPerDiv: z102.number().optional(),
|
|
17985
|
+
color: z102.string().optional()
|
|
17986
|
+
}).optional()
|
|
17967
17987
|
});
|
|
17968
17988
|
expectTypesMatch(true);
|
|
17969
17989
|
|