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

hello , i run the examples/selection-changed plugin in sketch 64 not working. in dev-tools return errors,like above

Don’t think options like background color, “export group contents only”, and trim transparent pixels are visible in the JS API. See thread: https://sketchplugins.com/d/308-set-export-group-contents-only/3

(Thanks @konki-vienna for the report) ```js var text = new Text({ text: 'my text', alignment: Text.Alignment.center, }) ``` throws a warning: `Text.alignment` is deprecated. Use `Text.style.alignment` instead. The error message...

docs
api

If you have overlapping artboards the JS export will behave differently than the native sketch export. Example code: ``` let sketch = require('sketch') let Artboard = sketch.Artboard let Rectangle =...

When using `ShapePath.fromSVGPath()` with `'M240.08977769002323 195.69850181279688 M239.3389469189814 195.1249563058996 C329.1454695492273 191.83757520309732, 417.69707285312586 192.24985209192084, 601.5937121041572 193.98028760970763 M241.05711356212504 196.68565523660524 C329.0479087098456 195.0380945943925, 420.3544447319207 193.20209954632867, 600.5812513132819 195.93692264612972 M602.3623436938979 193.92319836278298 C599.4983826340579 259.1529885463191, 600.143084615553 326.7579119833871, 601.9295369418934 427.13641338984405...

**Example:** We have 2 Symbols. And one (lets call it child symbol) is included into another (lets call it parent symbol). Symbol Masters are located in separate page "Symbols" (default...

Seeing hasClippingMask and closestClippingLayer properties in JS API would be awesome. I'm developing the Sketch SDK of Pixelworm(https://www.pixelworm.io) and I have to crop the frame of layers which are masked....

Sketch.app version 61 adds the ability to set min/max width and height values for applied Smart Layout settings in Sketch. With version 61 now featuring support for SmartLayout in the...

Hello there! __Task__: To send param from Sketch CLI when running the Sketch plugin. __Issue__: the derived value of the JSON dictionary is of type object(expected string). That's code of...

As seen in https://sketchplugins.com/d/1785-how-to-calculate-png-shadow-skpm, it would be nice to have a documented API to get the bounds of a layer including its shadow and other effects.

enhancement
api