Sign in

    crater-renderer

    Renderer and VRT packages for crater

    Download zip
    Author
    Version
    0.19.0
    License
    Apache-2.0
    Last updated
    3 months ago
    Downloads
    6K

    mizchi/crater-renderer does not have a README file

    CssMutationAction

    PreparedVrtPage

    RenderVariantResult

    RenderedImage

    A rendered RGBA framebuffer: row-major, four 0..255 channels per pixel.

    diff_rendered_paint_trees

    fn diff_rendered_paint_trees(baseline_html : String, current_html : String, viewport :
    Size
    [Double]) ->
    PaintTreeDiff

    prepare_external_css

    fn prepare_external_css(external_css : Array[String]) ->
    PreparedExternalCss

    prepare_vrt_page

    fn prepare_vrt_page(html : String, viewport :
    Size
    [Double], external_css : Array[String]) ->
    PreparedVrtPage

    prepare_vrt_page_with_prepared_external_css

    render_html_batch_variants

    render_html_to_image

    fn render_html_to_image(html : String, viewport :
    Size
    [Double]) ->
    RenderedImage

    Render an HTML document to an RGBA image at viewport via the gfx software backend (image VRT). Companion to render_html_to_paint_tree, which compares geometry; this compares pixels.

    render_html_to_paint_tree

    fn render_html_to_paint_tree(html : String, viewport :
    Size
    [Double]) ->
    PaintNode

    render_html_to_paint_tree_json

    fn render_html_to_paint_tree_json(html : String, viewport :
    Size
    [Double]) -> String

    render_html_to_paint_tree_with_external_css

    fn render_html_to_paint_tree_with_external_css(html : String, viewport :
    Size
    [Double], external_css : Array[String]) ->
    PaintNode

    render_html_to_paint_tree_with_prepared_external_css

    fn render_html_to_paint_tree_with_prepared_external_css(html : String, viewport :
    Size
    [Double], external_css :
    PreparedExternalCss
    ) ->
    PaintNode

    render_paint_tree_to_image

    Render a paint tree to an RGBA image of the given size via the gfx software backend.

    render_prepared_vrt_page_to_paint_tree

    render_prepared_vrt_page_to_paint_tree_json

    fn render_prepared_vrt_page_to_paint_tree_json(page :
    PreparedVrtPage
    ) -> String

    render_text_to_image

    fn render_text_to_image(text : String, width : Int, height : Int, x? : Int, y? : Int, scale? : Int) ->
    RenderedImage

    Render text to an RGBA image with the built-in 5x7 bitmap font (black on white) via the gfx software backend. Self-contained: needs no font file.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io