"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.releaseLabelDropAnswerItemWorld = releaseLabelDropAnswerItemWorld;
const StylusEntity_1 = require("../../Stylus/Entity/StylusEntity");
const DragLabelDropWorldUC_1 = require("../UseCases/DragLabelDropWorldUC");
function releaseLabelDropAnswerItemWorld(appObjects) {
    const uc = DragLabelDropWorldUC_1.DragLabelDropWorldUC.get(appObjects);
    if (!uc) {
        appObjects.submitError("releaseLabelDropAnswerItem", "Unable to find DragLabelDropWorldUC");
        return;
    }
    const stylus = StylusEntity_1.StylusEntity.get(appObjects);
    if (!stylus) {
        appObjects.submitError("releaseLabelDropAnswerItem", "Unable to find StylusEntity");
        return;
    }
    uc.releaseDrag(stylus.pickRay);
}
//# sourceMappingURL=releaseLabelDropAnswerItemWorld.js.map