Skip to content

Commit

Permalink
Last few fixes and new icon
Browse files Browse the repository at this point in the history
  • Loading branch information
she1991 committed Feb 29, 2020
1 parent 74e6505 commit 0e8de9e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 41 deletions.
30 changes: 0 additions & 30 deletions .appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,5 @@
<item>
<enclosure url="https://github.com/romannurik/Sketch-FlowExporter/releases/download/v0.2.5/FlowExporter.sketchplugin.zip" sparkle:version="0.2.5"/>
</item>
<item>
<enclosure url="https://github.com/romannurik/Sketch-FlowExporter/releases/download/v0.2.4/FlowExporter.sketchplugin.zip" sparkle:version="0.2.4"/>
</item>
<item>
<enclosure url="https://github.com/romannurik/Sketch-FlowExporter/releases/download/v0.2.3/FlowExporter.sketchplugin.zip" sparkle:version="0.2.3"/>
</item>
<item>
<enclosure url="https://github.com/romannurik/Sketch-FlowExporter/releases/download/v0.2.2/FlowExporter.sketchplugin.zip" sparkle:version="0.2.2"/>
</item>
<item>
<enclosure url="https://github.com/romannurik/Sketch-FlowExporter/releases/download/v0.2.1/FlowExporter.sketchplugin.zip" sparkle:version="0.2.1"/>
</item>
<item>
<enclosure url="https://github.com/romannurik/Sketch-FlowExporter/releases/download/v0.2.0/FlowExporter.sketchplugin.zip" sparkle:version="0.2.0"/>
</item>
<item>
<enclosure url="https://github.com/romannurik/Sketch-FlowExporter/releases/download/v0.1.5/FlowExporter.sketchplugin.zip" sparkle:version="0.1.5"/>
</item>
<item>
<enclosure url="https://github.com/romannurik/Sketch-FlowExporter/releases/download/v0.1.4/FlowExporter.sketchplugin.zip" sparkle:version="0.1.4"/>
</item>
<item>
<enclosure url="https://github.com/romannurik/Sketch-FlowExporter/releases/download/v0.1.3/plugin.sketchplugin.zip" sparkle:version="0.1.3"/>
</item>
<item>
<enclosure url="https://github.com/romannurik/Sketch-FlowExporter/releases/download/v0.1.2/plugin.sketchplugin.zip" sparkle:version="0.1.2"/>
</item>
<item>
<enclosure url="https://github.com/romannurik/Sketch-FlowExporter/releases/download/v0.1.1/plugin.sketchplugin.zip" sparkle:version="0.1.1"/>
</item>
</channel>
</rss>
Binary file modified art/icon.sketch
Binary file not shown.
15 changes: 6 additions & 9 deletions assets/buildmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function initPageList() {
maxYArtboardHeight: 0,
width: undefined,
height: undefined,
pageWeigthX: undefined,
pageWeigthY: undefined,
artboards: []
};
Expand Down Expand Up @@ -93,15 +92,13 @@ function calcPageWeight() {
+ globalGutter;
if( prevMinXPoint === undefined && prevMaxYPoint === undefined ) {
// first page case
pageObj.pageWeigthX = 0;
pageObj.pageWeigthY = 0;
} else {
pageObj.pageWeigthX = prevMinXPoint - pageObj.minX;
pageObj.pageWeigthY = prevMaxYPoint - pageObj.minY + globalGutter;
pageObj.pageWeigthY = prevMaxYPoint - pageObj.minY;
}
//save values for previous points
prevMinXPoint = pageObj.minX;
prevMaxYPoint = pageObj.minY + pageObj.height;
prevMaxYPoint = pageObj.minY + pageObj.height + pageObj.pageWeigthY;
});
}

Expand Down Expand Up @@ -170,13 +167,13 @@ function renderArtboard(pageGroupElement, pageObj, artboard) {
.attr('title', artboard.title)
.attr('artboardId', artboard.artboardId);
artboardGroupElement.append('rect')
.attr('x', artboard.artboardX + pageObj.pageWeigthX - 1)
.attr('x', artboard.artboardX - 1)
.attr('y', artboard.artboardY + pageObj.pageWeigthY - 1)
.attr('width', artboard.width + 2)
.attr('height', artboard.height + 2)
.attr('class', 'artboard-image-background');
artboardGroupElement.append('image')
.attr('x', artboard.artboardX + pageObj.pageWeigthX)
.attr('x', artboard.artboardX)
.attr('y', artboard.artboardY + pageObj.pageWeigthY)
.attr('width', artboard.width)
.attr('height', artboard.height)
Expand All @@ -189,7 +186,7 @@ function renderArtboard(pageGroupElement, pageObj, artboard) {

function renderHotSpot(artboardGroupElement, pageObj, artboard, hotspot) {
artboardGroupElement.append('rect')
.attr('x', artboard.artboardX + hotspot.rectangle.x + pageObj.pageWeigthX)
.attr('x', artboard.artboardX + hotspot.rectangle.x)
.attr('y', artboard.artboardY + hotspot.rectangle.y + pageObj.pageWeigthY)
.attr('width', hotspot.rectangle.width)
.attr('height', hotspot.rectangle.height)
Expand All @@ -214,7 +211,7 @@ function renderConnectors(svg){
let targetHeight = parseInt(targetRect.attr('height'));

let points = this.getMinCoOrd(
getKLMN(hotspotRect.rectangle.x + pageObj.pageWeigthX + artboard.artboardX,
getKLMN(hotspotRect.rectangle.x + artboard.artboardX,
hotspotRect.rectangle.y + pageObj.pageWeigthY + artboard.artboardY,
hotspotRect.rectangle.width,
hotspotRect.rectangle.height),
Expand Down
5 changes: 3 additions & 2 deletions assets/style.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
body {
background-color: #302F2F;
background-color: #121212;
cursor: grab;
}
.svg-div {
width: 100%;
height: 100vh;
overflow: hidden;
padding-top: 24px;
}
.top-svg {
height: 100%;
Expand Down Expand Up @@ -34,7 +35,7 @@ body {
fill: rgba(225, 225, 225, 1);
}
.artboard-image-background {
stroke: fill: rgba(0, 0, 0, 0.8);
stroke: rgba(225, 225, 225, 0.1);
}
.control-container {
position: fixed;
Expand Down

0 comments on commit 0e8de9e

Please sign in to comment.