-
Hi @caksoylar, thanks for your wonderful tools. I have used it to draw my keymap for some time. But after I editing config heavily. Each time I try to draw svg from yaml. You can try with my repo: https://github.com/haunt98/qmk_keymaps The config is stores here:
The changed is showed in this commit: haunt98/qmk_keymaps@f186a04 As I understand, the order when generate svg is not consistent. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Just to confirm, the generated SVGs look identical right? I think I know why this happens. A set data structure is used to look up all the glyphs used in the keymap, then we fetch the the SVG defs and write them. Set is not guaranteed to preserve item ordering so I guess the written order might change. This shouldn't affect the visual but it is annoying to create unnecessary diffs. I will sort the glpyh SVGs before writing so the order doesn't change across runs. |
Beta Was this translation helpful? Give feedback.
-
This was because the SVG glyph definitions order in the output SVG file was not deterministic, it is resolved by 6e7ac69. |
Beta Was this translation helpful? Give feedback.
This was because the SVG glyph definitions order in the output SVG file was not deterministic, it is resolved by 6e7ac69.