hyTags
HomeHome DocumentationDocumentation

rect-get-right

Gets the right position of a rectangle.
Parameter
Type
Description
self
Rect
The rectangle to get the right position from.
return
number
The right position of the rectangle (left + width).
Test Case:Get right position of rect
    <div style="position: absolute; top: 2px; left: 3px; width: 100px; height: 50px"></div>
    
    <selection-get-frame-rect>
    <rect-get-right>
    <assert-equal value="103" type="number">
    
    👆 Try to change something!
  • Test succeeded Test failed