- [New] Color Variables API.
- [Fixed] Return
systemfont family name correctly on macOS 10.15
- [New] Add
resizeToOriginalSizemethod onImage. - [New] Add
sizeproperty onImageData. - [New] Provide detail of the shared style when syncWithSharedStyle locates a shared style linked to an external library.
- [New] Updated
LibraryTypeenum.
- [New] Variable font API.
- [New] Support for smart layout.
- [Improved] Update to @skpm/process@0.1.4.
- [Improved] When setting the
trimmedoption tofalseduring an export, it will not trim the image even if there is no background color. - [New]
onDocumentChangedhandler.
- [Fixed]
ShapePath.fromSVGPathno longer throws an error.
- [New] Expose the
PointTypeenum onShapePath. - [Fixed]
document.centerOnLayernot centering on nested layers.
- [Fixed] Changing the
pointTypeof a CurvePoint wouldn't always restore the control points. - [Fixed] Do not default to
ShapeType.Rectangleif some points are specified when create a new ShapePath. - [Improved] Added multiline functionality to string inputs on
UI.getInputFromUser. - [New] Expose substring in
Text.fragment. - [New] Add a
findmethod to make it easy to look for specific layers. - [Fixed] Fix setting layers of a group when the layers already had a parent.
- [Fixed]
symbolMaster.getParentSymbolMasterused to throw an error. It will now returnundefined. - [New] Added a
colorSpaceproperty and achangeColorSpacemethod toDocument.
- [New] Add
isSelectedmethod on a CurvePoint. - [Improved] Improve consistency by deprecating
Fill.fillin favor ofFill.fileType(to matchBorder.fileTypeand other types). - [Fixed]
getSelectedDocument()could throw an error when no document was opened. Now it will returnundefined.
- [New] Add
colorsandgradientsproperties on Document. - [New]
exportnow returns a Buffer ifoptions.outputisfalseandoptions.formatsis an image format. - [Improved] Shared styles are now document properties and can be mutated.
- [Improved]
console.clearwill now clear the DevTools console. - [Improved] Be more aggressive in finding the selected document.
- [New] Add
patternproperties on Fill. - [Fixed] Setting
flowasundefinedon a Layer. - [Improved]
selectedPageandselectedLayerscan now be set on the Document. - [New] Add some methods to deal with the Symbols Page.
- [Improved]
layer.duplicatenow works on a layer with no parent. - [Fixed]
symbolInstance.masternow works on an immutable instance. - [New] Add
aspectRatioproperty to Gradient. - [New] Add
selectedproperty on an Override. - [New] Add
getFramemethod on an Override. - [New] add
sketch.globalAssetsproperty. - [Improved]
layer.indexcan now be set. - [Fixed]
new Text({ style: {} })now works as expected.
- [Fixed] Setting mutable colors where it should.
- [Improved] Obj-C exceptions will be thrown as JS Errors which will reference the exception in their
nativeExceptionproperty. - [Improved]
setTimeoutand all the other timeout, interval, immediate methods are now available directly, no need to polyfill them. - [New] new method on the path module
require('path').resourcePath(resourceName)which returns the path to a resource in the plugin bundle orundefinedif it doesn't exist. - [Improved] The document from a library will now have a proper path (either local path or the appcast URL).
- [New] Add support for Slices.
- [New] Add
exportFormatsproperty on Layer. - [Improved] No need to specify the type when there is no choice (like Document.pages can only contain Pages, Layer.exportFormats can only contain ExportFormats, etc.).
- [New] Add UI.getInputFromUser method and deprecate the other input methods.
- [New] Add some
getParent*methods on Layer. - [New] Add
ShapeTypeto create different shapes. - [New] Add support for text styles.
- [New] Add some methods to store a session variable.
- [Improved] Allow using setting methods even from the Run Script panel.
- [New] Add method to get the theme of Sketch.
- [New]
exportcan now export to the JSON file format. - [New] Add
backgroundproperty on Artboard. - [New] Add
transformproperty on Layer. - [New] Add
editableproperty on Override. - [New] Add
overridesproperty on Symbol Master to be able to change theireditableproperty. - [Improved] Add an options parameter when detaching a Symbol Instance.
- [New] Add basic support for Shape path.
- [Improved] Make sure Document.save will not overwrite a folder by mistake.
- [Fixed] Using 0 as a shadow's value shouldn't fall back to the default.
- [Fixed] Logging an NSArray would print an array of
undefinedinstead of the proper items. - [Fixed] Adding a remote library for the first time will now return the library instead of an error.
- [Fixed] Adding a remote library will also download it right away.
- [Fixed] Printing a missing Library.
- [New] Data Plugin!.
- [New] Add support for SharedStyle.
- [New] Add support for Immutable native model objects.
- [New] Add
affectedLayerfor Override. - [Improved] Allow storing a setting on an Override or DataOverride.
- [Improved] Settings will now be serialized even if they are of native types.
- [New] Add
pathproperty to Document. - [New] Add
lastModifiedAtproperty to Library. - [New] Disable/Enable a Library by setting its
enabledproperty. - [New] Add
buffer,os,pathandtimerscore modules. - [New] Add method to add a remote library from an RSS feed.
- [Improved] console.log a wrapped object should be a lot faster on complex files.
- [Fixed] Logging a MOStruct (such as NSRange for example) would error.
- [Fixed] Getting the importable objects from a Library would sometime returns the ones from another library that shares the same id.
- [Fixed] Setting an image override on a symbol instance.
- [Fixed] Saving a document without specifying a path would fail.
- [Fixed] Opening a document without a path would fail.
- [Fixed] Setting the
toof a gradient would actually change thefrom.
- [Improved] Add
Rectangle.changeBasismethod and deprecate the specific implementations from Layer and Group. - [Fixed] Add missing wrapper for some libraries.
- [Fixed] Creating a Rectangle with an Object having an
xvalue of0now works as expected. - [New] Add
lockedandhiddenproperty on Layer. - [New] Add
consolecore module (accessed withrequire('console'). - [New] Add
utilcore module (accessed withrequire('util'). - [New] Add
eventscore module (accessed withrequire('events'). - [New] Add
consoleglobal. - [Fixed] Mutating a frame's Rectangle will change the frame.
- [New] Add support for Libraries.
- [New] Add
save,open, andclosemethod on Document. - [Improved] Add support for style on all the layers.
- [Improved] Add support for Shadows, Inner Shadows, opacity, blur, border options, blending mode, and gradients in Style.
-
[New] Add
HotSpotcomponent. -
[New] Add convinient array methods to Selection.
-
[Improved] A Shape is now created with a default rectangle path.
-
[Fixed] Add a new Page with
new sketch.Page({ parent: document }). -
[Fixed] Add
SymbolInstance.setOverrideValue()method. -
[Fixed]
Artboard.adjustToFit()now works as expected. -
[Fixed] Setting the stystem font size of a Text now works as expected.
-
[Fixed] Exporting a Page now works as expected.
-
[Fixed]
Document.getLayersNamed()now works as expected. -
[New] First release of the new AP