@xpadev-net/niconicomments 0.1.9 → 0.1.10
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/dist/bundle.js +11 -5
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
niconicomments.js v0.1.
|
|
3
|
-
(c) 2021 xpadev-net https://
|
|
2
|
+
niconicomments.js v0.1.10
|
|
3
|
+
(c) 2021 xpadev-net https://xpadev.net
|
|
4
4
|
Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
this.data[i]._live = command._live;
|
|
177
177
|
this.data[i].long = command.long;
|
|
178
178
|
this.data[i].invisible = command.invisible;
|
|
179
|
-
this.data[i].content = this.data[i].content.replaceAll("\t", "
|
|
179
|
+
this.data[i].content = this.data[i].content.replaceAll("\t", " ");
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
@@ -946,8 +946,14 @@
|
|
|
946
946
|
if (this.showCommentCount) {
|
|
947
947
|
this.context.font = parseFont("defont", 60, this.useLegacy);
|
|
948
948
|
this.context.fillStyle = "#00FF00";
|
|
949
|
-
|
|
950
|
-
|
|
949
|
+
|
|
950
|
+
if (this.timeline[vpos]) {
|
|
951
|
+
this.context.strokeText("Count:" + this.timeline[vpos].length, 100, 200);
|
|
952
|
+
this.context.fillText("Count:" + this.timeline[vpos].length, 100, 200);
|
|
953
|
+
} else {
|
|
954
|
+
this.context.strokeText("Count:0", 100, 200);
|
|
955
|
+
this.context.fillText("Count:0", 100, 200);
|
|
956
|
+
}
|
|
951
957
|
}
|
|
952
958
|
}
|
|
953
959
|
/**
|
package/package.json
CHANGED