@mptw/skylens-ui 1.4.84 → 1.4.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -243,6 +243,15 @@ export default defineComponent({
243
243
  }
244
244
  }
245
245
 
246
+ async function copyImage() {
247
+ const dataURL = await domToPngDataUrl(imageTarget.value, customFilter.value, customStyle.value, padding.value, dateRanges.value, watermark.value, WatermarkImage);
248
+ if (!dataURL) {
249
+ console.log("Can not generate data URL!");
250
+ return;
251
+ }
252
+ return dataURL;
253
+ }
254
+
246
255
  onMounted(() => {
247
256
  nextTick(() => {
248
257
  if (buttonEl.value && popupEl.value) {
@@ -266,6 +275,7 @@ export default defineComponent({
266
275
  popupEl,
267
276
  onClickedToggle,
268
277
  onClickedOption,
278
+ copyImage,
269
279
  };
270
280
  },
271
281
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.4.84",
4
+ "version": "1.4.85",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",