instance method Element.Offset#relativeTo

View source on GitHub →

Element.Offset#relativeTo(offset) → Element.Offset

Returns a new Element.Offset with its origin at the given offset. Useful for determining an element's distance from another arbitrary element.