Skip to content

Commit

Permalink
rm shapeDatas which is already store at dataArray
Browse files Browse the repository at this point in the history
  • Loading branch information
simaQ committed Mar 10, 2018
1 parent 7726315 commit 0ce1048
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/geom/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ class Geom extends Base {

shapeType: '',

shapeDatas: [],

/**
* 是否生成多个点来绘制图形
* @protected
Expand Down Expand Up @@ -476,10 +474,7 @@ class Geom extends Base {
const self = this;
const container = self.get('container');
const yScale = self.getYScale();
const shapeDatas = self.get('shapeDatas');

Util.each(data, function(obj, index) {
shapeDatas.push(obj);
if (yScale && Util.isNil(obj._origin[yScale.field])) {
return;
}
Expand Down Expand Up @@ -697,11 +692,6 @@ class Geom extends Base {
return value === originValue;
}

// 返回 geom 所有 shape 的数据源
getAllShapeData() {
return this.get('shapeDatas');
}

/**
* 位置属性映射
* @chainable
Expand Down Expand Up @@ -796,7 +786,6 @@ class Geom extends Base {
container && container.clear();
this.set('attrs', {});
this.set('groupScales', null);
this.set('shapeDatas', []);
this.set('xDistance', null);
}

Expand Down

0 comments on commit 0ce1048

Please sign in to comment.