@millistream/millistream-widgets 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,9 +89,9 @@
89
89
 
90
90
  prototype.stroke = (function(_super) {
91
91
  return function() {
92
- this.lineWidth *= 1;
92
+ this.lineWidth *= this.getPixelRatio();
93
93
  _super.apply(this, arguments);
94
- this.lineWidth /= getPixelRatio();
94
+ this.lineWidth /= this.getPixelRatio();
95
95
  };
96
96
  })(prototype.stroke);
97
97
 
@@ -139,8 +139,8 @@
139
139
  return function() {
140
140
  var args = Array.prototype.slice.call(arguments);
141
141
 
142
- args[1] *= 1;
143
- args[2] *= 1;
142
+ args[1] *= this.getPixelRatio();
143
+ args[2] *= this.getPixelRatio();
144
144
  var tmp = this.font;
145
145
  this.font = this.font.replace(
146
146
  /(\d+)(px|em|rem|pt)/g,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@millistream/millistream-widgets",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Millistream widgets node package",
5
5
  "main": "millistream-widgets.js",
6
6
  "scripts": {