import { Strategy } from "./Strategy" ; import { RotationManager } from "../managers" ; /**
 * A zoom strategy.
 */ export class ZoomStrategy implements Strategy { /**
     * A rotation manager.
     */ private rotationManager : RotationManager ; /**
     * Indicates whether this zoom strategy should zoom in.
     */ private zoomIn : boolean ; param rotationManager param zoomIn constructor ( rotationManager , zoomIn ) { this . rotationManager = rotationManager ; this . zoomIn = zoomIn ; } execute ( flag ) { if ( flag ) { this . rotationManager . zoom ( this . zoomIn ? - 1 : 1 ) ; } } }