SketchAPI icon indicating copy to clipboard operation
SketchAPI copied to clipboard

The JavaScript plugin library embedded in Sketch

Results 105 SketchAPI issues
Sort by recently updated
recently updated
newest added

Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) Commits See full diff in compare...

dependencies

I am debugging the reason one of my personal plugins is no longer running after upgrading to Sketch 91. I have the following simple test running the script runner: ```js...

An API command to flatten a Shape/ShapePath is missing. Currently we should work with this suggestion: https://github.com/sketch-hq/SketchAPI/issues/139 Flatten is not only a transform to a bitmap, but also a way...

The transform tool ![CleanShot 2022-07-14 at 11 29 09](https://user-images.githubusercontent.com/72731885/178962403-ddc59f3f-f7de-4167-bc42-beab8ed21f4a.png) is not available via APIs. It means that is impossible to programmatically skew a layer or a group of layers, due...

The outline function is not exposed. In order to outline a layer, we should refer to the private APIs. Example outlying a text layer: let outline = layer.sketchObject.layersByConvertingToOutlines(); `let outlineText...

Right now you have to drop down to the private api to do this ```javascript let sketch = require('sketch') let document = sketch.getSelectedDocument() let selectedLayer = document.selectedLayers.layers[0] console.log(selectedLayer.sketchObject.booleanOperation()) ```

enhancement
api

Currently, it is pretty hard to handle lines. They are a `ShapePath`, with some extra info added on top of them: 1. `closed: false` 2. `points: {}` (with different settings...

Exporting images at the moment is pretty complex. 1. We don't have the original Image name Images are stored only with an ID: it would be nice to have also...

It is currently pretty hard to add Data Suppliers to Sketch via plugin. There are several issues: 1. the path URL of the JSON/TXT file should be managed with NSURL:...

It is currently a pain to handle images with APIs. All the images must be converted or read into an NSImage object. It would be nice to have automatic converters...