瀏覽代碼

支持外部修改蒙版颜色;2.0.538

haojianlong 5 年之前
父節點
當前提交
9f0d1afd6e
共有 3 個文件被更改,包括 5 次插入3 次删除
  1. 1 1
      package.json
  2. 3 1
      src/index.ts
  3. 1 1
      src/items/ShadeItem.ts

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/cad-engine",
-    "version": "2.0.537",
+    "version": "2.0.538",
     "description": "上格云 CAD图形引擎。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",

+ 3 - 1
src/index.ts

@@ -17,6 +17,7 @@ import { RectSelectItem } from "./items/RectSelectItem";
 import { LikeSpaceItem } from "./items/LikeSpaceItem";
 import { RelationScene } from "./RelationScene";
 import { ZoneScene } from "./ZoneScene";
+import { Opt } from "./types/Opt";
 
 export {
     FloorScene,
@@ -24,7 +25,8 @@ export {
     LocationPointScene,
     DivideFloorScene,
     FloorView,
-    RelationScene
+    RelationScene,
+    Opt
 };
 
 export {

+ 1 - 1
src/items/ShadeItem.ts

@@ -173,7 +173,7 @@ export class ShadeItem extends SGraphyItem {
         painter.pen.lineCapStyle = SLineCapStyle.Square;
         if (this.closeFlag) {
             painter.pen.color = SColor.Transparent;
-            painter.brush.color = Opt.sceneMarkColor;
+            painter.brush.color = Opt.shadeColor;
             painter.drawPolygon(this.outLine);
         } else {
             painter.pen.color = new SColor("#ff0000");