Просмотр исходного кода

Update 'src/app/core/enums/elements-class-enum.js'

Header and indentation
leo 3 лет назад
Родитель
Сommit
6c12982295
1 измененных файлов с 15 добавлено и 8 удалено
  1. 15 8
      src/app/core/enums/elements-class-enum.js

+ 15 - 8
src/app/core/enums/elements-class-enum.js

@@ -1,8 +1,17 @@
+/*
+ * iGeom by LInE
+ * Definitions of ID to Geometric Objects
+ * www.matematica.br/igeom
+ * ./app/core/enums/elements-class-enum.js
+ * @version 2020/11/02: Implemented Line instersection
+ */
+
 export const ELEMENTS_CLASS = {
   POINT: 0,
   INTERSECTION_POINT: 1,
   CIRCUMFERENCE: 3,
-  LINE_SEGMENT: 6
+  LINE: 4,
+  LINE_SEGMENT: 6,
   // TO: PONTO                      =   0;
   // TO: PONTO_INTERSECAO           =   1;
   // TO: PONTO_SOBRE                =   2;
@@ -23,12 +32,9 @@ export const ELEMENTS_CLASS = {
   // TO: LOCUS                      =  17;
   // TO: MED_TEXTO                  =  20;  // para textos
   // TO: CIRCUNFERENCIA_INT         =  21; // [11/01/2006] estava 56, mas este num. e de rotacao
-};
+  };
 
-/**
- *
- * @param {number} code
- */
+// @param {number} code
 export function fromCodeToClass(code) {
   switch (code) {
     case 0:
@@ -41,5 +47,6 @@ export function fromCodeToClass(code) {
       return ELEMENTS_CLASS.CIRCUMFERENCE;
     default:
       return ELEMENTS_CLASS.POINT;
-  }
-}
+    }
+
+  }