diff --git a/common/changes/@visactor/vrender-components/feat-label-inside-middle_2024-12-10-08-14.json b/common/changes/@visactor/vrender-components/feat-label-inside-middle_2024-12-10-08-14.json new file mode 100644 index 000000000..6c2d5ce50 --- /dev/null +++ b/common/changes/@visactor/vrender-components/feat-label-inside-middle_2024-12-10-08-14.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vrender-components", + "comment": "feat: support 'inside-middle' position for line-data label", + "type": "none" + } + ], + "packageName": "@visactor/vrender-components" +} \ No newline at end of file diff --git a/packages/vrender-components/src/label/type.ts b/packages/vrender-components/src/label/type.ts index 53006cf99..7903c0094 100644 --- a/packages/vrender-components/src/label/type.ts +++ b/packages/vrender-components/src/label/type.ts @@ -370,8 +370,9 @@ export interface LineDataLabelAttrs extends BaseLabelAttrs { /** * 标签位置 * @default 'top' + * @since 0.21.1 支持 'inside-middle' 在面积图元中显示在中间位置 */ - position?: Functional; + position?: Functional; } export interface PolygonLabelAttrs extends BaseLabelAttrs {