@@ -5,6 +5,7 @@ export class LineModel extends LineSegmentModel {
constructor(pointA, pointB, label, id) {
super(pointA, pointB, label, id);
this.setClass(ELEMENTS_CLASS.LINE);
+ this.color = -16776961;
}
static do(map, list) {
@@ -30,8 +30,6 @@ export class LineSegmentModel extends GeometricObject {
const b = bY - aY;
return [a, b];
-
getMiddlePoint() {
const x = (this.pointA.posX + this.pointB.posX) / 2;
const y = (this.pointA.posY + this.pointB.posY) / 2;
@@ -14,7 +14,7 @@ export class GenericObject {
this.definitions = [];
this.labelColor = "";
this.defined = 1;
- this.color = "";
this.visible = true;