ruilisi / fortune-sheet

A drop-in javascript spreadsheet library that provides rich features like Excel and Google Sheets
https://ruilisi.github.io/fortune-sheet-docs/
MIT License
2.54k stars 227 forks source link

表格中的数据有换行会非常卡 #578

Closed isdefault closed 1 week ago

isdefault commented 3 months ago

例如表格中的数据如下: 1.测试文本 1.测试文本 1.测试文本 1.测试文本 这只是简单的示例,如果换行较多或者文本比示例的长会非常卡,即使只使用上面的示例文本也会卡,如果没有换行就不会卡例如 1.测试文本1.测试文本1.测试文本1.测试文本

isdefault commented 3 months ago

1

isdefault commented 3 months ago

单个单元格数据多的话会非常卡

sanchit3008 commented 3 months ago

hi can you please post this in english? sorry i cant understand chinese.

isdefault commented 3 months ago

嗨,你能用英文发布这个吗?对不起,我听不懂中文。It can be very stuck when there are a lot of characters in a single cell in the table, you can take a look at the performance graph of the screenshot I commented on above

sanchit3008 commented 2 months ago

i will have a look at this. thanks for reporting.

Corbe30 commented 3 weeks ago

Hi @isdefault ! Which browser, browser version and OS are you using? This issue is caused by canvas' filltext(), which is particularly slow on Linux implementation of Chrome and Firefox.

That said, I've raised a fix PR