37 Commits

Author SHA1 Message Date
Martin Slachta
397f4871ff SVG Export: Removed groups around every single element to reduce size.
Every element like path had group around it that defined it's transform.
These changes move the transformations to the element itself. This
reduces the overall size of the exported SVG.

Added new SVG path builder using relative coordinates. The previous with
global coordinates is still used for glyph paths. Using relative
coordinates allows to transform the entire element without changing the entire path.
2025-05-05 18:28:09 +02:00
frozolotl
3eb6e87af1
Include images from raw pixmaps and more (#5632)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-31 09:56:25 +00:00
Laurenz
dacd6acd5e
More flexible and efficient Bytes representation (#5670) 2025-01-08 10:57:56 +00:00
Emmanuel Lesueur
257764181e
New curve element that supersedes path (#5323)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-18 15:58:57 +00:00
Laurenz
1346385255
Rename pattern to tiling (#5590) 2024-12-17 09:25:27 +00:00
Laurenz
e0122a5b50 Add HTML export format 2024-12-04 10:12:07 +01:00
Laurenz
f8f2ba6a5f Rename Document to PagedDocument 2024-12-04 10:12:07 +01:00
Laurenz
d40c8ab6ab
Compile-time PicoStr interning (#5491) 2024-11-29 15:03:08 +00:00
Laurenz
be7cfc85d0
Split out four new crates (#5302) 2024-10-27 18:04:55 +00:00
Laurenz
92aacdb480
Fix scales for unit conversion (#5169) 2024-10-10 15:51:48 +00:00
Nixon
4fda03abdc
Animation-friendly export (#4822) 2024-09-03 12:05:20 +00:00
HydroH
1d74c8e8bf
Add non-zero and even-odd fill rules to path and polygon (#4580)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-22 14:24:29 +00:00
Laurenz
0c37a2c233
Support transparent page fill (#4586)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-07-20 12:51:24 +00:00
Laurenz
45366c0112
Bump Rust in CI (#4445) 2024-06-24 20:11:11 +00:00
Laurenz
a52987a8c2
Refactor frame metadata into tags (#4212) 2024-05-22 09:26:03 +00:00
Laurenz
95cd6adf24
Factor out typst-utils crate (#4125) 2024-05-13 15:25:43 +00:00
Tulio Martins
c49c0955be
Refactor typst-svg (#4074) 2024-05-07 09:55:59 +00:00
Laurenz
b3615ccd49
A few CI and crate config changes (#3852) 2024-04-02 14:16:44 +00:00
Laurenz
faca50a240
Final touches (#3678) 2024-03-15 14:47:41 +00:00
Laurenz
a2d097686f
Update changelog and roadmap (#3594) 2024-03-09 16:56:56 +00:00
Laurenz
aace521b56
Bump our crates (#3573) 2024-03-07 16:37:22 +00:00
geekvest
098ef5acbb
Fix some comments (#3541)
Signed-off-by: geekvest <cuimoman@sohu.com>
2024-03-03 14:50:19 +00:00
Laurenz
79e37ccbac
Don't round SVG size (#3415) 2024-02-14 15:07:38 +00:00
Artemis Tosini
310a89cbd8
Include units in top-level SVG element (#3233) 2024-01-25 15:34:35 +00:00
Laurenz
6ac71eeaf7 Add Page struct
To get rid of the Meta hack where numbering and things like that are stored in the frame.
2024-01-17 21:53:20 +01:00
Sébastien d'Herbais de Thun
c4d9b0c3d8
New performance timings (#3096)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-12-30 12:36:15 +00:00
Laurenz
67ead94cc2 Fix naming inconsistency for strokes 2023-12-28 13:52:58 +01:00
Wenzhuo Liu
81ff34d80d
Add stroke for text (#2970) 2023-12-19 10:36:18 +01:00
Laurenz
2f2dd17938
Bump svg2pdf and related crates (#2992) 2023-12-18 14:15:22 +01:00
Laurenz
3c22c9f319 Pattern improvements 2023-11-29 16:28:30 +01:00
Laurenz
713cde1136 Make workspace inheriting consistent 2023-11-27 16:54:55 +01:00
danieleades
e36a18b991
Use clippy workspace lints and inline format args (#2771) 2023-11-27 11:34:14 +01:00
Sébastien d'Herbais de Thun
1756718bab
Gradient Part 6 - Pattern fills (#2740) 2023-11-24 15:46:20 +01:00
Laurenz
7eebafa783 Merge typst and typst-library 2023-11-24 12:30:02 +01:00
frozolotl
f56813a778
Remove a suffix from Rgba and LinearRgba (#2691) 2023-11-15 14:48:48 +01:00
frozolotl
d93ed1b3d8
Implement Oklch support (#2611) 2023-11-10 10:31:06 +01:00
Laurenz
80b4ca4c04 Extract typst-svg crate 2023-11-08 13:21:47 +01:00