Ver código fonte

'文字大小样式调整'

zhangyu 4 anos atrás
pai
commit
8ed1a5f836

+ 1 - 1
package.json

@@ -9,7 +9,7 @@
   },
   "dependencies": {
     "@saga-web/base": "2.1.22",
-    "@saga-web/big": "1.0.78",
+    "@saga-web/big": "1.0.79",
     "@saga-web/draw": "2.1.100",
     "@saga-web/feng-map": "1.0.23",
     "@saga-web/graph": "2.1.108",

+ 3 - 3
src/components/baseEditer.vue

@@ -90,7 +90,7 @@ export default {
     // 自动保存(时间差为一分钟)
     this.autoSave = setInterval(() => {
       this.saveMsgNoMessage();
-    }, 6000);
+    }, 60000);
   },
   methods: {
     init() {
@@ -401,8 +401,8 @@ export default {
                         Num: 1, // 此num与信息工程化得num无关
                         sWidth: 32,  //icon 的宽
                         sHeight: 32,   //icon 的高
-                        font: 20,    //font
-                        color: '#646A73',  //字体颜色
+                        font: 14,    //font
+                        color: "#1F2429",  //字体颜色
                         GraphCategoryId: val.age.GraphCategoryId,
                         InfoSystemId: val.age.InfoSystemId?val.age.InfoSystemId:'',   //信息工程话分类ID分类
                         FID: t.data.SourceId,

+ 1 - 0
src/components/edit/attr_select.vue

@@ -578,6 +578,7 @@ export default {
         ) {
           if (newval.itemType == "Image") {
             this.imageNum = Item.num;
+            this.lengedName = Item.name;
             this.color = Item.color.value;
             this.fontSize = Item.font.size;
           } else if (newval.itemType == "Line") {

+ 9 - 9
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: 20,
-                color: '#646A73',
+                font: 14,
+                color: "#1F2429",
                 TextPos: { X: 0, Y: 0 },
                 InfoTypeId:this._legend.InfoTypeId.length? this._legend.InfoTypeId :[],
                 InfoSystemId:this._legend.InfoSystemId ? this._legend.InfoSystemId :'',
@@ -332,8 +332,8 @@ export class EditScence extends SGraphScene {
                     FillColor: this._legend.FillColor,
                     LineDash: this._legend.LineDash,
                     LineWidth: this._legend.LineWidth,
-                    font: 20,
-                    color: '#646A73',
+                    font: 14,
+                    color: "#1F2429",
                     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 :[],
@@ -410,9 +410,9 @@ export class EditScence extends SGraphScene {
             Properties: {
                 IconUrl: require(`../../assets/images/t-text-hover.png`),
                 Text: '请在右侧属性栏输入文字!',
-                Color: '#646A73',
-                Font: 20,
-                BackgroundColor: '#f7f9fa'
+                Color: "#646C73",
+                Font: 14,
+                BackgroundColor: "#f7f9facc"
             }
         }
         const item = new STextMarkerItem(null, data);
@@ -452,8 +452,8 @@ export class EditScence extends SGraphScene {
                 Num: 1, // 此num与信息工程化得num无关
                 sWidth: 32,  //icon 的宽
                 sHeight: 32,   //icon 的高
-                font: 20,    //font
-                color: '#646A73',  //字体颜色
+                font: 16,    //font
+                color: '#1F2429',  //字体颜色
                 FrameColor: this._legend.FrameColor,
                 GraphCategoryId: this._legend.GraphCategoryId,
                 InfoSystemId:this._legend.InfoSystemId ? this._legend.InfoSystemId :'' ,

+ 1 - 1
src/lib/items/SImageLegendItem.ts

@@ -99,7 +99,7 @@ export class SImageLegendItem extends SIconTextItem {
             this.textItem.moveTo(data.Properties.TextPos.X, data.Properties.TextPos.Y);
         } else {
             // 偏移二分之一文本高度
-            this.textItem.moveTo((this.img.width * 0.5) + 2, -(this.font.size * 0.5));
+            this.textItem.moveTo((this.img.width * 0.5), -(this.font.size * 1.25 * 0.5));
         }
         if (data.Properties && data.Properties.color) {
             this.color = new SColor(data.Properties.color);