|
@@ -5,6 +5,7 @@ import { LineSegmentModel } from "../../components/line-segment-component/models
|
|
|
import { IntersectionModel } from "../../components/intersection-component/models/intersection-model";
|
|
|
import { menu } from "../application/menu";
|
|
|
import { label as Label } from '../../component-registry/label';
|
|
|
+import { LineModel } from "../../components/line-component/models/line-model";
|
|
|
export class ParserOrchestrator {
|
|
|
|
|
|
constructor(mapArr) {
|
|
@@ -32,6 +33,9 @@ export class ParserOrchestrator {
|
|
|
case ELEMENTS_CLASS.LINE_SEGMENT:
|
|
|
object = LineSegmentModel.do(map, this.list);
|
|
|
break;
|
|
|
+ case ELEMENTS_CLASS.LINE:
|
|
|
+ object = LineModel.do(map, this.list);
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
|
|
@@ -65,6 +69,9 @@ export class ParserOrchestrator {
|
|
|
case ELEMENTS_CLASS.LINE_SEGMENT:
|
|
|
drawer = this.getDrawer(ELEMENTS_CLASS.LINE_SEGMENT)
|
|
|
break;
|
|
|
+ case ELEMENTS_CLASS.LINE:
|
|
|
+ drawer = this.getDrawer(ELEMENTS_CLASS.LINE)
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|