Use func to produce var link origin
Calculate var link origin based on tr bounding box