marker module#

class MarkerGenerator[source]#
create_marker(bounds, line_width)[source]#
Return type:

Shape

Parameters:
  • bounds (Bounds)

  • line_width (float)

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

Bases: ApplyToMixin, SilkscreenSoldermaskClearanceMixin, LineWidthMixin, LandpatternProvider

Pad 1 Marker Mixin

class PadRef(pad)[source]#

Bases: Ref

Parameters:

pad (Pad)

pad_1_marker(shape)[source]#

Add a pad 1 marker to the landpattern. The shape will be placed in a coordinate system relative to the outside edge of the first pad, with the positive y-axis pointing away from the pad. Thus the shape should not extend to negative y values.

Return type:

Self

Parameters:

shape (Shape | MarkerGenerator | Callable[[], MarkerGenerator])

pad_1_marker_direction(direction=None, margin=None)[source]#

Set the side of the pad 1 marker. If not set, the marker will be placed on the side of the first pad that appears to be facing away from the package.

Parameters:
  • direction (TypeAliasType | None) – the direction to place the marker

  • margin (float | None) – the margin between the marker and the pad

Return type:

Self

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

Bases: Pad1MarkerMixin, LandpatternGenerator

Convenience base class to create a pad 1 circle marker by default.

class CircleMarker[source]#

Bases: MarkerGenerator

create_marker(bounds, line_width)[source]#
Return type:

Shape

Parameters:
  • bounds (Bounds)

  • line_width (float)