LogicFlow icon indicating copy to clipboard operation
LogicFlow copied to clipboard

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

Open DonZZZ668 opened this issue 1 year ago • 0 comments

发生了什么?

我自定义了一个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

DonZZZ668 avatar Apr 17 '24 07:04 DonZZZ668