@xpadev-net/niconicomments 0.2.39 → 0.2.40
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 +24 -27
- package/dist/bundle.js +1 -1
- package/package.json +1 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ declare class HTML5Comment implements IComment {
|
|
|
40
40
|
image?: HTMLCanvasElement | null;
|
|
41
41
|
constructor(comment: formattedComment, context: CanvasRenderingContext2D);
|
|
42
42
|
get invisible(): boolean;
|
|
43
|
-
get loc():
|
|
43
|
+
get loc(): commentLoc;
|
|
44
44
|
get long(): number;
|
|
45
45
|
get vpos(): number;
|
|
46
46
|
get width(): number;
|
|
@@ -408,10 +408,7 @@ export interface IComment {
|
|
|
408
408
|
draw: (vpos: number, showCollision: boolean, isDebug: boolean) => void;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
|
|
412
|
-
formattedComment,
|
|
413
|
-
formattedLegacyComment,
|
|
414
|
-
} from "@/@types/format.formatted";
|
|
411
|
+
|
|
415
412
|
|
|
416
413
|
|
|
417
414
|
|
|
@@ -628,44 +625,44 @@ declare class NiconiComments {
|
|
|
628
625
|
formatted: {
|
|
629
626
|
comment: (i: unknown) => i is formattedComment;
|
|
630
627
|
comments: (i: unknown) => i is formattedComment[];
|
|
631
|
-
legacyComment: (i: unknown) => i is
|
|
632
|
-
legacyComments: (i: unknown) => i is
|
|
628
|
+
legacyComment: (i: unknown) => i is formattedLegacyComment;
|
|
629
|
+
legacyComments: (i: unknown) => i is formattedLegacyComment[];
|
|
633
630
|
};
|
|
634
631
|
legacy: {
|
|
635
|
-
rawApiResponses: (i: unknown) => i is
|
|
636
|
-
apiChat: (i: unknown) => i is
|
|
637
|
-
apiGlobalNumRes: (i: unknown) => i is
|
|
638
|
-
apiLeaf: (i: unknown) => i is
|
|
639
|
-
apiPing: (i: unknown) => i is
|
|
640
|
-
apiThread: (i: unknown) => i is
|
|
632
|
+
rawApiResponses: (i: unknown) => i is rawApiResponse[];
|
|
633
|
+
apiChat: (i: unknown) => i is apiChat;
|
|
634
|
+
apiGlobalNumRes: (i: unknown) => i is apiGlobalNumRes;
|
|
635
|
+
apiLeaf: (i: unknown) => i is apiLeaf;
|
|
636
|
+
apiPing: (i: unknown) => i is apiPing;
|
|
637
|
+
apiThread: (i: unknown) => i is apiThread;
|
|
641
638
|
};
|
|
642
639
|
xmlDocument: (i: unknown) => i is XMLDocument;
|
|
643
640
|
legacyOwner: {
|
|
644
641
|
comments: (i: unknown) => i is string;
|
|
645
642
|
};
|
|
646
643
|
owner: {
|
|
647
|
-
comment: (i: unknown) => i is
|
|
648
|
-
comments: (i: unknown) => i is
|
|
644
|
+
comment: (i: unknown) => i is ownerComment;
|
|
645
|
+
comments: (i: unknown) => i is ownerComment[];
|
|
649
646
|
};
|
|
650
647
|
v1: {
|
|
651
|
-
comment: (i: unknown) => i is
|
|
652
|
-
thread: (i: unknown) => i is
|
|
653
|
-
threads: (i: unknown) => i is
|
|
648
|
+
comment: (i: unknown) => i is v1Comment;
|
|
649
|
+
thread: (i: unknown) => i is v1Thread;
|
|
650
|
+
threads: (i: unknown) => i is v1Thread[];
|
|
654
651
|
};
|
|
655
652
|
nicoScript: {
|
|
656
653
|
range: {
|
|
657
|
-
target: (i: unknown) => i is
|
|
654
|
+
target: (i: unknown) => i is nicoScriptReverseTarget;
|
|
658
655
|
};
|
|
659
656
|
replace: {
|
|
660
|
-
range: (i: unknown) => i is
|
|
661
|
-
target: (i: unknown) => i is
|
|
662
|
-
condition: (i: unknown) => i is
|
|
657
|
+
range: (i: unknown) => i is nicoScriptReplaceRange;
|
|
658
|
+
target: (i: unknown) => i is nicoScriptReplaceTarget;
|
|
659
|
+
condition: (i: unknown) => i is nicoScriptReplaceCondition;
|
|
663
660
|
};
|
|
664
661
|
};
|
|
665
662
|
comment: {
|
|
666
|
-
font: (i: unknown) => i is
|
|
667
|
-
loc: (i: unknown) => i is
|
|
668
|
-
size: (i: unknown) => i is
|
|
663
|
+
font: (i: unknown) => i is commentFont;
|
|
664
|
+
loc: (i: unknown) => i is commentLoc;
|
|
665
|
+
size: (i: unknown) => i is commentSize;
|
|
669
666
|
command: {
|
|
670
667
|
key: (i: unknown) => i is "full" | "ender" | "_live" | "invisible";
|
|
671
668
|
};
|
|
@@ -673,7 +670,7 @@ declare class NiconiComments {
|
|
|
673
670
|
colorCode: (i: unknown) => i is string;
|
|
674
671
|
};
|
|
675
672
|
config: {
|
|
676
|
-
initOptions: (item: unknown) => item is Partial<
|
|
673
|
+
initOptions: (item: unknown) => item is Partial<BaseOptions>;
|
|
677
674
|
};
|
|
678
675
|
};
|
|
679
676
|
constructor(canvas: HTMLCanvasElement, data: inputFormat, initOptions?: Options);
|
|
@@ -755,7 +752,7 @@ declare const typeGuard: {
|
|
|
755
752
|
colorCode: (i: unknown) => i is string;
|
|
756
753
|
};
|
|
757
754
|
config: {
|
|
758
|
-
initOptions: (item: unknown) => item is Partial<
|
|
755
|
+
initOptions: (item: unknown) => item is Partial<BaseOptions>;
|
|
759
756
|
};
|
|
760
757
|
};
|
|
761
758
|
|
package/dist/bundle.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpadev-net/niconicomments",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.40",
|
|
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",
|