Héctor Ramón Jiménez
04e8e529a0
Convert SVG text nodes for in-memory SVGs in iced_wgpu
2023-12-11 10:48:41 +01:00
Héctor Ramón Jiménez
33f92b1be7
Fix import styling in iced_wgpu::image::vector
2023-12-11 10:47:53 +01:00
Cory Frenette
a2a96adf7a
implement svg text fix for native renderer
...
Signed-off-by: Cory Frenette <cory@frenette.dev>
2023-12-10 22:12:46 -05:00
Héctor Ramón Jiménez
b277625546
Revert "Chore: Apply clippy map transformations"
...
This reverts commit c997aad85d .
2023-09-20 16:26:43 +02:00
Héctor Ramón Jiménez
caed50b277
Fix clippy::match-wildcard-for-single-variants
2023-09-20 05:03:25 +02:00
Héctor Ramón Jiménez
34f07b6027
Fix clippy::semicolon_if_nothing_returned
2023-09-20 04:11:52 +02:00
Héctor Ramón
582da10ae2
Merge pull request #2090 from nyurik/mapping
...
Chore: Apply clippy map transformations
2023-09-19 13:22:21 +02:00
Yuri Astrakhan
c997aad85d
Chore: Apply clippy map transformations
...
Convert `.map().unwrap_or()` to `.map_or()` and similar transformations.
2023-09-19 01:46:46 -04:00
Yuri Astrakhan
3d6b9637c3
Chore: Inline format args for ease of reading
...
A minor cleanup to inline all simple cases of format arguments. Makes the format strings just a bit easier to read.
2023-09-19 01:32:56 -04:00
Héctor Ramón Jiménez
6502cf1111
Improve code style in vector modules
2023-07-12 09:07:20 +02:00
Alec Deason
af386fd0a3
Upgrade resvg to 0.34 and tiny_skia to 0.10
2023-07-12 08:59:07 +02:00
Héctor Ramón Jiménez
c528f2129e
Use proper gamma correction mode in image::Atlas::grow
2023-05-31 21:45:12 +02:00
Héctor Ramón Jiménez
f1b259a28f
Avoid gamma correction when web-colors is enabled for images
2023-05-31 21:42:39 +02:00
Héctor Ramón Jiménez
0ef5ab6c84
Remove dbg! leftovers in image::atlas
2023-05-11 20:19:37 +02:00
Héctor Ramón Jiménez
f02f0c01ea
Fix race condition when growing an image::Atlas
2023-05-11 20:18:36 +02:00
Héctor Ramón Jiménez
8e8808f0e1
Merge branch 'master' into advanced-text
2023-05-02 06:40:48 +02:00
Héctor Ramón Jiménez
9c63eb7df5
Update tiny-skia and resvg
2023-04-26 16:46:27 +02:00
David Huculak
cbb2ba38fa
remove unused import
2023-04-20 21:38:52 -04:00
David Huculak
8122904ca4
wgpu 0.16
2023-04-20 21:28:47 -04:00
Elham Aryanpur
d5453c62e9
Update wgpu to 0.15
2023-04-13 05:40:23 +02:00
Héctor Ramón Jiménez
c0431aedd3
Update wgpu and cosmic-text
2023-04-08 04:47:05 +02:00
Héctor Ramón Jiménez
3a26baa564
Remove image abstractions in iced_graphics
2023-03-07 03:47:49 +01:00
Héctor Ramón Jiménez
3a0d34c024
Create iced_widget subcrate and re-organize the whole codebase
2023-03-04 05:37:11 +01:00
Héctor Ramón Jiménez
363966ee9e
Refactor image::Pipeline into prepare and render architecture
2023-02-24 13:37:31 +01:00
Héctor Ramón Jiménez
438f97a6d0
Use RGBA texture for image and svg pipelines
2022-11-05 03:20:00 +01:00
Héctor Ramón Jiménez
8ce8d374b1
Refactor some image traits a bit
...
- Use `Size<u32>` were applicable.
- Rename `TextureStore` to `image::Storage`.
- Rename `TextureStoreEntry` to `image::storage::Entry`.
- Wire up `viewport_dimensions` to `iced_glow` for `Svg`.
2022-11-05 03:19:38 +01:00
Ian Douglas Scott
2c7c42ee93
Move image/svg handling into iced_graphics
...
The `TextureStore` trait is implemented by the atlas, and can also be
implemented in the glow renderer or in a software renderer.
The API here may be improved in the future, but API stability is
presumably not a huge issue since these types will only be used by
renderer backends.
2022-11-05 03:19:37 +01:00
Héctor Ramón Jiménez
2065a40f64
Fix clippy lints for all crates and features
...
... and check those in CI as well!
2022-07-09 18:43:05 +02:00
Héctor Ramón Jiménez
33a24b5821
Run cargo fmt
2022-07-09 17:07:40 +02:00
Poly
15f794b7a8
Address Clippy lints
2022-07-09 17:07:38 +02:00
Héctor Ramón Jiménez
adce9e0421
Update Rust edition to 2021 🎉
2022-02-09 17:57:44 +07:00
Héctor Ramón Jiménez
2cc7e0a449
Fix Operation::perform in image::raster
...
Flipping diagonally isn't the same as flipping each axis individually 😅
2021-09-30 16:51:42 +07:00
Héctor Ramón Jiménez
60070eef27
Remove absolute module path leftovers in image::raster
2021-09-30 16:20:04 +07:00
Héctor Ramón Jiménez
21d138aa28
Refactor Orientation into Operation in image::raster
2021-09-30 16:15:15 +07:00
Héctor Ramón Jiménez
86d6d53cfa
Remove unnecessary absolute module paths in image::raster
2021-09-30 14:35:10 +07:00
Héctor Ramón Jiménez
03fee3106f
Introduce Orientation enum in image::raster
2021-09-30 14:24:23 +07:00
Mateusz Czapliński
82e3e316dd
Honor Exif orientation in iced_wgpu::Image
2021-09-30 00:28:56 +02:00
Héctor Ramón Jiménez
73f2881568
Update resvg to 0.18 in iced_wgpu
2021-09-27 14:23:22 +07:00
Poly
18753b77fc
wgpu: Update to 0.10
2021-08-19 03:06:38 +02:00
aentity
665422e256
Use ceil on svg dimensions, fix svg memory usage
...
Calls ceil() on dimension bounds as this appears fix svg memory
unbounded usage because no longer cache miss.
The height and width return from resvg seem to always be ceiling
of float dimensions, so we try to match.
2021-07-21 02:26:53 -04:00
Aaron Housh
ae484429d3
Merge branch 'hecrj:master' into upgrade-wgpu
2021-05-19 07:14:26 -07:00
Zak
77a17cde83
This commit optimizes the function used to converg rgba pixels into bgra pixels.
2021-05-11 22:41:55 +01:00
Dispersia
9a2c78c405
Upgrade wgpu
2021-04-11 18:55:57 -07:00
Greg V
8f126c212b
Add image format options to reduce code bloat, fixes #376
2021-02-13 15:53:24 +01:00
Greg V
81f37123ad
Update resvg to 0.12
2020-12-19 01:24:40 +01:00
Héctor Ramón Jiménez
209056e1cd
Fix deprecation warnings from image
2020-11-20 10:29:11 +01:00
Héctor Ramón Jiménez
9d4f664c94
Update bytemuck and remove zerocopy in iced_wgpu
2020-11-10 20:06:24 +01:00
Héctor Ramón Jiménez
44118263b5
Add labels to iced_wgpu internals
2020-08-31 14:41:41 +02:00
Héctor Ramón Jiménez
bb5f034e08
Fix offset calculation in image::Atlas
2020-08-27 14:45:08 +02:00
Héctor Ramón Jiménez
ecbee66bd6
Fix layers initialization in image::Atlas
2020-08-27 14:44:51 +02:00