You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
The text was updated successfully, but these errors were encountered:
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.
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();
The text was updated successfully, but these errors were encountered: