|
1 | | -from typing import ClassVar |
2 | | - |
3 | | -class DanmakuElem: |
4 | | - @property |
5 | | - def id(self) -> int: ... |
6 | | - @property |
7 | | - def progress(self) -> int: ... |
8 | | - @property |
9 | | - def mode(self) -> int: ... |
10 | | - @property |
11 | | - def fontsize(self) -> int: ... |
12 | | - @property |
13 | | - def color(self) -> int: ... |
14 | | - @property |
15 | | - def mid_hash(self) -> str: ... |
16 | | - @property |
17 | | - def content(self) -> str: ... |
18 | | - @property |
19 | | - def ctime(self) -> int: ... |
20 | | - @property |
21 | | - def action(self) -> str: ... |
22 | | - @property |
23 | | - def pool(self) -> int: ... |
24 | | - @property |
25 | | - def id_str(self) -> str: ... |
26 | | - @property |
27 | | - def attr(self) -> int: ... |
28 | | - @property |
29 | | - def animation(self) -> str: ... |
30 | | - |
31 | | -class DmSegMobileReply: |
32 | | - @property |
33 | | - def elems(self) -> list[DanmakuElem]: ... |
34 | | - @staticmethod |
35 | | - def decode(data: bytes) -> DmSegMobileReply: ... |
36 | | - |
37 | | -class CommentPosition: |
38 | | - Scroll: ClassVar[CommentPosition] |
39 | | - Top: ClassVar[CommentPosition] |
40 | | - Bottom: ClassVar[CommentPosition] |
41 | | - Reversed: ClassVar[CommentPosition] |
42 | | - Special: ClassVar[CommentPosition] |
43 | | - |
44 | | - @property |
45 | | - def id(self) -> int: ... |
46 | | - |
47 | | -class Comment: |
48 | | - timeline: float |
49 | | - timestamp: int |
50 | | - no: int |
51 | | - comment: str |
52 | | - pos: CommentPosition |
53 | | - color: int |
54 | | - size: float |
55 | | - height: float |
56 | | - width: float |
57 | | - |
58 | | -def read_comments_from_xml(text: str, fontsize: float) -> list[Comment]: ... |
59 | | -def read_comments_from_protobuf(data: bytes, fontsize: float) -> list[Comment]: ... |
60 | | -def parse_special_comment( |
61 | | - content: str, zoom_factor: tuple[float, float, float] |
62 | | -) -> tuple[tuple[int, int, float, float, float, float], int, int, str, int, float, int, str, bool]: ... |
63 | 1 | def xml_to_ass( |
64 | 2 | inputs: list[str], |
65 | 3 | stage_width: int, |
|
0 commit comments