Eunoia

Eunoia.place_glyph_boxes

Julia · julia · 1.0.1

place_glyph_boxes(
    fit::AbstractEulerFit,
    sizes::AbstractDict;
    arrangement::Union{Nothing, AbstractString} = nothing,
    scale::Union{Nothing, Real} = nothing,
    min_scale::Union{Nothing, Real} = nothing,
    gap::Union{Nothing, Real} = nothing,
    seed::Union{Nothing, Integer} = nothing,
    precision::Union{Nothing, Real} = nothing,
    max_attempts::Union{Nothing, Integer} = nothing,
    obstacles::Union{Nothing, AbstractVector} = nothing
)

Methods

place_glyph_boxes( fit::AbstractEulerFit, sizes::AbstractDict; arrangement::Union{Nothing, AbstractString} = nothing, scale::Union{Nothing, Real} = nothing, min_scale::Union{Nothing, Real} = nothing, gap::Union{Nothing, Real} = nothing, seed::Union{Nothing, Integer} = nothing, precision::Union{Nothing, Real} = nothing, max_attempts::Union{Nothing, Integer} = nothing, obstacles::Union{Nothing, AbstractVector} = nothing )

place_glyph_boxes(fit, sizes; arrangement=nothing, scale=nothing,
                  min_scale=nothing, gap=nothing, seed=nothing,
                  precision=nothing, max_attempts=nothing,
                  obstacles=nothing) -> GlyphBoxPlacements

Pack ordered, caller-measured member-label boxes inside fitted regions. sizes maps each canonical region combination to a vector of (width, height) pairs. The returned boxes are a prefix aligned with each input vector; render the corresponding text at the reference font size multiplied by scale.