How to measure a dom element before it is inserted

Wow, that is a lot of info and seems an ambitious project. (hammer.js looks very interesting as well by the way). How does all of this align with with Glimmer?