SketchAPI icon indicating copy to clipboard operation
SketchAPI copied to clipboard

APIs missing: Outline

Open matteogratton opened this issue 3 years ago • 1 comments

The outline function is not exposed. In order to outline a layer, we should refer to the private APIs. Example outlying a text layer: let outline = layer.sketchObject.layersByConvertingToOutlines();

let outlineText = sketch.fromNative(outline[0]);

It would be nice to have something like:

let outlineText = layer.outline();

matteogratton avatar Jul 14 '22 10:07 matteogratton

We need this too. Fonts can't easily be embedded inside SVGs. So we need to outline the text before exporting. But we don't want to save the outline, so this is better as an automated API step, to avoid ruining the original sketch document.

sandstrom avatar Apr 06 '23 14:04 sandstrom