Released 09 April, 2019 – read release notes
Changes
colors
and gradients
properties have been added on Document and globalAssets
GitHub pull request #345 and #398
- Sketchpad: Free online drawing application for all ages. Create digital artwork to share online and export to popular image formats JPEG, PNG, SVG, and PDF.
- Soft Cover Spiral Notebook Journal 2-Pack, Blank Sketch Book Pad, Wirebound Memo Notepads Diary Notebook Planner with Unlined Paper, 100 Pages/ 50 Sheets, 7.5 inch x 5.1 inch (Brown) 4.5 out of 5 stars 2,656.
- REMSI Sketches 51-100 Sketch #54 6-52 0000-000-ST-6052 Custom ID: DCS 6-52 Revision: 01 Effective Date: Page 6 of 58.
- Sketch #54 Termination cabinet, all service entries, single phase or three phase, 120/208 volts or 120/240 volts, with 2 to 6 sets of cable. REMSI Sketches 51-100.
I'm Sketch, Welcome to my channel Don't forget to obliterate that like button brotendos.
sketch.globalAssets
property was added- Two new asset types were added
ColorAsset
- name, type: String (can be null)
- color, type: String
GradientAsset
- name, type: String (can be null)
- gradient, type: Gradient
Usage
Setting Global Colors (Be sure to save a copy of your global assets before playing with this!)
Note that this doesn’t work
Other useful actions
Similarily for Gradients
Setting Global Gradients
Similarly, document colors and document gradients can all be found on
Document
Shared styles are now document
properties and can be mutated
Two new properties on
document
(try not to get them mixed up as the styles are subtly different!)Sketch 54 100 In Ft
sharedLayerStyles
sharedTextStyles
Usage
Setting a Shared Style
layer.index
can now be set
You can set the index of the layer to move it in the hierarchy. Note that you also have
layer.moveToFront()
, layer.moveForward()
, layer.moveToBack()
, and layer.moveBackward()
Usage
aspectRatio
property has been added to Gradient
Sketch 54 100 In Fraction
When the gradient is
Radial
, the from
and to
points makes one axis of the ellipse of the gradient while the aspect ratio determines the length of the orthogonal axis (aspectRatio 1
means that it’s a circle).Usage
selected
property and getFrame
method have been added on an Symbol override
The frame of an override can be different than the frame of its affected Layer in case where the Symbol Instance has been scaled or, in the case of the example below, the text value is changed for the Symbol instance resulting in a shorter frame.
Usage
layer.duplicate
now works on a layer with no parent
![100 100](https://img1.etsystatic.com/003/0/5124279/il_570xN.354771125_zhl8.jpg)
Previously you needed to have a parent in order to duplicate the layer. Now you are free to do so without working around this.
Usage
symbolInstance.master
now works on an immutable instance
If you ever got an
MSImmutableSymbolInstance
object and attempted to wrap the native sketch object then you would have previously gotten an error. It has now been fixed.You can now remove flow targets with setting flow
as undefined
on a Layer
Previously you couldn’t remove a flow target. Now you can!
Usage
pattern
properties have been added to Fill
Previously this also applied to the
noise
property as well but Sketch has depreciated the noise fill option in favor of having the noise patterns be image fills.Usage
An image buffer can now be used with ImageData
This change helps with the next one (Export now returns a buffer if output is false)
export
now returns a Buffer if options.output
is false
and options.formats
is an image format
If you ever wanted to get at the thumbnail preview image data when something is marked for export you can do so with this new API functionality.
Sketch 54 100 As A
See this issue for more info why this was added.
Quick Summary of Sketch’s export options
The method returns
undefined
ifoptions.output
isundefined
or a string- an array of
Buffer
ifobjectToExport
is an array andoptions.formats
is an image format - an array of
Object
ifobjectToExport
is an array andoptions.formats
is json - a
Buffer
ifobjectToExport
is a single item andoptions.formats
is an image format - an
Object
ifobjectToExport
is a single item andoptions.formats
is json
Usage
getSelectedDocument
will try harder to find your document
If you are using SKPM, SKPM defines
context
as a global so it will prefer to use that first. If there is no current document (via NSDocumentController.sharedDocumentController().currentDocument()
then Sketch will attempt to use NSApplication.sharedApplication().orderedDocuments()
. Ultimately, you don’t really need to know too much about these underlying changes but it is useful to know that .getSelectedDocument()
should work reliabily. If its not, be sure to file an issue.console.clear
will now clear the DevTools console
Use
console.clear()
to clean up your console.selectedPage
and selectedLayers
can now be set on the Document
Previously these were read-only properties. However, now you can pass in a layer or a page to these objects to set them.
Usage
Add some methods to deal with the Symbols Page
The “Symbols” page is similar to other pages. The only way it is specific is when creating a Symbol, Sketch will ask the user if they want to move it to that page. You can put Symbols in any page but if you want to respect the convention Sketch put in place, here are a few methods to help you do so.
Sketch 54 100 In Feet
Adds a few methods on
Page
getSymbolsPage(document)
- Returns a Page or
undefined
if there is no Symbols page yet
- Returns a Page or
createSymbolsPage()
- Returns a Page
isSymbolsPage()
- Returns a
boolean
- Returns a
Usage
Note that
.createSymbolsPage()
won’t prevent you from creating multiple pages that are titled “Symbols”.If you have multiple pages with “Symbols” I believe that
.isSymbolsPage()
will only be true for the earliest created page with the title “Symbols”. Under the hood the API is using:Related resources
See something wrong or incomplete? Improve this page.
NEW in 2020
With Snip & Sketch you can quickly annotate screenshots, photos and other images. It is Microsoft’s replacement to the Snipping Tool.
Website: microsoft.com/snip-sketch/
Cost: Included with Windows 10 and later
Availability: Download
Cost: Included with Windows 10 and later
Availability: Download
Ranking on the 2020 sub-lists
Top 100 Tools for Personal Learning: – | Top 100 Tools for Workplace Learning: 54 | Top 100 Tools for Education: 99 |
Sketch 54 100 In Binary
Overall rankings in the 14 surveys: 2007-2020
2020: 86 | 2019: – | 2018: – | 2017: – | 2016: – | 2015: – | 2014: – |
2013: – | 2012: – | 2011: – | 2010: – | 2009: – | 2008: – | 2007: – |
Quick Guide to Snip & Sketch
Idocument v1 6 38. Here you will find basic guidance and links on how to use Snip & Sketch for teaching, training, learning and development.
Read more
Get access to the Quick Guide sections at the bottom of each of the Tools page (for guidance and resources on how to use the tool for teaching, training and learning) for just £15.
Sign up here.