1
0

point-component.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * iGeom by LInE
  3. * Free software to student private data
  4. *
  5. * http://www.matematica.br/igeom
  6. * http://www.usp.br/line
  7. *
  8. * Create and register new element MidPoint
  9. * It is used in ./app/core/application/menu.js
  10. *
  11. * ./app/component-registry/point-component.js
  12. * @version 2023/09/20: Added new parameter 'description,' to 'ComponentOptions'
  13. */
  14. import { Component } from "../core/models/components/component";
  15. import { ComponentOptions } from "../core/models/components/component-options";
  16. import { PointDrawer } from "../components/point-component/drawers/point-drawer";
  17. class PointComponent extends Component {
  18. //TODO: it is necessary internationalization!
  19. constructor () {
  20. const options = new ComponentOptions(
  21. "3c36afc9b5624ea4b05bdc9fb9912ebe",
  22. "Point",
  23. "Construct Point (free point with click over blank area or point over with clik over line, circumference,...) ",
  24. "point"
  25. );
  26. super(new PointDrawer(), options);
  27. }
  28. }
  29. export const pointComponent = new PointComponent();