Skip to content

xml3d.getElementByPoint() with absolute coordinates #3

@uykusuz

Description

@uykusuz

getElementByPoint() needs to be called with x and y relative to the xml3d element. This is
okay, as long as I'm using something like jQuery's offset() to obtain the relative coordinates.
If I don't have that at hand I have to find a way to calculate the offset or even if I have it,
I find it tedious to always have to convert the coordinates first.

I would find it great if we could just pass it values, that are in a mouse event. document.getElementFromPoint() (https://developer.mozilla.org/en-US/docs/DOM/document.elementFromPoint) is a similar method and here we can pass in directly an event's pageX/pageY coordinates.

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