Skip to content

Commit

Permalink
Merge pull request #1 from s0l0ist/nangelou-add-fe
Browse files Browse the repository at this point in the history
Add Filter Elements
  • Loading branch information
s0l0ist authored Sep 13, 2023
2 parents 8093556 + 2a5d840 commit 875df73
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
75 changes: 75 additions & 0 deletions src/node/element/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,81 @@ implement! {
#[doc = "A [`filter`](https://www.w3.org/TR/SVG/filters.html#FilterElement) element."]
struct Filter

#[doc = "A [`feBlend`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feBlend) element."]
struct FeBlend

#[doc = "A [`feColorMatrix`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feColorMatrix) element."]
struct FeColorMatrix

#[doc = "A [`feComponentTransfer`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feComponentTransfer) element."]
struct FeComponentTransfer

#[doc = "A [`feComposite`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feComposite) element."]
struct FeComposite

#[doc = "A [`feConvolveMatrix`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feConvolveMatrix) element."]
struct FeConvolveMatrix

#[doc = "A [`feDiffuseLighting`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDiffuseLighting) element."]
struct FeDiffuseLighting

#[doc = "A [`feDisplacementMap`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDisplacementMap) element."]
struct FeDisplacementMap

#[doc = "A [`feDistantLight`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDistantLight) element."]
struct FeDistantLight

#[doc = "A [`feDropShadow`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feDropShadow) element."]
struct FeDropShadow

#[doc = "A [`feFlood`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFlood) element."]
struct FeFlood

#[doc = "A [`feFuncA`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncA) element."]
struct FeFuncA

#[doc = "A [`feFuncB`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncB) element."]
struct FeFuncB

#[doc = "A [`feFuncG`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncG) element."]
struct FeFuncG

#[doc = "A [`feFuncR`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feFuncR) element."]
struct FeFuncR

#[doc = "A [`feGaussianBlur`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feGaussianBlur) element."]
struct FeGaussianBlur

#[doc = "A [`feImage`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feImage) element."]
struct FeImage

#[doc = "A [`feMerge`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMerge) element."]
struct FeMerge

#[doc = "A [`feMergeNode`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMergeNode) element."]
struct FeMergeNode

#[doc = "A [`feMorphology`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feMorphology) element."]
struct FeMorphology

#[doc = "A [`feOffset`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feOffset) element."]
struct FeOffset

#[doc = "A [`fePointLight`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/fePointLight) element."]
struct FePointLight

#[doc = "A [`feSpecularLighting`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feSpecularLighting) element."]
struct FeSpecularLighting

#[doc = "A [`feSpotLight`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feSpotLight) element."]
struct FeSpotLight

#[doc = "A [`feTile`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feTile) element."]
struct FeTile

#[doc = "A [`feTurbulence`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/feTurbulence) element."]
struct FeTurbulence

#[doc = "A [`foreignObject`](https://www.w3.org/TR/SVG/embedded.html#ForeignObjectElement) element."]
struct ForeignObject

Expand Down
25 changes: 25 additions & 0 deletions src/node/element/tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,31 @@ implement! {
Description: "desc",
Ellipse: "ellipse",
Filter: "filter",
FeBlend: "feBlend",
FeColorMatrix: "feColorMatrix",
FeComponentTransfer: "feComponentTransfer",
FeComposite: "feComposite",
FeConvolveMatrix: "feConvolveMatrix",
FeDiffuseLighting: "feDiffuseLighting",
FeDisplacementMap: "feDisplacementMap",
FeDistantLight: "feDistantLight",
FeDropShadow: "feDropShadow",
FeFlood: "feFlood",
FeFuncA: "feFuncA",
FeFuncB: "feFuncB",
FeFuncG: "feFuncG",
FeFuncR: "feFuncR",
FeGaussianBlur: "feGaussianBlur",
FeImage: "feImage",
FeMerge: "feMerge",
FeMergeNode: "feMergeNode",
FeMorphology: "feMorphology",
FeOffset: "feOffset",
FePointLight: "fePointLight",
FeSpecularLighting: "feSpecularLighting",
FeSpotLight: "feSpotLight",
FeTile: "feTile",
FeTurbulence: "feTurbulence",
ForeignObject: "foreignObject",
Group: "g",
Image: "image",
Expand Down

0 comments on commit 875df73

Please sign in to comment.