feat: Add fields to character trace tree info:

- anchor: position of trace tree point.
- max_level: max level of trace tree point.
- parent: preceding point of trace tree point.
This commit is contained in:
KT 2023-08-14 21:34:13 +08:00
parent fb7ab6f5e7
commit 6c6b02cff3
2 changed files with 10 additions and 1 deletions

View file

@ -92,12 +92,21 @@ class TraceTreeNode(BaseModel):
Attributes:
- id (`int`): The ID of the trace.
- level (`int`): The level of the trace.
- max_level (`int`): The max level of the trace.
- icon (`str`): The icon of the trace.
- anchor (`str`): The position of the trace tree node.
- parent (`int` | `None`): The preceding node id of trace.
"""
id: int
"""The ID of the trace"""
level: int
"""The level of the trace"""
max_level: int
"""The max level of the trace"""
icon: str
"""The icon of the trace"""
anchor: str
"""The position of the trace tree node"""
parent: int | None = None
"""The preceding node id of trace"""

View file

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "mihomo"
version = "1.1.5"
version = "1.1.6"
authors = [
{ name="KT", email="xns77477@gmail.com" },
]