Skip to content

Commit

Permalink
fix(hiccup-svg): re-enable filter attrib in conversion
Browse files Browse the repository at this point in the history
- update convertAttrib() to treat filter attrib as normal attrib
  • Loading branch information
postspectacular committed Oct 27, 2021
1 parent 9ff00a1 commit 7c75fbe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/hiccup-svg/src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ const convertAttrib = (res: any, id: string, v: any) => {
case "baseline":
res["dominant-baseline"] = BASE_LINE[v] || v;
break;
case "filter":
// TODO needs to be translated into <filter> def first
// https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter
// https://developer.mozilla.org/en-US/docs/Web/SVG/Element/filter
break;
// case "filter":
// TODO needs to be translated into <filter> def first
// https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter
// https://developer.mozilla.org/en-US/docs/Web/SVG/Element/filter
// break;
default:
res[id] = v;
}
Expand Down

0 comments on commit 7c75fbe

Please sign in to comment.