Skip to content

Custom node content #3

@joeltg

Description

@joeltg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions