intersection-component.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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 IntersectionPoint
  9. * It is used in ./app/core/application/menu.js
  10. *
  11. * ./app/component-registry/intersection-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 { IntersectionDrawer } from "../components/intersection-component/drawers/intersection-drawer";
  17. export class IntersectionComponent extends Component {
  18. //TODO: it is necessary internationalization!
  19. constructor () {
  20. const options = new ComponentOptions(
  21. "e60c06bc485546fe89f3565e9f8758e7",
  22. "Intersection",
  23. "Construct the intersection point of other two Geometric Objects (select those 2 objects)",
  24. "intersection"
  25. );
  26. super(new IntersectionDrawer(), options);
  27. }
  28. }
  29. export const intersectionComponent = new IntersectionComponent();