You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var path = new Path('M10,10 h10h10h10h10 v10 h-40 z');
path.selected = true;
var copy1 = path.clone(); copy1.reduce();
var copy2 = path.clone(); copy2.simplify();
var copy3 = path.clone(); copy3.flatten();
var copy4 = path.clone(); copy4.smooth({type:'continuous'});
copy1.position.x += 100;
copy2.position.x += 200;
copy3.position.x += 300;
copy4.position.x += 400;
// Expected:
var path2 = new Path('M10,10 h40 v10 h-40 z');
path2.selected = true;
path2.position.y += 50;
Link to reproduction test-case
Expected result
By calling Path.reduce(), I expect a simple path such as M0,0 h10 h10 h10 h10 to be reduced and simplified to M0,0 h40. I also tried with simplify(), flatten() and smooth() and neither work for my purposes.
Additional information
paper 0.12.18
The text was updated successfully, but these errors were encountered:
Description/Steps to reproduce
Link to reproduction test-case
Expected result
By calling Path.reduce(), I expect a simple path such as
M0,0 h10 h10 h10 h10
to be reduced and simplified toM0,0 h40
. I also tried with simplify(), flatten() and smooth() and neither work for my purposes.Additional information
paper 0.12.18
The text was updated successfully, but these errors were encountered: