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

Commit

Permalink
1.1.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
hanamiju committed Nov 9, 2016
1 parent 540bee1 commit fa64083
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions prott.sketchplugin/Contents/Sketch/core.cocoascript
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SOFTWARE.*/

var prott = {
"definations": {
"pluginVersion": "Version 1.1.0",
"pluginVersion": "Version 1.1.2",
"apiBase": "https://prottapp.com/",
"apiSignin": "users/sign_in.json",
"apiSignout": "users/sign_out.json",
Expand Down Expand Up @@ -454,10 +454,10 @@ var prott = {

"uploadArtboard": function(document, artboard, cookie, context){
var copy = [artboard duplicate]
var frame = [copy frame]
var rect = [MSSliceTrimming trimmedRectForSlice:copy],
slice = [MSExportRequest requestWithRect:rect scale:prott.getSavedValueFromKey("ratio")]
var slice = MSExportRequest.exportRequestsFromExportableLayer(copy).firstObject()
[copy removeFromParent]
slice.scale = prott.getSavedValueFromKey("ratio")
slice.format = "png"
var filePath = NSTemporaryDirectory() + "prott/" + artboard.objectID() + ".png"
[document saveArtboardOrSlice:slice toFile: filePath]

Expand Down
2 changes: 1 addition & 1 deletion prott.sketchplugin/Contents/Sketch/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Sync Sketch artboards to Prott like a boss.",
"author": "Goodpatch, Inc.",
"homepage": "https://prottapp.com/",
"version": "1.1.0",
"version": "1.1.2",
"identifier": "com.goodpatch.prott.prott-sketch-plugin",
"updateURL": "",
"compatibleVersion": 3,
Expand Down

0 comments on commit fa64083

Please sign in to comment.