arrow module#

Arrow symbols module for JITX Standard Library

This module provides arrow symbol definitions and utilities for use in various electrical symbols that require arrow indicators.

class ArrowStyle(*values)[source]#

Bases: Enum

Arrow styles

CLOSED_ARROW = 'closed_arrow'#
OPEN_ARROW = 'open_arrow'#
class ArrowConfig(style=ArrowStyle.OPEN_ARROW, head_dims=(0.5, 0.5), shaft_length=1.0, line_width=0.15)[source]#

Configuration for arrow symbols

Parameters:
style: ArrowStyle = 'open_arrow'#
head_dims: tuple[float, float] = (0.5, 0.5)#
shaft_length: float = 1.0#
line_width: float = 0.15#
class ArrowConfigurable(arrow_config=None)[source]#

Arrow configuration wrapper, useful for handling defaults

Parameters:

arrow_config (ArrowConfig | None)

arrow_config: ArrowConfig | None = None#
get_arrow_config()[source]#

Returns the arrow configuration.

If an arrow config is specified, it will be used. Otherwise, the config will be pulled from the context. If no context is available, a default config will be used.

Return type:

ArrowConfig

class Arrow(position, angle, config=None)[source]#

Bases: Composite

Composite arrow shape with shaft and tip

Parameters:
shaft: Shape[Polyline]#
tip: Shape[Polyline]#