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