Skip to content

Commit

Permalink
chore: publich module @antv/attr.
Browse files Browse the repository at this point in the history
  • Loading branch information
simaQ committed Jun 22, 2018
1 parent c619b66 commit 357679b
Show file tree
Hide file tree
Showing 10 changed files with 97 additions and 391 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@
"silent": false
},
"dependencies": {
"@antv/attr": "0.0.1-beta.2",
"@antv/util": "~1.0.6",
"fecha": "~2.3.1",
"hammerjs": "^2.0.8",
"@antv/util": "~1.0.4"
"hammerjs": "^2.0.8"
}
}
177 changes: 0 additions & 177 deletions src/attr/base.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/util/color.js → src/attr/color-util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const Util = require('./common');
const Util = require('../util/common');

// 获取颜色之间的插值
function getValue(start, end, percent, index) {
Expand Down
4 changes: 2 additions & 2 deletions src/attr/color.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const ColorUtil = require('../util/color');
const Base = require('./base');
const Util = require('../util/common');
const ColorUtil = require('./color-util');
const Base = require('@antv/attr/src/base'); // Attr 的基类

class Color extends Base {

Expand Down
6 changes: 3 additions & 3 deletions src/attr/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
Position: require('./position'),
Shape: require('./shape'),
Size: require('./size'),
Position: require('@antv/attr/src/position'),
Shape: require('@antv/attr/src/shape'),
Size: require('@antv/attr/src/size'),
Color: require('./color')
};
85 changes: 0 additions & 85 deletions src/attr/position.js

This file was deleted.

21 changes: 0 additions & 21 deletions src/attr/shape.js

This file was deleted.

12 changes: 0 additions & 12 deletions src/attr/size.js

This file was deleted.

Loading

0 comments on commit 357679b

Please # to comment.