alignment

This commit is contained in:
Gavin McDonald
2025-08-21 17:56:06 -04:00
parent 6baaa152ed
commit 677af45c73
3 changed files with 19 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ defmodule LabelmakerWeb.Constants do
@defaults %{
color: "black",
font: "Helvetica",
gravity: "Center",
align: "center",
height: "",
label: "",
label_too_long: false,
@@ -23,6 +23,12 @@ defmodule LabelmakerWeb.Constants do
|> Map.keys()
|> Enum.map(&Atom.to_string/1)
@alignments [
"west",
"center",
"east"
]
@colors [
"black",
"blue",
@@ -85,6 +91,7 @@ defmodule LabelmakerWeb.Constants do
def max_label_length, do: @max_label_length
def max_label_error, do: @max_label_error
def outlines, do: ["none" | @colors]
def permitted_alignments, do: @alignments
def permitted_keys, do: @permitted_keys
def preview, do: @preview
def sizes, do: @sizes