mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-31 21:58:01 +00:00
feat: properly implement filter region unit USER_SPACE_ON_USE (#2486)
# Summary After deep dive into the specification, I found out that the default filter subregion is not equal to `0% 0% 100% 100%`, rather the size of the parent filter region. ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | MacOS | ✅ | | Android | ✅ |
This commit is contained in:
@@ -16,12 +16,8 @@ export default class FilterPrimitive<P> extends Component<
|
||||
[x: string]: unknown;
|
||||
root: (FilterPrimitive<P> & NativeMethods) | null = null;
|
||||
|
||||
static defaultPrimitiveProps: React.ComponentProps<typeof FilterPrimitive> = {
|
||||
x: '0%',
|
||||
y: '0%',
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
};
|
||||
static defaultPrimitiveProps: React.ComponentProps<typeof FilterPrimitive> =
|
||||
{};
|
||||
|
||||
refMethod: (instance: (FilterPrimitive<P> & NativeMethods) | null) => void = (
|
||||
instance: (FilterPrimitive<P> & NativeMethods) | null
|
||||
|
||||
Reference in New Issue
Block a user