maybe have these functions throw errors if orientation is inappropriate? like setting maxWidth on a horizontal axis can be an error