Skip to main content

DottedStrokePattern

A stroke pattern of circular dots, spaced with spacing_factor.

Inherits: StrokePattern

Properties

  • pattern_fit - Determines how this stroke pattern should be fit to a line when their lengths are not equal or multiples.
  • spacing_factor - The multiplier used to calculate the spacing between dots in a dotted polyline, with respect to Polyline.stroke_width / Polygon.border_stroke_width.

Properties

pattern_fitclass-attributeinstance-attribute

pattern_fit: PatternFit = PatternFit.SCALE_UP

Determines how this stroke pattern should be fit to a line when their lengths are not equal or multiples.

spacing_factorclass-attributeinstance-attribute

spacing_factor: Number = 1.5

The multiplier used to calculate the spacing between dots in a dotted polyline, with respect to Polyline.stroke_width / Polygon.border_stroke_width. A value of 1.0 will result in spacing equal to the stroke_width. Increasing the value increases the spacing with the same scaling.

May also be scaled by the use of flet_map.PatternFit.SCALE_UP.

Raises:

  • ValueError - If it is less than or equal to zero.