selector-component.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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/selector-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 { SelectorDrawer } from "../components/selector-component/drawers/selector-drawer";
  17. import { COMPONENT_TYPE } from "../core/enums/component-type-enum";
  18. export class SelectorComponent extends Component {
  19. //TODO: it is necessary internationalization!
  20. constructor () {
  21. const options = new ComponentOptions(
  22. "15d1b49619c946809fdb6922f4d7b657",
  23. "Selector",
  24. "With Selector you can mark/select several objects (e.g. to remove all of them with a single 'del')",
  25. "selector",
  26. COMPONENT_TYPE.SELECTOR
  27. );
  28. super(new SelectorDrawer(), options);
  29. }
  30. }
  31. export const selectorComponent = new SelectorComponent();