diff --git a/editor/select.js b/editor/select.js index d957596..a8bb547 100644 --- a/editor/select.js +++ b/editor/select.js @@ -546,7 +546,7 @@ svgedit.select.SelectorManager.prototype.getRubberBandBox = function() { 'element': 'rect', 'attr': { 'id': 'selectorRubberBand', - 'fill': 'transparent', + 'fill': 'none', 'stroke': '#666', 'stroke-width': 1, 'stroke-dasharray': '3,2', diff --git a/editor/svgedit.compiled.js b/editor/svgedit.compiled.js index 91ab652..9123b18 100644 --- a/editor/svgedit.compiled.js +++ b/editor/svgedit.compiled.js @@ -150,7 +150,7 @@ width:c[0],height:c[1],x:0,y:0,overflow:svgedit.browser.isWebkit()?"none":"visib d=a.createSVGElement({element:"rect",attr:{x:5,y:5,width:5,height:5,fill:"#eee"}}),l=a.createSVGElement({element:"rect",attr:{width:"100%",height:"100%",x:0,y:0,"stroke-width":1,stroke:"#000",fill:"url(#checkerPattern)",style:"pointer-events:none"}});c.appendChild(n);n.appendChild(s);s.appendChild(b);s.appendChild(f);s.appendChild(d);c.appendChild(l);a.svgRoot().insertBefore(c,a.svgContent())}};svgedit.select.SelectorManager.prototype.requestSelector=function(c){if(c==null)return null;var n=this.selectors.length; if(typeof this.selectorMap[c.id]=="object"){this.selectorMap[c.id].locked=true;return this.selectorMap[c.id]}for(var s=0;s element";this.svgElem_=c;this.obj_num=0;this.idPrefix=n||"svg_";this.releasedNums=[];this.all_layers=[];this.current_layer=null;this.nonce_= "";var s=this.svgElem_.getAttributeNS("http://svg-edit.googlecode.com","nonce");if(s&&g!=p.NEVER_RANDOMIZE)this.nonce_=s;else g==p.ALWAYS_RANDOMIZE&&this.setNonce(Math.floor(Math.random()*100001))};svgedit.draw.Drawing.prototype.getElem_=function(c){return this.svgElem_.querySelector?this.svgElem_.querySelector("#"+c):$(this.svgElem_).find("[id="+c+"]")[0]};svgedit.draw.Drawing.prototype.getSvgElem=function(){return this.svgElem_};svgedit.draw.Drawing.prototype.getNonce=function(){return this.nonce_}; diff --git a/method-draw/select.js b/method-draw/select.js index d957596..a8bb547 100644 --- a/method-draw/select.js +++ b/method-draw/select.js @@ -546,7 +546,7 @@ svgedit.select.SelectorManager.prototype.getRubberBandBox = function() { 'element': 'rect', 'attr': { 'id': 'selectorRubberBand', - 'fill': 'transparent', + 'fill': 'none', 'stroke': '#666', 'stroke-width': 1, 'stroke-dasharray': '3,2', diff --git a/method-draw/svgedit.compiled.js b/method-draw/svgedit.compiled.js index 91ab652..9123b18 100644 --- a/method-draw/svgedit.compiled.js +++ b/method-draw/svgedit.compiled.js @@ -150,7 +150,7 @@ width:c[0],height:c[1],x:0,y:0,overflow:svgedit.browser.isWebkit()?"none":"visib d=a.createSVGElement({element:"rect",attr:{x:5,y:5,width:5,height:5,fill:"#eee"}}),l=a.createSVGElement({element:"rect",attr:{width:"100%",height:"100%",x:0,y:0,"stroke-width":1,stroke:"#000",fill:"url(#checkerPattern)",style:"pointer-events:none"}});c.appendChild(n);n.appendChild(s);s.appendChild(b);s.appendChild(f);s.appendChild(d);c.appendChild(l);a.svgRoot().insertBefore(c,a.svgContent())}};svgedit.select.SelectorManager.prototype.requestSelector=function(c){if(c==null)return null;var n=this.selectors.length; if(typeof this.selectorMap[c.id]=="object"){this.selectorMap[c.id].locked=true;return this.selectorMap[c.id]}for(var s=0;s element";this.svgElem_=c;this.obj_num=0;this.idPrefix=n||"svg_";this.releasedNums=[];this.all_layers=[];this.current_layer=null;this.nonce_= "";var s=this.svgElem_.getAttributeNS("http://svg-edit.googlecode.com","nonce");if(s&&g!=p.NEVER_RANDOMIZE)this.nonce_=s;else g==p.ALWAYS_RANDOMIZE&&this.setNonce(Math.floor(Math.random()*100001))};svgedit.draw.Drawing.prototype.getElem_=function(c){return this.svgElem_.querySelector?this.svgElem_.querySelector("#"+c):$(this.svgElem_).find("[id="+c+"]")[0]};svgedit.draw.Drawing.prototype.getSvgElem=function(){return this.svgElem_};svgedit.draw.Drawing.prototype.getNonce=function(){return this.nonce_};