Commit 68c325f 1 parent 7d2a168 commit 68c325f Copy full SHA for 68c325f
File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,15 @@ export function vNodeToString(
50
50
const S = opts . newline ? '\n' : '' ;
51
51
function convertElToString ( el : SVGVNode ) : string {
52
52
const { children, tag, attrs } = el ;
53
- // fix: https://github.com/Shopify/react-native-skia/issues/888
54
- if ( attrs [ 'stroke-width' ] === 0 ) {
55
- attrs [ 'stroke-opacity' ] = 0 ;
53
+ if ( tag === 'path' ) {
54
+ // fix: https://github.com/Shopify/react-native-skia/issues/888
55
+ if ( attrs [ 'stroke-width' ] === 0 ) {
56
+ attrs [ 'stroke-opacity' ] = 0 ;
57
+ }
58
+ // fix: https://github.com/wuba/react-native-echarts/issues/161
59
+ if ( attrs [ 'fill' ] === 'transparent' ) {
60
+ attrs [ 'fill-opacity' ] = 0 ;
61
+ }
56
62
}
57
63
if ( tag === 'text' ) {
58
64
if ( typeof attrs . style === 'string' ) {
You can’t perform that action at this time.
0 commit comments