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

I have develop a sketch plugin to upload sketch file to the web server right after the document has been saved but I found when I run upload method in...

Currently, the only supported properties related to plugin updates seems to be `.appcast.xml`'s `` and `manifest.json`'s `homepage`, in which the latest is used in both '*View "\" Documentation*' in the...

As far as I can make out, if I register a data supplier in a plug-in eg ``` registerDataSupplier('public.text', 'menu label A', 'MyDataSupplier'); ``` The function that the action is...

It is pretty painful that Sketch.export doesn’t follow the conventions of the ExportFormats object. I always have to interpret the ExportFormat object and reformat it so that Sketch.export can interpret...

While trying to get font-family and font-weight for an text layer, e.g. If I create a new text layer with font ass roboto with type thin. Copy CSS attributes from...

Hello, I am wondering if it is possible with the Sketch API to set a layer to use a specific data supplier data source programatically? i.e. Replicate what Sketch is...

enhancement

After the changes in https://github.com/sketch-hq/SketchAPI/pull/605, code blocks in the API reference page no longer align correctly with their text counterparts. Before: After:

Currently, it's very painful to create a symbol with the JS api. Its much easier using the internal method: ``` let sketch = require('sketch') let doc = sketch.getSelectedDocument() let selectedLayersObject...

With this file, which is reported by my plugin user: [text_color_undefined.sketch.zip](https://github.com/sketch-hq/SketchAPI/files/4496597/text_color_undefined.sketch.zip) executing following in playground: ```ts let document = sketch.getSelectedDocument(); let layer = document.pages[0].layers[0].layers[0]; console.log( layer.name, layer.style.textColor, //undefined layer.style.fontFamily, //undefined...

more-information-needed
need-reproduction

The following code throw an error of `Error: image needs to be a Buffer`, but: 1. The fill is not enabled. 2. even it is enabled, the fill type is...

more-information-needed