class

Bon::Simulate::Options

Inherits Reference < Object

Constructors

new(format : String = "png", paper_mm : Float64 = 80.0, printable_width_mm : Float64 = ((Config.default_printable_width_pt(80.0)) * 25.4) / 72.0, printable_width_auto : Bool = true, content_mm : Float64 | Nil = nil, no_crop : Bool = false, ppi : Int32 = DEFAULT_PPI, mockup_ppi : Int32 = DEFAULT_MOCKUP_PPI, top_mm : Float64 = DEFAULT_TOP_MM, bottom_mm : Float64 = DEFAULT_BOTTOM_MM, min_top_mm : Float64 = DEFAULT_MIN_TOP_MM, min_bottom_mm : Float64 = DEFAULT_MIN_BOTTOM_MM, out_dir : Nil | String = nil, typst_bin : String = "typst", background_tint : String = "#f5f1e0", foreground_rgb : Tuple(Int32, Int32, Int32) = INK_RGB, foreground_fade : Float64 = DEFAULT_FOREGROUND_FADE, verbose : Nil | Bon::Verbose = nil)
Source

Instance methods

background_tint
Source
background_tint=(background_tint : String)
Source
bottom_mm
Source
bottom_mm=(bottom_mm : Float64)
Source
content_mm
Source
content_mm=(content_mm : Float64 | Nil)
Source
foreground_fade
Source
foreground_fade=(foreground_fade : Float64)
Source
foreground_rgb
Source
foreground_rgb=(foreground_rgb : RGB)
Source
format
Source
format=(format : String)
Source
min_bottom_mm
Source
min_bottom_mm=(min_bottom_mm : Float64)
Source
min_top_mm
Source
min_top_mm=(min_top_mm : Float64)
Source
mockup_ppi
Source
mockup_ppi=(mockup_ppi : Int32)
Source
no_crop
Source
no_crop=(no_crop : Bool)
Source
out_dir
Source
out_dir=(out_dir : String | Nil)
Source
paper_mm
Source
paper_mm=(paper_mm : Float64)
Source
ppi=(ppi : Int32)
Source
printable_width_auto
Source
printable_width_auto=(printable_width_auto : Bool)
Source
printable_width_mm
Source
printable_width_mm=(printable_width_mm : Float64)
Source
top_mm
Source
top_mm=(top_mm : Float64)
Source
typst_bin
Source
typst_bin=(typst_bin : String)
Source
verbose
Source
verbose=(verbose : Verbose | Nil)
Source