This repository was archived by the owner on Jun 3, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +16
-4
lines changed
Sketch Commands.sketchplugin/Contents/Sketch Expand file tree Collapse file tree 5 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,8 @@ var onRun = function(context) {
66 var selection = document . selectedLayers
77 selection . forEach ( layer => {
88 layer . frame . y += 100
9+ if ( layer . parent . type == 'Group' ) {
10+ layer . parent . adjustToFit ( )
11+ }
912 } )
1013}
Original file line number Diff line number Diff line change @@ -6,5 +6,8 @@ var onRun = function(context) {
66 var selection = document . selectedLayers
77 selection . forEach ( layer => {
88 layer . frame . x -= 100
9+ if ( layer . parent . type == 'Group' ) {
10+ layer . parent . adjustToFit ( )
11+ }
912 } )
1013}
Original file line number Diff line number Diff line change @@ -6,5 +6,8 @@ var onRun = function(context) {
66 var selection = document . selectedLayers
77 selection . forEach ( layer => {
88 layer . frame . x += 100
9+ if ( layer . parent . type == 'Group' ) {
10+ layer . parent . adjustToFit ( )
11+ }
912 } )
1013}
Original file line number Diff line number Diff line change @@ -6,5 +6,8 @@ var onRun = function(context) {
66 var selection = document . selectedLayers
77 selection . forEach ( layer => {
88 layer . frame . y -= 100
9+ if ( layer . parent . type == 'Group' ) {
10+ layer . parent . adjustToFit ( )
11+ }
912 } )
1013}
Original file line number Diff line number Diff line change 249249 "name" : " Move Down 100px" ,
250250 "identifier" : " movedown100px" ,
251251 "shortcut" : " " ,
252- "script" : " Position/Move Down 100px.cocoascript "
252+ "script" : " Position/Move Down 100px.js "
253253 },
254254 {
255255 "name" : " Move Left 100px" ,
256256 "identifier" : " moveleft100px" ,
257257 "shortcut" : " " ,
258- "script" : " Position/Move Left 100px.cocoascript "
258+ "script" : " Position/Move Left 100px.js "
259259 },
260260 {
261261 "name" : " Move Right 100px" ,
262262 "identifier" : " moveright100px" ,
263263 "shortcut" : " " ,
264- "script" : " Position/Move Right 100px.cocoascript "
264+ "script" : " Position/Move Right 100px.js "
265265 },
266266 {
267267 "name" : " Move Up 100px" ,
268268 "identifier" : " moveup100px" ,
269269 "shortcut" : " " ,
270- "script" : " Position/Move Up 100px.cocoascript "
270+ "script" : " Position/Move Up 100px.js "
271271 },
272272 {
273273 "name" : " Set Position…" ,
You can’t perform that action at this time.
0 commit comments