From 134c06beb2b6b7f7025fb030a9e52bcceebbfc98 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期一, 15 七月 2024 14:36:49 +0800
Subject: [PATCH] 修改
---
web/public/SVGOrigin/Method-Draw-master/editor/extensions/ext-eyedropper.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/web/public/SVGOrigin/Method-Draw-master/editor/extensions/ext-eyedropper.js b/web/public/SVGOrigin/Method-Draw-master/editor/extensions/ext-eyedropper.js
index 9ab7433..8c960c4 100644
--- a/web/public/SVGOrigin/Method-Draw-master/editor/extensions/ext-eyedropper.js
+++ b/web/public/SVGOrigin/Method-Draw-master/editor/extensions/ext-eyedropper.js
@@ -21,7 +21,7 @@
ChangeElementCommand = svgedit.history.ChangeElementCommand,
addToHistory = function(cmd) { svgCanvas.undoMgr.addCommandToHistory(cmd); },
currentStyle = {fillPaint: "red", fillOpacity: 1.0,
- strokePaint: "black", strokeOpacity: 1.0,
+ strokePaint: "black", strokeOpacity: 1.0,
strokeWidth: 5, strokeDashArray: null,
opacity: 1.0,
strokeLinecap: 'butt',
@@ -34,7 +34,7 @@
var tool = $('#tool_eyedropper');
}
-
+
var getPaint = function(color, opac, type) {
// update the editor's fill paint
var opts = null;
@@ -48,7 +48,7 @@
opts = { alpha: opac };
opts[refElem.tagName] = refElem;
- }
+ }
else if (color.indexOf("#") === 0) {
opts = {
alpha: opac,
@@ -63,14 +63,14 @@
}
return new $.jGraduate.Paint(opts);
};
-
+
return {
name: "eyedropper",
svgicons: "extensions/eyedropper-icon.xml",
buttons: [{
id: "tool_eyedropper",
type: "mode",
- title: "Eye Dropper Tool",
+ title: "鍚哥宸ュ叿",
position: 8,
key: "I",
icon: "extensions/eyedropper.png",
@@ -80,7 +80,7 @@
}
}
}],
-
+
mouseDown: function(opts) {
var mode = svgCanvas.getMode();
var e = opts.event;
@@ -132,4 +132,4 @@
}
}
};
-});
\ No newline at end of file
+});
--
Gitblit v1.9.1