Skip to content

feat: Tldraw v2: export presentation with annotations - #19082

Merged
antobinary merged 6 commits into
bigbluebutton:v3.0.x-releasefrom
danielpetri1:export-tldraw-canary
Mar 28, 2024
Merged

antobinary merged 6 commits into
bigbluebutton:v3.0.x-releasefrom
danielpetri1:export-tldraw-canary

Conversation

@danielpetri1

Copy link
Copy Markdown
Contributor

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-annotations that makes extending and maintaining it in the future much simpler. Its speed was significantly improved when creating PDFs by leveraging existing SVG presentation slides. PDFtoCairo was 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 thanxmlbuilder2. The code was linted and documented thoroughly.

UML Class Diagram

UML Diagram

@sonarqubecloud

sonarqubecloud Bot commented Nov 7, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@antobinary antobinary added this to the Release 3.0 milestone Nov 8, 2023
@danielpetri1
danielpetri1 marked this pull request as ready for review December 8, 2023 12:27
@antobinary
antobinary self-requested a review December 12, 2023 18:23
@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@github-actions

Copy link
Copy Markdown

Automated tests Summary

✅ All the CI tests have passed!

@antobinary antobinary left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 👏

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.

2 participants