|
@@ -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/point-component.js
|
|
|
|
+ * @version 2023/09/20: Added new parameter 'description,' to 'ComponentOptions'
|
|
|
|
+ */
|
|
|
|
+
|
|
import { Component } from "../core/models/components/component";
|
|
import { Component } from "../core/models/components/component";
|
|
import { ComponentOptions } from "../core/models/components/component-options";
|
|
import { ComponentOptions } from "../core/models/components/component-options";
|
|
import { PointDrawer } from "../components/point-component/drawers/point-drawer";
|
|
import { PointDrawer } from "../components/point-component/drawers/point-drawer";
|
|
|
|
+
|
|
class PointComponent extends Component {
|
|
class PointComponent extends Component {
|
|
- constructor() {
|
|
|
|
|
|
+
|
|
|
|
+ //TODO: it is necessary internationalization!
|
|
|
|
+
|
|
|
|
+ constructor () {
|
|
const options = new ComponentOptions(
|
|
const options = new ComponentOptions(
|
|
"3c36afc9b5624ea4b05bdc9fb9912ebe",
|
|
"3c36afc9b5624ea4b05bdc9fb9912ebe",
|
|
"Point",
|
|
"Point",
|
|
|
|
+ "Construct Point (free point with click over blank area or point over with clik over line, circumference,...) ",
|
|
"point"
|
|
"point"
|
|
- );
|
|
|
|
|
|
+ );
|
|
super(new PointDrawer(), options);
|
|
super(new PointDrawer(), options);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
|
|
-export const pointComponent = new PointComponent();
|
|
|
|
|
|
+export const pointComponent = new PointComponent();
|