Skip to content

Commit c34fbe7

Browse files
committed
feat: support hideOnOverflow
1 parent 9a05463 commit c34fbe7

File tree

1 file changed

+1
-1
lines changed
  • packages/vrender-components/src/label

1 file changed

+1
-1
lines changed

packages/vrender-components/src/label/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ export class LabelBase<T extends BaseLabelAttrs> extends AnimateComponent<T> {
715715
if (hasPlace !== false) {
716716
text.setAttributes({ x: hasPlace.x, y: hasPlace.y });
717717
// 需要判定是否超出边界
718-
if (hideOnOverflow && this._processHideOnOverflow(text as IText, bmpTool)) {
718+
if (!(hideOnOverflow && !this._processHideOnOverflow(text as IText, bmpTool))) {
719719
result.push(text);
720720
break;
721721
}

0 commit comments

Comments
 (0)