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