Replies: 3 comments 2 replies
-
I think you should do just virtual scrolling technic. It is outside of Konva scope. Render stage only when it is visible on the screen. If it is not visible - don't render it. |
Beta Was this translation helpful? Give feedback.
-
Thanks. Tried it. A way to go but not most ideal in my case. The app would scale the stages down to fit around 6 stages in a row. Still a lot to render for large stages. It would freeze the page if around 3 rows are being rendered at once. But still more responsive than all 100 stages at once. |
Beta Was this translation helpful? Give feedback.
-
FYI We have opted to use plain old But we still use Knova to eventually compose all layers to generate final output. It is a little bit overkill though even plain Thanks again for this great library. |
Beta Was this translation helpful? Give feedback.
-
I am using React Konva on a project that needs to render around 100 stages on a single html page. Each stage is obviously attached to a
div
.Some times each stage is rather large, for example around 3000 x 3000.
With React, the 100 stages are rendered by mapping data array to Konva stage array. The html page would freeze until all are rendered.
Is there away to progressively render the stages, meaning render one, display one on page, then render the next one?
If Konva fires some event like
finishedRenderring
, it would be easy to do so but I couldn't find document about it.Or is there a better way to do so?
Beta Was this translation helpful? Give feedback.
All reactions