Figler.Render.Geometry (figler v0.1.0-beta.1)

Copy Markdown View Source

Decodes Figma geometry command blobs into backend-ready Skia paths.

Summary

Functions

Decodes one Figma geometry command blob.

Decodes projected Figma path references using the document blob table.

Functions

decode(blob)

@spec decode(binary()) :: {:ok, Skia.Path.t()} | {:error, term()}

Decodes one Figma geometry command blob.

paths(references, blobs)

@spec paths([map()], [binary()]) ::
  {:ok, [Figler.Render.Geometry.Path.t()]} | {:error, term()}

Decodes projected Figma path references using the document blob table.