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

Take the following valid JS: ``` const dom = require('sketch/dom'); const doc = dom.getSelectedDocument(); const targetName = "arbitraryName"; const newName = "arbitraryNewName"; const targetLayers = doc.getLayersNamed(targetName); targetLayers.forEach(layer => layer.name =...

Many folks often want to display some visual representation of these shared objects in their sketch plugins. Sketch is already doing a bunch of work to maintain image previews of...

Would love to have this in to see some better interoperability between this function and an `ExportFormat` js object.

Seems like you have to convert the `ExportFormat` js object into something that `Sketch.export` accepts. This is kinda silly because the native methods are much easier. I wish there was...

[error.zip](https://github.com/sketch-hq/SketchAPI/files/5472494/error.zip) Above is a file reported by one my user, many of them encountered issues in this part. ## How to reproduce 1. Sketch prompts font is missing 1. Replace...

Update color value of an existing color variable in document.

Addresses #408

status: work in progress

Is there an api do something like “Flatten Selection To Bitmap” ?

enhancement
api

When changing the textColor through the api and then 'undoing' (cmd + z), Sketch API will read the color before 'undoing' while the Sketch UI shows the correct previous color....

It would be nice to have a clean way to access `com.bohemiancoding.sketchtool.detach` / `com.sketch.detach` without dropping down to native methods. Could be an addition to the `Settings` API, or directly...

enhancement