Skip to content

Commit

Permalink
fix: Arc shape support fill. Closed #429.
Browse files Browse the repository at this point in the history
  • Loading branch information
simaQ committed Nov 30, 2018
1 parent 6e18701 commit dc4981f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/graphic/shape/arc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Arc extends Shape {
_initProperties() {
super._initProperties();
this._attrs.canStroke = true;
this._attrs.canFill = true;
this._attrs.type = 'arc';
}

Expand Down
2 changes: 2 additions & 0 deletions test/unit/graphic/shape/arc-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ describe('Arc', function() {
expect(arc.attr('clockwise')).to.be.false;
expect(arc.attr('lineWidth')).to.equal(2);
expect(arc.attr('stroke')).to.equal('#18901f');
expect(arc.get('canFill')).to.be.true;
expect(arc.get('canStroke')).to.be.true;
});

it('draw', function() {
Expand Down

0 comments on commit dc4981f

Please sign in to comment.