Bump linesweeper version and fix paths

This commit is contained in:
Dennis Kobert 2025-05-25 13:12:22 +02:00
parent 1c5064ed60
commit 44bbdafd4a
No known key found for this signature in database
GPG key ID: 5A4358CB9530F933
4 changed files with 9 additions and 11 deletions

10
Cargo.lock generated
View file

@ -2240,7 +2240,6 @@ dependencies = [
"graphene-raster-nodes",
"graphene-svg-renderer",
"image",
"linesweeper 0.0.4",
"log",
"node-macro",
"reqwest",
@ -3202,12 +3201,12 @@ dependencies = [
[[package]]
name = "libloading"
version = "0.8.8"
version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07033963ba89ebaf1584d767badaa2e8fcec21aedea6b8c0346d487d49c28667"
checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
dependencies = [
"cfg-if",
"windows-targets 0.53.3",
"windows-link 0.2.1",
]
[[package]]
@ -3230,8 +3229,7 @@ dependencies = [
[[package]]
name = "linesweeper"
version = "0.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cce9ea4ee3d12ddbb8b92e511a40945183962dc9257ec857768b7108986cd4aa"
source = "git+https://github.com/jneem/linesweeper#3a9c0fd69c1e02d397e2dff7551818041d4a719f"
dependencies = [
"arrayvec",
"kurbo",

View file

@ -26,7 +26,7 @@ default = ["parsing"]
[dependencies]
glam = "0.29.0"
kurbo.version = "=0.11"
linesweeper = "0.0.4"
linesweeper = {git = "https://github.com/jneem/linesweeper"}
regex = "1.10.6"
slotmap = "1.0.7"
lyon_geom = "1.0"

View file

@ -62,9 +62,11 @@ fn from_kurbo_path(a: &linesweeper::topology::Contours) -> Vec<Path> {
a_new.push(PathSegment::Quadratic(last, k(p2), k(p3)));
last = k(p3)
}
kurbo::PathEl::LineTo(p) => a_new.push(PathSegment::Cubic(last, last, k(p), k(p))),
kurbo::PathEl::LineTo(p) => {
a_new.push(PathSegment::Cubic(last, last, k(p), k(p)));
last = k(p);
}
kurbo::PathEl::ClosePath => a_new.push(PathSegment::Cubic(last, last, start, start)),
_ => panic!("{:?}", segment),
};
}
output.push(a_new);

View file

@ -62,7 +62,5 @@ web-sys = { workspace = true, optional = true, features = [
"ImageBitmapRenderingContext",
] }
linesweeper = "0.0.4"
[dev-dependencies]
tokio = { workspace = true }