MermaidSizing

@Immutable
data class MermaidSizing(val scale: Float = 0.75f, val maxInlineHeight: Dp = 400.dp)(source)

Size of inline diagrams, for both renderers. Mermaid lays out at 16px text, which at 1px = 1dp reads larger than body copy, so the default is 0.75.

Parameters

scale

diagram units to dp (0.75 → 12dp labels); never wider than the column.

maxInlineHeight

inline diagrams shrink to fit this height. Full screen is unscaled.

Constructors

Link copied to clipboard
constructor(scale: Float = 0.75f, maxInlineHeight: Dp = 400.dp)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard