提交 fe09d9f3 编写于 作者: 1 100pah

ts: typo in radar, timeline

上级 7360f721
......@@ -78,7 +78,7 @@ class RadarSeriesModel extends SeriesModel<RadarSeriesOption> {
static readonly type = 'series.radar'
readonly type = RadarSeriesModel.type
dependencies = ['radar']
static dependencies = ['radar']
coordinateSystem: Radar
......
......@@ -41,6 +41,7 @@ import Scale from '../../scale/Scale';
import OrdinalScale from '../../scale/Ordinal';
import TimeScale from '../../scale/Time';
import IntervalScale from '../../scale/Interval';
import { VectorArray } from 'zrender/src/core/vector';
var PI = Math.PI;
......@@ -318,7 +319,7 @@ class SliderTimelineView extends TimelineView {
];
}
function toBound(fromPos: number[], from: number[][], to: number[][], dimIdx: number, boundIdx: number) {
function toBound(fromPos: VectorArray, from: number[][], to: number[][], dimIdx: number, boundIdx: number) {
fromPos[dimIdx] += to[dimIdx][boundIdx] - from[dimIdx][boundIdx];
}
}
......
......@@ -60,6 +60,8 @@ class Radar implements CoordinateSystem, CoordinateSystemMaster {
private _indicatorAxes: IndicatorAxis[];
constructor(radarModel: RadarModel, ecModel: GlobalModel, api: ExtensionAPI) {
this._model = radarModel;
this._indicatorAxes = zrUtil.map(radarModel.getIndicatorModels(), function (indicatorModel, idx) {
var dim = 'indicator_' + idx;
var indicatorAxis = new IndicatorAxis(dim,
......
......@@ -218,5 +218,6 @@ class RadarModel extends ComponentModel<RadarOption> implements CoordinateSystem
}
}
ComponentModel.registerClass(RadarModel);
export default RadarModel;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册