@@ -10,9 +10,7 @@ export class IntersectionModel extends PointModel {
this.visible = visible;
this.index = index;
this.color = -65536;
- this.definitions = [];
- this.definitions.push(this.r);
- this.definitions.push(this.s);
+ this.definitions = [{ id: this.r.id }, { id: this.s.id }, { id: this.index + 1 }];
}
update(aggregator, event) {
@@ -56,7 +56,7 @@ export class Action {
return `${key}:${value}`;
r(str) {
- return str.replace(",", " ");
+ return str.replace(/,/g, " ");
rehydrate() {
this.id = this.genericObject.id;