Skip to content

Commit

Permalink
Merge pull request #26 from Thisal-D/Thisal-D-patch-1
Browse files Browse the repository at this point in the history
Add files via upload
  • Loading branch information
Thisal-D authored Nov 24, 2024
2 parents 650abf6 + 4dfcd4f commit 4d42059
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
18 changes: 9 additions & 9 deletions CHANGES_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@

| Method Name | Description | Parameters | Return Type |
|------------------|------------------------------------------------|------------------------------------------|-------------|
| `cget` | Get the value of the specified parameter | `attribute_name: str \| "__all__"` | `any` |
| `set_visible` | Change the visibility of the line | `state: bool` | `None` |
| `cget` | Get the value of the specified parameter | attribute_name: `str \| "__all__"` | `any` |
| `set_visible` | Change the visibility of the line | state: `bool` | `None` |
| `get_visibility` | Get the visibility of the line | - | `bool` |

- ### New Methods Added to LineChart Object

| Method Name | Description | Parameters | Return Type |
|------------------------|------------------------------------------------|--------------------------------------------------|-------------|
| `set_lines_visibility` | Change the visibility of all the lines | `state: bool` | `None` |
| `set_line_visibility` | Change the visibility of a specific line | `line: tkchart.Line`<br>`state: bool` | `None` |
| `get_line_visibility` | Get the visibility of a specific line | `line: tkchart.Line` | `bool` |
| `cget` | Get the value of the specified parameter | `attribute_name: str \| "__all__"` | `any` |
| `place_info` | Get info about place | `attribute_name: str \| "__all__"` | `any` |
| `pack_info` | Get info about pack | `attribute_name: str \| "__all__"` | `any` |
| `grid_info` | Get info about grid | `attribute_name: str \| "__all__"` | `any` |
| `set_lines_visibility` | Change the visibility of all the lines | state: `bool` | `None` |
| `set_line_visibility` | Change the visibility of a specific line | line: `tkchart.Line`<br>state: `bool` | `None` |
| `get_line_visibility` | Get the visibility of a specific line | line: `tkchart.Line` | `bool` |
| `cget` | Get the value of the specified parameter | attribute_name: `str \| "__all__"` | `any` |
| `place_info` | Get info about place | attribute_name: `str \| "__all__"` | `any` |
| `pack_info` | Get info about pack | attribute_name: `str \| "__all__"` | `any` |
| `grid_info` | Get info about grid | attribute_name: `str \| "__all__"` | `any` |

- ### Removed Methods in LineChart Object

Expand Down
30 changes: 15 additions & 15 deletions CHANGES_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
- ### 新增方法到 `LineChart` 对象
| 方法名称 | 描述 | 参数 | 返回类型 |
|------------------|------------------------------------------------------------|----------------|-------------|
| `clear_data` | 清除图表中所有线的数据,确保只保留最新的可见数据点。如果数据点总数超过最大可见点,则会从每条线的数据中移除旧数据。此方法确保图表仅显示基于最大可见范围的相关数据部分。 | - | ``None`` |
| `clear_data` | 清除图表中所有线的数据,确保只保留最新的可见数据点。如果数据点总数超过最大可见点,则会从每条线的数据中移除旧数据。此方法确保图表仅显示基于最大可见范围的相关数据部分。 | - | `None` |

- ### 新增方法到 `Line` 对象
| 方法名称 | 描述 | 参数 | 返回类型 |
|------------------|------------------------------------------------------------|----------------|-------------|
| `clear_data` | 清除特定线的数据,确保只保留最新的可见数据点。如果线的数据超过最大可见点,则会修剪旧数据。此方法允许每条线独立清除其数据,确保它始终保持在可见范围内。 | - | ``None`` |
| `clear_data` | 清除特定线的数据,确保只保留最新的可见数据点。如果线的数据超过最大可见点,则会修剪旧数据。此方法允许每条线独立清除其数据,确保它始终保持在可见范围内。 | - | `None` |

---

Expand All @@ -17,8 +17,8 @@
- ### 新增方法到 `LineChart` 对象
| 方法名称 | 描述 | 参数 | 返回类型 |
|------------------|------------------------------------------------------------|----------------|-------------|
| `get_line_area` | 获取特定线的区域大小 | `line: tkchart.Line` | ``float`` |
| `get_lines_area` | 获取所有线的区域大小 | - | ``float`` |
| `get_line_area` | 获取特定线的区域大小 | line: `tkchart.Line` | `float` |
| `get_lines_area` | 获取所有线的区域大小 | - | `float` |

---

Expand All @@ -42,25 +42,25 @@

| 方法名称 | 描述 | 参数 | 返回类型 |
|------------------|------------------------------------------------|------------------------------------------|-------------|
| `cget` | 获取指定参数的值 | `attribute_name: str \| "__all__"` | `any` |
| `set_visible` | 更改线的可见性 | `state: bool` | `None` |
| `cget` | 获取指定参数的值 | attribute_name: `str \| "__all__"` | `any` |
| `set_visible` | 更改线的可见性 | state: `bool` | `None` |
| `get_visibility` | 获取线的可见性 | - | `bool` |

- ### 新增方法到 `LineChart` 对象

| 方法名称 | 描述 | 参数 | 返回类型 |
|------------------------|------------------------------------------------|--------------------------------------------------|-------------|
| `set_lines_visibility` | 更改所有线的可见性 | `state: bool` | `None` |
| `set_line_visibility` | 更改特定线的可见性 | `line: tkchart.Line`<br>`state: bool` | `None` |
| `get_line_visibility` | 获取特定线的可见性 | `line: tkchart.Line` | `bool` |
| `cget` | 获取指定参数的值 | `attribute_name: str \| "__all__"` | `any` |
| `place_info` | 获取位置相关信息 | `attribute_name: str \| "__all__"` | `any` |
| `pack_info` | 获取打包相关信息 | `attribute_name: str \| "__all__"` | `any` |
| `grid_info` | 获取网格相关信息 | `attribute_name: str \| "__all__"` | `any` |
| `set_lines_visibility` | 更改所有线的可见性 | state: `bool` | `None` |
| `set_line_visibility` | 更改特定线的可见性 | line: `tkchart.Line`<br>state: `bool` | `None` |
| `get_line_visibility` | 获取特定线的可见性 | line: `tkchart.Line` | `bool` |
| `cget` | 获取指定参数的值 | attribute_name: `str \| "__all__"` | `any` |
| `place_info` | 获取位置相关信息 | attribute_name: `str \| "__all__"` | `any` |
| `pack_info` | 获取打包相关信息 | attribute_name: `str \| "__all__"` | `any` |
| `grid_info` | 获取网格相关信息 | attribute_name: `str \| "__all__"` | `any` |

- ### 移除 `LineChart` 对象的方法

| 方法名称 | 描述 | 参数 | 返回类型 |
|-------------|----------------------|----------------------------------------------|-------------|
| hide_all | 隐藏所有的线 | `state: ``bool`` | None |
| hide | 隐藏特定的线 | `line: ``tkchart.Line``<br> `state: ``bool`` | None |
| hide_all | 隐藏所有的线 | state: `bool` | None |
| hide | 隐藏特定的线 | line: `tkchart.Line`<br> state: `bool` | None |

0 comments on commit 4d42059

Please sign in to comment.