Connector Extension Should Use Defaults

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1469 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jacques Distler 2010-03-23 01:27:20 +00:00
parent 240ab30362
commit 20567c2998
1 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,7 @@ svgEditor.addExtension("Connector", function(S) {
getElem = S.getElem, getElem = S.getElem,
addElem = S.addSvgElementFromJson, addElem = S.addSvgElementFromJson,
selManager = S.selectorManager, selManager = S.selectorManager,
curConfig = svgEditor.curConfig,
started = false, started = false,
start_x, start_x,
start_y, start_y,
@ -307,10 +308,10 @@ svgEditor.addExtension("Connector", function(S) {
"attr": { "attr": {
"id": getNextId(), "id": getNextId(),
"points": (x+','+y+' '+x+','+y+' '+start_x+','+start_y), "points": (x+','+y+' '+x+','+y+' '+start_x+','+start_y),
"stroke": '#000', "stroke": '#' + curConfig.initStroke.color,
"stroke-width": 3, "stroke-width": (!start_elem.stroke_width || start_elem.stroke_width == 0) ? curConfig.initStroke.width : start_elem.stroke_width,
"fill": "none", "fill": "none",
"opacity": .5, "opacity": curConfig.initStroke.opacity,
"style": "pointer-events:none" "style": "pointer-events:none"
} }
}); });