Skip to content

Commit

Permalink
docs: add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoluoHe committed Dec 10, 2024
1 parent b2c242b commit 66e7843
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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"
}
3 changes: 2 additions & 1 deletion packages/vrender-components/src/label/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,9 @@ export interface LineDataLabelAttrs extends BaseLabelAttrs {
/**
* 标签位置
* @default 'top'
* @since 0.21.1 支持 'inside-middle' 在面积图元中显示在中间位置
*/
position?: Functional<BoundsAnchorType>;
position?: Functional<BoundsAnchorType | 'inside-middle'>;
}

export interface PolygonLabelAttrs extends BaseLabelAttrs {
Expand Down

0 comments on commit 66e7843

Please sign in to comment.