sayoi7799/moon_excalidraw/export does not have a README file

    ExportError

    pub suberror ExportError {
    Unsupported(String, String)
    } derive(
    Debug
    )

    impl Show for ExportError

    ExportResult

    pub(all) struct ExportResult {
    svg : String
    warnings : Array[Warning]
    }

    FontMode

    pub(all) enum FontMode {
    Url
    None
    } derive(Eq,
    Debug
    )

    UnsupportedPolicy

    pub(all) enum UnsupportedPolicy {
    Error
    SkipWithWarning
    } derive(Eq,
    Debug
    )

    Warning

    pub(all) struct Warning {
    element_id : String?
    message : String
    } derive(Eq,
    Debug
    )

    add_frame_labels

    fn add_frame_labels(elements : Array[
    Element
    ], measure : (String, String) -> Double) -> Array[
    Element
    ]

    Puts a title label before every frame, as upstream does so the label can be drawn like any other text.

    export_to_svg

    fn export_to_svg(scene :
    Scene
    , fonts? : FontMode, on_unsupported? : UnsupportedPolicy, measure_text? : (String, String) -> Double) -> ExportResult raise ExportError

    Renders a scene the way the official exportToSvg does. measure_text gives the width of frame titles, the only text measured at export time; the default estimates half the font size per character.

    frame_clip_path

    The <clipPath> of a frame. Its rotation is written in radians, as upstream does, although SVG expects degrees.