feat: FeFlood (#2487)

# Summary

Continuation of #2362 implementing `FeFlood` filter
https://www.w3.org/TR/SVG11/filters.html#feFloodElement

## Test Plan

Example app → Filters → `FeFlood`

## Compatibility

| OS      | Implemented |
| ------- | :---------: |
| iOS     |          |
| macOS   |     _*_      |
| Android |          |
| Web     |          |

_* `canvasWidth/canvasHeight` is incorrect on macOS, so there might be
some problems_
This commit is contained in:
Jakub Grzywacz
2024-10-15 09:35:13 +02:00
committed by GitHub
parent 8fed77476b
commit ba54b15799
17 changed files with 581 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
#import "RNSVGFilterPrimitiveManager.h"
@interface RNSVGFeFloodManager : RNSVGFilterPrimitiveManager
@end
+16
View File
@@ -0,0 +1,16 @@
#import "RNSVGFeFloodManager.h"
#import "RNSVGFeFlood.h"
@implementation RNSVGFeFloodManager
RCT_EXPORT_MODULE()
- (RNSVGFeFlood *)node
{
return [RNSVGFeFlood new];
}
RCT_EXPORT_VIEW_PROPERTY(floodColor, RNSVGBrush)
RCT_EXPORT_VIEW_PROPERTY(floodOpacity, CGFloat)
@end