Commit 66d33b6f authored by youjie's avatar youjie

no message

parent 3747e1d2
......@@ -192,15 +192,22 @@
return obj
},
getFontSize(title){
if(title.length>60){
return 929/60 +'px'
}else{
return '30px'
let size = 30;
if (title.length >80){
var tempSize= Convert.ToDouble(80) / Convert.ToDouble(title.length);
tempSize = tempSize * 30;
size = Math.Round(tempSize, 1);
}
return size + "px";
// if(title.length>60){
// return 929/60 +'px'
// }else{
// return '30px'
// }
},
getImgColor(img,id){
return "#fff"
return
// this.canvasImgColor(img,id, (callback) => {
// let rgb = callback
// rgb = rgb.split(',')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment