{"size": 492, "ext": "js", "max_stars_repo_path": "lib/visuals/visuals-arcs.js", "max_stars_repo_name": "haroldcampbell/anemic-components", "max_stars_repo_stars_event_min_datetime": "2017-07-28T09:08:19.000Z", "max_stars_repo_stars_event_max_datetime": "2019-11-03T07:29:58.000Z", "max_issues_repo_path": "lib/visuals/visuals-arcs.js", "max_issues_repo_name": "haroldcampbell/anemic-components", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/visuals/visuals-arcs.js", "max_forks_repo_name": "haroldcampbell/anemic-components", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.9230769231, "max_line_length": 54, "alphanum_fraction": 0.5955284553}
import {
    arc,
} from '../nodes/ancui-nodes';

import {
    createVisual,
} from './create-visual'

/**
  Creates a series of disjoint arcs.

  @method arcs

  @param {Object} data
  @param {Array} effectsArray - array of intents

  @return {Object}
*/
export const arcs = function (data, effectsArray) {
    return createVisual()
        .withData(data)
        .registerVisual(effectsArray, (container) => {
            return arc(container)
                .$class("arc");
        });
}