فهرست منبع

Update 'src/app/component-registry/line-segment-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 a LineSegment between two points (select those 2 points)",
leo 8 ماه پیش
والد
کامیت
784c98769e
1فایلهای تغییر یافته به همراه24 افزوده شده و 4 حذف شده
  1. 24 4
      src/app/component-registry/line-segment-component.js

+ 24 - 4
src/app/component-registry/line-segment-component.js

@@ -1,15 +1,35 @@
+/*
+ * 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/
+ * @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 { LineSegmentDrawer } from "../components/line-segment-component/drawers/line-segment-drawer";
+
 class LineSegmentComponent extends Component {
-  constructor() {
+
+  //TODO: it is necessary internationalization!
+
+  constructor () {
     const options = new ComponentOptions(
       "0566268b76d744f28c79e482e26fab3a",
       "Line Segment",
+      "Construct a LineSegment between two points (select those 2 points)",
       "line-segment"
-    );
+      );
     super(new LineSegmentDrawer(), options);
+    }
+
   }
-}
 
-export const lineSegmenComonent = new LineSegmentComponent();
+export const lineSegmenComonent = new LineSegmentComponent();