Send all fills of a shape in a single wasm call

This commit is contained in:
Belén Albeza 2025-06-03 15:37:36 +02:00
parent e9bd44b819
commit 9fc3f4858a
3 changed files with 43 additions and 20 deletions

View file

@ -495,6 +495,10 @@ impl Shape {
self.fills.iter()
}
pub fn set_fills(&mut self, fills: Vec<Fill>) {
self.fills = fills;
}
pub fn add_fill(&mut self, f: Fill) {
self.fills.push(f);
}