TypesInline

papyrus.logic.utility.TypesInline
object TypesInline

Semantic type aliases with constraints for styling, layout, and metadata

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Types

type Align = IronType[String, Match["left|right|center"]]

Basic alignment: left, right, or center

Basic alignment: left, right, or center

Attributes

type Alignment = IronType[String, Match["left|right|center|justify|start|end"]]

Text alignment options: left, right, center, justify, etc.

Text alignment options: left, right, center, justify, etc.

Attributes

type Border = IronType[Int, Closed[0, 200]]

Border width in pixels (0–200)

Border width in pixels (0–200)

Attributes

type Charset = IronType[String, Match["utf-8|iso-8859-1|windows-1252"]]

Character set encoding (e.g. "utf-8")

Character set encoding (e.g. "utf-8")

Attributes

type ColorString = IronType[String, Match["^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$|^rgb\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3})\\)$|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen"]]

Accepts hex, rgb, or standard named CSS color strings

Accepts hex, rgb, or standard named CSS color strings

Attributes

type Extension = IronType[String, Match["html|pdf"]]

File extension for output format

File extension for output format

Attributes

type Float = IronType[String, Match["left|right|none"]]

Float direction: left, right, or none

Float direction: left, right, or none

Attributes

type FontFamily = IronType[String, Match["Arial|Helvetica|Times New Roman|Courier New|Verdana|Georgia|Palatino|Garamond|Bookman|Tahoma|Trebuchet MS|Impact|Comic Sans MS|Consolas|Lucida Console|Lucida Sans Unicode|monospace|sans-serif|serif|Roboto|Open Sans|Lato|Montserrat|Oswald|Raleway|Poppins|Noto Sans|Ubuntu|Fira Sans|Nunito|Merriweather|Work Sans|Rubik|Inter|Inconsolata|DM Serif Display|Source Sans Pro|Quicksand|Oxygen|Cabin"]]

Valid font families (e.g. "Arial", "Roboto")

Valid font families (e.g. "Arial", "Roboto")

Attributes

type FontSize = IronType[Int, Closed[8, 72]]

Font size in points (8–72)

Font size in points (8–72)

Attributes

type FontStyle = IronType[String, Match["normal|italic"]]

Font style: normal or italic

Font style: normal or italic

Attributes

type FontWeight = IronType[String, Match["normal|bold"]]

Font weight: normal or bold

Font weight: normal or bold

Attributes

type Height = IronType[Int, Closed[0, 1920]]

Image or element height in pixels (0–1920)

Image or element height in pixels (0–1920)

Attributes

type Language = IronType[String, Match["en|it|fr|de|es|zh|ja|pt|ru|ar"]]

Document language code (ISO 639-1)

Document language code (ISO 639-1)

Attributes

type LetterSpacing = IronType[Double, Closed[0.0d, 1.0d]]

Spacing between letters (0.0–1.0 em)

Spacing between letters (0.0–1.0 em)

Attributes

type Level = IronType[Int, Closed[1, 3]]

Heading level (1–3)

Heading level (1–3)

Attributes

type LineHeight = IronType[Double, Closed[1.0d, 3.0d]]

Line height multiplier (1.0–3.0)

Line height multiplier (1.0–3.0)

Attributes

type ListType = IronType[String, Match["ol|ul"]]

List type: ordered or unordered

List type: ordered or unordered

Attributes

type Margin = IronType[Int, Closed[0, 200]]

Outer margin in pixels (0–200)

Outer margin in pixels (0–200)

Attributes

type Padding = IronType[Int, Closed[0, 200]]

Inner padding in pixels (0–200)

Inner padding in pixels (0–200)

Attributes

type SortingList = IronType[String, Match["alphabetical|length|reverse|levenshtein"]]

Sorting method for lists

Sorting method for lists

Attributes

type StyleSheet = IronType[String, EndWith[".css"]]

CSS file path that must end with .css

CSS file path that must end with .css

Attributes

type TextDecoration = IronType[String, Match["none|underline|overline"]]

Text decoration options: none, underline, overline

Text decoration options: none, underline, overline

Attributes

type TextTransform = IronType[String, Match["none|uppercase|lowercase|capitalize"]]

Text transform options: none, uppercase, lowercase, capitalize

Text transform options: none, uppercase, lowercase, capitalize

Attributes

type Width = IronType[Int, Closed[0, 1920]]

Width in pixels (0–1920)

Width in pixels (0–1920)

Attributes

type WordSpacing = IronType[Double, Closed[0.0d, 20.0d]]

Word spacing in em (0.0–20.0)

Word spacing in em (0.0–20.0)

Attributes