Lines Matching refs:targetHeight
163 var targetHeight = sourceHeight;
167 targetHeight = sourceHeight * options.scale;
173 targetHeight *= scale;
176 if (options.maxHeight && targetHeight > options.maxHeight) {
177 var scale = options.maxHeight / targetHeight;
179 targetHeight *= scale;
186 targetHeight = options.height;
189 targetHeight = Math.round(targetHeight);
191 return {width: targetWidth, height: targetHeight};