hyTags
HomeHome DocumentationDocumentation

selection-get-frame-rect

Gets the bounding rectangle of the selected element.
Parameter
Type
Description
container
String?
Container for coordinates: 'viewport' or nil for offset parent
return
rect
Rectangle with position and dimensions
Test Case:Get frame rect of element
    <div></div>
    
    <selection-get-frame-rect>
    <rect-get-width>
    
    👆 Try to change something!
  • Test succeeded Test failed