From a4187021522f9afc6df20fd2c96472ae5768a720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20Sch=C3=B6lhorn?= Date: Sat, 9 May 2020 19:17:30 +0200 Subject: [PATCH] fix: Adapt spelling of gradient macros to other svg macros This is a breaking change! --- CHANGELOG.md | 1 + src/shortcuts.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9ed04b03..98fadb290 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Changelog [unreleased] +- [BREAKING] Rename `linear_gradient!` to `linearGradient!` for consistency with the other svg macros (same with `radial_gradient!` and `mesh_gradient!`). ## v0.7.0 - [BREAKING] Custom elements are now patched in-place (#364). Use `el_key` to force reinitialize an element. diff --git a/src/shortcuts.rs b/src/shortcuts.rs index ba138ef89..cdc40f94d 100644 --- a/src/shortcuts.rs +++ b/src/shortcuts.rs @@ -189,7 +189,7 @@ element_svg! { // missing-glyph => MissingGlyph; // todo unable to populate with macro due to hyphen pattern => Pattern; svg => Svg; switch => Switch; symbol => Symbol; unknown => Unknown; // SVG gradient elements - linear_gradient => LinearGradient; radial_gradient => RadialGradient; mesh_gradient => MeshGradient; + linearGradient => LinearGradient; radialGradient => RadialGradient; meshGradient => MeshGradient; stop => Stop; // SVG graphics elements image => Image;