Hello, I've checked out pretty much all the information I can find about Sketch plugins on the developer section of the site (http://developer.sketchapp.com). However, I don't find any documentation on API commands/methods. Is this a mystery?
For example, I wanted to rotate a shape. Simple enough. There is no information on how to rotate something. I thought I have to get the frame of the layer and apply a rotate transformation to each point of the layer bounds.
But I ran into a github page (https://github.com/kumo/Sketch-Plugin-Scripts/blob/master/randomly-rotate.sketchplugin) that showed a simple command to rotate a layer by a specified degree: layer.setRotation().
Where is "setRotation" and other methods documented? When you look at the layer documentation page (http://developer.sketchapp.com/reference/api/class/api/Layer.js~Layer.html) there's no mention of 'setRotation' or any other transformation methods.