Explorar o código

'修改文本字体大小和颜色'

zhangyu %!s(int64=4) %!d(string=hai) anos
pai
achega
50f85f9474
Modificáronse 1 ficheiros con 8 adicións e 8 borrados
  1. 8 8
      src/components/mapClass/EditScence.ts

+ 8 - 8
src/components/mapClass/EditScence.ts

@@ -276,8 +276,8 @@ export class EditScence extends SGraphScene {
                 FillColor: this._legend.FillColor,
                 LineDash: this._legend.LineDash,
                 LineWidth: this._legend.LineWidth,
-                font: 0,
-                color: '',
+                font: 14,
+                color: '#646A73',
                 TextPos: { X: 0, Y: 0 },
                 InfoTypeId:this._legend.InfoTypeId.length? this._legend.InfoTypeId :[],
                 InfoSystemId:this._legend.InfoSystemId ? this._legend.InfoSystemId :'',
@@ -333,8 +333,8 @@ export class EditScence extends SGraphScene {
                     FillColor: this._legend.FillColor,
                     LineDash: this._legend.LineDash,
                     LineWidth: this._legend.LineWidth,
-                    font: 12,
-                    color: '',
+                    font: 14,
+                    color: '#646A73',
                     FID: item.data.SourceId,
                     TextPos: { X: item.data.Location.Points[0].X, Y: -item.data.Location.Points[0].Y },
                     InfoTypeId:this._legend.InfoTypeId.length? this._legend.InfoTypeId :[],
@@ -411,8 +411,8 @@ export class EditScence extends SGraphScene {
             Properties: {
                 IconUrl: require(`../../assets/images/t-text-hover.png`),
                 Text: '请在右侧属性栏输入文字!',
-                Color: '',
-                Font: 12,
+                Color: '#646A73',
+                Font: 14,
                 BackgroundColor: '#f7f9fa'
             }
         }
@@ -453,8 +453,8 @@ export class EditScence extends SGraphScene {
                 Num: 1, // 此num与信息工程化得num无关
                 sWidth: 32,  //icon 的宽
                 sHeight: 32,   //icon 的高
-                font: 12,    //font
-                color: '',  //字体颜色
+                font: 14,    //font
+                color: '#646A73',  //字体颜色
                 FrameColor: this._legend.FrameColor,
                 GraphCategoryId: this._legend.GraphCategoryId,
                 InfoSystemId:this._legend.InfoSystemId ? this._legend.InfoSystemId :'' ,