Repository navigation
feat: Tldraw v2: export presentation with annotations - #19082
Merged
antobinary merged 6 commits intoMar 28, 2024
Merged
Conversation
|
Kudos, SonarCloud Quality Gate passed! |
danielpetri1
marked this pull request as ready for review
December 8, 2023 12:27
antobinary
self-requested a review
December 12, 2023 18:23
|
This pull request has conflicts ☹ |
|
This pull request has conflicts ☹ |
|
Automated tests Summary✅ All the CI tests have passed! |
antobinary
approved these changes
Mar 28, 2024
antobinary
left a comment
Member
There was a problem hiding this comment.
I tested this and it worked well after I applied (locally) the redis socker changes from #19707
I should merge them at the same time.
Good work @danielpetri1 👏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.












What does this PR do?
This PR introduces the ability to export presentations with annotations from Tldraw v2 within the BigBlueButton 3.0 environment. It was built upon the following PR:
feat: Migrating From Tldraw v1 To v2 (Alpha Version) by KDSBrowne
Video Demo
tldraw-canary.mov
Motivation
The new version of Tldraw introduced a series of new complex tools and shapes, such as a highlighter, arrows, checkboxes, and many more. These have to be included in the capturing- and exporting abilities of BigBlueButton that help engage students in class.
Moreover, seeing that Tldraw constantly evolves and improves, this PR introduces a new object-oriented architecture for
bbb-export-annotationsthat makes extending and maintaining it in the future much simpler. Its speed was significantly improved when creating PDFs by leveraging existing SVG presentation slides.PDFtoCairowas therefore dropped as a dependency, since extracting PNG slides from PDF backgrounds isn't required anymore.Furthermore, the problematic use of ImageMagick was removed in favor of the lightweight insertion of native SVG text when creating PDFs. This makes the text selectable, meaning the client's accessibility warning can be dropped now that screen readers can read those elements aloud. Additionally, URLs are clickable where supported by Tldraw.
At last, files are now created with SVG.js, which for our purposes is better suited than
xmlbuilder2. The code was linted and documented thoroughly.UML Class Diagram