Explorar o código

Update 'src/app/component-registry/circumference-component.js'

Added header
Changes to use object constructor "description" (app/core/models/components/component-options.js) in button (app/core/application/menu.js)
New field to new ComponentOptions(...): "Construct Circumference defined by Point (its center) and Point (defining its radius)",
leo hai 8 meses
pai
achega
0453d50d9e
Modificáronse 1 ficheiros con 24 adicións e 4 borrados
  1. 24 4
      src/app/component-registry/circumference-component.js

+ 24 - 4
src/app/component-registry/circumference-component.js

@@ -1,14 +1,34 @@
+/*
+ * iGeom by LInE
+ * Free software to student private data
+ *
+ * http://www.matematica.br/igeom
+ * http://www.usp.br/line
+ *
+ * Create and register new element MidPoint
+ * It is used in ./app/core/application/menu.js
+ *
+ * ./app/component-registry/circumference-component.js
+ * @version 2023/09/20: Added new parameter 'description,' to 'ComponentOptions'
+ */
+
 import { Component } from "../core/models/components/component";
 import { ComponentOptions } from "../core/models/components/component-options";
 import { CircumferenceDrawer } from "../components/circumference-component/drawers/circumference-drawer";
+
 class CircumferenceComponent extends Component {
-  constructor() {
+
+  //TODO: it is necessary internationalization!
+
+  constructor () {
     const options = new ComponentOptions(
       "c83f6d14758c48f7b8fdb5ca69e46272",
       "Circumference",
+      "Construct Circumference defined by Point (its center) and Point (defining its radius)",
       "circumference"
-    );
+      );
     super(new CircumferenceDrawer(), options);
+    }
   }
-}
-export const circumferenceComponent = new CircumferenceComponent();
+
+export const circumferenceComponent = new CircumferenceComponent();