if(Debug.debug) console.log("Loading: Resizer.js"); var StretchMode = { NO_STRETCH: 0, BASIC: 1, HYBRID: 2, CONDITIONAL: 3 } class Resizer { constructor(videoData){ this.conf = videoData; this.video = videoData.video; this.scaler = new Scaler(this.conf); this.stretcher = new Stretcher(this.conf); this.zoom = new Zoom(this.conf); // load up default values this.correctedVideoDimensions = {}; this.currentCss = {}; this.stretch = {mode: ExtensionConf.stretch.initialMode}; // restore watchdog. While true, applyCss() tries to re-apply new css until this value becomes false again // value becomes false when width and height of