Path Bool library code cleanup (#2000)
* Remove log statements * Add feature gates to functions in path.rs * Fix infinite parsing loop and add new test * License tweaks * Remove trailing zero in whole number floats * Flatten visual-tests directory * Code review * Clean up printlines * Add error handling to path parsing --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" version="1.1" id="svg1" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs id="defs1"/>
|
||||
<g id="layer1">
|
||||
<path style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" d="M 23.266606487943,10.891551813397 C 21.768615091631,9.398420646068 20.302943502668,7.868026210949 18.531942000000,6.724584200000 C 17.349772000000,5.961319500000 16.031797000000,5.380035200000 14.639554000000,5.175689300000 C 13.247311000000,4.971343400000 11.776211000000,5.162159700000 10.549165000000,5.850966900000 C 9.753462000000,6.297637500000 9.078975000000,6.939526600000 8.517910200000,7.659153900000 C 7.956845400000,8.378781200000 7.504395000000,9.176772300000 7.089200200000,9.989342600000 C 4.989130500000,14.099351000000 3.800262700000,18.673387000000 3.646130000000,23.286272000000 C 3.487661800000,28.028907000000 4.457453000000,32.886565000000 6.953385400000,36.922407000000 C 8.187678500000,38.918219000000 9.789307500000,40.698768000000 11.710004000000,42.046978000000 C 13.630700000000,43.395188000000 15.874642000000,44.302718000000 18.207186000000,44.559586000000 C 20.134387945193,44.771819603339 22.119446764392,44.530369546990 23.918910189238,43.817031056454 C 23.532990572256,43.090978400588 23.316956699016,42.273775084319 23.318945000000,41.452115600000 C 23.321645000000,40.345201600000 23.713200000000,39.267440600000 24.267061000000,38.309055600000 C 24.820923000000,37.350669600000 25.534301000000,36.495916600000 26.239063000000,35.642349600000 C 26.943826000000,34.788783600000 27.647917000000,33.924911600000 28.179529000000,32.954006600000 C 28.375291489801,32.596477157611 28.547072628311,32.222264275504 28.683573034521,31.836916051073 C 28.420661380085,31.616673667695 28.129182858108,31.431275474096 27.816064000000,31.291391000000 C 27.038665000000,30.944095000000 26.152367000000,30.886684000000 25.311971000000,31.023435000000 C 24.471575000000,31.160185000000 23.671323000000,31.482568000000 22.912395000000,31.868566000000 C 21.394540000000,32.640564000000 19.991105000000,33.683058000000 18.350895000000,34.140851000000 C 17.213580000000,34.458286000000 15.994126000000,34.476152000000 14.847902000000,34.192571000000 C 13.701678000000,33.908991000000 12.631313000000,33.324658000000 11.772621000000,32.514167000000 C 10.913929000000,31.703675000000 10.268847000000,30.668913000000 9.918785800000,29.541214000000 C 9.568724200000,28.413515000000 9.514438800000,27.195461000000 9.762396000000,26.041007000000 C 10.010353000000,24.886552000000 10.559949000000,23.798303000000 11.341560000000,22.913243000000 C 12.123172000000,22.028183000000 13.135006000000,21.348277000000 14.249657000000,20.958661000000 C 15.364309000000,20.569044000000 16.579265000000,20.470549000000 17.742190000000,20.675130000000 C 18.905115000000,20.879711000000 20.013426000000,21.386868000000 20.928726000000,22.132840000000 C 22.140679000000,23.120585000000 22.980048000000,24.479629000000 23.978826000000,25.682505000000 C 24.478215000000,26.283944000000 25.024971000000,26.853240000000 25.663677000000,27.303986000000 C 26.302383000000,27.754733000000 27.039142000000,28.084306000000 27.816064000000,28.170966000000 C 28.101770756441,28.202832895446 28.390169492708,28.200886998015 28.675300790960,28.167989727816 C 28.560873565180,27.861166712063 28.422265377896,27.562715552978 28.265863000000,27.275616600000 C 27.844762000000,26.502624600000 27.296975000000,25.805842600000 26.719710000000,25.141305600000 C 25.565181000000,23.812230600000 24.259429000000,22.562731600000 23.522336000000,20.963959600000 C 22.883941000000,19.579266600000 22.718231000000,18.018930600000 22.760980000000,16.494759600000 C 22.803730000000,14.970587600000 23.045180000000,13.459738600000 23.183130000000,11.941220600000 C 23.214823794619,11.592342364721 23.241210376670,11.242131135912 23.266606487954,10.891551813385 M 26.662104751562,13.969998805854 C 26.212685636738,15.068201465719 26.113609099467,16.312329662666 26.428817000000,17.455664600000 C 26.779204000000,18.726602600000 27.649574000000,19.855649600000 28.814144000000,20.473573600000 C 29.635934000000,20.909618600000 30.576010000000,21.088375600000 31.506153000000,21.105922600000 C 31.808339317956,21.111624271550 32.110085500608,21.100948582345 32.411170407806,21.078238369699 C 32.329109334511,20.798245269901 32.231443290248,20.522697707220 32.120091000000,20.253232000000 C 31.428045000000,18.578530000000 30.226600000000,17.161303000000 28.906807000000,15.919651000000 C 28.184816799286,15.240407649381 27.423153850248,14.605610561319 26.662104751599,13.969998805869"/>
|
||||
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" version="1.1" id="svg1" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs id="defs1"/>
|
||||
<g id="layer1">
|
||||
<path style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" d="M 23.266606487954,10.891551813385 C 23.241210376670,11.242131135912 23.214823794619,11.592342364721 23.183130000000,11.941221000000 C 23.045180000000,13.459738600000 22.803730000000,14.970587600000 22.760980000000,16.494759600000 C 22.718231000000,18.018930600000 22.883941000000,19.579266600000 23.522336000000,20.963959600000 C 24.259429000000,22.562731600000 25.565181000000,23.812230600000 26.719710000000,25.141305600000 C 27.296975000000,25.805842600000 27.844762000000,26.502624600000 28.265863000000,27.275616600000 C 28.422265377896,27.562715552978 28.560873565180,27.861166712063 28.675300791070,28.167989727681 C 29.288800855341,28.097206627159 29.887174128949,27.883132379839 30.411058000000,27.554270000000 C 31.178424000000,27.072566000000 31.786462000000,26.352330000000 32.172971000000,25.532879000000 C 32.559480000000,24.713429000000 32.728239000000,23.798079000000 32.704109000000,22.892372000000 C 32.687742845722,22.278127144239 32.584110256748,21.668310646547 32.411170407814,21.078238369631 C 32.110085500608,21.100948582345 31.808339317956,21.111624271550 31.506153000000,21.105922600000 C 30.576010000000,21.088375600000 29.635934000000,20.909618600000 28.814144000000,20.473573600000 C 27.649574000000,19.855649600000 26.779204000000,18.726602600000 26.428817000000,17.455664600000 C 26.113609099467,16.312329662666 26.212685636738,15.068201465719 26.662104751562,13.969998805854 C 26.031960405919,13.443715870308 25.402236900489,12.916874419456 24.795803000000,12.363782000000 C 24.273978111078,11.887856436540 23.768478430324,11.391795433635 23.266606487943,10.891551813397 M 28.683573034521,31.836916051073 C 28.547072628311,32.222264275504 28.375291489801,32.596477157611 28.179529000000,32.954006600000 C 27.647917000000,33.924911600000 26.943826000000,34.788783600000 26.239063000000,35.642349600000 C 25.534301000000,36.495916600000 24.820923000000,37.350669600000 24.267061000000,38.309055600000 C 23.713200000000,39.267440600000 23.321645000000,40.345201600000 23.318945000000,41.452115600000 C 23.316956699016,42.273775084319 23.532990572256,43.090978400588 23.918910189160,43.817031056360 C 24.297385420645,43.666996914859 24.667650407874,43.496087690219 25.027440000000,43.304134000000 C 27.097852000000,42.199534000000 28.802186000000,40.387530000000 29.680167000000,38.211319000000 C 30.174702000000,36.985533000000 30.407104000000,35.623102000000 30.131382000000,34.330394000000 C 29.993521000000,33.684040000000 29.728744000000,33.062099000000 29.335636000000,32.530831000000 C 29.146515699638,32.275244446112 28.927321492833,32.041105330548 28.683573034507,31.836916050827"/>
|
||||
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="48"
|
||||
height="48"
|
||||
viewBox="0 0 48 48"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<defs
|
||||
id="defs1"/>
|
||||
<g
|
||||
id="layer1">
|
||||
<path
|
||||
style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
|
||||
d="m 10.549165,5.8509669 c 1.227046,-0.6888072 2.698146,-0.8796235 4.090389,-0.6752776 1.392243,0.2043459 2.710218,0.7856302 3.892388,1.5488949 2.36434,1.5265293 4.184489,3.7427258 6.263861,5.6391978 1.338847,1.221083 2.79121,2.314216 4.111004,3.555869 1.319793,1.241652 2.521238,2.658879 3.213284,4.333581 0.346022,0.837352 0.559886,1.733432 0.584018,2.63914 0.02413,0.905707 -0.144629,1.821057 -0.531138,2.640507 -0.386509,0.819451 -0.994547,1.539687 -1.761913,2.021391 -0.767365,0.481705 -1.694549,0.717129 -2.594994,0.616696 -0.776922,-0.08666 -1.513681,-0.416233 -2.152387,-0.86698 -0.638706,-0.450746 -1.185462,-1.020042 -1.684851,-1.621481 -0.998778,-1.202876 -1.838147,-2.56192 -3.0501,-3.549665 -0.9153,-0.745972 -2.023611,-1.253129 -3.186536,-1.45771 -1.162925,-0.204581 -2.377881,-0.106086 -3.492533,0.283531 -1.114651,0.389616 -2.126485,1.069522 -2.908097,1.954582 -0.781611,0.88506 -1.331207,1.973309 -1.579164,3.127764 -0.2479572,1.154454 -0.1936718,2.372508 0.1563898,3.500207 0.3500612,1.127699 0.9951432,2.162461 1.8538352,2.972953 0.858692,0.810491 1.929057,1.394824 3.075281,1.678404 1.146224,0.283581 2.365678,0.265715 3.502993,-0.05172 1.64021,-0.457793 3.043645,-1.500287 4.5615,-2.272285 0.758928,-0.385998 1.55918,-0.708381 2.399576,-0.845131 0.840396,-0.136751 1.726694,-0.07934 2.504093,0.267956 0.603415,0.269573 1.126463,0.708173 1.519572,1.23944 0.393108,0.531268 0.657885,1.153209 0.795746,1.799563 0.275722,1.292708 0.04332,2.655139 -0.451215,3.880925 -0.877981,2.176211 -2.582315,3.988215 -4.652727,5.092815 -2.070412,1.104599 -4.48771,1.512324 -6.820254,1.255452 C 15.874642,44.302718 13.6307,43.395188 11.710004,42.046978 9.7893075,40.698768 8.1876785,38.918219 6.9533854,36.922407 4.457453,32.886565 3.4876618,28.028907 3.64613,23.286272 3.8002627,18.673387 4.9891305,14.099351 7.0892002,9.9893426 7.504395,9.1767723 7.9568454,8.3787812 8.5179102,7.6591539 9.078975,6.9395266 9.753462,6.2976375 10.549165,5.8509669 Z"
|
||||
id="a"/>
|
||||
<path
|
||||
style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
|
||||
d="m 23.18313,11.941221 c 0.175995,-1.937316 0.188339,-3.9157233 0.776185,-5.7700712 0.293923,-0.927174 0.73446,-1.8168249 1.366828,-2.5558465 0.632368,-0.7390217 1.464331,-1.3221917 2.402476,-1.5789543 0.967556,-0.2648122 1.995185,-0.1760639 2.986399,-0.021843 0.991214,0.1542213 1.980415,0.3724999 2.983489,0.3610483 1.345801,-0.015364 2.647114,-0.4422205 3.95253,-0.7697979 1.305415,-0.3275774 2.692866,-0.5564306 3.985015,-0.1799118 1.173644,0.3419875 2.185193,1.1873881 2.75843,2.2671075 0.573237,1.0797194 0.708545,2.3780085 0.401365,3.5612393 -0.30718,1.1832308 -1.047848,2.2433593 -2.034306,2.9653672 -0.986458,0.722008 -2.209576,1.106297 -3.432021,1.111158 -2.009831,0.008 -3.901357,-0.964583 -5.902312,-1.153432 -1.31252,-0.123874 -2.663484,0.102015 -3.84134,0.694224 -1.177855,0.592209 -2.174667,1.555442 -2.760287,2.736588 -0.58562,1.181145 -0.747151,2.57663 -0.396764,3.847568 0.350387,1.270938 1.220757,2.399985 2.385327,3.017909 0.82179,0.436045 1.761866,0.614802 2.692009,0.632349 0.930143,0.01755 1.856116,-0.120065 2.77147,-0.286197 1.830709,-0.332264 3.717259,-0.780008 5.526586,-0.346152 1.776733,0.426041 3.292669,1.701533 4.18439,3.296251 0.891721,1.594718 1.189532,3.481187 1.026514,5.300999 -0.326036,3.639624 -2.375548,6.872857 -4.464585,9.871037 -1.115082,1.600363 -2.265859,3.189575 -3.656373,4.557435 -1.390514,1.367859 -3.041475,2.515013 -4.908921,3.078233 -1.867445,0.563219 -3.966763,0.499463 -5.68728,-0.419443 -0.860259,-0.459454 -1.613651,-1.12625 -2.145112,-1.943986 -0.53146,-0.817736 -0.836257,-1.786721 -0.833897,-2.761984 0.0027,-1.106914 0.394255,-2.184675 0.948116,-3.14306 0.553862,-0.958386 1.26724,-1.813139 1.972002,-2.666706 0.704763,-0.853566 1.408854,-1.717438 1.940466,-2.688343 0.531611,-0.970904 0.886373,-2.064839 0.838005,-3.170699 -0.03846,-0.879411 -0.330569,-1.734698 -0.751671,-2.507691 -0.421101,-0.772992 -0.968888,-1.469774 -1.546153,-2.134311 -1.154529,-1.329075 -2.460281,-2.578574 -3.197374,-4.177346 -0.638395,-1.384693 -0.804105,-2.945029 -0.761356,-4.4692 0.04275,-1.524172 0.2842,-3.035021 0.42215,-4.553539 z"
|
||||
id="b"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 5.8 KiB |