|
@@ -127,50 +127,56 @@ export default class Render {
|
|
|
|
|
|
this.drawGeometry(dataService.getBackgroundImg());
|
|
|
|
|
|
- let roads = dataService.getRoads();
|
|
|
- for (let key in roads) {
|
|
|
+ const roads = dataService.getRoads();
|
|
|
+ for (const key in roads) {
|
|
|
this.drawGeometry(roads[key]);
|
|
|
}
|
|
|
|
|
|
- let roadPoints = dataService.getRoadPoints();
|
|
|
- for (let key in roadPoints) {
|
|
|
+ const roadPoints = dataService.getRoadPoints();
|
|
|
+ for (const key in roadPoints) {
|
|
|
this.drawGeometry(roadPoints[key]);
|
|
|
}
|
|
|
|
|
|
- let curveRoads = dataService.getCurveRoads();
|
|
|
- for (let key in curveRoads) {
|
|
|
+ const curveRoads = dataService.getCurveRoads();
|
|
|
+ for (const key in curveRoads) {
|
|
|
this.drawGeometry(curveRoads[key]);
|
|
|
}
|
|
|
|
|
|
- let crossPoints = dataService.getCrossPoints();
|
|
|
- for (let key in crossPoints) {
|
|
|
+ const crossPoints = dataService.getCrossPoints();
|
|
|
+ for (const key in crossPoints) {
|
|
|
this.drawGeometry(crossPoints[key]);
|
|
|
}
|
|
|
|
|
|
- let points = dataService.getPoints();
|
|
|
- for (let key in points) {
|
|
|
+ const points = dataService.getPoints();
|
|
|
+ for (const key in points) {
|
|
|
this.drawGeometry(points[key]);
|
|
|
}
|
|
|
|
|
|
- let lines = dataService.getLines();
|
|
|
- for (let key in lines) {
|
|
|
+ const lines = dataService.getLines();
|
|
|
+ for (const key in lines) {
|
|
|
this.drawGeometry(lines[key]);
|
|
|
}
|
|
|
|
|
|
- let circles = dataService.getCircles();
|
|
|
- for (let key in circles) {
|
|
|
+ const circles = dataService.getCircles();
|
|
|
+ for (const key in circles) {
|
|
|
this.drawGeometry(circles[key]);
|
|
|
}
|
|
|
|
|
|
- let texts = dataService.getTexts();
|
|
|
- for (let key in texts) {
|
|
|
+ const texts = dataService.getTexts();
|
|
|
+ for (const key in texts) {
|
|
|
this.drawGeometry(texts[key]);
|
|
|
}
|
|
|
+
|
|
|
const magnifiers = dataService.getMagnifiers();
|
|
|
- for (let magnifiersKey in magnifiers) {
|
|
|
+ for (const magnifiersKey in magnifiers) {
|
|
|
this.drawGeometry(magnifiers[magnifiersKey]);
|
|
|
}
|
|
|
|
|
|
+ const svgs = dataService.getSVGs();
|
|
|
+ for (const key in svgs) {
|
|
|
+ this.drawGeometry(svgs[key]);
|
|
|
+ }
|
|
|
+
|
|
|
//this.drawGeometry(dataService.getImg());
|
|
|
this.redrawElements();
|
|
|
|