Skip to content

[Feature Request] Expose 2D positions of objects #89

@kWh61

Description

@kWh61

Use case: clicking on an object can trigger an popover card (or dialogue box) open. Note that this dialogue box is a custom react component defined outside of spline.

Why need 2D positions: currently a SplineEvent in onMouseDown only contains the target’s name and ID without telling us where the object is. Without its 2D position, we can’t position the dialogue box properly.

Desired behavior: SplineEvent provides the 2D position of the object. Or alternatively, the results from findObjectByName and findObjectByID contains the 2D position of the object (currently only has 3D).

Please let me know if there’re other ways to implement this functionality, but otherwise please take a moment to review this feature request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions