index.js
function getBackgroundPosition(image) {
	var logicValue = image.isSVG ? 1 : -1;
	var x = logicValue * (image.ratio > 1 ? image.coordinates.x / image.ratio : image.coordinates.x);
	var y = logicValue * (image.ratio > 1 ? image.coordinates.y / image.ratio : image.coordinates.y);
	var template = _.template('<%= (x ? x + "px" : x) %> <%= (y ? y + "px" : y) %>');
	return template({x: x, y: y});
}
function getBackgroundPosition(image) {
	var logicValue = image.isSVG ? 1 : -1;
	var x = logicValue * (image.ratio > 1 ? image.coordinates.x / image.ratio : image.coordinates.x);
	var y = logicValue * (image.ratio > 1 ? image.coordinates.y / image.ratio : image.coordinates.y);
	var template = _.template('<%= (x ? x + "px" : x) %> <%= (y ? y + "px" : y) %>');
	return template({x: x, y: y});
}
function getBackgroundPosition ( image ) { var logicValue = image . isSVG ? 1 : - 1 ; var x = logicValue * ( image . ratio > 1 ? image . coordinates . x / image . ratio : image . coordinates . x ) ; var y = logicValue * ( image . ratio > 1 ? image . coordinates . y / image . ratio : image . coordinates . y ) ; var template = _ . template ( '<%= (x ? x + "px" : x) %> <%= (y ? y + "px" : y) %>' ) ; return template ( { x : x , y : y } ) ; }
Return the value for background-position property
Return the value for background - position property