Skip to content

Commit 739c434

Browse files
authored
Merge pull request #43 from MLH-Fellowship/sample-touchups
2 parents d93dcfb + 0413e36 commit 739c434

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cross-compatible-js-sample/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ function createLabel(e) {
137137
}];
138138

139139
selection.insertionParent.addChild(label);
140+
141+
label.placeInParentCoordinates({ x: label.localBounds.x, y: label.localBounds.y}, { x: 0, y: 0});
140142
});
141143
}
142144
}

jszip-sample/src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ async function exportArtboards() {
9292
}
9393

9494
file.write(await zip.generateAsync({ type: "arraybuffer" }));
95+
96+
app.showAlert(`Export complete!`);
9597
} catch (err) {
9698
logError(err);
9799
}
@@ -129,6 +131,8 @@ async function saveZip() {
129131
file.write(await tempZip.generateAsync({ type: "arraybuffer" }));
130132

131133
document.getElementById("saveZip").disabled = false;
134+
135+
app.showAlert(`ZIP complete!`);
132136
} catch (err) {
133137
logError(err);
134138
}

0 commit comments

Comments
 (0)