|
@@ -529,7 +529,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- const fontSize = Math.max(12, 20 * this.scale); // 最小字体12px,基础字体16px
|
|
|
|
|
|
|
+ const fontSize = Math.max(10, 10 * this.scale); // 最小字体12px,基础字体16px
|
|
|
// ctx.font = '30px Arial';
|
|
// ctx.font = '30px Arial';
|
|
|
|
|
|
|
|
ctx.font = `${fontSize}px Arial`; // 让文字大小跟随缩放
|
|
ctx.font = `${fontSize}px Arial`; // 让文字大小跟随缩放
|
|
@@ -541,7 +541,7 @@ export default {
|
|
|
const iconWidth = 100*this.zoomRate*this.scale;
|
|
const iconWidth = 100*this.zoomRate*this.scale;
|
|
|
const iconHeight = 100*this.zoomRate*this.scale;
|
|
const iconHeight = 100*this.zoomRate*this.scale;
|
|
|
|
|
|
|
|
- if(item.displayType === 0){
|
|
|
|
|
|
|
+ if(item.displayType === 0 || item.displayType === 2){
|
|
|
ctx.fillText(`${item.displayName}`,obj.x+35*this.zoomRate*this.scale,obj.y);
|
|
ctx.fillText(`${item.displayName}`,obj.x+35*this.zoomRate*this.scale,obj.y);
|
|
|
}else{
|
|
}else{
|
|
|
if(item.correctType==0){
|
|
if(item.correctType==0){
|
|
@@ -652,7 +652,7 @@ export default {
|
|
|
const iconY=obj.y-20*this.zoomRate*this.scale;
|
|
const iconY=obj.y-20*this.zoomRate*this.scale;
|
|
|
const iconWidth = 100*this.zoomRate*this.scale;
|
|
const iconWidth = 100*this.zoomRate*this.scale;
|
|
|
const iconHeight = 100*this.zoomRate*this.scale;
|
|
const iconHeight = 100*this.zoomRate*this.scale;
|
|
|
- if(item.displayType === 0){
|
|
|
|
|
|
|
+ if(item.displayType === 0 || item.displayType === 2){
|
|
|
ctx.fillText(`${item.displayName}`,obj.x+35*this.zoomRate*this.scale,obj.y);
|
|
ctx.fillText(`${item.displayName}`,obj.x+35*this.zoomRate*this.scale,obj.y);
|
|
|
}else{
|
|
}else{
|
|
|
if(item.correctType==0){
|
|
if(item.correctType==0){
|
|
@@ -669,7 +669,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- const fontSize = Math.max(12, 24 * this.scale); // 最小字体12px,基础字体16px
|
|
|
|
|
|
|
+ const fontSize = Math.max(10, 10 * this.scale); // 最小字体12px,基础字体16px
|
|
|
// ctx.font = '30px Arial';
|
|
// ctx.font = '30px Arial';
|
|
|
|
|
|
|
|
ctx.font = `${fontSize}px Arial`; // 让文字大小跟随缩放
|
|
ctx.font = `${fontSize}px Arial`; // 让文字大小跟随缩放
|