HTML5 Canvas in UI

Hello guys,

I’m interested in using HTML5 Canvas as a part of my Ionic app’s UI.
However HTML5 Canvas uses pure javascript which is not usable on Ionic 3 based on Typescript.
Is there a way to draw using Canvas using its original javascript command on Ionic 3?
or should I consider using SVG instead?