Closed hunkim98 closed 1 year ago
PR Preview Action v1.4.4 :---: Preview removed because the pull request was closed. 2023-06-03 00:34 UTC
Great job LGTM except for one question(though it is out of scope)
when extending + zooming the drawn pixels are not aligned with pan zoom' scale will this have to be fixed?
It seems that this problem is due to the data layer not rendering when extension happens. I have disabled the rendering of data layer when extension happens since there would be unnecessary renders when extension occurs. When extension happens, the data does not change, so we do not need to render the data layer.
You can check that logic in
If there is capturedData, it means that the current user is extending the grids. If that is the case, all layers except the data layer are rendered.
I will fix this by disabling pan zoom when extension happens. I believe it is rare for a user to extend the pixel grid while also zooming.
Kudos, SonarCloud Quality Gate passed!
🚀 [Related Issue: #4 ]
Preview
You can test the new extension algorithm in the PR preview page. Try to make the pixel grid very big and then test out the extension. The extension will not lag at all.
Changes
Improve extension algorithm to let the extension instantly happen
extendInteractionGrid
,shortenInteractionGrid
toextendInteractionGridBy
andshortenInteractionGridBy
extendInteractionGridBy
&shortenInteractionGridBy
). Now the extension happens instantly.Notes
Next Up?