Skip to content

Commit

Permalink
Make CI happy
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Apr 1, 2024
1 parent 24397f1 commit 2305ed6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added support for text embedding.
- Added a `text` feature flag.
- The `convert_str` method has been removed. You should now always convert your SVG string into a `usvg`
tree yourself.
tree yourself and then call either `to_pdf` or `to_chunk`.
- The `convert_tree` method has been renamed into `to_pdf`, and now requires you to provide the fontdb
used for the `usvg` tree.
used for the `usvg` tree, unless you have disabled the `text` feature.
- `convert_tree_into` has been renamed into `to_chunk` and now returns an independent chunk as well
as the object ID of the SVG.
as the object ID of the actual SVG in the chunk.

- TODO: The CLI options have been (temporarily) removed. They will be readded before the next release.
- TODO: Add tests for CLI and svg options
Expand Down
5 changes: 2 additions & 3 deletions tests/src/api.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#[allow(unused_imports)]
use {
std::collections::HashMap,
crate::{convert_svg, run_test_impl},
crate::{render_pdf, FONTDB},
pdf_writer::{Content, Finish, Name, Pdf, Rect, Ref, Str},
std::collections::HashMap,
std::path::Path,
svg2pdf::Options,
};
Expand Down Expand Up @@ -36,8 +36,7 @@ fn to_chunk() {
let tree =
svg2pdf::usvg::Tree::from_str(&svg, &svg2pdf::usvg::Options::default(), &db)
.unwrap();
let (mut svg_chunk, svg_id) =
svg2pdf::to_chunk(&tree, svg2pdf::Options::default(), &db);
let (svg_chunk, svg_id) = svg2pdf::to_chunk(&tree, svg2pdf::Options::default(), &db);

let mut map = HashMap::new();
let svg_chunk =
Expand Down

0 comments on commit 2305ed6

Please sign in to comment.