capacitor module#
Capacitor symbol for JITX Standard Library
- class PolarizedStyle(*values)[source]#
Bases:
EnumPolarized capacitor symbol styles
Defines the visual representation style for polarized capacitor symbols.
- STRAIGHT = 'straight'#
- CURVED = 'curved'#
- class CapacitorConfig(label_config=None, pitch=4.0, width=3.0, porch_width=<Quantity(80, 'percent')>, line_width=0.15)[source]#
Bases:
LabelConfigurableConfiguration for capacitor symbols
Defines the geometric and visual parameters for capacitor symbols.
- Parameters:
label_config (LabelConfig | None)
pitch (float)
width (float)
porch_width (float)
line_width (float)
- pitch: float = 4.0#
Distance between pin points
- width: float = 3.0#
Width of the capacitor plates
- porch_width: float = <Quantity(80, 'percent')>#
Length of line from pin to capacitor plate (absolute or percentage of pitch/2)
- line_width: float = 0.15#
Width of the capacitor lines
- class CapacitorSymbol(config=None, **kwargs)[source]#
Bases:
LabelledSymbol,GenericCapacitor symbol with graphics and pins. Also serves as the base class for all other capacitor symbol types.
- Parameters:
config (T | None)
- capacitor_top_plate: tuple[Shape[Polyline], Shape[Polyline]]#
- capacitor_bottom_plate: tuple[Shape[Polyline], Shape[Polyline] | Shape[ArcPolyline]]#
- config: T#
- property porch_width: float#
See
porch_width.
- property line_width: float#
See
line_width.
- property label_config: LabelConfigurable#
Configuration object that provides label configuration
- class PolarizedCapacitorConfig(label_config=None, pitch=4.0, width=3.0, porch_width=<Quantity(80, 'percent')>, line_width=0.15, style=PolarizedStyle.STRAIGHT, pol_radius=5.0, plus_size=<Quantity(20, 'percent')>)[source]#
Bases:
CapacitorConfigConfiguration for polarized capacitor symbols
Extends CapacitorConfig with polarized-specific parameters.
- Parameters:
label_config (LabelConfig | None)
pitch (float)
width (float)
porch_width (float)
line_width (float)
style (PolarizedStyle)
pol_radius (float)
plus_size (float)
- style: PolarizedStyle = 'straight'#
Visual style for the polarized capacitor (straight or curved)
- pol_radius: float = 5.0#
Radius for the curved bottom plate in curved style
- plus_size: float = <Quantity(20, 'percent')>#
Size of the plus sign indicator (absolute or percentage of width)
- class PolarizedCapacitorSymbol(config=None, **kwargs)[source]#
Bases:
CapacitorSymbol,GenericPolarized capacitor symbol with graphics and pins. Supports both straight and curved bottom plate styles.
- Parameters:
config (T | None)
- config: T#
- plus_sign: tuple[Shape[Polyline], Shape[Polyline]] | None = None#
- a: Pin#
- c: Pin#
- property style: PolarizedStyle#
See
style.
- property pol_radius: float#
See
pol_radius.