From 4dfcd4f8ca0e27bb6f166011b2d7bd6fdcd85482 Mon Sep 17 00:00:00 2001 From: Thisal Dilmith <93121062+Thisal-D@users.noreply.github.com> Date: Mon, 25 Nov 2024 01:14:11 +0530 Subject: [PATCH] Add files via upload --- CHANGES_en.md | 18 +++++++++--------- CHANGES_zh.md | 30 +++++++++++++++--------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/CHANGES_en.md b/CHANGES_en.md index e45a881..884cba4 100644 --- a/CHANGES_en.md +++ b/CHANGES_en.md @@ -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`
`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`
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 diff --git a/CHANGES_zh.md b/CHANGES_zh.md index 033addf..a7c4653 100644 --- a/CHANGES_zh.md +++ b/CHANGES_zh.md @@ -3,12 +3,12 @@ - ### 新增方法到 `LineChart` 对象 | 方法名称 | 描述 | 参数 | 返回类型 | |------------------|------------------------------------------------------------|----------------|-------------| - | `clear_data` | 清除图表中所有线的数据,确保只保留最新的可见数据点。如果数据点总数超过最大可见点,则会从每条线的数据中移除旧数据。此方法确保图表仅显示基于最大可见范围的相关数据部分。 | - | ``None`` | + | `clear_data` | 清除图表中所有线的数据,确保只保留最新的可见数据点。如果数据点总数超过最大可见点,则会从每条线的数据中移除旧数据。此方法确保图表仅显示基于最大可见范围的相关数据部分。 | - | `None` | - ### 新增方法到 `Line` 对象 | 方法名称 | 描述 | 参数 | 返回类型 | |------------------|------------------------------------------------------------|----------------|-------------| - | `clear_data` | 清除特定线的数据,确保只保留最新的可见数据点。如果线的数据超过最大可见点,则会修剪旧数据。此方法允许每条线独立清除其数据,确保它始终保持在可见范围内。 | - | ``None`` | + | `clear_data` | 清除特定线的数据,确保只保留最新的可见数据点。如果线的数据超过最大可见点,则会修剪旧数据。此方法允许每条线独立清除其数据,确保它始终保持在可见范围内。 | - | `None` | --- @@ -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` | --- @@ -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`
`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`
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``
`state: ``bool`` | None | + | hide_all | 隐藏所有的线 | state: `bool` | None | + | hide | 隐藏特定的线 | line: `tkchart.Line`
state: `bool` | None |