-
Notifications
You must be signed in to change notification settings - Fork 26
Description
One great feature would be to allow users to add a custom React component to each node kind to render custom body content. Until Safari fixes its foreignObject implementation, the component would have to only render SVG elements, but that still seems useful.
Right now all the nodes are fixed-size. The simplest version of this would keep the fixed node dimensions, and leave it up to the user to not overflow them. A slightly better version of this would leave it up to the user to compute each node's dimensions individually. And ideally we would automatically find a bounding box of the user's custom SVG content and dynamically resize the node to fit.
I'll let these options sit for a while and come back to this later. If anyone has ideas feel free to being them up.