♻️ Refactor minor things

This commit is contained in:
Aitor Moreno
2026-02-02 09:34:37 +01:00
committed by Elena Torro
parent a14c36e996
commit 54f63c5dc5
5 changed files with 79 additions and 48 deletions

View File

@@ -249,7 +249,7 @@
(let [fonts (f/get-content-fonts content)
fallback-fonts (fonts-from-text-content content true)
all-fonts (concat fonts fallback-fonts)
result (f/store-fonts shape-id all-fonts)]
result (f/store-fonts all-fonts)]
(f/load-fallback-fonts-for-editor! fallback-fonts)
(h/call wasm/internal-module "_update_shape_text_layout")
result))

View File

@@ -240,3 +240,12 @@ export const RawGrowType = {
"auto-height": 2,
};
export const CursorDirection = {
"backward": 0,
"forward": 1,
"line-before": 2,
"line-after": 3,
"line-start": 4,
"line-end": 5,
};