Преглед изворни кода

'属性调整和填充颜色修改'

zhangyu пре 4 година
родитељ
комит
602901d5e0

+ 1 - 1
package.json

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

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

@@ -376,7 +376,7 @@ export default {
         Line: "管道编辑",
         Zone: "编辑区域"
       },
-      swatchess: ["#57c5fc26", "#5f6ce126", "#71b31226", "#00a17726"],
+      swatchess: ["#57C5FC", "#5F6CE1", "#71B312", "#00A177"],
       swatches: [
         "#f7f9facc",
         "#1FBC9C",

+ 2 - 2
src/components/edit/right_toolbar.vue

@@ -39,8 +39,8 @@
 <script>
 import attrSelect from "@/components/edit/attr_select";
 import bus from "@/bus";
-import { SImageMarkerItem } from '../../lib/items/SImageMarkerItem';
-import { SImageLegendItem } from '../../lib/items/SImageLegendItem';
+import { SImageMarkerItem } from "@/lib/items/SImageMarkerItem";
+import { SImageLegendItem } from "@/lib/items/SImageLegendItem";
 
 const msgList = [
   {

+ 6 - 1
src/components/mapClass/EditScence.ts

@@ -689,7 +689,12 @@ export class EditScence extends SGraphScene {
      */
     upadatfillColor(fillColor: string): void {
         if (this.focusItem && this.focusItem.fillColor) {
-            const fillColorT = fillColor+Transparency[20];
+            let fillColorT;
+            if (fillColor.length == 7) {
+                fillColorT = fillColor + Transparency[15];
+            } else {
+                fillColorT = fillColor;
+            }
             const newMsg = new SColor(fillColorT);
             const oldMsg = this.focusItem.fillColor;
             this.focusItem.fillColor = new SColor(fillColorT);