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