Skip to content

Commit

Permalink
Merge pull request #34 from coderitual/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Michał Skowronek authored Jan 21, 2017
2 parents 66e773b + 5a63646 commit d880ee5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/odoo.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "odoo",
"version": "1.0.1",
"version": "1.0.2",
"description": "Canvas2d odometer effect",
"main": "src/index.js",
"scripts": {
Expand Down
11 changes: 6 additions & 5 deletions src/odoo.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ const createMask = (defs, id) => defs::append('mask')
::attr('height', '100%')
::attr('fill', `url(#gradient-${id})`);

const setViewBox = (svg, width, height) => svg
::attr('width', width)
::attr('height', height)
::attr('viewBox', `0 0 ${width} ${height}`)
::style('overflow', 'hidden');
const setViewBox = (svg, width, height) => {
svg::attr('width', width)
svg::attr('height', height)
svg::attr('viewBox', `0 0 ${width} ${height}`)
svg::style('overflow', 'hidden');
}

export default ({
el,
Expand Down

0 comments on commit d880ee5

Please sign in to comment.