@millistream/millistream-widgets 1.0.11 → 1.0.13
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.
- package/millistream-widgets.js +4 -4
- package/package.json +1 -1
package/millistream-widgets.js
CHANGED
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
|
|
90
90
|
prototype.stroke = (function(_super) {
|
|
91
91
|
return function() {
|
|
92
|
-
this.lineWidth *=
|
|
92
|
+
this.lineWidth *= getPixelRatio();
|
|
93
93
|
_super.apply(this, arguments);
|
|
94
|
-
this.lineWidth /=
|
|
94
|
+
this.lineWidth /= 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] *=
|
|
143
|
-
args[2] *=
|
|
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,
|