index.js
function getBackgroundPositionInPercent(image) {
	var x = 100 * (image.coordinates.x) / (image.properties.width - image.coordinates.width);
	var y = 100 * (image.coordinates.y) / (image.properties.height - image.coordinates.height);
	var template = _.template('<%= (x ? x + "%" : x) %> <%= (y ? y + "%" : y) %>');
	return template({x: x, y: y});
}
function getBackgroundPositionInPercent(image) {
	var x = 100 * (image.coordinates.x) / (image.properties.width - image.coordinates.width);
	var y = 100 * (image.coordinates.y) / (image.properties.height - image.coordinates.height);
	var template = _.template('<%= (x ? x + "%" : x) %> <%= (y ? y + "%" : y) %>');
	return template({x: x, y: y});
}
function getBackgroundPositionInPercent ( image ) { var x = 100 * ( image . coordinates . x ) / ( image . properties . width - image . coordinates . width ) ; var y = 100 * ( image . coordinates . y ) / ( image . properties . height - image . coordinates . height ) ; var template = _ . template ( '<%= (x ? x + "%" : x) %> <%= (y ? y + "%" : y) %>' ) ; return template ( { x : x , y : y } ) ; }
Return the pencentage value for background-position property
Return the pencentage value for background - position property