Skip to content

Commit

Permalink
Merge pull request #83 from xpadev-net/develop
Browse files Browse the repository at this point in the history
release: v0.2.67
  • Loading branch information
xpadev-net authored Dec 6, 2023
2 parents 9a6a66a + 7215987 commit 236b583
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xpadev-net/niconicomments",
"version": "0.2.66",
"version": "0.2.67",
"description": "NiconiComments is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.",
"main": "dist/bundle.js",
"types": "dist/bundle.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/inputParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const fromXMLDocument = (data: XMLDocument): FormattedComment[] => {
const tmpParam: FormattedComment = {
id: Number(item.getAttribute("no")) || index++,
vpos: Number(item.getAttribute("vpos")),
content: item.innerHTML,
content: item.textContent ?? "",
date: Number(item.getAttribute("date")) || 0,
date_usec: Number(item.getAttribute("date_usec")) || 0,
owner: !item.getAttribute("user_id"),
Expand Down
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ class NiconiComments {
[];
if (arrayEqual(current, last)) return false;
}
const size = this.renderer.getSize();
this.renderer.clearRect(0, 0, size.width, size.height);
this.renderer.clearRect(0, 0, config.canvasWidth, config.canvasHeight);
this.lastVpos = vpos;
this._drawVideo();
for (const plugin of plugins) {
Expand Down

0 comments on commit 236b583

Please sign in to comment.