Belén Albeza
361bdb4a04
♻️ Decouple serialization from text/layout models" ( #7360 )
...
* ♻️ Move text serialization code to wasm module
* ♻️ Add serializer for TextAlign
* ♻️ Add serializers for TextDirection and TextDecoration
* ♻️ Add serializer for TextTransform
* ♻️ Remove unused font_style from TextLeaf model
* ♻️ Refactor parsing of TextLeaf from bytes
* ♻️ Decouple tight serialization of Paragraph
2025-09-25 16:54:07 +02:00
Aitor Moreno
f505fcfa0d
🎉 Add internal TextContent layout data
2025-09-22 16:01:23 +02:00
Belén Albeza
e4d610d503
♻️ Decouple shapes serialization from model (rust) ( #7328 )
...
* ♻️ Move shape type serialization to wasm module
* ♻️ Refactor serialization of constraints and vertical alignment into wasm module
* ♻️ Refactor serialization and model of shape blur
* ♻️ Refactor bool serialization to the wasm module
* ♻️ Split wasm::layout into submodules
* ♻️ Refactor serialization of AlignItems, AlignContent, JustifyItems and JustifyContent
* ♻️ Refactor serialization of WrapType and FlexDirection
* ♻️ Refactor serialization of JustifySelf
* ♻️ Refactor serialization of GridCell
* ♻️ Refactor serialization of AlignSelf
* 🐛 Fix AlignSelf not being serialized
* ♻️ Refactor handling of None variants in Raw* enums
* ♻️ Refactor serialization of grid direction
* ♻️ Refactor serialization of GridTrack and GridTrackType
* ♻️ Refactor serialization of Sizing
* ♻️ Refactor serialization of ShadowStyle
* ♻️ Refactor serialization of StrokeCap and StrokeStyle
* ♻️ Refactor serialization of BlendMode
* ♻️ Refactor serialization of FontStyle
* ♻️ Refactor serialization of GrowType
2025-09-22 13:47:54 +02:00
Belén Albeza
e5e11b6383
🔧 Autogenerate serialization values for wasm enums ( #7296 )
...
* 🔧 Autogenerate serialization values for wasm enums
* 🔧 Add serializer values to the wasm api
* ✨ Avoid converting to a clojure map the serializer js object
* 🔧 Update watch script for autoserialized enums
* 🐛 Fix missing serializer values
2025-09-16 12:29:14 +02:00
Alejandro Alonso
41751d60d2
🐛 Fix corner radius
2025-09-09 10:24:56 +02:00
Andrey Antukh
6588913141
♻️ Remove several level of unnecesary allocation on writing text
2025-08-18 21:54:36 +02:00
Andrey Antukh
5c4a60aee7
✨ Make mem write helpers receive offset as first arg
2025-08-18 21:54:36 +02:00
Andrey Antukh
675864ce0b
✨ Remove incorrect usage of dm/get-prop
2025-08-18 21:54:36 +02:00
Andrey Antukh
c55f3182d8
💄 Rename text-dimensions to get-text-dimensions
2025-08-18 21:49:00 +02:00
Andrey Antukh
0d6eac7656
💄 Add mainly cosmetic changes to set-shape-shadows
...
Mainly replace a loop with run! that used reduce as impl.
After measuring there are no real difference between using
the more complex loop and more simplier run!; in parity of
performance we prefer simplier approach.
2025-08-18 21:49:00 +02:00
Andrey Antukh
7acfd199aa
💄 Add mainly cosmetic changes to set-layout-child
2025-08-18 21:49:00 +02:00
Andrey Antukh
33d6f543a1
⚡ Remove several not necessary allocations from set-grid-layout-cells
2025-08-18 21:49:00 +02:00
Belén Albeza
c818b6f88f
🐛 Fix layout and constraints not being cleared
2025-08-14 15:38:23 +02:00
Alejandro Alonso
5e0a2f66e3
🐛 Fix set corners
2025-08-14 11:50:40 +02:00
Andrey Antukh
8e51aa8df4
🐛 Fix regression on set-shape-children introduced in prev merge
2025-08-12 16:03:34 +02:00
Andrey Antukh
029a9674ca
Merge pull request #7103 from penpot/niwinz-develop-modifiers-enhacements
...
♻️ Sanitize heap write and read operations
2025-08-12 13:11:02 +02:00
Alejandro Alonso
68cee1b1f1
Merge pull request #7076 from penpot/ladybenko-11755-fix-color-picker
...
🐛 Fix color picker not working with the new renderer
2025-08-12 11:57:21 +02:00
Andrey Antukh
e69d61eaf4
✨ Add facilities for work with dataview with common alases
2025-08-12 11:27:13 +02:00
Andrey Antukh
f9d757bb85
✨ Move several mem write helpers to mem.heap32 ns
...
For simplify usage and make it clear the required addressing
is used for that functions
2025-08-12 10:53:02 +02:00
Andrey Antukh
6b6e80f4b8
🐛 Fix regression introduced on the set-grid-layout-cells fn
...
Incorrect data is used for calcultate the size
2025-08-12 10:33:50 +02:00
Andrey Antukh
f32b92a5b0
✨ Assign defaults on serializers instead on api
...
For make the operations more efficient
2025-08-12 10:33:08 +02:00
Andrey Antukh
761a0a7009
✨ Improve memory write operations on set-grid-layout-rows
2025-08-12 10:32:35 +02:00
Andrey Antukh
3f71734cb4
⚡ Remove unnecessary anon fn allocation on set-grid-layout-data
...
And remove incorrect use of dm/get prop for non statically known
attributes of shape
2025-08-12 09:59:18 +02:00
Andrey Antukh
9f14edb0d7
⚡ Remove unnecessary anonymouns fn allocation from set-flex-layout
...
And also removes usage of dm/get-prop for props that are known to be
not static
2025-08-12 09:59:18 +02:00
Andrey Antukh
7fa7a806a8
⚡ Remove unnecesary allocation of corners on wasm api set-shape
2025-08-12 09:59:18 +02:00
Andrey Antukh
d364f4db62
♻️ Sanitize heap write and read operations
...
Mainly improves the offset management making it less
error prone, encapsulating the write operation and offeset
management into write-* operations with proper asserts
for the expected heap type.
2025-08-12 09:59:18 +02:00
Andrey Antukh
73a72ec1c7
💄 Add naming and docstring consistency fixes to wasm api
2025-08-11 12:49:01 +02:00
Andrey Antukh
c39a8d84ac
💄 Abstract call to mem/free on wasm api ns
2025-08-11 10:30:14 +02:00
Andrey Antukh
027e5c64cc
✨ Reduce compexity on set-shape-children wasm api method
2025-08-11 10:30:14 +02:00
Andrey Antukh
ba42c9b85e
✨ Add improved interop between wasm bool and common code
2025-08-11 10:30:14 +02:00
alonso.torres
cd1be43384
✨ Add support for boolean shapes
2025-08-11 10:30:14 +02:00
Belén Albeza
60903f349f
🐛 Fix color picker not working with the new renderer
2025-08-06 18:00:48 +02:00
Elena Torró
a16f40cb73
✨ Set page objects once on wasm render( #6994 )
2025-07-29 13:00:40 +02:00
Elena Torro
ecd3245612
🐛 Fix request render after pending calls have finished on set-objects
2025-07-28 17:31:36 +02:00
Alejandro Alonso
bcee670ac6
🐛 Fix switching theme for wasm render
2025-07-28 07:44:56 +02:00
Andrey Antukh
af99bd620c
✨ Use binary fills to write data to wasm memory
2025-07-23 07:32:11 +02:00
Andrey Antukh
4e2998a366
♻️ Rename fill to fills namespace
2025-07-23 07:32:11 +02:00
alonso.torres
8dcb376b18
✨ Add drop grid cells in wasm
2025-06-30 10:28:59 +02:00
Elena Torro
134fb1ab4c
🔧 Add vertical alignment for text shapes
2025-06-23 16:45:25 +02:00
Alejandro Alonso
1882efe3f7
🐛 Fix paths rendered initially ony in tile 0 0
Commit Message Check / Check Commit Message (push) Waiting to run
2025-06-23 12:23:49 +02:00
Alejandro Alonso
43b19ba33e
Merge pull request #6738 from penpot/ladybenko-11247-enable-dpr-when-render-wasm
...
🔧 Enable render-wasm-dpr by default
2025-06-23 11:46:24 +02:00
Alejandro Alonso
c97314ddb5
🐛 Fix empty fills
2025-06-23 11:14:58 +02:00
Belén Albeza
56d96aaf07
🔧 Enable render-wasm-dpr by default
2025-06-20 12:48:49 +02:00
Alejandro Alonso
5c7a4ce5b7
🐛 Fix fill images for text
2025-06-20 07:45:28 +02:00
Alejandro Alonso
d71fa659d5
🐛 Fix asynchronous content rendering
2025-06-19 14:03:40 +02:00
Alejandro Alonso
1c7aea4b84
🐛 Fix focus mode for wasm render
2025-06-17 16:42:45 +02:00
Elena Torró
01311225c7
Merge pull request #6695 from penpot/superalex-fix-allocate-0-bytes-path-attrs
...
🐛 Fix wasm render path issues
2025-06-17 14:44:15 +02:00
Alejandro Alonso
1bb6f2754c
🐛 Fix allocate 0 bytes for path attrs
2025-06-17 08:43:00 +02:00
alonso.torres
0be8a6e0e6
✨ Add grid helpers to wasm
2025-06-16 09:55:35 +02:00
Elena Torró
f02dd9f8dc
Merge pull request #6651 from penpot/superalex-path-fixes
...
Commit Message Check / Check Commit Message (push) Waiting to run
🐛 Path fixes
2025-06-10 12:11:25 +02:00