diff options
Diffstat (limited to 'crates/typst-render/src')
| -rw-r--r-- | crates/typst-render/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-render/src/lib.rs b/crates/typst-render/src/lib.rs index b906ac53..34e9b7b3 100644 --- a/crates/typst-render/src/lib.rs +++ b/crates/typst-render/src/lib.rs @@ -24,6 +24,7 @@ use usvg::{NodeExt, TreeParsing}; /// /// This renders the frame at the given number of pixels per point and returns /// the resulting `tiny-skia` pixel buffer. +#[typst_macros::time(name = "render")] pub fn render(frame: &Frame, pixel_per_pt: f32, fill: Color) -> sk::Pixmap { let size = frame.size(); let pxw = (pixel_per_pt * size.x.to_f32()).round().max(1.0) as u32; |
