mizchi/crater-renderer/renderer does not have a README file
pub struct ImageIntrinsicSizeProvider {
func : (String) -> (Double, Double)?
}fn ImageIntrinsicSizeProvider::new(func : (String) -> (Double, Double)?) -> ImageIntrinsicSizeProviderpub struct PreparedExternalCss {
stylesheets : Array[Stylesheet]
indexed_stylesheets : Array[IndexedStylesheet]
before_rules : Array[PseudoRule]
after_rules : Array[PseudoRule]
before_index : PseudoRuleIndex
after_index : PseudoRuleIndex
total_rules : Int
}pub struct PreparedRenderDocument {
stylesheets : Array[Stylesheet]
indexed_stylesheets : Array[IndexedStylesheet]
css_vars : Map[String, String]
doc_root_selector : Element
doc_root_style : Style
render_root : Element
render_root_tag : String
body_uses_document_root_style : Bool
suppress_quirks_body_ua_top_margin : Bool
before_index : PseudoRuleIndex
after_index : PseudoRuleIndex
}pub struct PseudoRule {
base_selector : ComplexSelector?
base_selector_text : String
declarations : Array[Declaration]
media_query : MediaQueryList?
}pub(all) struct RecordedImage {
src : String
has_size : Bool
width : Double
height : Double
}pub(all) struct RecordedMetric {
key : String
min_width : Double
max_width : Double
min_height : Double
max_height : Double
}pub(all) struct RenderContext {
viewport_width : Double
viewport_height : Double
root_font_size : Double
color_scheme : ColorScheme
}pub struct TextMetricsProvider {
func : (String, Double, Double, WhiteSpace, WritingMode, Double, String) -> MeasureFunc
}fn TextMetricsProvider::new(func : (String, Double, Double, WhiteSpace, WritingMode, Double, String) -> MeasureFunc) -> TextMetricsProviderfn build_render_root_node(doc : Document, ctx : RenderContext, prepared : PreparedRenderDocument) -> Nodefn clear_builtin_text_advance_ratio_override_for_test() -> Unitfn clear_text_metrics_record_replay() -> Unitfn compute_layout_from_render_root(root : Node, prepared : PreparedRenderDocument, ctx : RenderContext) -> Layoutlet crater_dom_id_attr : Stringfn get_content_height(html : String, width : Int, height : Int) -> Intfn get_content_height_with_css(html : String, width : Int, height : Int, external_css : Array[String]) -> Intfn prepare_render_document(doc : Document, ctx : RenderContext, external_css : Array[String]) -> PreparedRenderDocumentfn prepare_render_document_with_prepared_external_css(doc : Document, ctx : RenderContext, external_css : PreparedExternalCss) -> PreparedRenderDocumentfn render_document_with_external_css(doc : Document, ctx : RenderContext, external_css : Array[String]) -> Layoutfn render_document_with_prepared_external_css(doc : Document, ctx : RenderContext, external_css : PreparedExternalCss) -> Layoutfn render_to_node_and_layout_with_document(doc : Document, ctx : RenderContext, external_css : Array[String]) -> (Node, Layout)fn render_to_node_and_layout_with_external_css(html : String, ctx : RenderContext, external_css : Array[String]) -> (Node, Layout)fn render_to_node_and_layout_with_prepared_external_css(doc : Document, ctx : RenderContext, external_css : PreparedExternalCss) -> (Node, Layout)fn render_to_node_with_document(doc : Document, ctx : RenderContext, external_css : Array[String]) -> Nodefn render_to_node_with_external_css(html : String, ctx : RenderContext, external_css : Array[String]) -> Nodefn render_to_node_with_prepared_external_css(doc : Document, ctx : RenderContext, external_css : PreparedExternalCss) -> Nodefn render_with_external_css(html : String, ctx : RenderContext, external_css : Array[String]) -> Layoutfn set_builtin_text_advance_ratio_override_for_test(ratio : Double) -> Unitfn start_image_intrinsic_recording() -> Unitfn start_text_metrics_recording() -> UnitRenderer and VRT packages for crater
Dependencies