import { Transform3DPM, defaultTransform3DVM, } from "../PM/Transform3DPM";
export const transform3dAdapter = {
    defaultVM: defaultTransform3DVM,
    subscribe: (id, appObjects, setVM) => {
        const pm = Transform3DPM.getForID(id, appObjects);
        if (!pm) {
            appObjects.submitError("transform3dAdapter", "Unable to find PM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (id, appObjects, setVM) => {
        const pm = Transform3DPM.getForID(id, appObjects);
        if (pm) {
            pm.removeView(setVM);
        }
    },
};
//# sourceMappingURL=transform3dAdapter.js.map