[Bug] graphic下,type: 'text'中,style.fontSize使用不同单位,行为不同
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### Version
5.3.2
### Link to Minimal Reproduction
none
### Steps to Reproduce
option = {
graphic: {
elements: [
{
type: 'group',
left: 'center',
top: 'center',
children: [
// 非正常: 左侧会有空隙
{
type: 'text',
style: {
text: 'Apache ECharts',
fontSize: '2em',
fill: '#000',
stroke: '#000',
},
},
// 正常
// {
// type: 'text',
// style: {
// text: 'Apache ECharts',
// fontSize: '24px',
// fill: '#000',
// stroke: '#000',
// },
// }
],
},
]
}
};
### Current Behavior


### Expected Behavior
期望:fontSize使用'em'做单位, 左侧会多出一段空白;希望行为和'px'一致。
### Environment
```markdown
- OS: macOS Monterey
- Browser: Chrome 111.0.5563.146(正式版本) (arm64)
- Framework: none
```
### Any additional comments?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.