Ver código fonte

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 1 ano atrás
pai
commit
0453d50d9e
1 arquivos alterados com 24 adições e 4 exclusões
  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();