-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
In some situations, roundish figures' flat shadow fail like this:


Playing with the icon size can affect the result.
I've tracked this down to the following line:
odoo-icon/src/icon/paper-motion.js
Line 69 in 0be5803
| facePaths.reduce((path1, path2) => path1.unite(path2, {insert: false})) : |
It seems to be a bug in paperjs, that fails to perform this unite operations:
const pathData1 = "M35,63.5c7.87004,0 14.99504,-3.18998 20.15253,-8.34747l-49.49747,49.49747c-5.15749,5.15749 -12.28249,8.34747 -20.15253,8.34747z"
const pathData2 = "M55.15253,55.15253c5.15749,-5.15749 8.34747,-12.28249 8.34747,-20.15253l-49.49747,49.49747c0,7.87004 -3.18998,14.99504 -8.34747,20.15253z";
const path1 = new paper.Path(pathData1);
const path2 = new paper.Path(pathData2);
const path3 = path1.unite(path2);
path3.fillColor = "red";Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working