INNER CODE UNIT · Rust
render_svg
edwardkim/rhwp · crates/rhwp-ooxml-chart/src/lib.rs:438
pub fn render_svg(&self, x: f64, y: f64, w: f64, h: f64) -> String {
renderer::render_chart_svg(self, x, y, w, h)
}
/// 호스트의 실제 글꼴 측정을 범례의 예약 폭과 배치에 공급한다.
pub fn render_svg_with_text_measure(
&self,
bounds: [f64; 4],
measure: &dyn Fn(&str, f64, &str) -> f64,
) -> String {
let [x, y, w, h] = bounds;
renderer::render_chart_svg_with_text_measure(self, x, y, w, h, measure)
}
/// 시리즈가 여러 타입을 섞어 쓰는지 (콤보 차트) 여부
pub fn is_combo(&self) -> bool {
let mut types: std::collections::HashSet<OoxmlChartType> = std::collections::HashSet::new();
for s in &self.series {