So, you know how when a corner is too sharp it juts out really far? Have you ever wanted to fix this without having to precariously set corners to be slightly rounded off?
Well, there’s a property for this called “strokeJoin” (which can be “miter” (sharp), “bevel” (flattened) or “round” (round))
So, I made some functions to set the DEFAULT strokejoin (affects new paths) to the 3 different values.
MAIN PROBLEM: It sets ALL corners in the project to the value, so some help would be appreciated.
Functions
function bevelCorners(){
project._children[0]._children[0]._children[0]._children[0].view.item.style._defaults.strokeJoin = "bevel";
}
function roundCorners(){
project._children[0]._children[0]._children[0]._children[0].view.item.style._defaults.strokeJoin = "round";
}
function sharpCorners(){
project._children[0]._children[0]._children[0]._children[0].view.item.style._defaults.strokeJoin = "miter";
}