Skip to content

Commit 2699287

Browse files
committed
2.0.4
1 parent f157103 commit 2699287

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

dist/danmaku.canvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
}
6464
var canvas = document.createElement('canvas');
6565
var ctx = canvas.getContext('2d');
66-
ctx.scale(dpr, dpr);
6766
var style = cmt.style || {};
6867
style.font = style.font || '10px sans-serif';
6968
style.textBaseline = style.textBaseline || 'bottom';
@@ -78,6 +77,7 @@
7877
Math.ceil(canvasHeight(style.font, fontSize)) + strokeWidth * 2;
7978
canvas.width = cmt.width * dpr;
8079
canvas.height = cmt.height * dpr;
80+
ctx.scale(dpr, dpr);
8181
for (var key in style) {
8282
ctx[key] = style[key];
8383
}

dist/danmaku.canvas.min.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.

dist/danmaku.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@
148148
}
149149
var canvas = document.createElement('canvas');
150150
var ctx = canvas.getContext('2d');
151-
ctx.scale(dpr, dpr);
152151
var style = cmt.style || {};
153152
style.font = style.font || '10px sans-serif';
154153
style.textBaseline = style.textBaseline || 'bottom';
@@ -163,6 +162,7 @@
163162
Math.ceil(canvasHeight(style.font, fontSize)) + strokeWidth * 2;
164163
canvas.width = cmt.width * dpr;
165164
canvas.height = cmt.height * dpr;
165+
ctx.scale(dpr, dpr);
166166
for (var key in style) {
167167
ctx[key] = style[key];
168168
}

dist/danmaku.min.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.

dist/esm/danmaku.canvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ function createCommentCanvas(cmt, fontSize) {
5757
}
5858
var canvas = document.createElement('canvas');
5959
var ctx = canvas.getContext('2d');
60-
ctx.scale(dpr, dpr);
6160
var style = cmt.style || {};
6261
style.font = style.font || '10px sans-serif';
6362
style.textBaseline = style.textBaseline || 'bottom';
@@ -72,6 +71,7 @@ function createCommentCanvas(cmt, fontSize) {
7271
Math.ceil(canvasHeight(style.font, fontSize)) + strokeWidth * 2;
7372
canvas.width = cmt.width * dpr;
7473
canvas.height = cmt.height * dpr;
74+
ctx.scale(dpr, dpr);
7575
for (var key in style) {
7676
ctx[key] = style[key];
7777
}

dist/esm/danmaku.canvas.min.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.

dist/esm/danmaku.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ function createCommentCanvas(cmt, fontSize) {
142142
}
143143
var canvas = document.createElement('canvas');
144144
var ctx = canvas.getContext('2d');
145-
ctx.scale(dpr, dpr);
146145
var style = cmt.style || {};
147146
style.font = style.font || '10px sans-serif';
148147
style.textBaseline = style.textBaseline || 'bottom';
@@ -157,6 +156,7 @@ function createCommentCanvas(cmt, fontSize) {
157156
Math.ceil(canvasHeight(style.font, fontSize)) + strokeWidth * 2;
158157
canvas.width = cmt.width * dpr;
159158
canvas.height = cmt.height * dpr;
159+
ctx.scale(dpr, dpr);
160160
for (var key in style) {
161161
ctx[key] = style[key];
162162
}

dist/esm/danmaku.min.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": "danmaku",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "Display danmaku (flying comments) on HTML5 video.",
55
"main": "dist/danmaku.js",
66
"module": "dist/esm/danmaku.js",

0 commit comments

Comments
 (0)