hansemannn / titanium-svg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Titanium SVG

A lightweight module to handle SVG files (both raw text or file URL) in Titanium. It returns a Ti.Blob that can be consumed by a Ti.UI.ImageView, Ti.Map.Annotation, etc.

Example

const window = Ti.UI.createWindow();
const image = require('ti.svg').SVGImage('icon.svg');

window.add(Ti.UI.createImageView({ image }))
window.open();

Author

Hans Knöchel

License

MIT

About

License:MIT License


Languages

Language:Objective-C 96.0%Language:C 2.0%Language:Kotlin 1.7%Language:JavaScript 0.2%Language:Ruby 0.1%