From 7ec9326ce00d08f9d957981f2edff6df26f24a28 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期四, 26 九月 2024 13:25:02 +0800
Subject: [PATCH] 修改
---
web/public/SVGOrigin/Method-Draw-master/method-draw/extensions/imagelib/index.html | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/public/SVGOrigin/Method-Draw-master/method-draw/extensions/imagelib/index.html b/web/public/SVGOrigin/Method-Draw-master/method-draw/extensions/imagelib/index.html
index 7cc4d36..9e8f363 100644
--- a/web/public/SVGOrigin/Method-Draw-master/method-draw/extensions/imagelib/index.html
+++ b/web/public/SVGOrigin/Method-Draw-master/method-draw/extensions/imagelib/index.html
@@ -15,7 +15,7 @@
$('a').click(function() {
var href = this.href;
var target = window.parent;
- // Convert Non-SVG images to data URL first
+ // Convert Non-SVG images to data URL first
// (this could also have been done server-side by the library)
if(this.href.indexOf('.svg') === -1) {
@@ -24,7 +24,7 @@
id: href
});
target.postMessage(meta_str, "*");
-
+
var img = new Image();
img.onload = function() {
var canvas = document.createElement("canvas");
@@ -55,7 +55,7 @@
data = '|' + href + '|' + data;
// This is where the magic happens!
target.postMessage(data, "*");
-
+
}, 'html'); // 'html' is necessary to keep returned data as a string
}
return false;
--
Gitblit v1.9.1