From b616caf7a32e2b0e18b707eadc13aee91bf5eaec Mon Sep 17 00:00:00 2001 From: Jungzl <13jungzl@gmail.com> Date: Tue, 23 Jan 2024 17:06:08 +0800 Subject: [PATCH 1/2] fix(docs): typo axis `labelOpacity` --- site/docs/spec/component/axis.zh.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/docs/spec/component/axis.zh.md b/site/docs/spec/component/axis.zh.md index 2e3ce86eb8..85383594bc 100644 --- a/site/docs/spec/component/axis.zh.md +++ b/site/docs/spec/component/axis.zh.md @@ -157,8 +157,8 @@ chart.interval().axis('x', {}).axis('y', {}); | labelFontSize | 刻度值文字大小 | `number` | `(datum, index, data)=>number` | - | | labelFontFamily | 刻度值文字字体 | `string` | `(datum, index, data)=>string` | - | | labelFontWeight | 刻度值字体粗细 | `number` |`(datum, index, data)=>number` | - | -| labelFill | 刻度值字体颜色 | `string` | `(datum, index, data)=>string` | - | -| labelFillOpacity | 刻度值文本透明度 | `number` | `(datum, index, data)=>number` | - | +| labelFill | 刻度值字体颜色 | `string` | `(datum, index, data)=>string` | - | +| labelOpacity | 刻度值文本透明度 | `number` | `(datum, index, data)=>number` | - | | labelStroke | 刻度值文本描边颜色 | `string` | `(datum, index, data)=>string` | - | | labelStrokeOpacity | 刻度值文本描边透明度 | `number` | `(datum, index, data)=>number` | - | From aceb12659b1f9d7bc31cd43f17328d068344937b Mon Sep 17 00:00:00 2001 From: Jungzl <13jungzl@gmail.com> Date: Tue, 23 Jan 2024 17:45:43 +0800 Subject: [PATCH 2/2] fix(docs): add axis `labelOpacity` --- site/docs/spec/component/axis.zh.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/docs/spec/component/axis.zh.md b/site/docs/spec/component/axis.zh.md index 85383594bc..3e7f959240 100644 --- a/site/docs/spec/component/axis.zh.md +++ b/site/docs/spec/component/axis.zh.md @@ -142,6 +142,7 @@ chart.interval().axis('x', {}).axis('y', {}); | 属性 | 描述 | 类型 | 默认值 | | ------------------ | ------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ---------- | | label | 是否显示刻度值 | `boolean` | - | +| labelOpacity | 刻度值透明度 | `number` | `(datum, index, data)=>number` | - | | labelFilter | 刻度值过滤 | `(datum, index, data)=> boolean` | - | | labelFormatter | 刻度值线格式化 | `DisplayObject` | `(datum, index, data, Vector)=> DisplayObject` | - | | transform | 刻度值转换,避免文本之间发生重叠。当前支持超长文本缩略、重叠刻度值隐藏、自动旋转 | `Transform[]` | - | @@ -158,7 +159,7 @@ chart.interval().axis('x', {}).axis('y', {}); | labelFontFamily | 刻度值文字字体 | `string` | `(datum, index, data)=>string` | - | | labelFontWeight | 刻度值字体粗细 | `number` |`(datum, index, data)=>number` | - | | labelFill | 刻度值字体颜色 | `string` | `(datum, index, data)=>string` | - | -| labelOpacity | 刻度值文本透明度 | `number` | `(datum, index, data)=>number` | - | +| labelFillOpacity | 刻度值文本透明度 | `number` | `(datum, index, data)=>number` | - | | labelStroke | 刻度值文本描边颜色 | `string` | `(datum, index, data)=>string` | - | | labelStrokeOpacity | 刻度值文本描边透明度 | `number` | `(datum, index, data)=>number` | - |