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