Parcourir la source

adjustment in the line model to build the .geo file

Victor Luiz Domingues il y a 4 ans
Parent
commit
19cc941dad

+ 1 - 0
src/app/components/line-component/models/line-model.js

@@ -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) {

+ 0 - 2
src/app/components/line-segment-component/models/line-segment-model.js

@@ -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;

+ 1 - 1
src/app/core/models/objects/generic-object.js

@@ -14,7 +14,7 @@ export class GenericObject {
     this.definitions = [];
     this.labelColor = "";
     this.defined = 1;
-    this.color = "";
+    this.color = -16776961;
     this.visible = true;
   }
 }