View Source QRCode.Render.SvgSettings (QRCode v3.1.0)

Settings structure for Svg.

Summary

Types

@type background_color() :: String.t() | tuple()
@type background_opacity() :: ExMaybe.t(float())
Link to this type

base64_encoded_image_binary()

View Source
@type base64_encoded_image_binary() :: binary()
@type flatten() :: boolean()
@type image() ::
  ExMaybe.t(
    {image_file_path(), image_size()}
    | {base64_encoded_image_binary(), mime_type_atom(), image_size()}
  )
@type image_file_path() :: binary()
@type image_size() :: pos_integer()
@type mime_type_atom() :: :svg | :png | :jpg | :jpeg
@type qrcode_color() :: String.t() | tuple()
@type structure() :: :minify | :readable
@type t() :: %QRCode.Render.SvgSettings{
  background_color: background_color(),
  background_opacity: background_opacity(),
  flatten: flatten(),
  image: image(),
  qrcode_color: qrcode_color(),
  scale: integer(),
  structure: structure()
}