Skip to content

Commit

Permalink
Add mask-type property support. SVG2
Browse files Browse the repository at this point in the history
Closes #582
  • Loading branch information
RazrFalcon committed Apr 23, 2023
1 parent d68ffc3 commit a81edb3
Show file tree
Hide file tree
Showing 22 changed files with 396 additions and 210 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ This changelog also contains important changes in dependencies.
## [Unreleased]
### Added
- Clipping and masking is up to 20% faster.
- `mask-type` property support. SVG2
- `usvg_tree::MaskType`
- `usvg_tree::Mask::kind`
- (rosvgtree) New SVG 2 mask attributes.

### Fixed
- Improve rectangular clipping anti-aliasing quality.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ png = { version = "0.17", optional = true }
rgb = "0.8"
svgfilters = { path = "svgfilters", version = "0.4", optional = true }
svgtypes = "0.11"
tiny-skia = { git = "https://github.com/RazrFalcon/tiny-skia", rev = "3690003" }
tiny-skia = { git = "https://github.com/RazrFalcon/tiny-skia", rev = "e4f4095" }
usvg = { path = "usvg", version = "0.31.0", default-features = false }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion docs/svg2-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Basically everything from [CSS Text Module Level 3](https://www.w3.org/TR/css-te
- [ ] A [`mask-origin`](https://www.w3.org/TR/css-masking-1/#the-mask-origin) property.
- [ ] A [`mask-size`](https://www.w3.org/TR/css-masking-1/#the-mask-size) property.
- [ ] A [`mask-composite`](https://www.w3.org/TR/css-masking-1/#the-mask-composite) property.
- [ ] A [`mask-type`](https://www.w3.org/TR/css-masking-1/#the-mask-type) property.
- [x] A [`mask-type`](https://www.w3.org/TR/css-masking-1/#the-mask-type) property.
- [ ] A [`mask-border-source`](https://www.w3.org/TR/css-masking-1/#the-mask-border-source) property.
- [ ] A [`mask-border-mode`](https://www.w3.org/TR/css-masking-1/#the-mask-border-mode) property.
- [ ] A [`mask-border-slice`](https://www.w3.org/TR/css-masking-1/#the-mask-border-slice) property.
Expand Down
16 changes: 16 additions & 0 deletions rosvgtree/codegen/attributes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ font-variant-ligatures
font-variant-numeric
font-variant-position
font-weight
fr
fx
fy
glyph-orientation-horizontal
Expand Down Expand Up @@ -85,6 +86,21 @@ markerHeight
markerUnits
markerWidth
mask
mask-border
mask-border-mode
mask-border-outset
mask-border-repeat
mask-border-slice
mask-border-source
mask-border-width
mask-clip
mask-composite
mask-image
mask-mode
mask-origin
mask-position
mask-size
mask-type
maskContentUnits
maskUnits
mix-blend-mode
Expand Down
Loading

0 comments on commit a81edb3

Please sign in to comment.