https://kotlinlang.org logo
Title
n

Nikky

12/05/2020, 12:46 AM
how easy is it to draw custom shapes via SVG or canvas across compose-desktop and android ? (that kinda the center UI for a thing i might want to build.. but i also want to explose compose for desktop)
z

zsperske

12/05/2020, 12:49 AM
i think in milestone 2 they added support for the same svgs across android/desktop
n

Nikky

12/05/2020, 12:50 AM
cool do you know if i can make them interactive? eg. have shapes clickable ?
sounds exciting though
z

zsperske

12/05/2020, 12:54 AM
i'm not sure tbh. good luck!
s

suresh

12/05/2020, 12:57 AM
It's android vector drawables. You have to convert svg to that format before rendering.
n

Nikky

12/05/2020, 1:05 AM
i am currently generating SVG and updating content of a SVG tag.. i can switch this to generate int oa different format as long as it can do circles and lines
seems like this will be a bit more work than just plugging my SVG code in, expecially since i need to be able to click on elements
d

Dominaezzz

12/05/2020, 2:56 PM
Elements in the SVG?! Yeah might have to draw it manually then.
I also happen to be interested in SVG parsing in compose-desktop. Lemme know if/when you have GitHub repo.