dream-num / univer

Univer is an open-source alternative to Google Sheets, Slides, and Docs

Home Page:https://univer.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Cropping rendering problem

DR-Univer opened this issue · comments

在您提交此问题之前,您是否检查了以下内容?

  • 这真的是个问题吗?
  • 我已经在 Github Issues 中搜索过了,但没有找到类似的问题。

受影响的包和版本

dev

复现链接

cache canvas应用了贴图之后,滚动不正确。
目前裁剪逻辑没有应用贴图缓存,性能比较差。
drawing-ui\src\views\crop\image-cropper-object.ts

image

操作路径

2024-05-31.183012.mp4

预期行为

高亮区域能够正确滚动

实际行为

高亮区域固定了,滚动后还保持了原来位置

运行环境

Chrome

系统信息

No response

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: [Bug] 裁剪渲染问题

Title: [Bug] Cropping rendering problem


Before you submitted this question, did you check the following?

  • Is this really a problem?
  • I've searched Github Issues but haven't found any similar issues.

Affected packages and versions

dev

Recurrence link

After the texture is applied to the cache canvas, the scrolling is incorrect.
Currently, the cropping logic does not apply texture caching, and the performance is relatively poor.
drawing-ui\src\views\crop\image-cropper-object.ts

image

Operation path

2024-05-31.183012.mp4

Expected behavior

Highlighted areas scroll correctly

Actual behavior

The highlighted area is fixed and retains its original position after scrolling.

Running environment

Chrome

system message

No response