浏览代码

词云重叠问题,

qinpeng 2 年之前
父节点
当前提交
08bc97240b
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      public/ciyun/ciyunindex.html
  2. 2 2
      public/ciyun/js/cloud.min.js

+ 1 - 1
public/ciyun/ciyunindex.html

@@ -442,6 +442,7 @@
                     text = str
                     $("#text").val(text);
                     $("#go").trigger("click");
+                    console.log("2022-11-09 14点55分");
                 }
             })
         }
@@ -543,7 +544,6 @@
                 dataType: "json",
                 type: "post",
                 success: function (res) {
-                    console.log(res);
                     let arr = []
                     res.data.result.forEach(item => {
                         arr.push(item.word)

+ 2 - 2
public/ciyun/js/cloud.min.js

@@ -188,8 +188,8 @@ function downloadSVG() {
 							text: h.call(this, t, e),
 							font: p.call(this, t, e),
 							rotate: g.call(this, t, e),
-							size: ~~y.call(this, t, e),
-							// size: changeSize(t.key, ciyunData),
+							// size: ~~y.call(this, t, e),
+							size: changeSize(t.key, ciyunData),
 							padding: s.call(this, t, e)
 						}
 					}).sort(function (t, e) {