Skip to content

Commit 38a59f1

Browse files
committed
feat: support hideOnOverflow
1 parent ed510f9 commit 38a59f1

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
@@ -720,7 +720,7 @@ export class LabelBase<T extends BaseLabelAttrs> extends AbstractComponent<T> {
720720
if (hasPlace !== false) {
721721
text.setAttributes({ x: hasPlace.x, y: hasPlace.y });
722722
// 需要判定是否超出边界
723-
if (hideOnOverflow && this._processHideOnOverflow(text as IText, bmpTool)) {
723+
if (!(hideOnOverflow && !this._processHideOnOverflow(text as IText, bmpTool))) {
724724
result.push(text);
725725
break;
726726
}

0 commit comments

Comments
 (0)