"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCurrentElement = void 0;
/**
 * 获取当前事件相关的图表元素
 * @param context 交互的上下文
 * @ignore
 */
function getCurrentElement(context) {
    var event = context.event;
    var element;
    var target = event.target;
    if (target) {
        element = target.get('element');
    }
    return element;
}
exports.getCurrentElement = getCurrentElement;
//# sourceMappingURL=util.js.map