"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DistortSettings = void 0;
class DistortSettings {
    constructor() {
        this.bestFit = false;
    }
    _removeArtifacts(image) {
        if (this.scale !== undefined)
            image.removeArtifact('distort:scale');
        if (this.viewport !== undefined)
            image.removeArtifact('distort:viewport');
    }
    _setArtifacts(image) {
        if (this.scale !== undefined)
            image.setArtifact('distort:scale', this.scale.toString());
        if (this.viewport !== undefined)
            image.setArtifact('distort:viewport', this.viewport.toString());
    }
}
exports.DistortSettings = DistortSettings;
