Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Feature request: operate on specific elements in an svg #31

Open
brmscheiner opened this issue Apr 10, 2019 · 1 comment
Open

Feature request: operate on specific elements in an svg #31

brmscheiner opened this issue Apr 10, 2019 · 1 comment

Comments

@brmscheiner
Copy link

At the moment, attempting to morph inner svg elements gives an error. For example

<MorphReplace>
    <path
        key={this.pathKey}
        d={pathDefinition}
        className={curveStyles}
    />
</MorphReplace>

results in Uncaught TypeError: Cannot read property 'children' of undefined (caught in normizeSvg.js because findSvgRoot returns undefined).

Allowing this would be cool for applications such as data visualization. In my case animation is already handled for other svg elements and I just want to morph one particular path.

@jmazier-j2d
Copy link

jmazier-j2d commented Apr 14, 2020

Same issue here, i'm inserting SVG element using dangerouslySetInnerHTML due to a cluncky backend architecture.

I've found a workaround, not as clean as I'd wished, thanks a lot for your work tho ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants