sketch-hq / SketchAPI

The JavaScript plugin library embedded in Sketch
https://developer.sketch.com/reference/api
MIT License
842 stars 126 forks source link

APIs missing: Corner Radius #881

Closed matteogratton closed 1 year ago

matteogratton commented 2 years ago

APIs for handling the corner radius are currently missed. I don't know how to set the corner radius type.

To set the corner radius value the current way is:

layer.points.forEach(
        (point) => (point.cornerRadius = value)
    );
layer.sketchObject.setFixedRadius(value);