ソースを参照

[MIN] export to enable treeshaking charts

tags/1.2.0
Achilles Rasquinha 7年前
コミット
a86e072524
1個のファイルの変更3行の追加1行の削除
  1. +3
    -1
      src/js/chart.js

+ 3
- 1
src/js/chart.js ファイルの表示

@@ -33,8 +33,10 @@ function getChartByType(chartType = 'line', parent, options) {
return new chartTypes[chartType](parent, options);
}

export default class Chart {
class Chart {
constructor(parent, options) {
return getChartByType(options.type, parent, options);
}
}

export { Chart, PercentageChart, PieChart, Heatmap, AxisChart }

読み込み中…
キャンセル
保存