zhc_ir 0.1.7

Graph-based intermediate representation framework with dialect support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::Html;
use crate::visualization::svg::Svg;

/// Wraps an SVG in an HTML document with zoom/pan support.
pub fn wrap_svg(svg: Svg) -> Html {
    Html {
        title: "ZHC-Viewer".into(),
        svg,
        css: include_str!("style.css").into(),
        javascript: include_str!("script.js").into(),
    }
}