Function coordinateFromAnchor