浏览代码

Update 'src/app/component-registry/selector-component.js'

Added header
Changes to use object constructor "description" (app/core/models/components/component-options.js) in button (app/core/application/menu.js)
New field to new ComponentOptions(...): "With Selector you can mark/select several objects (e.g. to remove all of them with a single 'del')",
leo 1 年之前
父节点
当前提交
60fb600a9f
共有 1 个文件被更改,包括 25 次插入4 次删除
  1. 25 4
      src/app/component-registry/selector-component.js

+ 25 - 4
src/app/component-registry/selector-component.js

@@ -1,16 +1,37 @@
+/*
+ * 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/selector-component.js
+ * @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 { SelectorDrawer } from "../components/selector-component/drawers/selector-drawer";
 import { COMPONENT_TYPE } from "../core/enums/component-type-enum";
+
 export class SelectorComponent extends Component {
-  constructor() {
+
+  //TODO: it is necessary internationalization!
+
+  constructor () {
     const options = new ComponentOptions(
       "15d1b49619c946809fdb6922f4d7b657",
       "Selector",
+      "With Selector you can mark/select several objects (e.g. to remove all of them with a single 'del')",
       "selector",
       COMPONENT_TYPE.SELECTOR
-    );
+      );
     super(new SelectorDrawer(), options);
+    }
+
   }
-}
-export const selectorComponent = new SelectorComponent();
+
+export const selectorComponent = new SelectorComponent();