style:删除console

This commit is contained in:
zhangyu
2020-12-17 17:17:52 +08:00
parent 248a5640b0
commit 897d6f9570
2 changed files with 0 additions and 7 deletions

View File

@@ -187,7 +187,6 @@
immediate:false, immediate:false,
deep:true, deep:true,
handler(n){ handler(n){
console.log(n,123213123123);
} }
} }
}, },
@@ -258,10 +257,8 @@
hexagonSvg.on('panEnd',this.hexagonSvgPanEnd); hexagonSvg.on('panEnd',this.hexagonSvgPanEnd);
let Rate=(this.$refs.box.offsetWidth/this.defaultBoxWidth); let Rate=(this.$refs.box.offsetWidth/this.defaultBoxWidth);
Rate=(Rate>0.2?Rate:0.2); Rate=(Rate>0.2?Rate:0.2);
console.log(this.hexagonEdge,1);
this.hexagonEdge=(this.hexagonEdge/this.defaultRate)*Rate; this.hexagonEdge=(this.hexagonEdge/this.defaultRate)*Rate;
this.fontSize=(this.fontSize/this.defaultRate)*Rate; this.fontSize=(this.fontSize/this.defaultRate)*Rate;
console.log(this.hexagonEdge,2);
setHexagon(this.hexagonSvgID,{ setHexagon(this.hexagonSvgID,{
hexagonSvg:hexagonSvg, hexagonSvg:hexagonSvg,
svgPolyline:null, svgPolyline:null,

View File

@@ -113,16 +113,12 @@
str=str.slice(0,6)+"..." str=str.slice(0,6)+"..."
} }
let text0=group.text(str).attr({x:0,y:0}).font({size:fontSize}).fill({opacity:0,color:'#fff',weight:600}); let text0=group.text(str).attr({x:0,y:0}).font({size:fontSize}).fill({opacity:0,color:'#fff',weight:600});
console.log(text0.bbox());
textPaddingWidth=(that.hexagonEdge+20)-(text0.bbox().width); textPaddingWidth=(that.hexagonEdge+20)-(text0.bbox().width);
textPaddingHeight=(that.hexagonEdge/3)-(text0.bbox().height); textPaddingHeight=(that.hexagonEdge/3)-(text0.bbox().height);
text0.attr({ text0.attr({
x: data.center[0]-that.hexagonEdge/2-10 +textPaddingWidth/2, x: data.center[0]-that.hexagonEdge/2-10 +textPaddingWidth/2,
y: data.center[1]-that.hexagonEdge + textPaddingHeight/2-4, y: data.center[1]-that.hexagonEdge + textPaddingHeight/2-4,
}).hide() }).hide()
allHexagonRect.push(rect0); allHexagonRect.push(rect0);
allHexagonText.push(text0); allHexagonText.push(text0);
text0.on('mousedown',textMouseDown); text0.on('mousedown',textMouseDown);