@@ -246,21 +246,21 @@ test('deserialize : instantiate svg (path: arc) to objects', (t) => {
246246 t . is ( observed . length , 2 )
247247 let shape = observed [ 0 ]
248248 t . is ( shape . outlines . length , 1 )
249- t . is ( shape . outlines [ 0 ] . length , 27 )
249+ t . is ( shape . outlines [ 0 ] . length , 26 )
250250
251251 observed = deserialize ( { output : 'geometry' , target : 'path' , addMetaData : false } , sourceSvg )
252252 t . is ( observed . length , 2 )
253253 shape = observed [ 0 ]
254- t . is ( shape . points . length , 27 )
254+ t . is ( shape . points . length , 26 )
255255
256256 observed = deserialize ( { output : 'geometry' , target : 'path' , addMetaData : false , segments : 16 } , sourceSvg )
257257 t . is ( observed . length , 2 )
258258 shape = observed [ 0 ]
259- t . is ( shape . points . length , 15 ) // segments double on a 3/4 circle
260- t . deepEqual ( measureBoundingBox ( shape ) , [ [ 64.91110599999999 , - 77.611105 , 0 ] , [ 90.21850570104527 , - 52.30370029895471 , 0 ] ] )
259+ t . is ( shape . points . length , 14 ) // segments double on a 3/4 circle
260+ t . deepEqual ( measureBoundingBox ( shape ) , [ [ 64.91110599999999 , - 77.611105 , 0 ] , [ 90.31110299999999 , - 52.211102999999994 , 0 ] ] )
261261 shape = observed [ 1 ]
262- t . is ( shape . points . length , 15 ) // segments double on a 3/4 circle
263- t . deepEqual ( measureBoundingBox ( shape ) , [ [ 50.799996 , - 136.03302387090216 , 0 ] , [ 72.27222493929787 , - 110.6793647936299 , 0 ] ] )
262+ t . is ( shape . points . length , 14 ) // segments double on a 3/4 circle
263+ t . deepEqual ( measureBoundingBox ( shape ) , [ [ 50.799996 , - 136.05619433226602 , 0 ] , [ 72.48025212106914 , - 110.65619433226604 , 0 ] ] )
264264} )
265265
266266// ################################
@@ -443,15 +443,15 @@ test('deserialize : instantiate shape with a hole to objects', (t) => {
443443 t . is ( observed . length , 1 )
444444 let shape = observed [ 0 ]
445445 t . is ( shape . outlines . length , 2 )
446- t . is ( shape . outlines [ 0 ] . length , 38 )
447- t . is ( shape . outlines [ 1 ] . length , 38 )
446+ t . is ( shape . outlines [ 0 ] . length , 30 )
447+ t . is ( shape . outlines [ 1 ] . length , 30 )
448448
449449 observed = deserialize ( { output : 'geometry' , target : 'path' , addMetaData : false } , sourceSvg )
450450 t . is ( observed . length , 2 )
451451 shape = observed [ 0 ]
452- t . is ( shape . points . length , 38 )
452+ t . is ( shape . points . length , 30 )
453453 shape = observed [ 1 ]
454- t . is ( shape . points . length , 38 )
454+ t . is ( shape . points . length , 30 )
455455} )
456456
457457// ################################
@@ -467,12 +467,12 @@ test('deserialize : instantiate shape with a nested hole to objects', (t) => {
467467 t . is ( observed . length , 1 )
468468 let shape = observed [ 0 ]
469469 t . is ( shape . outlines . length , 4 )
470- t . is ( shape . outlines [ 0 ] . length , 38 )
470+ t . is ( shape . outlines [ 0 ] . length , 30 )
471471
472472 observed = deserialize ( { output : 'geometry' , target : 'path' , addMetaData : false } , sourceSvg )
473473 t . is ( observed . length , 4 )
474474 shape = observed [ 0 ]
475- t . is ( shape . points . length , 38 )
475+ t . is ( shape . points . length , 30 )
476476} )
477477
478478// ################################
0 commit comments