5632c916ee
- Added `SvgShape` variant to `VectorShape` in `hcie-protocol`, allowing for SVG rendering of complex shapes. - Updated serialization to skip old shape variants for backward compatibility. - Implemented SVG generation functions in `svg_templates.rs` for various shapes (arrow, star, rhombus, etc.). - Created `svg_render.rs` to parse SVG strings and tessellate paths using `usvg`. - Modified rendering logic in `hcie-vector` to handle `SvgShape` and integrate with existing shape rendering. - Updated shape creation API in `hcie-engine-api` to support SVG shapes. - Enhanced property editing and shape synchronization in both `hcie-egui-app` and `hcie-iced-app` to accommodate new SVG shapes. - Added comprehensive documentation for new features and changes.
22 lines
507 B
TOML
22 lines
507 B
TOML
[package]
|
|
name = "hcie-vector"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
hcie-protocol = { path = "../hcie-protocol" }
|
|
hcie-blend = { path = "../hcie-blend" }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
bincode = "1.3"
|
|
usvg = { workspace = true }
|
|
|
|
[lib]
|
|
crate-type = ["staticlib", "rlib"]
|
|
|
|
[dev-dependencies]
|
|
rstest = "0.23"
|
|
proptest = "1.5"
|
|
approx = "0.5"
|
|
egui = "0.34"
|
|
eframe = { version = "0.34", default-features = false, features = ["default_fonts", "glow"] }
|