plotters-wasm-demo icon indicating copy to clipboard operation
plotters-wasm-demo copied to clipboard

Build error: variant or associated item not found in `FontTransform`

Open kongchenglc opened this issue 3 years ago • 6 comments

image

kongchenglc avatar Jul 26 '22 08:07 kongchenglc

Something wrong with the git version that is linked. You can use the one from crates.io, though. In your Cargo.toml file you can change the dependencies to

[dependencies]
plotters = "0.3.2"
wasm-bindgen = "0.2.62"
wee_alloc = "0.4.5"
web-sys = { version = "0.3.39", features = ["HtmlCanvasElement"] }
plotters-canvas = "0.3.0"

which fixed the issue for me.

JuliDi avatar Aug 04 '22 14:08 JuliDi

I had the same issue and @JuliDi's solution worked for me too.

aaraney avatar Aug 14 '22 18:08 aaraney

+1 for @JuliDi 's solution.

Lwfrancisco avatar Mar 09 '23 06:03 Lwfrancisco

another option is to use this open PR instead:

[dependencies.plotters-canvas]
git = "https://github.com/AE1020/plotters-canvas"
branch = "revert-rotateangle"

spookyvision avatar Jul 26 '23 22:07 spookyvision

@38 I know you are looking for participants - I can help get the canvas stuff sorted out so that it'll at least compile again natively without these workarounds

jaredmcqueen avatar Sep 05 '23 16:09 jaredmcqueen

+1 for @JuliDi 's solution.

Wafol avatar Sep 07 '23 10:09 Wafol