mirror of
https://github.com/penpot/penpot.git
synced 2025-06-22 05:16:59 +02:00
✨ Improve paths deserialization (wasm) (#6501)
* ♻️ Refactor path wasm code to its own wasm submodule * ♻️ Use unified enum for RawSegmentData and transmute to deserialize * ♻️ Move set_shape_path_attrs to wasm::paths module * 💄 Unify repr declarations
This commit is contained in:
parent
eaaca5629e
commit
f9bbf2d524
6 changed files with 197 additions and 125 deletions
|
@ -9,9 +9,7 @@ use crate::STATE;
|
|||
|
||||
const RAW_FILL_DATA_SIZE: usize = std::mem::size_of::<RawFillData>();
|
||||
|
||||
#[repr(C)]
|
||||
#[repr(align(4))]
|
||||
#[repr(u8)]
|
||||
#[repr(C, u8, align(4))]
|
||||
#[derive(Debug, PartialEq, Clone, Copy)]
|
||||
#[allow(dead_code)]
|
||||
pub enum RawFillData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue