sketch-hq / SketchAPI

The JavaScript plugin library embedded in Sketch
https://developer.sketch.com/reference/api
MIT License
842 stars 126 forks source link

APIs missing: a way to load the available pattern images. #888

Closed matteogratton closed 1 year ago

matteogratton commented 2 years ago

It is currently impossible to add a pattern fill with one of the available pattern/noises images available.

It would be nice to be able to add them just like:

pattern: {
    patternType: "Tile",
    image: {
        "default-pattern-01",
    },
    tyleScale: 1,
},