"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.worldHoverLabelAdapter = void 0;
const WorldHoverLabelPM_1 = require("../PM/WorldHoverLabelPM");
exports.worldHoverLabelAdapter = {
    defaultVM: WorldHoverLabelPM_1.defaultWorldHoverLabelVM,
    subscribe: (appObjects, setVM) => {
        const pm = WorldHoverLabelPM_1.WorldHoverLabelPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("screenHoverLabelAdapter", "Unable to find WorldHoverLabelPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (appObjects, setVM) => {
        const pm = WorldHoverLabelPM_1.WorldHoverLabelPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("screenHoverLabelAdapter", "Unable to find WorldHoverLabelPM");
            return;
        }
        pm.removeView(setVM);
    },
};
//# sourceMappingURL=worldHoverLabelAdapter.js.map