You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you add a tab to a list, the text is moved to the next line, and the list marker stays at the same position as the previous line.
I tried to change the code, reusing the rowMargin property in Element.ts, using the same logic that the css uses for some properties: "0 0 0 0' (top, right, bottom and left). Changed the Draw.ts file method drawRow(), ListParticle.ts drawListStyle() method, and some other files with adaptations that were necessary due to rowMargin's type change, and helper functions, I even got the result I wanted.
But when the cursor passes over the region you notice that it has extra spacing. Maybe that's right, because it was just right-aligned, not added a tab.
@douglasmatheus Just out of curiosity, how long did it take you to study the codebase and how long did it take you to implement the sublist / nested list / tab for lists?
Hi @Imran17507 , the implementation didn't take long once I found the right places. It took some time to understand the logic, but nothing too complicated as it is well separated and organized.
However, the processing is relatively complex, but I've been following the implementations for a while, with each new feat I look at the changes to familiarize myself with the code, so it wasn't that complicated.
What problem does this feature solve?
Is it possible to add indentation/tab for lists?
Currently if you add a tab to a list, the text is moved to the next line, and the list marker stays at the same position as the previous line.
I tried to change the code, reusing the rowMargin property in Element.ts, using the same logic that the css uses for some properties: "0 0 0 0' (top, right, bottom and left). Changed the Draw.ts file method drawRow(), ListParticle.ts drawListStyle() method, and some other files with adaptations that were necessary due to rowMargin's type change, and helper functions, I even got the result I wanted.
But when the cursor passes over the region you notice that it has extra spacing. Maybe that's right, because it was just right-aligned, not added a tab.
canvas-editor.Mozilla.Firefox.2023-08-25.11-02-07.mp4
Do you have any tweak suggestions, or do you intend to tweak this in the future? Or do you have no plans for that either?
What does the proposed API look like?
Make it possible to add indentation to lists.
The text was updated successfully, but these errors were encountered: