plotters-canvas icon indicating copy to clipboard operation
plotters-canvas copied to clipboard

when compiling, occured E0599 error

Open PorcoRosso85 opened this issue 2 years ago • 1 comments

cmd_JE2j0kFzF9

Hi. Anyone encounted this error?

PorcoRosso85 avatar Oct 04 '22 22:10 PorcoRosso85

I was just now looking at this project, trying to build the Wasm demo and got the same error...

It appears that FontTransform::RotateAngle() was reverted in July in the main plotters project, and a corresponding reversion was not made here.

The only reason that RotateAngle() was added in this repository was so that an enum covered cases exhaustively.

Deleting that line didn't seem to make it work at one point. But then after tinkering around it did...so maybe I was an inconsistent state. It's compiling now, and I managed to test the Wasm demo in-browser.

(I have the main plotters library cloned locally, and I edited the Cargo.toml in the plotters-canvas to use a path = on the local drive for plotters, instead of a git =. The same change was needed in the plotters-wasm-demo's Cargo.toml.)

I have submitted a PR to undo the RotateAngle() commit.


Note: Circa 2022 the plotters project has had a lapse in maintenance, and there is a thread about establishing new community maintainers.

AE1020 avatar Oct 05 '22 06:10 AE1020