Skip to content

Commit

Permalink
fix: wrong scale of markers on android
Browse files Browse the repository at this point in the history
  • Loading branch information
mlecoq committed May 10, 2022
1 parent 9bc7d3f commit d1a1845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/com/horcrux/svg/MarkerView.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void renderMarker(Canvas canvas, Paint paint, float opacity, RNSVGMarkerPosition

boolean useStrokeWidth = "strokeWidth".equals(mMarkerUnits);
if (useStrokeWidth) {
markerTransform.preScale(strokeWidth, strokeWidth);
markerTransform.preScale(strokeWidth / mScale, strokeWidth / mScale);
}

double width = relativeOnWidth(mMarkerWidth) / mScale;
Expand Down

0 comments on commit d1a1845

Please sign in to comment.