We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d437bba commit 777ad8bCopy full SHA for 777ad8b
js/SaveInterface.js
@@ -311,6 +311,21 @@ class SaveInterface {
311
const svg = "data:image/svg+xml;utf8," + activity.printBlockSVG();
312
activity.save.download("svg", svg, null);
313
}
314
+
315
+ /**
316
+ * This method is to save BlockArtwork and download the PNG representation of block artwork from the provided activity.
317
+ *
318
+ * @param {SaveInterface} activity - The activity object containing block artwork to save.
319
+ * @returns {void}
320
+ * @method
321
+ * @instance
322
+ */
323
+ saveBlockArtworkPNG(activity) {
324
+ activity.printBlockPNG().then((pngDataUrl) => {
325
+ activity.save.download("png", pngDataUrl, null);
326
+ })
327
+ }
328
329
330
/**
331
* Save audio recording in WAV format.
0 commit comments