Element attribute numbers have 'decimal' format

Also renamed for clarity and re-ordered some functions.
Element position attributes adjust for drag offsets

Values while dragging are no longer affected by where in the element the
drag started.