Skip to content

Commit

Permalink
fix(update libs): fix option
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkzt committed May 24, 2019
1 parent 3faa3ef commit cad1393
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/main.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/main.bundle.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/SvgAnimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ var SvgAnimation = (function (_super) {
_this.shakingRange = params.shakingRange || 2;
_this.type = params.type || Two.Types.canvas;
_this.el = params.el;
_this.width = _this.el.clientWidth;
_this.height = _this.el.clientHeight;
_this.width = params.width || _this.el.clientWidth;
_this.height = params.height || _this.el.clientHeight;
_this.animationStart();
return _this;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/SvgDrawing.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ var SvgDrawing = (function (_super) {
_this.strokeLineJoin = params.strokeLineJoin || 'round';
_this.type = params.type || Two.Types.svg;
_this.el = params.el;
_this.width = _this.el.clientWidth;
_this.height = _this.el.clientHeight;
_this.width = params.width || _this.el.clientWidth;
_this.height = params.height || _this.el.clientHeight;
_this.drawingStart();
return _this;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cad1393

Please sign in to comment.