mirror of
https://github.com/penpot/penpot.git
synced 2025-06-24 20:46:59 +02:00
✨ Send all fills of a shape in a single wasm call
This commit is contained in:
parent
e9bd44b819
commit
9fc3f4858a
3 changed files with 43 additions and 20 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue