Skip to content

D3 zoom fail on nested svg #178

@Eymeric65

Description

@Eymeric65

When using D3 zoom with mermaid graph that contain nested svg, it fails due to the way d3.selectAll works :

var svgs = d3.selectAll("{d3_selector}");

select all the subsequent svg in case of setting up the global zoom function.

In conclusion this likely fail.

var svgs = d3.selectAll(.mermaid svg);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions