mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-30 21:49:31 +00:00
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:
@@ -0,0 +1,5 @@
|
||||
#import "RNSVGFilterPrimitiveManager.h"
|
||||
|
||||
@interface RNSVGFeFloodManager : RNSVGFilterPrimitiveManager
|
||||
|
||||
@end
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user