Skip to content

Implement PreparedRenderer API to make it possible to render multiple…#3276

Open
koluch wants to merge 1 commit intoniklasvh:masterfrom
koluch:master
Open

Implement PreparedRenderer API to make it possible to render multiple…#3276
koluch wants to merge 1 commit intoniklasvh:masterfrom
koluch:master

Conversation

@koluch
Copy link

@koluch koluch commented Jan 31, 2026

Summary

I implemented a function "makeRenderer", which create an object with cloned document, and provides a function "renderElements" to render multiple canvas elements

I also changed "DocumentCloner" class a bit, to make it work without provided "referenceElement"

We faced an issue when original document cloning takes a lot of time, and we need to render multiple elements on the page to the canvas.

Test plan (required)

I added a new demo page "demo_make_renderer"

… elements without cloning document every time; added a demo page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant