"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transform3dAdapter = void 0;
const Transform3DPM_1 = require("../PM/Transform3DPM");
exports.transform3dAdapter = {
    defaultVM: Transform3DPM_1.defaultTransform3DVM,
    subscribe: (id, appObjects, setVM) => {
        const pm = Transform3DPM_1.Transform3DPM.getForID(id, appObjects);
        if (!pm) {
            appObjects.submitError("transform3dAdapter", "Unable to find PM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (id, appObjects, setVM) => {
        const pm = Transform3DPM_1.Transform3DPM.getForID(id, appObjects);
        if (pm) {
            pm.removeView(setVM);
        }
    },
};
//# sourceMappingURL=transform3dAdapter.js.map