Skip to content

Commit

Permalink
Merge pull request #8 from diego-vieira/master
Browse files Browse the repository at this point in the history
added option for rounded corners
  • Loading branch information
judesfernando committed Aug 12, 2015
2 parents 505bb29 + b723ac1 commit 12c8993
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -43,3 +43,4 @@ Usage
| textColor | data-text-color | Color of the text | #ffffff |
| fontSize | data-font-size | Font size of the character(s) | 60 |
| fontWeight | data-font-weight | Font weight of the character(s) | 400 |
| radius | data-radius | Rounded corners | 0 |
7 changes: 5 additions & 2 deletions initial.js
Expand Up @@ -16,7 +16,8 @@
width: 100,
fontSize: 60,
fontWeight: 400,
fontFamily: 'HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica, Arial,Lucida Grande, sans-serif'
fontFamily: 'HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica, Arial,Lucida Grande, sans-serif',
radius: 0
}, options);

// overriding from data attributes
Expand Down Expand Up @@ -46,7 +47,9 @@
}).css({
'background-color': colors[colorIndex],
'width': settings.width+'px',
'height': settings.height+'px'
'height': settings.height+'px',
'border-radius': settings.radius+'px',
'-moz-border-radius': settings.radius+'px'
});

svg.append(cobj);
Expand Down

1 comment on commit 12c8993

@dgilperez
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please release a new version?

Please sign in to comment.