UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

14 lines 363 B
/** * @ignore * get view event name, with name:event * @param type original event type * @param name event trigger shape name * @returns the name:event string */ export function getEventName(type, name) { if (type.includes(':')) { return type; } return name ? "".concat(name, ":").concat(type) : type; } //# sourceMappingURL=event.js.map