From 0c39f5388d95dbc41c47285a8c2dfda57a019d5b Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期三, 08 一月 2025 08:47:49 +0800
Subject: [PATCH] 修改:“可修设备可靠度为1”通过给算法包传递参数固定为1、type为fixed的failure_model来实现。
---
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