Skip to content

[Bug Report]: 重写getTextStyle,设置lineHeight无效 #2045

@songjhh

Description

@songjhh

发生了什么?

class BaseRectModel extends RectResize.model {
  getTextStyle() {
    return {
      fontSize: 12,
      fill: "#000000",
      autoWrap: true,
      lineHeight: 3,
      wrapPadding: "2px 3px",
    };
  }
}

设置lineHeight,无论什么值都无效,没有变化

logicflow/core版本

2.0.10

logicflow/extension版本

2.0.14

logicflow/engine版本

No response

浏览器&环境

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions