Skip to content

Properties of a dom p5.element, position? #579

Closed
@radames

Description

@radames

I was trying to access the position of a slider and noticed that only the property slider.width and slider.heigh are accessible.
I manage to get the relative positions through slider.elt.style.left or slider.elt.style.top .
Wouldn't be nice to have access straight from the element like slider.x slider.y? Perhaps with center mode or corner mode.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions