Skip to content

Add a simplified new function to help making filters.

Martin Owens requested to merge add-filter-api into master

This should allow writers to add filters more easily

filter = Filter.new(svg, 'GuasianBlur', stdDeviation='1 1')

This filter is now ready to use in an element and the url formatter can be used:

item.set('filter', filter.get_id(as_url=2))

We're currently not tracking filter ids as we are mask and clip-path ids, so setting the id will not update the filter using elements.

What does the merge request do?

...

Implementation notes

Summary for release notes

...

Checklist

  • Add unit tests (if applicable)
  • Changes to inkex/ are well documented
  • Clean merge request history

Merge request reports