@xpadev-net/niconicomments 0.2.41 → 0.2.42
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.d.ts +1 -3
- package/dist/bundle.js +3 -8
- package/package.json +1 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -673,6 +673,7 @@ declare class NiconiComments {
|
|
|
673
673
|
initOptions: (item: unknown) => item is Partial<BaseOptions>;
|
|
674
674
|
};
|
|
675
675
|
};
|
|
676
|
+
static default: typeof NiconiComments;
|
|
676
677
|
constructor(canvas: HTMLCanvasElement, data: inputFormat, initOptions?: Options);
|
|
677
678
|
private preRendering;
|
|
678
679
|
private getCommentPos;
|
|
@@ -681,9 +682,6 @@ declare class NiconiComments {
|
|
|
681
682
|
drawCanvas(vpos: number, forceRendering?: boolean): void;
|
|
682
683
|
clear(): void;
|
|
683
684
|
}
|
|
684
|
-
declare const _default: typeof NiconiComments | {
|
|
685
|
-
default: typeof NiconiComments;
|
|
686
|
-
};
|
|
687
685
|
|
|
688
686
|
|
|
689
687
|
|
package/dist/bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
niconicomments.js v0.2.
|
|
2
|
+
niconicomments.js v0.2.42
|
|
3
3
|
(c) 2021 xpadev-net https://xpadev.net
|
|
4
4
|
Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -2744,19 +2744,14 @@
|
|
|
2744
2744
|
this.context.clearRect(0, 0, config.canvasWidth, config.canvasHeight);
|
|
2745
2745
|
};
|
|
2746
2746
|
NiconiComments.typeGuard = typeGuard;
|
|
2747
|
+
NiconiComments.default = NiconiComments;
|
|
2747
2748
|
return NiconiComments;
|
|
2748
2749
|
}());
|
|
2749
2750
|
var logger = function (msg) {
|
|
2750
2751
|
if (isDebug)
|
|
2751
2752
|
console.debug(msg);
|
|
2752
2753
|
};
|
|
2753
|
-
var exporter = function () {
|
|
2754
|
-
return typeof exports === "object" && typeof module !== "undefined"
|
|
2755
|
-
? { default: NiconiComments }
|
|
2756
|
-
: NiconiComments;
|
|
2757
|
-
};
|
|
2758
|
-
var main = exporter();
|
|
2759
2754
|
|
|
2760
|
-
return
|
|
2755
|
+
return NiconiComments;
|
|
2761
2756
|
|
|
2762
2757
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpadev-net/niconicomments",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.42",
|
|
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
|
"types": "dist/bundle.d.ts",
|