@xpadev-net/niconicomments 0.0.6 → 0.0.7

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.
Files changed (2) hide show
  1. package/dist/bundle.js +2 -2
  2. package/package.json +1 -1
package/dist/bundle.js CHANGED
@@ -19,7 +19,7 @@
19
19
  this.context.textAlign = "left";
20
20
  this.context.textBaseline = "top";
21
21
  this.context.lineWidth = "6";
22
- this.commentYOffset = 0.25;
22
+ this.commentYOffset = 0.05;
23
23
  this.commentYMarginTop = 0.05;
24
24
 
25
25
  if (formatted) {
@@ -448,7 +448,7 @@
448
448
  } else if (comment.loc === "shita") {
449
449
  for (let i in lines) {
450
450
  let line = lines[i];
451
- let posY = 1080 - (comment.posY + comment.height) + i * comment.fontSize + this.commentYOffset * comment.fontSize + this.commentYMarginTop * comment.fontSize;
451
+ let posY = 1080 - (comment.posY + comment.height) + i * comment.fontSize - this.commentYMarginTop * comment.fontSize + this.commentYMarginTop * comment.fontSize;
452
452
  this.context.strokeText(line, posX, posY);
453
453
  this.context.fillText(line, posX, posY);
454
454
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpadev-net/niconicomments",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "NiconiComments is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {