nodegui-plugin-svg
Plugin for NodeGUI that allows to work with QSvgWidget
Warning
Windows support is not yet implemented. Stay tuned!
Installation
npm install nodegui-plugin-svg
Usage
Plain
;; const win = ;const rootView = ;const svg = 'path/to/svg'; rootView;rootView;svg; if rootViewlayout rootViewlayout; win;win; win;globalwin = win;
React
import Svg from 'nodegui-svg-widget/react'; const SvgView = <Svg = />;
import Svg from 'nodegui-svg-widget/react'; <Svg> ` <svg height="100" width="100"> <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /> </svg> ` </Svg>;