mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-08 09:10:44 +00:00
feat: FeBlend (#2489)
# Summary Continuation of #2362 implementing `FeBlend` filter https://www.w3.org/TR/SVG11/filters.html#feBlendElement ## Test Plan Example app → Filters → `FeBlend` ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | macOS | ✅ _*_ | | Android | ✅ | | Web | ✅ |
This commit is contained in:
@@ -23,6 +23,24 @@
|
||||
}
|
||||
}
|
||||
|
||||
+ (RNSVGBlendMode)RNSVGBlendModeFromCppEquivalent:(react::RNSVGFeBlendMode)mode
|
||||
{
|
||||
switch (mode) {
|
||||
case react::RNSVGFeBlendMode::Unknown:
|
||||
return SVG_FEBLEND_MODE_UNKNOWN;
|
||||
case react::RNSVGFeBlendMode::Normal:
|
||||
return SVG_FEBLEND_MODE_NORMAL;
|
||||
case react::RNSVGFeBlendMode::Multiply:
|
||||
return SVG_FEBLEND_MODE_MULTIPLY;
|
||||
case react::RNSVGFeBlendMode::Screen:
|
||||
return SVG_FEBLEND_MODE_SCREEN;
|
||||
case react::RNSVGFeBlendMode::Darken:
|
||||
return SVG_FEBLEND_MODE_DARKEN;
|
||||
case react::RNSVGFeBlendMode::Lighten:
|
||||
return SVG_FEBLEND_MODE_LIGHTEN;
|
||||
}
|
||||
}
|
||||
|
||||
+ (RNSVGColorMatrixType)RNSVGColorMatrixTypeFromCppEquivalent:(react::RNSVGFeColorMatrixType)type
|
||||
{
|
||||
switch (type) {
|
||||
|
||||
Reference in New Issue
Block a user