fix: FeComposite add default value for k1...4 (#2557)

# Summary

Fixes #2552 by adding default value for k1, k2, k3, k4 according to the
spec: https://www.w3.org/TR/SVG11/filters.html#feCompositeElement

> If the attribute is not specified, the effect is as if a value of 0
were specified.

## Test Plan

[Repro from issue
2552](https://github.com/TomCorvus/RNSVG/blob/main/App.js)

## Compatibility

| OS      | Implemented |
| ------- | :---------: |
| iOS     |          |
| MacOS   |          |
This commit is contained in:
Jakub Grzywacz
2024-12-02 13:32:51 +01:00
committed by GitHub
parent 01db444f51
commit 1c9a553db0
2 changed files with 8 additions and 4 deletions

View File

@@ -30,6 +30,10 @@ export default class FeComposite extends FilterPrimitive<FeCompositeProps> {
static defaultProps = {
...this.defaultPrimitiveProps,
k1: 0,
k2: 0,
k3: 0,
k4: 0,
};
render() {