var visualWidth=container.width();
var visualHeight=container.height();
function calculateDist(direction, proportion) {
return (direction == "x" ?
visualWidth : visualHeight) * proportion;
}
相关分类