Commit f89f926b authored by liujiangnan's avatar liujiangnan

圈里的字体缩放

parent 689d13b1
This diff is collapsed.
...@@ -995,7 +995,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -995,7 +995,9 @@ export class PlayComponent implements OnInit, OnDestroy {
words_content.fontColor = '#ab5a23'; words_content.fontColor = '#ab5a23';
words_content.refreshSize(); words_content.refreshSize();
words_bg.addChild(words_content); words_bg.addChild(words_content);
words_bg.setScaleXY(this.mapScale); words_bg.setRadius(words_content.width/3*2);
let scale = getMinScale(words_bg, 80)*this.mapScale
words_bg.setScaleXY(scale);
const words_bg_right = new ShapeCircle(); const words_bg_right = new ShapeCircle();
words_bg_right.setRadius(50); words_bg_right.setRadius(50);
...@@ -1011,7 +1013,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1011,7 +1013,9 @@ export class PlayComponent implements OnInit, OnDestroy {
words_content_right.fontColor = '#fdcd00'; words_content_right.fontColor = '#fdcd00';
words_content_right.refreshSize(); words_content_right.refreshSize();
words_bg_right.addChild(words_content_right); words_bg_right.addChild(words_content_right);
words_bg_right.setScaleXY(this.mapScale); words_bg_right.setRadius(words_content.width/3*2);
let scale_r = getMinScale(words_bg_right, 80)*this.mapScale
words_bg_right.setScaleXY(scale_r);
this.body_bg.addChild(words_bg); this.body_bg.addChild(words_bg);
this.words_bg = words_bg ; this.words_bg = words_bg ;
......
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