NativeElixirPdfUtilities.HtmlToPdf.CssBorderArtwork (native_elixir_pdf_utilities v1.1.0)

View Source

Source CSS border contour measurement and finite initial dash artwork.

Summary

Functions

Measures validated rounded contours using the source Skia conic subdivision and float32 distance accumulation.

Builds actual source dash paths or round-dot centers along the measured validated contour.

Returns the source closed-path dash length, gap and cap for validated border thickness and contour length.

Functions

measure(contour)

@spec measure(map()) :: map()

Measures validated rounded contours using the source Skia conic subdivision and float32 distance accumulation.

paths(measure, pattern)

@spec paths(map(), map()) :: [
  stroke: [{integer(), [number()]}],
  dot: {number(), number()}
]

Builds actual source dash paths or round-dot centers along the measured validated contour.

pattern(style, width, length)

@spec pattern(:dashed | :dotted, number(), number()) :: map()

Returns the source closed-path dash length, gap and cap for validated border thickness and contour length.