Skip to content

Commit

Permalink
Add Current Artboard position in Typography if the current text style…
Browse files Browse the repository at this point in the history
… is part of an Artboard. Update plugin subversion
  • Loading branch information
icona79 committed May 5, 2022
1 parent 0834edc commit d22f602
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Binary file modified DS-Core.sketchplugin.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ var onRun = function(context) {
var originalSelection = selection;
var currentPage = selection.getParentPage();
var currentArtboard = selection.getParentArtboard();
console.log(currentArtboard);

var selectionX = selection.frame.x;
var selectionY = selection.frame.y;
if (currentArtboard !== undefined) {
selectionX = currentArtboard.frame.x;
selectionY = currentArtboard.frame.y;
}

var newArtboardCreated = false;
if (currentArtboard === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion DS-Core.sketchplugin/Contents/Sketch/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "DS Core",
"description": "Batch create Typography, Color Scales and Components really fast.",
"version": "1.5.4",
"version": "1.5.5",
"author": "Francesco Bertocci & Matteo Gratton",
"authorEmail": "[email protected]",
"appcast": "https://raw.githubusercontent.com/fbmore/DS-Core-Sketch-Plugin/main/appcast.xml",
Expand Down
4 changes: 2 additions & 2 deletions DS-Core.sketchplugin/Contents/appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<description>Batch create Typography, Color Scales and Components really fast.</description>
<language>en</language>
<item>
<title>Version 1.5.4</title>
<title>Version 1.5.5</title>
<description>
<![CDATA[
<ul>
<li>Initial release</li>
</ul>
]]>
</description>
<enclosure url="https://github.com/fbmore/DS-Core-Sketch-Plugin/raw/main/DS-Core.sketchplugin.zip" sparkle:version="1.5.4" type="application/octet-stream"/>
<enclosure url="https://github.com/fbmore/DS-Core-Sketch-Plugin/raw/main/DS-Core.sketchplugin.zip" sparkle:version="1.5.5" type="application/octet-stream"/>
</item>
</channel>
</rss>

0 comments on commit d22f602

Please sign in to comment.