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

If we want to build tools on top of the Sketch Cloud workspaces / projects & documents, we need some fast API's to get info on the Cloud hosted documents...

This is a little different than most enhancement requests, but figured this was the best place to ask. A few years ago, I created a very minimal ESLint plugin to...

Not sure why this is happening, but when I try to get the fontSize from any text layer it always seems to have the same value of 19.352941, regardless of...

In order to know which swatch is linked to a fill or border color.

Follow-up from Sketch#33235 See [notes](https://github.com/sketch-hq/Sketch/issues/33235#issuecomment-743114666), specifically **Proper fix**.

This is super super helpful and I always forget about it since its not documented in the export section. It is documented way over here but I never check there:...

`Transform > Scale` is a feature often used in Sketch by designers as well as required by many plugins. I found out about this api which works with the native...

When trying to access some Sketch’s preferences using the `Settings` API, we get a JSON Parse error. Running this on the Run Script panel… ``` const sketch = require('sketch') console.log(sketch.Settings.globalSettingForKey('colorForMeasurements'))...

**TL;DR:** Allow user to provide name for file asset is to be exported to. Perhaps something like `fileName`: ``` dom.export(artboard, { output: path, fileName: artboard.name, formats: format.fileFormat, scales: format.size, overwriting:...