From cf916e5bcd702d64f77f463e89e5c5239fe1ae02 Mon Sep 17 00:00:00 2001 From: visiky <736929286@qq.com> Date: Mon, 28 Mar 2022 14:24:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(mix):=20mix=20=E5=9B=BE=E8=A1=A8=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20stock=20(#3163)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plots/mix/utils.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/plots/mix/utils.ts b/src/plots/mix/utils.ts index 1a810b8930..54a13abc25 100644 --- a/src/plots/mix/utils.ts +++ b/src/plots/mix/utils.ts @@ -9,12 +9,13 @@ import { adaptor as areaAdaptor } from '../area/adaptor'; import { adaptor as gaugeAdaptor } from '../gauge/adaptor'; import { adaptor as tinyLineAdaptor } from '../tiny-line/adaptor'; import { adaptor as tinyColumnAdaptor } from '../tiny-column/adaptor'; -import { adaptor as tinyAreadaptor } from '../tiny-area/adaptor'; +import { adaptor as tinyAreaAdaptor } from '../tiny-area/adaptor'; import { adaptor as ringProgressAdaptor } from '../ring-progress/adaptor'; import { adaptor as progressAdaptor } from '../progress/adaptor'; import { adaptor as scatterAdaptor } from '../scatter/adaptor'; import { adaptor as histogramAdaptor } from '../histogram/adaptor'; import { adaptor as funnelAdaptor } from '../funnel/adaptor'; +import { adaptor as stockAdaptor } from '../stock/adaptor'; import { Line, LineOptions } from '../line'; import { Pie, PieOptions } from '../pie'; import { Bar, BarOptions } from '../bar'; @@ -29,6 +30,7 @@ import { Progress, ProgressOptions } from '../progress'; import { Scatter, ScatterOptions } from '../scatter'; import { Histogram, HistogramOptions } from '../histogram'; import { Funnel, FunnelOptions } from '../funnel'; +import { Stock, StockOptions } from '../stock'; /** * 移除 options 中的 width、height 设置 @@ -100,6 +102,10 @@ export type IPlotTypes = | { readonly type: 'funnel'; readonly options: OmitSize; + } + | { + readonly type: 'stock'; + readonly options: OmitSize; }; /** @@ -114,12 +120,13 @@ const PLOT_ADAPTORS = { gauge: gaugeAdaptor, 'tiny-line': tinyLineAdaptor, 'tiny-column': tinyColumnAdaptor, - 'tiny-area': tinyAreadaptor, + 'tiny-area': tinyAreaAdaptor, 'ring-progress': ringProgressAdaptor, progress: progressAdaptor, scatter: scatterAdaptor, histogram: histogramAdaptor, funnel: funnelAdaptor, + stock: stockAdaptor, }; /** @@ -141,6 +148,7 @@ const PLOT_CONSTRUCTOR = { scatter: Scatter, histogram: Histogram, funnel: Funnel, + stock: Stock, }; /**