import { AppObjectController } from "@vived/core";
import { TouchInputEntity, } from "../../TouchController/Entities/TouchInput";
import { ToggleLabelDropTargetUC } from "../UseCases/ToggleLabelDropTargetUC";
export class TouchLabelDropAuthor extends AppObjectController {
}
TouchLabelDropAuthor.type = "TouchLabelDropAuthor";
export function makeTouchLabelDropAuthor(appObject) {
    return new TouchLabelDropAuthorImp(appObject);
}
class TouchLabelDropAuthorImp extends TouchLabelDropAuthor {
    get addLabelDropCorrectObjectFromRayUC() {
        return this.getCachedSingleton(ToggleLabelDropTargetUC.type);
    }
    get touchInput() {
        return this.getCachedSingleton(TouchInputEntity.type);
    }
    constructor(appObject) {
        super(appObject, TouchLabelDropAuthor.type);
        this.onTap = (e) => {
            this.addLabelDropCorrectObjectFromRayUC?.tryToggleFromPixel(e.touchCenter);
        };
        this.touchInput?.registerController(this);
    }
}
//# sourceMappingURL=TouchLabelDropAuthor.js.map