"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.watchGraphRemoveUnitPinData = void 0;
function watchGraphRemoveUnitPinData(event, graph, callback) {
    const listener = (...[unitId, type, pinId, path]) => {
        callback({
            type: 'graph',
            event,
            data: {
                unitId,
                type,
                pinId,
                path,
            },
        });
    };
    graph.prependListener(event, listener);
    return () => {
        graph.removeListener(event, listener);
    };
}
exports.watchGraphRemoveUnitPinData = watchGraphRemoveUnitPinData;
//# sourceMappingURL=watchGraphRemoveUnitPinDataEvent.js.map