Skip to content

Desktop: Final wasm crate #2940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Desktop: Final wasm crate #2940

wants to merge 3 commits into from

Conversation

adamgerhant
Copy link
Collaborator

@adamgerhant adamgerhant commented Jul 26, 2025

This PR represents the final state of the frontend wasm. It removes the Editor from the wasm when compiling to native, so it will only be merged once we complete the desktop app. The most relevant commit is Final wasm crate structure

When compiling to web, it creates the editor and runs as it currently does.
When compiling to native, it takes the messages, and forwards them back to JS so they can be accessed by CEF and returned to the main thread.

The request animation frame loop is no longer used to check for autoscrolling and setting the time. Instead,
there is a timer in App.svelte which triggers these messages. This means the editor will have to get the time from the os/js_sys directly.

The only time the request animation frame loop is used is on web to run and poll the node runtime.

@adamgerhant adamgerhant marked this pull request as draft July 26, 2025 00:14
@adamgerhant adamgerhant changed the title Final wasm crate Desktop: Final wasm crate Jul 26, 2025
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