Closed ArturShoba closed 6 years ago
@ArturShoba I'll just explain how you'd do that in Android but not iOS (as I don't know yet).
The dashed line is not easily achievable from the JS-Side and requires native code.
What I'd do:
public enum LineStyle { DASHED, SOLID }
import android.graphics.DashPathEffect;
at SketchData.javapaintObject.setPathEffect(new DashPathEffect(new float[]{5, 5}, 0));
This should result in a dashed line.
In my fork of this library I'm working on a feature to add movable, rotatable and scalable shapes/text stickers. I've done a dashed border for them.
@creambyemute Thank You!
@ArturShoba Were you able to get it work :-)?
@creambyemute Yes, I was able to get it work.
How can I draw a dashed line?