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: Attributes:
- id (`int`): The ID of the trace. - id (`int`): The ID of the trace.
- level (`int`): The level 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. - 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 id: int
"""The ID of the trace""" """The ID of the trace"""
level: int level: int
"""The level of the trace""" """The level of the trace"""
max_level: int
"""The max level of the trace"""
icon: str icon: str
"""The icon of the trace""" """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] [project]
name = "mihomo" name = "mihomo"
version = "1.1.5" version = "1.1.6"
authors = [ authors = [
{ name="KT", email="xns77477@gmail.com" }, { name="KT", email="xns77477@gmail.com" },
] ]