mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Serialization of grid layout data (#6148)
* ✨ Add serializators for grid layout properties * ✨ Extract serializers for wasm api module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user