From 20534f022f3d7ebaaf60d67b8bd1c5232e4f4e39 Mon Sep 17 00:00:00 2001 From: Ovilia Date: Thu, 20 Nov 2025 16:03:20 +0800 Subject: [PATCH] doc: add missing doc for sector.cornerRadius --- en/option/partial/zr-graphic.md | 10 ++++++++++ zh/option/partial/zr-graphic.md | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/en/option/partial/zr-graphic.md b/en/option/partial/zr-graphic.md index 2550b10d..565f66c7 100644 --- a/en/option/partial/zr-graphic.md +++ b/en/option/partial/zr-graphic.md @@ -626,6 +626,16 @@ Sector element. symbolDeclare = ${symbolDeclare} ) }} +###${prefix} cornerRadius(number|Array) + +{{ use: partial-version(version = "5.3.0") }} + +The corner radius of the sector. + ++ `cornerRadius: 10`: Indicates that both the inner and outer corner radii are 10px. ++ `cornerRadius: [10, 20]`: When applied to a ring chart, the inner corner radius is 10px and the outer corner radius is 20px. ++ `cornerRadius: [5, 10, 15, 20]`: Indicates that the inner corner radii are 5px and 10px, and the outer corner radii are 15px and 20px. + {{ use: partial-graphic-cpt-sub-prop-angle( prefix = ${prefix}, optionPath = ${optionPath}, diff --git a/zh/option/partial/zr-graphic.md b/zh/option/partial/zr-graphic.md index 2ac0983d..755aadb6 100644 --- a/zh/option/partial/zr-graphic.md +++ b/zh/option/partial/zr-graphic.md @@ -627,6 +627,16 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif' symbolDeclare = ${symbolDeclare} ) }} +###${prefix} cornerRadius(number|Array) + +{{ use: partial-version(version = "5.3.0") }} + +扇形的圆角。 + ++ `cornerRadius: 10`:表示内圆角半径和外圆角半径都是 `10px`。 ++ `cornerRadius: [10, 20]`:表示为环形图时,内圆角半径是 `10px`、外圆角半径是 `20px`。 ++ `cornerRadius: [5, 10, 15, 20]`:表示内圆角半径分别为 `5px` 和 `10px`,外圆角半径分别为 `15px` 和 `20px`。 + {{ use: partial-graphic-cpt-sub-prop-angle( prefix = ${prefix}, optionPath = ${optionPath},