dgmxjj/moonbit-posterkit/scene does not have a README file
pub(all) struct DocumentStats { element_count : Int block_count : Int text_count : Int image_slot_count : Int text_characters : Int occupied_area : Int ids : Array[String]} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn DocumentStats::empty() -> DocumentStats
pub(all) enum Element { Block(id~ : String, rect~ : Rect, fill~ : @dgmxjj/moonbit-posterkit/theme.ColorColor, radius~ : Int) Text(id~ : String, content~ : String, position~ : Point, style~ : TextStyle, max_width~ : Int) ImageSlot(id~ : String, asset_id~ : String, rect~ : Rect, label~ : String, fit~ : ImageFit)} derive(Eq, @moonbitlang/core/debug.DebugDebug)
pub(all) enum ImageFit { Cover Contain} derive(Eq, @moonbitlang/core/debug.DebugDebug)
pub(all) struct Point { x : Int y : Int} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Point::at(x : Int, y : Int) -> Point
pub(all) struct PosterDocument { title : String preset : @dgmxjj/moonbit-posterkit/preset.PosterPresetPosterPreset theme : @dgmxjj/moonbit-posterkit/theme.ThemeTheme elements : Array[Element]} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn PosterDocument::empty(title~ : String, preset~ : @dgmxjj/moonbit-posterkit/preset.PosterPresetPosterPreset, theme~ : @dgmxjj/moonbit-posterkit/theme.ThemeTheme) -> PosterDocument
fn PosterDocument::push(document : PosterDocument, element : Element) -> PosterDocument
fn PosterDocument::push_iter(document : PosterDocument, new_elements : Iter[Element]) -> PosterDocument
pub(all) struct Rect { x : Int y : Int width : Int height : Int} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn Rect::inset(rect : Rect, edge : @dgmxjj/moonbit-posterkit/core.EdgeInsetsEdgeInsets) -> Rect
pub(all) enum SceneDiagnostic { EmptyTitle EmptyElementId(index~ : Int) DuplicateElementId(id~ : String) InvalidRect(id~ : String) EmptyAssetId(id~ : String) EmptyImageLabel(id~ : String) TextOutsideCanvas(id~ : String)} derive(Eq, @moonbitlang/core/debug.DebugDebug)
pub(all) enum TextAlign { Left Center Right} derive(Eq, @moonbitlang/core/debug.DebugDebug)
pub(all) struct TextStyle { family : String size : Int weight : Int line_height : Int align : TextAlign color : @dgmxjj/moonbit-posterkit/theme.ColorColor} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn TextStyle::body(theme : @dgmxjj/moonbit-posterkit/theme.ThemeTheme) -> TextStyle
fn TextStyle::display(theme : @dgmxjj/moonbit-posterkit/theme.ThemeTheme) -> TextStyle
fn analyze_document(document : PosterDocument) -> DocumentStats
fn diagnostic_code(diagnostic : SceneDiagnostic) -> String
fn document_without_empty_text(document : PosterDocument) -> PosterDocument
fn element_ids(document : PosterDocument) -> Array[String]
fn element_ids_sorted(document : PosterDocument) -> Array[String]
fn find_element(document : PosterDocument, id : String) -> Element?
fn image_slot_count(document : PosterDocument) -> Int
fn normalization_summary(document : PosterDocument) -> String
fn normalize_document_ids(document : PosterDocument) -> PosterDocument
fn normalize_for_render(document : PosterDocument) -> PosterDocument
fn normalized_id(raw : String, fallback : String) -> String
fn normalized_title(document : PosterDocument, fallback : String) -> String
fn text_character_count(document : PosterDocument) -> Int
fn validate_document(document : PosterDocument, strict~ : Bool) -> Array[SceneDiagnostic]
Install
Typed, data-driven SVG poster and cover generation for MoonBit.
No dependents
Powered by MoonBit
© 2026 mooncakes.io