@@ -9,6 +9,7 @@ export default class Circle extends Geometry {
super();
this.radius = 5;
this.center = null;
+ this.color = "blue";
this.geoType = VectorType.Circle;
this.setId(vectorId);
@@ -27,4 +28,8 @@ export default class Circle extends Geometry {
this.center.y = center.y;
}
+
+ setColor(value) {
+ this.color = value;
+ }
@@ -9,6 +9,7 @@ export default class Line extends Geometry {
this.startId = startId;
this.endId = endId;
this.category = null;
+ this.arrowColor = null; //箭头类型会用到
this.geoType = VectorType.Line;