add getScale and getOffset