mirror of
https://github.com/mii443/obsidian-typst.git
synced 2025-08-22 16:15:34 +00:00
Update to typst 0.9.0
This commit is contained in:
889
compiler/Cargo.lock
generated
889
compiler/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -12,8 +12,8 @@ crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
# Everything to do with Typst
|
||||
typst = { git = "https://github.com/typst/typst.git", tag = "v0.8.0" }
|
||||
typst-library = { git = "https://github.com/typst/typst.git", tag = "v0.8.0" }
|
||||
typst = { git = "https://github.com/typst/typst.git", tag = "v0.9.0" }
|
||||
typst-library = { git = "https://github.com/typst/typst.git", tag = "v0.9.0" }
|
||||
comemo = "0.3"
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@ use fast_image_resize as fr;
|
||||
use fr::Resizer;
|
||||
use typst::{
|
||||
doc::Document,
|
||||
geom::{Color, RgbaColor},
|
||||
geom::Color,
|
||||
};
|
||||
use wasm_bindgen::Clamped;
|
||||
use web_sys::ImageData;
|
||||
@ -20,7 +20,7 @@ pub fn to_image(
|
||||
let mut pixmap = typst::export::render(
|
||||
&document.pages[0],
|
||||
pixel_per_pt,
|
||||
Color::Rgba(RgbaColor::from_str(&fill)?),
|
||||
Color::from_str(&fill)?,
|
||||
);
|
||||
|
||||
let width = pixmap.width();
|
||||
|
Reference in New Issue
Block a user