INNER CODE UNIT · TypeScript
calculatedHeight
mifi/editly · src/index.ts:119
const calculatedHeight = (firstVideoHeight / firstVideoWidth) * desiredWidth;
height = roundDimension(calculatedHeight);
width = desiredWidth;
} else {
width = firstVideoWidth;
height = firstVideoHeight;
}
} else if (desiredWidth) {
width = desiredWidth;
height = desiredWidth;
// console.log(`Cannot detect width/height from video, set defaults ${width}x${height}`);
} else {
// No video
width = 640;
height = 640;
}
// User override?