Skip to content

How to access bounding box of PathData? #148

@aryobenholzner

Description

@aryobenholzner

I would like to use the bounding box calculated in the PathDataBuilder.build() to use for MapState.scrollTo.

Currently, the boundingBox field of PathData is internal, so it cannot be accessed

internal val boundingBox: Pair<Point, Point> // topLeft, bottomRight

Is there another way of scrolling a path into the view? I could not find anything in the docs or even in the sources.

If there's currently no way, would it be ok to make PathData.boundingBox public? (and possibly data too)

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