Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('svg circle')[0].getBBox();
- function getOffset(element)
- {
- var bound = element.getBoundingClientRect();
- var html = document.documentElement;
- return {
- top: bound.top + window.pageYOffset - html.clientTop,
- left: bound.left + window.pageXOffset - html.clientLeft
- };
- }
Add Comment
Please, Sign In to add comment