Fixed several minor bugs

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1140 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-01-04 14:10:52 +00:00
parent 4989d74a63
commit c249478eed
3 changed files with 25 additions and 17 deletions

View File

@ -270,7 +270,7 @@ body {
stroke: #000; stroke: #000;
stroke-width: 1px; stroke-width: 1px;
stroke-opacity: 1.0; stroke-opacity: 1.0;
stroke-dasharray: none; stroke-dasharray: 0;
opacity: 1; opacity: 1;
pointer-events: stroke; pointer-events: stroke;
vector-effect: non-scaling-stroke; vector-effect: non-scaling-stroke;

View File

@ -197,24 +197,32 @@ script type="text/javascript" src="locale/locale.min.js"></script-->
</div> </div>
<div id="circle_panel"> <div id="circle_panel">
<div class="toolset">
<label class="circle_tool">cx:</label> <label class="circle_tool">cx:</label>
<input id="circle_cx" class="circle_tool attr_changer" title="Change circle's cx coordinate" size="3" data-attr="cx"/> <input id="circle_cx" class="circle_tool attr_changer" title="Change circle's cx coordinate" size="3" data-attr="cx"/>
<label class="circle_tool">cy:</label> <label class="circle_tool">cy:</label>
<input id="circle_cy" class="circle_tool attr_changer" title="Change circle's cy coordinate" size="3" data-attr="cy"/> <input id="circle_cy" class="circle_tool attr_changer" title="Change circle's cy coordinate" size="3" data-attr="cy"/>
</div>
<div class="toolset">
<label class="circle_tool">r:</label> <label class="circle_tool">r:</label>
<input id="circle_r" class="circle_tool attr_changer" title="Change circle's radius" size="3" data-attr="r"/> <input id="circle_r" class="circle_tool attr_changer" title="Change circle's radius" size="3" data-attr="r"/>
</div> </div>
</div>
<div id="ellipse_panel"> <div id="ellipse_panel">
<div class="toolset">
<label class="ellipse_tool">cx:</label> <label class="ellipse_tool">cx:</label>
<input id="ellipse_cx" class="ellipse_tool attr_changer" title="Change ellipse's cx coordinate" size="3" data-attr="cx"/> <input id="ellipse_cx" class="ellipse_tool attr_changer" title="Change ellipse's cx coordinate" size="3" data-attr="cx"/>
<label class="ellipse_tool">cy:</label> <label class="ellipse_tool">cy:</label>
<input id="ellipse_cy" class="ellipse_tool attr_changer" title="Change ellipse's cy coordinate" size="3" data-attr="cy"/> <input id="ellipse_cy" class="ellipse_tool attr_changer" title="Change ellipse's cy coordinate" size="3" data-attr="cy"/>
</div>
<div class="toolset">
<label class="ellipse_tool">rx:</label> <label class="ellipse_tool">rx:</label>
<input id="ellipse_rx" class="ellipse_tool attr_changer" title="Change ellipse's x radius" size="3" data-attr="rx"/> <input id="ellipse_rx" class="ellipse_tool attr_changer" title="Change ellipse's x radius" size="3" data-attr="rx"/>
<label class="ellipse_tool">ry:</label> <label class="ellipse_tool">ry:</label>
<input id="ellipse_ry" class="ellipse_tool attr_changer" title="Change ellipse's y radius" size="3" data-attr="ry"/> <input id="ellipse_ry" class="ellipse_tool attr_changer" title="Change ellipse's y radius" size="3" data-attr="ry"/>
</div> </div>
</div>
<div id="line_panel"> <div id="line_panel">
<div class="toolset"> <div class="toolset">

View File

@ -344,8 +344,8 @@ $(function() {
var id = this.id; var id = this.id;
var no_dupes = ($(svgdoc).find('#' + id).length <= 1); var no_dupes = ($(svgdoc).find('#' + id).length <= 1);
if(isOpera) no_dupes = false; // Opera didn't clone svg_el, so not reliable if(isOpera) no_dupes = false; // Opera didn't clone svg_el, so not reliable
if(!force && no_dupes) return; // if(!force && no_dupes) return;
var new_id = id + svg_num + i; var new_id = 'x' + id + svg_num + i;
$(this).attr('id', new_id); $(this).attr('id', new_id);
svg_el.find('[fill="url(#' + id + ')"]').each(function() { svg_el.find('[fill="url(#' + id + ')"]').each(function() {