4 ms·
We built a workflow design ui with svg under react and for the most part it is an absolute pleasure. Also pretty neat that you can treat the svg as an image/thu
by danjc 10y ago
We built a workflow design ui with svg under react and for the most part it is an absolute pleasure. Also pretty neat that you can treat the svg as an image/thumbnail. If you need the svg to be interactive, overlaying html works well too.
Example at http://flowgear.me/s/1Ae7Pso http://flowgear.me/s/1Ae7Pso if you're interested.
One thing to watch out for is that there are some svg object attributes (and some objects) that aren't declared in react.
- monfera 10y agoYou can generally use them with 'is', for example: <marker id={'bar'} is markerHeight={viewModel.height} refX={viewModel.xCenter} markerWidth={viewModel.width}>