-
Notifications
You must be signed in to change notification settings - Fork 277
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
fromSVGPathData throwing error while parsing svg path Cannot read properties of null (reading 'intersectionPoints') #601
Comments
Same issue for the below path |
An error occurred while converting SVG Path to a Makejs model.
const myModel = importer.fromSVGPathData(belowSvgPath);
Error: Cannot read properties of null (reading 'intersectionPoints')
M120.166-26.2364 120.1626-26.2362 120.166-26.2364 120.1677-26.2366 120.1693-26.2367 120.1705-26.2368 120.1727-26.237 120.1761-26.2373 120.1795-26.2376 120.1828-26.2378 120.1862-26.2381A15.421 15.421 0 00120.246-26.2432 2.7921 2.7921 0 00120.2888-26.2472.3573.3573 0 00120.3122-26.2502.0397.0397 0 00120.3149-26.2503.3341.3341 0 00120.3201-26.2508 1.1731 1.1731 0 00120.3289-26.2518 2.7746 2.7746 0 00120.3388-26.2529 5.3986 5.3986 0 00120.354-26.2547 10.1343 10.1343 0 00120.3763-26.2573 9.9975 9.9975 0 00120.3791-26.2577 16.9886 16.9886 0 00120.4018-26.2604 21.5566 21.5566 0 00120.4193-26.2625 25.0916 25.0916 0 00120.4293-26.2638 19.6784 19.6784 0 00120.4361-26.2646 13.5775 13.5775 0 00120.4394-26.265L120.4407-26.2652A1.6896 1.6896 0 00121.412-26.737 3.265 3.265 0 00121.9892-27.5149 9.5727 9.5727 0 00122.4535-28.4952 22.1935 22.1935 0 00122.5043-28.6176 36.4725 36.4725 0 00122.6578-28.9974L129.702-46.6173A21.0642 21.0642 0 01129.7965-46.8424 10.4588 10.4588 0 01129.8848-47.0438 5.537 5.537 0 01129.9852-47.2548 2.8699 2.8699 0 01130.0943-47.4532 2.0124 2.0124 0 01130.0966-47.4569 1.363 1.363 0 01130.2404-47.6551.5617.5617 0 01130.4379-47.8108.5617.5617 0 01130.6781-47.8647.5579.5579 0 01130.6835-47.8647.6229.6229 0 01130.6879-47.8647.6284.6284 0 01131.1115-47.7005 1.2535 1.2535 0 01131.3396-47.4232 3.3767 3.3767 0 01131.5328-47.0631 7.3384 7.3384 0 01131.5816-46.9578 12.977 12.977 0 01131.6638-46.7724L134.1914-40.4916 138.6205-29.5206A18.6048 18.6048 0 00139.035-28.6028 12.4737 12.4737 0 00139.4171-27.8757 7.7704 7.7704 0 00139.8231-27.2336 4.3633 4.3633 0 00140.1947-26.7727 2.15 2.15 0 00140.5521-26.459.864.864 0 00140.8516-26.3205 2.6934 2.6934 0 00140.9723-26.2972 4.9962 4.9962 0 00141.1943-26.2649 8.3082 8.3082 0 00141.3901-26.243 11.4345 11.4345 0 00141.5657-26.2267 14.5626 14.5626 0 00141.6615-26.2189 31.8978 31.8978 0 00141.7399-26.2129 17.2946 17.2946 0 01141.7464-26.2124 9.1699 9.1699 0 01141.7524-26.2119 5.7752 5.7752 0 01141.7581-26.2115 3.1277 3.1277 0 01141.7646-26.211 1.6665 1.6665 0 01141.7707-26.2105.7311.7311 0 01141.7758-26.21.1929.1929 0 01141.7811-26.2095 2.0675 2.0675 0 00141.7945-26.2079 4.637 4.637 0 00141.8849-26.1987 5.2872 5.2872 0 01141.9236-26.1949.7019.7019 0 01142.1725-26.1347.4508.4508 0 01142.2872-26.0522.294.294 0 01142.2946-26.0446.3606.3606 0 01142.3894-25.8619.2572.2572 0 01142.3933-25.8181.207.207 0 01142.3933-25.8168.2008.2008 0 01142.3854-25.7612.184.184 0 01142.3118-25.6613.443.443 0 01142.1685-25.6001 1.3998 1.3998 0 01141.9781-25.5659 3.6369 3.6369 0 01141.74-25.5465 8.2063 8.2063 0 01141.4612-25.5371 16.8493 16.8493 0 01141.1661-25.5345 16.7303 16.7303 0 01141.1493-25.5345L140.9098-25.5373 135.8344-25.5914 135.6967-25.5975A2.1182 2.1182 0 00135.6793-25.5985 2.9375 2.9375 0 00135.5411-25.6017 2.9236 2.9236 0 00135.5328-25.6017 8.444 8.444 0 00135.4009-25.6004 108.8076 108.8076 0 01135.3847-25.6001 7.2101 7.2101 0 01135.2745-25.599 2.7623 2.7623 0 01135.2709-25.599 2.6689 2.6689 0 01135.2002-25.6 1.0067 1.0067 0 01135.0061-25.6208.3046.3046 0 01134.8288-25.7199.2762.2762 0 01134.7739-25.8509.312.312 0 01134.7712-25.8701.2551.2551 0 01134.7696-25.8981.1672.1672 0 01134.7696-25.9022.1666.1666 0 01134.7929-25.9873.1666.1666 0 01134.8601-26.0504.4865.4865 0 01134.9711-26.0959 1.8537 1.8537 0 01135.1233-26.1318 74.3792 74.3792 0 01135.2097-26.1491 4.4938 4.4938 0 00135.3002-26.1682.274.274 0 00135.4102-26.2196.2376.2376 0 00135.4889-26.3367.3495.3495 0 00135.5038-26.4377.35.35 0 00135.5038-26.4418.4646.4646 0 00135.5034-26.4597.5598.5598 0 00135.4962-26.5288.7483.7483 0 00135.4806-26.6006.9818.9818 0 00135.4578-26.6739 1056.8064 1056.8064 0 00135.3099-27.0655 1936.9027 1936.9027 0 00134.8443-28.2963L134.8422-28.3017 134.8382-28.3124A16511.5014 16511.5014 0 00134.3491-29.6036 1946.5125 1946.5125 0 01133.9084-30.7679 581.4632 581.4632 0 01133.6654-31.4119 177.1444 177.1444 0 01133.4619-31.9543 38.199 38.199 0 01133.3775-32.1826 2.6401 2.6401 0 01133.3362-32.3L126.6693-32.2911A2.2819 2.2819 0 01126.6688-32.2899 9.0517 9.0517 0 01126.6673-32.2866 17.2329 17.2329 0 01126.6646-32.2801 18.5053 18.5053 0 01126.6614-32.2726 17.1355 17.1355 0 01126.6564-32.2608 13.0882 13.0882 0 01126.6489-32.2432 8.0884 8.0884 0 01126.642-32.2272 4.1345 4.1345 0 01126.6361-32.2135 1.8409 1.8409 0 01126.6328-32.2059.6536.6536 0 01126.6299-32.1995.1529.1529 0 01126.6287-32.1968.0128.0128 0 01126.628-32.1954 2837.4472 2837.4472 0 01126.6115-32.1524 5133.0265 5133.0265 0 01126.565-32.0314 7819.5074 7819.5074 0 01126.476-31.7998 8232.196 8232.196 0 01126.3726-31.5305 7623.9901 7623.9901 0 01126.2089-31.1043 5953.9165 5953.9165 0 01125.9656-30.4712L125.9648-30.469A3585.59 3585.59 0 01125.7237-29.842 1703.2972 1703.2972 0 01125.5351-29.3516 695.085 695.085 0 01125.4266-29.0698 229.7897 229.7897 0 01125.3526-28.8782 49.5408 49.5408 0 01125.3169-28.786 1.7225 1.7225 0 01125.3016-28.7471 7.0129 7.0129 0 00125.1009-28.1727 6.2702 6.2702 0 00124.9767-27.6951 4.3456 4.3456 0 00124.9158-27.3538 2.0644 2.0644 0 00124.8962-27.1203 2.8646 2.8646 0 00124.8955-27.0572 2.5084 2.5084 0 00124.8955-27.0547 2.6118 2.6118 0 00124.8955-27.0522 2.4326 2.4326 0 00124.9009-26.8916 1.692 1.692 0 00124.9168-26.746.9346.9346 0 00124.9577-26.577.4088.4088 0 00125.0167-26.464.5751.5751 0 00125.2841-26.2686.9858.9858 0 00125.4995-26.2206 2.545 2.545 0 00125.7171-26.2049L126.1595-26.1908A2.8204 2.8204 0 01126.1669-26.1908 2.8278 2.8278 0 01126.2975-26.1878 1.3077 1.3077 0 01126.498-26.1644.5718.5718 0 01126.7445-26.0562.7833.7833 0 01126.7483-26.0531.6071.6071 0 01126.773-26.032.4043.4043 0 01126.7971-26.0084.2213.2213 0 01126.8587-25.8842.3978.3978 0 01126.8629-25.8263.3974.3974 0 01126.8629-25.8228.6769.6769 0 01126.8624-25.7964.9447.9447 0 01126.8608-25.768.1641.1641 0 01126.8081-25.6558.3241.3241 0 01126.6928-25.5893.924.924 0 01126.4762-25.5453 1.9955 1.9955 0 01126.3302-25.5367 3.1476 3.1476 0 01126.2537-25.5357 2.3536 2.3536 0 01126.2509-25.5357 4.7776 4.7776 0 01126.2179-25.5359 9.0758 9.0758 0 01126.1878-25.5361 36.7956 36.7956 0 01126.1824-25.5362 21.4887 21.4887 0 00126.1669-25.5363 73532.6482 73532.6482 0 00125.5255-25.5544 30688.4934 30688.4934 0 00124.9824-25.5696 14220.0913 14220.0913 0 00124.4492-25.5846 6314.5352 6314.5352 0 00124.0731-25.5951 2446.855 2446.855 0 00123.6978-25.6056 667.8834 667.8834 0 00123.4224-25.6132 118.1198 118.1198 0 00123.2636-25.6175 4.8382 4.8382 0 00123.1987-25.619L122.6455-25.6006 120.1412-25.5348A1.5992 1.5992 0 01120.0648-25.5366 1.3924 1.3924 0 01119.7636-25.5827.7856.7856 0 01119.5856-25.6538.3442.3442 0 01119.4736-25.749.2243.2243 0 01119.4461-25.7983.287.287 0 01119.4254-25.9054.2894.2894 0 01119.4291-25.9525.2687.2687 0 01119.5037-26.0998.3209.3209 0 01119.6033-26.167.4741.4741 0 01119.7147-26.1997.723.723 0 01119.8335-26.2095.725.725 0 01119.8377-26.2095.9094.9094 0 01119.8432-26.2095 118.8193 118.8193 0 01119.9575-26.2191 132.4735 132.4735 0 01120.0523-26.227 465.0813 465.0813 0 01120.1426-26.2345L120.1459-26.2348A3.4496 3.4496 0 01120.1459-26.2348L120.147-26.2349 120.1492-26.235 120.1509-26.2352 120.1526-26.2353 120.1542-26.2355 120.1559-26.2356 120.157-26.2357 120.1593-26.2359 120.1609-26.236 120.1626-26.2362
The text was updated successfully, but these errors were encountered: