Skip to content

Commit d880ee5

Browse files
author
Michał Skowronek
authored
Merge pull request #34 from coderitual/dev
Dev
2 parents 66e773b + 5a63646 commit d880ee5

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

lib/odoo.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "odoo",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Canvas2d odometer effect",
55
"main": "src/index.js",
66
"scripts": {

src/odoo.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ const createMask = (defs, id) => defs::append('mask')
7676
::attr('height', '100%')
7777
::attr('fill', `url(#gradient-${id})`);
7878

79-
const setViewBox = (svg, width, height) => svg
80-
::attr('width', width)
81-
::attr('height', height)
82-
::attr('viewBox', `0 0 ${width} ${height}`)
83-
::style('overflow', 'hidden');
79+
const setViewBox = (svg, width, height) => {
80+
svg::attr('width', width)
81+
svg::attr('height', height)
82+
svg::attr('viewBox', `0 0 ${width} ${height}`)
83+
svg::style('overflow', 'hidden');
84+
}
8485

8586
export default ({
8687
el,

0 commit comments

Comments
 (0)