avatar-initials
Advanced tools
Comparing version 2.0.0 to 2.2.0
@@ -288,7 +288,8 @@ /* eslint no-var: 0, vars-on-top: 0, no-extend-native: 0, no-else-return: 0, prefer-rest-params: 0, no-self-compare: 0 */ | ||
var height = this.element.height || this.settings.size; | ||
canvas.width = width * window.devicePixelRatio; | ||
canvas.height = height * window.devicePixelRatio; | ||
var devicePixelRatio = Math.max(window.devicePixelRatio, 1); | ||
canvas.width = width * devicePixelRatio; | ||
canvas.height = height * devicePixelRatio; | ||
canvas.style.width = width + 'px'; | ||
canvas.style.height = height + 'px'; | ||
context.scale(window.devicePixelRatio, window.devicePixelRatio); | ||
context.scale(devicePixelRatio, devicePixelRatio); | ||
context.rect(0, 0, canvas.width, canvas.height); | ||
@@ -295,0 +296,0 @@ context.fillStyle = this.settings.initial_bg; |
@@ -0,1 +1,5 @@ | ||
## 2.1.0 (September 16th, 2016) | ||
* [Fix Chrome 'Zoom' feature makes the generated initials too small](https://github.com/MatthewCallis/avatar/issues/11) | ||
## 2.0.0 (September 13th, 2016) | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "avatar-initials", | ||
"version": "2.0.0", | ||
"version": "2.2.0", | ||
"description": "JavaScript library for showing Gravatars or generating user avatars from initials.", | ||
@@ -49,3 +49,3 @@ "author": "Matthew Callis <matthew.callis@gmail.com>", | ||
"codeclimate-test-reporter": "^0.3.3", | ||
"coveralls": "^2.11.12", | ||
"coveralls": "^2.11.13", | ||
"dirty-chai": "^1.2.2", | ||
@@ -58,6 +58,5 @@ "eslint": "^3.5.0", | ||
"eslint-plugin-mocha": "4.5.1", | ||
"eslint-plugin-react": "^6.2.1", | ||
"eslint-plugin-react": "^6.2.2", | ||
"istanbul": "^0.4.5", | ||
"jquery": "^3", | ||
"local-web-server": "^1.2.6", | ||
"mocha": "^3.0.2", | ||
@@ -68,5 +67,4 @@ "mocha-phantomjs-core": "^1.3.1", | ||
"phantomjs": "^2.1.7", | ||
"postcss-cli": "^2.6.0", | ||
"precommit-hook-eslint": "^3.0.0", | ||
"rollup": "^0.35.10", | ||
"rollup": "^0.35.11", | ||
"rollup-plugin-babel": "^2.6.1", | ||
@@ -97,3 +95,3 @@ "rollup-plugin-json": "^2.0.2", | ||
"lint": "eslint src", | ||
"local-web-server": "ws --port 8181 --no-cache --verbose", | ||
"local-web-server": "ruby -run -e httpd . -p 8181", | ||
"make": "node rollup.config.js", | ||
@@ -100,0 +98,0 @@ "make-individual": "babel src --out-dir build", |
@@ -121,4 +121,9 @@ # [Avatar](http://matthewcallis.github.io/avatar/) | ||
### Releasing | ||
* [npm](https://www.npmjs.com/) - `npm-bump major/minor/patch` | ||
* [bower](http://bower.io/) - `bower info avatar` | ||
### License | ||
Avatar is [MIT licensed](./LICENSE). |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
26444
33
373
129
0