labels module#

class TextPlacerMixin(*args, **kwargs)[source]#

Bases: LineWidthMixin

class ReferenceDesignatorMixin(*args, **kwargs)[source]#

Bases: ApplyToMixin, TextPlacerMixin, LandpatternProvider

reference_designator(placement, *, margin=None, size=None)[source]#

Set the placement of the reference designator. The default placement is SW.

Parameters:
  • placement (Anchor | None) – The placement of the reference designator. If None, the reference designator will be removed.

  • margin (float | None) – The margin between the reference designator and the soldermask. If None, a default margin will be used based on the current line width.

  • size (float | None) – The text size of the reference designator, limited by the current fabrication constraints. If None, the size will be set to the minimum permissible size.

Return type:

Self

class ValueLabelMixin(*args, **kwargs)[source]#

Bases: ApplyToMixin, TextPlacerMixin, LandpatternProvider

value_label(placement=Anchor.SE, *, margin=None, size=None, layer=None)[source]#

Enable the placement of a value label.

Parameters:
  • placement (Anchor | None) – The placement of the value label. If None, the value label will be removed.

  • margin (float | None) – The margin between the value label and the soldermask. If None, a default margin will be used based on the current line width.

  • size (float | None) – The text size of the value label, limited by the current fabrication constraints. If None, the size will be set to the minimum permissible size.

  • layer (Callable[[Shape], Feature] | None) – The layer to place the text on, e.g. jitx.feature.Silkscreen. If None, the text will be placed on a custom layer named “Component Values”.

Return type:

Self