|
@@ -1,12 +1,17 @@
|
|
|
|
+// iGeomJS
|
|
|
|
+// LInE
|
|
|
|
+
|
|
import { identifier } from "../../application/identifier";
|
|
import { identifier } from "../../application/identifier";
|
|
|
|
|
|
export class GenericObject {
|
|
export class GenericObject {
|
|
- constructor(id) {
|
|
|
|
|
|
+
|
|
|
|
+ constructor (id) {
|
|
if (id == undefined) {
|
|
if (id == undefined) {
|
|
- this.id = identifier.next();
|
|
|
|
|
|
+ this.id = identifier.next(); // app/core/application/identifier.js: next(): return this.number++;
|
|
} else {
|
|
} else {
|
|
this.id = id;
|
|
this.id = id;
|
|
- }
|
|
|
|
|
|
+ identifier.setIdentifierNumber(id+1); // app/core/application/identifier.js: setIdentifierNumber(id): this.number = id;
|
|
|
|
+ }
|
|
this.elementClass;
|
|
this.elementClass;
|
|
this.label = "";
|
|
this.label = "";
|
|
this.labelIgeom = "";
|
|
this.labelIgeom = "";
|
|
@@ -16,5 +21,6 @@ export class GenericObject {
|
|
this.defined = 1;
|
|
this.defined = 1;
|
|
this.color = -16776961;
|
|
this.color = -16776961;
|
|
this.visible = true;
|
|
this.visible = true;
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|