didi / didi/LogicFlow

[Bug Report]: GroupNode里在getTextStyle()里将style.textAlign='left',会出现字体随着node缩放向左移动

Open
#1,575 0 comments 0 reactions 0 assignees View on GitHub
extension: group status: need-repro type:bug
Dominant language
TypeScript
Stars
11.7k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

### 发生了什么?

我自定义了一个Node 继承GroupNode,在getTextStyle()里将style.textAlign='left';即使我在setAttributes里将this.text.x=100 this.text.y=100,这样静态的值还是会随着放大缩小向左移动。

https://github.com/didi/LogicFlow/assets/61984651/83e77579-4c14-4bd3-b60f-e000e8e8e451

### logicflow/core版本

1.2.18

### logicflow/extension版本

1.2.19

### logicflow/engine版本

null

### 浏览器&环境

Chrome

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.