"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var Core = tslib_1.__importStar(require("@intelligentgraphics/ig.gfx.core"));
/**
 * Class for placement of matching elements.
 */
var MatchPlacement = /** @class */ (function () {
    /**
     * The constructor
     * @param insertedId
     * @param match
     */
    function MatchPlacement(insertedId, match) {
        this.insertedId = insertedId;
        this.match = match;
    }
    MatchPlacement.prototype.getTransformation = function () {
        var worldTransform = Core.getWorldTransformation(this.insertedId);
        var adaptedTransform = this.match.adaptTransformation(worldTransform);
        return adaptedTransform;
    };
    return MatchPlacement;
}());
exports.default = MatchPlacement;
