3 ms·
He could have just used SVG path syntax which would have been a lot more compact that the current syntax. {"p2":{"x":141,"y":85},"mode":"line","p1":{"x":34,"
by speps 4y ago
He could have just used SVG path syntax which would have been a lot more compact that the current syntax.
{"p2":{"x":141,"y":85},"mode":"line","p1":{"x":34,"y":44}}
becomes
M 34 44 L 141 85
and of course also has ways to express curved paths, etc.
- aidos 4y agoMy thoughts exactly. Svg path format is great and would fit nicely here.
- quickthrower2 4y agoYou can write simple svg but if you are interpreting all of svg it is not simple to write that code. Mozilla hasn’t successfully implemented it all properly for example.
- boondaburrah 4y agoJust like Abiword's document format doesn't cover all of HTML, but it is itself perfectly parseable as HTML, I don't think this editor has to.
- vidarh 4y agoThat's true, but they're explicitly suggesting SVG path syntax which is very simple. The downside is it's also very limited, and might well prove too limited for the author going forward.
- andsoitis 4y ago> Mozilla hasn’t successfully implemented it all properly for example. interesting. I didn't know that. I tried googling to find out what parts are not implemented but couldn't find anything (admittedly not a long search). Do you have more information you can point me to?
- quickthrower2 4y agoI found bugs in the position of text along a path using baseline etc. I need to dig up the code to find it.