Skip to content

Commit 4392927

Browse files
committed
doc: add missing doc for sector.cornerRadius
1 parent e2eda8e commit 4392927

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

en/option/partial/zr-graphic.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,16 @@ Sector element.
626626
symbolDeclare = ${symbolDeclare}
627627
) }}
628628

629+
###${prefix} cornerRadius(number|Array)
630+
631+
{{ use: partial-version(version = "5.3.0") }}
632+
633+
The corner radius of the sector.
634+
635+
+ `cornerRadius: 10`: Indicates that both the inner and outer corner radii are 10px.
636+
+ `cornerRadius: [10, 20]`: When applied to a ring chart, the inner corner radius is 10px and the outer corner radius is 20px.
637+
+ `cornerRadius: [5, 10, 15, 20]`: Indicates that the inner corner radii are 5px and 10px, and the outer corner radii are 15px and 20px.
638+
629639
{{ use: partial-graphic-cpt-sub-prop-angle(
630640
prefix = ${prefix},
631641
optionPath = ${optionPath},

zh/option/partial/zr-graphic.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,16 @@ font: 'bolder 2em "Microsoft YaHei", sans-serif'
627627
symbolDeclare = ${symbolDeclare}
628628
) }}
629629

630+
###${prefix} cornerRadius(number|Array)
631+
632+
{{ use: partial-version(version = "5.3.0") }}
633+
634+
扇形的圆角。
635+
636+
+ `cornerRadius: 10`:表示内圆角半径和外圆角半径都是 `10px`
637+
+ `cornerRadius: [10, 20]`:表示为环形图时,内圆角半径是 `10px`、外圆角半径是 `20px`
638+
+ `cornerRadius: [5, 10, 15, 20]`:表示内圆角半径分别为 `5px``10px`,外圆角半径分别为 `15px``20px`
639+
630640
{{ use: partial-graphic-cpt-sub-prop-angle(
631641
prefix = ${prefix},
632642
optionPath = ${optionPath},

0 commit comments

Comments
 (0)