Skip to content

Commit

Permalink
fix: progress类型定义 Closes #715
Browse files Browse the repository at this point in the history
  • Loading branch information
paleface001 committed Mar 18, 2020
1 parent b889808 commit 4942ea3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/plots/scatter/layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,6 @@ export default class ScatterLayer<T extends ScatterLayerConfig = ScatterLayerCon
if (this.options.label) {
this.label();
}
if (this.options.tooltip && (this.options.tooltip.fields || this.options.tooltip.formatter)) {
this.geometryTooltip();
}
this.setConfig('geometry', points);
}

Expand Down
4 changes: 2 additions & 2 deletions src/sparkline/progress/component/marker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface MarkerConfig {
style?: any;
}

export default class Marker<T extends MarkerConfig = MarkerConfig> {
export default class Marker {
public canvas: Canvas;
public view: View;
public progressSize: number;
Expand All @@ -19,7 +19,7 @@ export default class Marker<T extends MarkerConfig = MarkerConfig> {
protected container: IGroup;
protected shape: IShape;

constructor(cfg) {
constructor(cfg: MarkerConfig) {
assign(this, cfg);
this.init();
}
Expand Down
3 changes: 1 addition & 2 deletions src/sparkline/progress/layer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { isArray, mix, hasKey, each, has, isFunction, clone, deepMix, isString, isNumber } from '@antv/util';
import { registerPlotType } from '../../base/global';
import { LayerConfig } from '../../base/layer';
import { getGeom } from '../../geoms/factory';
import TinyLayer, { TinyViewConfig } from '../tiny-layer';
import Marker, { MarkerConfig } from './component/marker';
Expand All @@ -24,7 +23,7 @@ interface UpdateConfig {
marker?: MarkerConfig[];
}

export interface ProgressLayerConfig extends ProgressViewConfig, LayerConfig {}
export interface ProgressLayerConfig extends ProgressViewConfig {}

const G2_GEOM_MAP = {
progress: 'interval',
Expand Down

0 comments on commit 4942ea3

Please # to comment.