Serialization of grid layout data (#6148)

*  Add serializators for grid layout properties

*  Extract serializers for wasm api module
This commit is contained in:
Alonso Torres 2025-03-26 12:10:31 +01:00 committed by GitHub
parent 7284fb539f
commit 83d41dba6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 892 additions and 282 deletions

View file

@ -142,7 +142,7 @@ Shadow styles are serialized as `u8`:
## Layout
### Direction
### Flex Direction
| Value | Field |
| ----- | ------------- |
@ -152,6 +152,14 @@ Shadow styles are serialized as `u8`:
| 3 | ColumnReverse |
| \_ | error |
### Grid Direction
| Value | Field |
| ----- | ------------- |
| 0 | Row |
| 1 | Column |
| \_ | error |
### Align Items
| Value | Field |
@ -208,6 +216,28 @@ Shadow styles are serialized as `u8`:
| 6 | Stretch |
| \_ | error |
### Align Self
| Value | Field |
| ----- | ------- |
| 0 | Auto |
| 1 | Start |
| 2 | End |
| 3 | Center |
| 4 | Stretch |
| \_ | error |
### Justify Self
| Value | Field |
| ----- | ------- |
| 0 | Auto |
| 1 | Start |
| 2 | End |
| 3 | Center |
| 4 | Stretch |
| \_ | error |
### Wrap type
| Value | Field |
@ -225,6 +255,18 @@ Shadow styles are serialized as `u8`:
| 2 | Auto |
| \_ | error |
### Grid Track Type
| Value | Field |
| ----- | ------- |
| 0 | Percent |
| 1 | Flex |
| 2 | Auto |
| 3 | Fixed |
| \_ | error |
## Font
### Style