Skip to content

Get the center of the current viewport #3391

@lajtmaN

Description

@lajtmaN

Please describe the feature that you want to propose

Currently there is a way to get the viewport (getViewport), but that will only output the x,y for the topleft corner of the currently shown viewport.

It would be nice to be able to get the center of the viewport as well, which would be calculated based on the size of the DOM node, zoom level, etc.

My purpose is to automatically add nodes to the center of the current viewport.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions