Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stringifies path data with extra 0s #1944

Closed
KTibow opened this issue Jan 27, 2024 · 1 comment · Fixed by #1945
Closed

Stringifies path data with extra 0s #1944

KTibow opened this issue Jan 27, 2024 · 1 comment · Fixed by #1945
Labels

Comments

@KTibow
Copy link
Contributor

KTibow commented Jan 27, 2024

Describe the bug
There's extra 0s introduced when stringifying path data.
image

To Reproduce
Use this SVG with default settings as input:

<svg fill="none" viewBox="0 0 138 30" xmlns="http://www.w3.org/2000/svg">
<path d="M17.807 0.983607C16.9459 0.986426 16.8786 0.996399 16.2526 1.21327C15.4734 1.48325 14.871 1.83265 14.3051 2.34328L13.8892 2.71867L13.4913 2.38295C12.3723 1.43875 11.3846 1.05902 10.0278 1.05151C9.14339 1.04663 8.61597 1.1581 7.92442 1.49604C6.30389 2.28794 5.3646 3.66767 5.20112 5.49676L5.15761 5.98416L4.66752 6.02781C3.1898 6.15917 2.14174 6.64042 1.21336 7.61378C0.720582 8.13044 0.379138 8.7206 0.149049 9.45353C0.025715 9.84639 -0.00114519 10.0718 3.67457e-05 10.7004C0.00222865 11.7658 0.225233 12.4919 0.830904 13.4063C1.14304 13.8775 1.89398 14.6344 2.33721 14.9244L2.6186 15.1084L2.40424 15.2705C0.751332 16.5197 -0.0611145 18.0767 0.0513361 19.7795C0.163281 21.4746 1.1202 22.8767 2.68974 23.645C3.35315 23.9698 3.89009 24.1097 4.79622 24.1939L5.22234 24.2336L5.26693 24.7425C5.36643 25.8771 5.80801 26.8794 6.55521 27.6669C7.24712 28.3962 8.00701 28.8482 8.87056 29.0438C9.11807 29.0999 9.37848 29.1595 9.4492 29.1762V29.1763C9.74365 29.2458 10.9442 29.1531 11.378 29.0275C12.0903 28.8212 12.9282 28.3667 13.5177 27.867L14.0503 27.4156L14.4495 27.775C15.7123 28.9116 17.5723 29.3828 19.1477 28.9651C21.1022 28.4468 22.5445 26.6983 22.7012 24.6569L22.7441 24.0973L23.1686 24.0967C23.6082 24.0962 24.4262 23.9287 24.9179 23.7384C25.8122 23.3923 26.8465 22.5235 27.3081 21.7311C27.6596 21.1276 27.8729 20.4075 27.9147 19.6824C28.0107 18.0173 27.2527 16.4891 25.7705 15.3599C25.51 15.1614 25.2969 14.9935 25.2969 14.9866C25.2969 14.9798 25.4559 14.8651 25.6503 14.7319C26.2988 14.2877 27.0887 13.3421 27.4154 12.6189C28.0039 11.3162 28.0084 9.9149 27.4278 8.71815C26.6375 7.0891 25.1411 6.10441 23.2388 5.96158L22.6773 5.91931L22.6341 5.39009C22.4673 3.34579 21.1777 1.75233 19.1869 1.13056C18.7763 1.00234 18.5771 0.980948 17.807 0.983607ZM10.0736 3.80442C10.2964 3.80561 10.5221 3.83418 10.7466 3.89263C11.2972 4.03595 11.6967 4.28103 12.1032 4.72445C12.544 5.20529 12.863 5.79358 13.0687 6.5056C13.339 7.44123 13.3716 7.96336 13.3507 11.0045L13.3334 13.5314H14.4968L14.4985 11.2426C14.5009 8.42546 14.5466 7.62842 14.7535 6.79645C15.0583 5.5709 15.7675 4.55346 16.6038 4.14197C17.6429 3.63067 18.8223 3.80266 19.6828 4.59077C20.361 5.21191 20.6701 5.9107 20.6683 6.81843C20.6676 7.20961 20.5646 7.8203 20.4491 8.1198C20.4133 8.2125 20.4515 8.21097 20.8372 8.10409C21.3552 7.96053 22.2536 7.9478 22.7396 8.07708C23.8054 8.36062 24.6014 9.1203 24.856 10.097C24.9871 10.6002 24.9772 11.001 24.8222 11.4606C24.5628 12.2303 24.0078 12.8042 23.0987 13.2429C22.0761 13.7362 21.0718 13.9121 19.4112 13.8885C18.8387 13.8804 17.4987 13.866 16.4334 13.8563V13.8562L14.5372 13.8389H12.8238L10.3709 13.8453C8.74269 13.8496 7.21518 13.8303 6.97645 13.8024C5.08281 13.5815 3.74616 12.839 3.1864 11.697C3.0172 11.3518 3.00136 11.2623 3.00136 10.6569C3.00136 10.0336 3.01363 9.96949 3.21083 9.5692C3.67 8.63713 4.56345 8.05457 5.74389 7.91761C6.09839 7.87647 7.15421 8.01994 7.37799 8.13964C7.48514 8.19696 7.48482 8.18096 7.37188 7.81827C7.20935 7.296 7.20945 6.33949 7.37234 5.81646C7.75355 4.59219 8.8707 3.79801 10.0736 3.80442ZM8.5365 16.2433C9.13729 16.2405 9.8863 16.2454 10.6859 16.2584L11.709 16.2752V16.2714H14.5459V16.2668L17.6863 16.2944C21.1099 16.3244 21.1881 16.3319 22.3501 16.738C23.3428 17.085 24.1798 17.7639 24.5526 18.525C24.7142 18.8549 24.7314 18.953 24.7317 19.5509C24.7322 20.1378 24.713 20.2524 24.5622 20.5739C24.246 21.2483 23.5806 21.8114 22.8306 22.0389C22.3883 22.173 21.3655 22.1598 20.8372 22.0134C20.4899 21.9172 20.416 21.9116 20.4438 21.984C20.613 22.4248 20.6804 22.9088 20.6549 23.4996C20.6297 24.084 20.606 24.186 20.3978 24.6071C20.1159 25.1772 19.6915 25.591 19.1088 25.8643C18.7412 26.0366 18.6063 26.065 18.0869 26.0797C17.7143 26.0903 17.3934 26.0652 17.2365 26.0134C16.4368 25.7489 15.6908 25.0628 15.2752 24.2096C14.6841 22.996 14.6174 22.5063 14.5782 19.0893L14.5497 16.5914H13.3962L13.4125 19.1985C13.4279 21.6355 13.4144 22.1931 13.3284 22.717C13.2075 23.4529 12.9788 24.1661 12.7124 24.6387C12.47 25.0686 11.8623 25.722 11.5169 25.9239C10.9364 26.2633 10.0543 26.3735 9.38783 26.1898C8.6375 25.9829 7.90108 25.3411 7.54334 24.5824C7.37111 24.2172 7.34709 24.0952 7.32638 23.4747C7.30962 22.9725 7.33168 22.666 7.40516 22.3793C7.46129 22.1604 7.49833 21.9724 7.48746 21.9615C7.47658 21.9506 7.32729 21.9862 7.15569 22.0406C6.71074 22.1815 5.56323 22.183 5.1115 22.0432C4.30424 21.7933 3.63177 21.2342 3.2806 20.5213C3.07568 20.1053 3.06441 20.0479 3.06441 19.4169C3.06441 18.7851 3.0752 18.7299 3.27755 18.3315C3.86212 17.1804 5.29303 16.4442 7.276 16.2744C7.48306 16.2567 7.9357 16.2462 8.5365 16.2433Z" fill="currentColor"></path>
<path d="M80.4656 25.1031C80.0778 24.8592 79.9663 24.5212 79.9663 23.5899C79.9663 22.8298 79.9553 22.7719 79.8045 22.7325C79.6883 22.7021 79.6501 22.6394 79.6685 22.5095C79.6923 22.3417 79.7299 22.3289 80.1996 22.3289C80.6693 22.3289 80.7068 22.3417 80.7306 22.5095C80.7493 22.6418 80.7106 22.7021 80.5861 22.7347C80.4225 22.7774 80.4172 22.8098 80.4458 23.5801C80.4723 24.2965 80.4951 24.402 80.6621 24.5798C80.7648 24.6891 80.9325 24.7786 81.0347 24.7786C81.5183 24.7786 81.676 24.4396 81.6767 23.3982C81.677 22.8083 81.6646 22.7566 81.5216 22.7566C81.4006 22.7566 81.366 22.7048 81.366 22.5233V22.29H81.8715H82.377V22.5233C82.377 22.6788 82.3381 22.7566 82.2604 22.7566C82.164 22.7566 82.1438 22.8996 82.1438 23.577C82.1438 24.4569 82.0803 24.6725 81.7241 25.0054C81.4457 25.2655 80.803 25.3154 80.4656 25.1031Z" fill="currentColor"></path>
<path d="M70.3242 24.9341C70.3242 24.7786 70.3631 24.7008 70.4409 24.7008C70.5383 24.7008 70.5575 24.5409 70.5575 23.7287C70.5575 22.9165 70.5383 22.7566 70.4409 22.7566C70.3631 22.7566 70.3242 22.6788 70.3242 22.5233V22.29H70.8297H71.3352V22.5233C71.3352 22.6788 71.2963 22.7566 71.2185 22.7566C71.1211 22.7566 71.1019 22.9165 71.1019 23.7287C71.1019 24.5409 71.1211 24.7008 71.2185 24.7008C71.2963 24.7008 71.3352 24.7786 71.3352 24.9341V25.1674H70.8297H70.3242V24.9341Z" fill="currentColor"></path>
<path d="M72.5 24.9377C72.5 24.779 72.5385 24.7008 72.6166 24.7008C72.7141 24.7008 72.7333 24.541 72.7333 23.7287C72.7333 22.9165 72.7141 22.7566 72.6166 22.7566C72.5389 22.7566 72.5 22.6789 72.5 22.5233C72.5 22.2911 72.502 22.29 72.9471 22.2907L73.3943 22.2914L73.9181 23.2434L74.4419 24.1953L74.443 23.476C74.444 22.8879 74.4229 22.7566 74.3275 22.7566C74.2497 22.7566 74.2109 22.6788 74.2109 22.5233V22.29H74.7163H75.2218V22.5233C75.2218 22.6788 75.183 22.7566 75.1052 22.7566C75.0065 22.7566 74.9885 22.9424 74.9885 23.962V25.1674H74.6827H74.377L73.8282 24.1759L73.2795 23.1843L73.2785 23.9335C73.2777 24.6271 73.2896 24.6858 73.4393 24.7249C73.5556 24.7553 73.5938 24.818 73.5754 24.9479C73.5519 25.1138 73.507 25.1304 73.0249 25.1515L72.5 25.1745V24.9376V24.9377Z" fill="currentColor"></path>
<path d="M76.2344 22.29V22.5233C76.2344 22.6788 76.2733 22.7566 76.351 22.7566C76.4485 22.7566 76.4677 22.9165 76.4677 23.7287C76.4677 24.5409 76.4485 24.7008 76.351 24.7008C76.2733 24.7008 76.2344 24.7786 76.2344 24.9341V25.1674H76.9293C77.3114 25.1674 77.7226 25.1301 77.843 25.0845C78.5656 24.8107 78.9206 23.853 78.5761 23.1066C78.2803 22.4657 77.9259 22.29 76.9293 22.29H76.2344ZM77.012 22.7566H77.2783C77.6164 22.7566 77.9805 23.0533 78.1049 23.4301C78.2282 23.8036 78.0984 24.2348 77.7824 24.5006C77.6283 24.6303 77.4509 24.7008 77.2783 24.7008H77.012V23.7287V22.7566Z" fill="currentColor"></path>
<path d="M83.8176 25.0937C83.5703 24.9921 83.2344 24.5647 83.2344 24.3516C83.2344 24.1799 83.2676 24.1565 83.5106 24.1565C83.7477 24.1565 83.7984 24.1896 83.8683 24.3903C84.0147 24.8101 84.712 24.7806 84.712 24.3546C84.712 24.1386 84.5008 23.9977 83.9579 23.8517C83.3066 23.6765 83.0964 23.0006 83.5391 22.5052C83.7514 22.2675 83.7986 22.2512 84.2735 22.2512C84.7478 22.2512 84.7994 22.2689 85.0606 22.5221C85.4207 22.8711 85.4067 23.0973 85.023 23.1294C84.8051 23.1477 84.7354 23.118 84.6731 22.9803C84.5553 22.7198 84.3676 22.6332 84.1141 22.7224C83.8752 22.8064 83.7937 23.015 83.9338 23.1837C83.9833 23.2434 84.2515 23.368 84.5297 23.4606C84.92 23.5905 85.0696 23.6848 85.1845 23.8733C85.3658 24.1705 85.3711 24.3272 85.2114 24.6637C85.0134 25.081 84.3128 25.2971 83.8176 25.0937Z" fill="currentColor"></path>
<path d="M86.8613 25.1158C86.7513 25.0059 86.8156 24.7626 86.965 24.7236C87.1099 24.6857 87.1205 24.6175 87.1205 23.7199V22.7569H86.8872C86.7033 22.7569 86.6539 22.7909 86.6539 22.9173C86.6539 23.0515 86.6125 23.0738 86.4011 23.0534C86.1571 23.0299 86.1484 23.0171 86.1484 22.6791V22.3292L87.4121 22.3078L88.6758 22.2864V22.6772C88.6758 23.0595 88.6708 23.0679 88.4425 23.0679C88.2611 23.0679 88.2092 23.0334 88.2092 22.9124C88.2092 22.7865 88.1574 22.7569 87.9371 22.7569H87.6649V23.729C87.6649 24.5412 87.6841 24.7011 87.7815 24.7011C87.8593 24.7011 87.8982 24.7788 87.8982 24.9344V25.1677H87.4056C87.1348 25.1677 86.8898 25.1443 86.8613 25.1158Z" fill="currentColor"></path>
<path d="M89.6875 22.2764V22.5167C89.6875 22.6783 89.7256 22.7568 89.8041 22.7568C89.9016 22.7568 89.9208 22.9167 89.9208 23.7289C89.9208 24.5412 89.9016 24.701 89.8041 24.701C89.7264 24.701 89.6875 24.7788 89.6875 24.9343V25.1676H90.193H90.6985V24.9343C90.6985 24.7788 90.6596 24.701 90.5818 24.701C90.4937 24.701 90.4652 24.606 90.4652 24.3122C90.4652 23.9604 90.4819 23.9235 90.6401 23.9246C90.9647 23.9268 91.0839 24.0925 91.2404 24.7593L91.3361 25.1676H91.6783C92.0036 25.1676 92.0205 25.1566 92.0205 24.9434C92.0205 24.7846 91.9751 24.7074 91.865 24.6785C91.7794 24.6562 91.7079 24.5733 91.7061 24.4945C91.7042 24.4156 91.6531 24.2118 91.5925 24.0417C91.4907 23.7559 91.494 23.7199 91.6349 23.57C91.8574 23.3332 91.84 22.8268 91.5998 22.5472C91.4184 22.3362 91.3839 22.3283 90.5499 22.3028L89.6875 22.2764ZM90.4652 22.7568H90.7607C91.0929 22.7568 91.2428 22.8657 91.2428 23.1068C91.2428 23.1966 91.2009 23.3122 91.1496 23.3635C91.0982 23.4148 90.9233 23.4567 90.7607 23.4567H90.4652V23.1068V22.7568Z" fill="currentColor"></path>
<path d="M93.1094 24.9341C93.1094 24.7786 93.1482 24.7008 93.226 24.7008C93.3235 24.7008 93.3427 24.5409 93.3427 23.7287C93.3427 22.9165 93.3235 22.7566 93.226 22.7566C93.1482 22.7566 93.1094 22.6788 93.1094 22.5233V22.29H93.6148H94.1203V22.5233C94.1203 22.6788 94.0814 22.7566 94.0037 22.7566C93.9062 22.7566 93.887 22.9165 93.887 23.7287C93.887 24.5409 93.9062 24.7008 94.0037 24.7008C94.0814 24.7008 94.1203 24.7786 94.1203 24.9341V25.1674H93.6148H93.1094V24.9341Z" fill="currentColor"></path>
<path d="M96.1577 22.282L96.0066 22.6944C95.9235 22.9212 95.7365 23.4529 95.5912 23.876C95.413 24.3944 95.2825 24.6571 95.1908 24.682C95.1012 24.7064 95.0547 24.7958 95.0547 24.9434C95.0547 25.1676 95.0549 25.1676 95.5602 25.1676H96.0657V24.9408C96.0657 24.8161 96.0281 24.7015 95.9821 24.6861C95.9316 24.6693 95.9195 24.5743 95.9516 24.4463C96.0019 24.2461 96.0298 24.2344 96.4554 24.2344C96.8861 24.2344 96.9096 24.2447 96.9873 24.4677C97.0367 24.6094 97.0397 24.701 96.9949 24.701C96.9544 24.701 96.9211 24.806 96.9211 24.9343V25.1676H97.4266H97.9321V24.9343C97.9321 24.7641 97.8953 24.701 97.796 24.7009C97.6911 24.7007 97.5619 24.4289 97.2322 23.5149L96.8045 22.3291L96.4811 22.3056L96.1577 22.282ZM96.4545 23.0679C96.5013 23.0679 96.6878 23.5881 96.6878 23.7184C96.6878 23.7456 96.5828 23.7678 96.4545 23.7678C96.3262 23.7678 96.2212 23.7456 96.2212 23.7184C96.2212 23.5881 96.4078 23.0679 96.4545 23.0679Z" fill="currentColor"></path>
<path d="M98.8633 24.9341C98.8633 24.7786 98.9022 24.7008 98.98 24.7008C99.0775 24.7008 99.0966 24.5409 99.0966 23.7287C99.0966 22.9165 99.0775 22.7566 98.98 22.7566C98.9022 22.7566 98.8633 22.6788 98.8633 22.5233V22.29H99.3688H99.8743V22.5233C99.8743 22.6788 99.8354 22.7566 99.7577 22.7566C99.6602 22.7566 99.641 22.9169 99.641 23.7326V24.7086L100.089 24.6852C100.512 24.6632 100.537 24.6505 100.56 24.448C100.581 24.2689 100.622 24.2342 100.813 24.2342C101.04 24.2342 101.041 24.2365 101.041 24.7008V25.1674H99.9521H98.8633V24.9341Z" fill="currentColor"></path>
<path d="M43.3462 24.9252C42.097 24.7803 40.4967 24.2413 39.4523 23.6135C37.1803 22.248 35.6613 20.045 35.1194 17.3294C34.9138 16.2992 34.9331 14.2576 35.1582 13.2157C35.5954 11.1928 36.4666 9.4631 37.7187 8.1321C39.6429 6.08659 42.2391 5.08283 45.2827 5.20763C46.7434 5.26752 47.9165 5.54841 49.2187 6.15003L49.7875 6.41283L49.7709 5.89429L49.7543 5.37575H50.882H52.0096L52.0299 8.58599L52.0502 11.7963L51.06 11.7745L50.0697 11.7527L49.8906 11.0528C49.4897 9.48608 48.5946 8.23713 47.5282 7.75658C46.1122 7.11854 44.4067 7.13384 43.0405 7.79684C42.3824 8.11618 41.5585 8.85066 41.0344 9.58518C40.1342 10.8467 39.6062 12.7985 39.6065 14.8634C39.607 18.6286 41.1532 21.5051 43.6233 22.3363C46.0617 23.1568 49.3041 22.166 51.3666 19.9702C51.6546 19.6636 51.9421 19.4128 52.0056 19.4128C52.1669 19.4128 53.3705 20.4897 53.3705 20.634C53.3705 20.7997 52.4527 21.8692 51.8652 22.3882C50.8818 23.257 50.0015 23.7853 48.799 24.2284C47.0029 24.8902 45.1198 25.1308 43.3462 24.9252Z" fill="currentColor"></path>
<path d="M54.4738 24.3316L54.4984 24.1177H61.8086H69.1187L69.1433 24.3316L69.1679 24.5454H61.8086H54.4492L54.4738 24.3316Z" fill="currentColor"></path>
<path d="M102.614 24.3316L102.639 24.1177H108.433H114.226L114.251 24.3316L114.276 24.5454H108.433H102.59L102.614 24.3316Z" fill="currentColor"></path>
<path d="M124.858 23.8832C124.839 23.8512 123.996 21.6981 122.986 19.0986C121.119 14.2973 120.731 13.2069 120.236 11.3841L119.959 10.3629L119.954 15.4768C119.951 18.2895 119.928 20.8 119.902 21.0557L119.854 21.5207H120.788H121.721L121.701 22.5986L121.68 23.6766H118.807H115.934V22.7311V21.7856L116.413 21.725C117.186 21.6271 117.452 21.3419 117.584 20.4684C117.625 20.1942 117.694 17.4169 117.737 14.2965C117.779 11.1761 117.835 8.32098 117.861 7.95178L117.907 7.28051L116.994 7.30879L116.081 7.33707L116.061 6.25911L116.041 5.18115H118.862H121.684L122.962 8.64196C125.537 15.6132 125.865 16.5163 126.313 17.8745L126.769 19.2588L127.127 18.1771C127.488 17.0855 131.443 5.88308 131.628 5.427L131.728 5.18115H134.642H137.555V6.10999V7.03882L137.04 7.1221C136.451 7.21741 136.208 7.35418 136.042 7.68454C135.784 8.19633 135.781 8.64421 135.999 14.6099C136.115 17.8076 136.19 20.6696 136.164 20.9701L136.118 21.5164L137.039 21.5375L137.96 21.5585L137.982 22.4663C137.994 22.9655 137.984 23.4509 137.962 23.5449L137.92 23.7159L134.441 23.6962L130.962 23.6766L130.941 22.7485C130.918 21.708 130.873 21.7859 131.548 21.708C131.907 21.6664 132.028 21.6138 132.222 21.4143C132.69 20.9345 132.709 20.5355 132.51 15.5781C132.448 14.0411 132.376 12.195 132.349 11.4757C132.323 10.7564 132.279 10.1535 132.252 10.1361C132.224 10.1186 131.229 12.8517 130.041 16.2096C128.853 19.5676 127.749 22.6809 127.589 23.1282L127.298 23.9414H126.096C125.434 23.9414 124.878 23.9152 124.858 23.8832Z" fill="currentColor"></path>
<path d="M54.4887 23.2671C54.4649 23.2052 54.4577 23.0913 54.4726 23.0139C54.4985 22.8795 54.8196 22.8733 61.8087 22.8733H69.1178V23.1066V23.3399L61.8248 23.3598C55.5206 23.3769 54.526 23.3643 54.4887 23.2671Z" fill="currentColor"></path>
<path d="M102.629 23.2672C102.605 23.2053 102.598 23.0913 102.613 23.0139C102.639 22.8798 102.906 22.8733 108.432 22.8733H114.225V23.1066V23.3399L108.449 23.3599C103.465 23.3771 102.666 23.3643 102.629 23.2672Z" fill="currentColor"></path>
<path d="M54.8658 19.7827L54.8881 18.9849L55.4642 18.9222C56.2204 18.8399 56.4563 18.7097 56.6641 18.26C56.8268 17.908 56.8328 17.7913 56.8518 14.6688C56.8626 12.8937 56.8802 10.4703 56.8908 9.28331L56.91 7.1252L55.8796 7.12526L54.8492 7.12532V6.231V5.33667H59.0098H63.1702V6.10058V6.86448L62.5387 6.94786C61.8175 7.04309 61.5724 7.18413 61.3428 7.63583C61.2015 7.91385 61.1849 8.12527 61.1619 9.9444L61.1367 11.9469H64.9472H68.7576L68.7832 9.55556C68.7973 8.24032 68.8058 7.15546 68.8021 7.14477C68.7984 7.13407 68.3347 7.12533 67.7716 7.12533H66.7476V6.231V5.33667H70.9081H75.0687V6.10429V6.8719L74.4519 6.95065C73.6973 7.04699 73.4239 7.22079 73.2278 7.72901C73.0966 8.06914 73.0827 8.50634 73.0468 13.4245C73.0254 16.3544 73.0132 18.7627 73.0197 18.7763C73.0262 18.7899 73.481 18.7899 74.0306 18.7763L75.0299 18.7516L75.0518 19.666L75.0736 20.5805L70.9301 20.5604L66.7865 20.5402V19.7626V18.9849L67.3698 18.9218C68.0612 18.8471 68.3642 18.6913 68.5751 18.3024C68.7177 18.0394 68.7327 17.8418 68.7548 15.9145L68.7788 13.8133H64.9703H61.1617L61.1343 16.2825C61.1192 17.6405 61.1127 18.7627 61.1199 18.7763C61.127 18.7899 61.5826 18.7899 62.1321 18.7763L63.1315 18.7516V19.6459V20.5402L58.9875 20.5604L54.8438 20.5805L54.8658 19.7827Z" fill="currentColor"></path>
<path d="M84.7029 4.948L84.4812 5.43405C83.4891 7.61032 78.6627 17.5196 78.433 17.8517C78.0823 18.3588 77.5273 18.7575 77.0739 18.828C76.4305 18.9281 76.4692 18.8677 76.4692 19.7679V20.5793H79.5824H82.6955L82.6736 19.6267L82.6517 18.674L81.7299 18.6985C81.1586 18.7136 80.8185 18.6942 80.8356 18.6476C80.8508 18.6062 81.1255 18.028 81.4463 17.3626L82.0296 16.1528L83.5849 16.1494C84.4404 16.1476 85.7964 16.1232 86.5981 16.0952L88.0558 16.0442L88.4381 16.8545C88.8777 17.7863 88.9689 18.1543 88.8388 18.4685C88.7332 18.7235 88.3203 18.9462 87.9528 18.9462C87.8131 18.9462 87.6569 18.9881 87.6056 19.0394C87.5001 19.1449 87.4765 20.3249 87.5768 20.4829C87.6257 20.5599 88.4595 20.5765 91.4835 20.5606L95.3278 20.5404V19.6461V18.7518H94.5245H93.721L93.5442 18.2074C93.281 17.3975 93.1998 17.2325 90.3339 11.6749C88.8781 8.85192 87.5074 6.18353 87.2879 5.74511L86.8887 4.948H85.7957H84.7029ZM85.0028 8.78595C85.0867 8.77728 85.1662 8.93729 85.2594 9.26409C85.4961 10.0942 85.8818 11.0182 86.7162 12.7524C87.3679 14.1072 87.512 14.4659 87.4259 14.5204C87.3665 14.5581 86.2756 14.5893 85.0018 14.59C82.9921 14.591 82.6797 14.5754 82.64 14.472C82.6146 14.4057 82.9112 13.6614 83.3077 12.7966C84.0496 11.1787 84.4139 10.2821 84.7202 9.31984C84.8309 8.97195 84.919 8.79461 85.0028 8.78595Z" fill="currentColor"></path>
<path d="M101.211 5.27734C99.53 5.27508 98.101 5.28886 97.7001 5.31425L96.728 5.37576V6.2312V7.08665L97.7388 7.10821L98.7499 7.12978L98.73 12.3186C98.7191 15.1725 98.6918 17.6486 98.6694 17.8211C98.6171 18.2251 98.3891 18.5965 98.1024 18.7448C97.9777 18.8092 97.6349 18.8861 97.3407 18.9156C97.0464 18.9451 96.78 19.0078 96.7486 19.0549C96.6772 19.162 96.6705 20.457 96.741 20.5275C96.7695 20.556 98.7128 20.5793 101.059 20.5793H105.326L105.304 19.6655L105.282 18.7517L104.115 18.7736L102.948 18.7953L103 18.1126C103.029 17.737 103.055 16.826 103.059 16.0882L103.066 14.7467H103.748H104.431L104.867 15.1939C105.106 15.4398 105.923 16.4109 106.683 17.3519C108.159 19.1806 108.895 19.9881 109.419 20.3536L109.746 20.5816L112.141 20.5609L114.536 20.5404V19.767V18.9937L114.031 18.9082C113.055 18.7434 112.68 18.4458 110.862 16.3956C109.721 15.1092 109.205 14.6333 108.634 14.3422L108.321 14.1823L109.056 13.9642C110.253 13.6097 111.17 13.1045 111.862 12.4176C112.94 11.3485 113.279 10.2877 112.985 8.90066C112.818 8.1157 112.514 7.56855 111.952 7.04214C111.278 6.41238 110.546 6.05339 109.248 5.7163C107.814 5.34389 107.452 5.31923 102.949 5.28508C102.361 5.28062 101.772 5.27809 101.211 5.27734ZM104.893 6.78879C106.794 6.78934 108.248 7.49177 108.623 8.5902C108.911 9.43747 108.844 10.6677 108.465 11.4525C108.096 12.2192 107.284 12.7723 106.202 12.9956C105.561 13.1276 104.163 13.1922 103.415 13.1242L102.871 13.0747V10.4306C102.871 7.85679 102.876 7.77807 103.042 7.46743C103.309 6.96876 103.8 6.78846 104.893 6.78879Z" fill="currentColor"></path>
</svg>

Expected behavior
Don't include the excessive 0s.

Desktop (please complete the following information):

  • SVGO Version: latest
  • NodeJs Version: 20
  • OS: Fedora 36
@KTibow KTibow added the bug label Jan 27, 2024
@KTibow
Copy link
Contributor Author

KTibow commented Jan 27, 2024

I suspect this is the thing where mergePaths forgets to set a default for floatPrecision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant