fschutt / printpdf

A fully-featured PDF library for Rust, WASM-ready
https://fschutt.github.io/printpdf/
MIT License
829 stars 98 forks source link

documenation is not updated with the changes in v 0.6.0 #154

Open LiamPClancy opened 1 year ago

LiamPClancy commented 1 year ago

Not sure how the readme file is generated?

but it's still showing the old process for adding lines on crates.io

and I can see in the repo the readme file still has

let line1 = Line { points: points1, is_closed: true, has_fill: true, has_stroke: true, is_clipping_path: false, };

and

current_layer.add_shape(line1);

but after upgrading to v0.6.0

it should be

let line1 = Line { points: points1, is_closed: true };

current_layer.add_line(line1);

assuming there might be other issues in the old file as well.

if it just needs manualy copying and pasting from the relevant files, i'm happy to make a PR, but thought i'd ask first incase it's build step that isn't running?

fschutt commented 1 year ago

It's not auto-generated, I need to update the README. I split the Line into Line and Polygon to make a distinction, so things like has_fill is useless.

fschutt commented 2 weeks ago

Need to update docs for 0.8.