From 20567c29980a7407e9113d1f3d4f83f9006fbf86 Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Tue, 23 Mar 2010 01:27:20 +0000 Subject: [PATCH] Connector Extension Should Use Defaults git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1469 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/extensions/ext-connector.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/editor/extensions/ext-connector.js b/editor/extensions/ext-connector.js index 3a7c6c0e..b29aae08 100644 --- a/editor/extensions/ext-connector.js +++ b/editor/extensions/ext-connector.js @@ -14,6 +14,7 @@ svgEditor.addExtension("Connector", function(S) { getElem = S.getElem, addElem = S.addSvgElementFromJson, selManager = S.selectorManager, + curConfig = svgEditor.curConfig, started = false, start_x, start_y, @@ -307,10 +308,10 @@ svgEditor.addExtension("Connector", function(S) { "attr": { "id": getNextId(), "points": (x+','+y+' '+x+','+y+' '+start_x+','+start_y), - "stroke": '#000', - "stroke-width": 3, + "stroke": '#' + curConfig.initStroke.color, + "stroke-width": (!start_elem.stroke_width || start_elem.stroke_width == 0) ? curConfig.initStroke.width : start_elem.stroke_width, "fill": "none", - "opacity": .5, + "opacity": curConfig.initStroke.opacity, "style": "pointer-events:none" } });