billboard.js
Version:
Re-usable easy interface JavaScript chart library, based on D3 v4+
22 lines (20 loc) • 788 B
text/typescript
/**
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*/
import ChartInternal from "../../../ChartInternal/ChartInternal";
import shapeArc from "../../../ChartInternal/shape/arc";
import shapePointCommon from "../../../ChartInternal/shape/core/point";
import {extend} from "../../../module/util";
import optPoint from "../../Options/common/point";
import Options from "../../Options/Options";
/**
* Extend Arc type modules
* @param {Array} module Module to be extended
* @param {Array} option Option object to be extended
* @private
*/
export function extendArc(module?, option?): void {
extend(ChartInternal.prototype, [shapeArc, shapePointCommon].concat(module || []));
Options.setOptions([optPoint].concat(option || []));
}