import Debug from '../../conf/Debug'; import Scaler from './Scaler'; import Stretcher from './Stretcher'; import Zoom from './Zoom'; import PlayerData from '../video-data/PlayerData'; import ExtensionMode from '../../../common/enums/extension-mode.enum'; import Stretch from '../../../common/enums/stretch.enum'; import VideoAlignment from '../../../common/enums/video-alignment.enum'; if(Debug.debug) { console.log("Loading: Resizer.js"); } class Resizer { constructor(videoData) { this.conf = videoData; this.video = videoData.video; this.settings = videoData.settings; this.extensionMode = videoData.extensionMode; 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.currentStyleString = ""; this.currentCssValidFor = {}; // 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