Rating component for PDF documents.
Renders a star/score rating display with filled and empty indicators.
Examples
doc |> Pdf.Component.Rating.render({50, 700}, %{value: 4, max: 5})
doc |> Pdf.Component.Rating.render({50, 700}, %{
value: 3.5,
max: 5,
filled_color: {0.95, 0.7, 0.0},
size: 16
})
Summary
Functions
Render a rating at {x, y}.
Functions
Render a rating at {x, y}.
Style options
:value— current score (default0):max— maximum score (default5):size— star size (default14):filled_color— filled star color (default gold):empty_color— empty star color (default light gray):gap— space between stars (default4):show_label— show "3.5/5" text (defaultfalse):label_color— label text color