resistor module#
Basic resistor symbol for JITX Standard Library
This module provides the basic resistor symbol definition that serves as the foundation for all resistor symbol types.
- class ResistorStyle(*values)[source]#
Bases:
EnumResistor symbol styles
Defines the visual representation style for resistor symbols.
- TRIANGLE_WAVE = 'triangle_wave'#
- OPEN_RECTANGLE = 'open_rectangle'#
- class ResistorConfig(label_config=None, pitch=4.0, porch_width=0.5, amplitude=0.5, periods=3.0, line_width=0.15)[source]#
Bases:
LabelConfigurableConfiguration for resistor symbols
Defines the geometric and visual parameters for resistor symbols.
- Parameters:
- pitch: float = 4.0#
Distance between pin points
- porch_width: float = 0.5#
Length of straight sections at ends
- amplitude: float = 0.5#
Height/width of the resistor body
- periods: float = 3.0#
Number of zigzag periods for triangle wave style
- line_width: float = 0.15#
Width of the resistor lines
- class ResistorSymbol(config=None, **kwargs)[source]#
Bases:
LabelledSymbol,GenericResistor symbol with graphics and pins. Also serves as the base class for all other resistor symbol types.
- Parameters:
config (T | None)
- resistor_body: Shape[Polyline]#
- resistor_porches: tuple[Shape[Polyline], Shape[Polyline]]#
- 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