style:删除console
This commit is contained in:
@@ -187,7 +187,6 @@
|
||||
immediate:false,
|
||||
deep:true,
|
||||
handler(n){
|
||||
console.log(n,123213123123);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -258,10 +257,8 @@
|
||||
hexagonSvg.on('panEnd',this.hexagonSvgPanEnd);
|
||||
let Rate=(this.$refs.box.offsetWidth/this.defaultBoxWidth);
|
||||
Rate=(Rate>0.2?Rate:0.2);
|
||||
console.log(this.hexagonEdge,1);
|
||||
this.hexagonEdge=(this.hexagonEdge/this.defaultRate)*Rate;
|
||||
this.fontSize=(this.fontSize/this.defaultRate)*Rate;
|
||||
console.log(this.hexagonEdge,2);
|
||||
setHexagon(this.hexagonSvgID,{
|
||||
hexagonSvg:hexagonSvg,
|
||||
svgPolyline:null,
|
||||
|
||||
@@ -113,16 +113,12 @@
|
||||
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});
|
||||
console.log(text0.bbox());
|
||||
textPaddingWidth=(that.hexagonEdge+20)-(text0.bbox().width);
|
||||
textPaddingHeight=(that.hexagonEdge/3)-(text0.bbox().height);
|
||||
text0.attr({
|
||||
x: data.center[0]-that.hexagonEdge/2-10 +textPaddingWidth/2,
|
||||
y: data.center[1]-that.hexagonEdge + textPaddingHeight/2-4,
|
||||
}).hide()
|
||||
|
||||
|
||||
|
||||
allHexagonRect.push(rect0);
|
||||
allHexagonText.push(text0);
|
||||
text0.on('mousedown',textMouseDown);
|
||||
|
||||
Reference in New Issue
Block a user