-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CanvasFilters - How do we set the dimensions of the filter? #14
Comments
Is there a use-case for this? In my tests |
I think these actually do affect where the filter starts from, while with |
Our goal is to make filters only available on layers. Therefore, if you wanted to set a dimension to a filter, all you'd need to do is clip the layer itself. In SVG, setting a dimension to a filter essentially does:
The first clip is what causes the difference in your example. You could do the same thing with canvas, see for instance: https://jsfiddle.net/no2zpLuv/. |
There doesn't seem to be a way to set the
width
height
x
andy
properties of the filter itself.Should the
CanvasFilter
constructor takes these as parameters?Or should the input be a dictionary with the array of filter components.
The text was updated successfully, but these errors were encountered: