🎉 Render plain text

* 🎉 Serialize text content (wasm)

* ♻️ Refactor functions in main to wasm module

* 🎉 Stub rendering of paragraph text (wasm)

* 📎 Clean up commented code
This commit is contained in:
Belén Albeza 2025-03-04 11:54:52 +01:00 committed by GitHub
parent 9e5de82967
commit aa468e2153
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 256 additions and 9 deletions

View file

@ -8,14 +8,15 @@ mod shapes;
mod state;
mod utils;
mod view;
mod wasm;
use crate::mem::SerializableResult;
use crate::shapes::{BoolType, ConstraintH, ConstraintV, TransformEntry, Type};
use crate::state::State;
use crate::utils::uuid_from_u32_quartet;
use state::State;
static mut STATE: Option<Box<State>> = None;
pub(crate) static mut STATE: Option<Box<State>> = None;
extern "C" {
fn emscripten_GetProcAddress(