makepad/draw/Cargo.toml
Kevin Boos 850edc8ca6
Image support: add bmp/qoi,ico, webp, SVG in Image widget, 16-bit png (#1108)
Generally, this commit makes improvements to image decoding and rendering.

Added a bunch of functions for image discovery / metadata gathering:
`decode_image_from_data()`, `image_size_by_data()`, `looks_like_svg()`

Added more `Image[Ref]` functions for other image formats:
`ImageRef::load_{bmp,qoi,ico,gif,webp,svg}_from_data()`, plus a nice
convenience fn for auto-detec+load: `load_image_from_data()`.

Added cheap, lazily-init'd support for SVGs within the `Image` widget.

Fixed some issues with aspect ratio being clobbered during image rotation.
2026-06-09 00:09:29 +02:00

38 lines
1.7 KiB
TOML

[package]
name = "makepad-draw"
version = "2.0.0"
authors = ["Makepad <info@makepad.nl>"]
edition = "2021"
description = "Makepad 2d drawing API"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/makepad/makepad/"
repository = "https://github.com/makepad/makepad/"
metadata.makepad-auto-version = "4ghwd5Pq8xlLJrln_NpXXshbpeE="
[dependencies]
makepad-platform = { path = "../platform", version = "2.0.0" }
makepad-math = { path = "../libs/math", version = "1.0.0" }
makepad-svg = { path = "../libs/svg", version = "1.0.0" }
makepad-live-id = { path = "../libs/live_id", version = "1.0.0" }
rustybuzz = { version = "0.18.0", path = "../libs/rustybuzz" }
unicode-bidi = { version = "0.3", path = "../libs/unicode/unicode-bidi" }
ab_glyph_rasterizer = { version = "0.1.8", path = "../libs/ab_glyph_rasterizer"}
sdfer = { path = "../libs/sdfer", version = "0.2.1" }
fxhash = { version = "0.2.1", path = "../libs/fxhash" }
unicode-linebreak = { version = "0.1.5", path = "../libs/unicode/unicode-linebreak" }
unicode-segmentation = { version = "1.12.0", path = "../libs/unicode/unicode-segmentation" }
makepad-zune-png = { version = "0.5.2", path = "../libs/zune/zune-png" }
makepad-zune-jpeg = { version = "0.5.15", path = "../libs/zune/zune-jpeg" }
makepad-zune-bmp = { version = "0.5.2", path = "../libs/zune/zune-bmp" }
makepad-zune-qoi = { version = "0.5.2", path = "../libs/zune/zune-qoi" }
makepad-webp = { version = "0.2.4", path = "../libs/webp" }
makepad-gif = { version = "0.1.0", path = "../libs/gif" }
serde = { version = "1.0", optional = true, features = ["derive"] }
[features]
default = []
## Enables certain public-facing types to derive serde serialization traits.
serde = ["dep:serde", "makepad-live-id/serde"]