Skip to content
This repository was archived by the owner on Aug 31, 2024. It is now read-only.

Commit fa64083

Browse files
committed
1.1.2 release
1 parent 540bee1 commit fa64083

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

prott.sketchplugin/Contents/Sketch/core.cocoascript

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SOFTWARE.*/
2222

2323
var prott = {
2424
"definations": {
25-
"pluginVersion": "Version 1.1.0",
25+
"pluginVersion": "Version 1.1.2",
2626
"apiBase": "https://prottapp.com/",
2727
"apiSignin": "users/sign_in.json",
2828
"apiSignout": "users/sign_out.json",
@@ -454,10 +454,10 @@ var prott = {
454454

455455
"uploadArtboard": function(document, artboard, cookie, context){
456456
var copy = [artboard duplicate]
457-
var frame = [copy frame]
458-
var rect = [MSSliceTrimming trimmedRectForSlice:copy],
459-
slice = [MSExportRequest requestWithRect:rect scale:prott.getSavedValueFromKey("ratio")]
457+
var slice = MSExportRequest.exportRequestsFromExportableLayer(copy).firstObject()
460458
[copy removeFromParent]
459+
slice.scale = prott.getSavedValueFromKey("ratio")
460+
slice.format = "png"
461461
var filePath = NSTemporaryDirectory() + "prott/" + artboard.objectID() + ".png"
462462
[document saveArtboardOrSlice:slice toFile: filePath]
463463

prott.sketchplugin/Contents/Sketch/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Sync Sketch artboards to Prott like a boss.",
44
"author": "Goodpatch, Inc.",
55
"homepage": "https://prottapp.com/",
6-
"version": "1.1.0",
6+
"version": "1.1.2",
77
"identifier": "com.goodpatch.prott.prott-sketch-plugin",
88
"updateURL": "",
99
"compatibleVersion": 3,

0 commit comments

Comments
 (0)