qlik-oss/sn-scatter-plot

View on GitHub
src/interactive/tap/index.js

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
/* eslint-disable func-names */
import event from './event';

export default function (config, options) {
  // if (!opts.actions.select.enabled()) {
  //   return {
  //     interactions: [],
  //     components: [],
  //   };
  // }

  if (!config.targets) {
    throw new Error("Missing 'targets' property");
  }

  const e = event(config, options);

  return {
    interactions: [e],
    components: [],
  };
}