sketch-hq/SketchAPI

APIs missing: transform tool

matteogratton opened this issue · 0 comments

The transform tool
CleanShot 2022-07-14 at 11 29 09
is not available via APIs. It means that is impossible to programmatically skew a layer or a group of layers, due to the different ways layers works (shapes vs texts/symbols(sources and instances)/images/artboards),

It would be nice to have something like:
layer.transform(x,y,fromX,fromY,directionX,directionY)
with a simpler form like (which will apply to both X and Y axis):
layer.transform(x,from,direction)