Resizing of drawings on Firefox, Fixes: #226

This commit is contained in:
ziajka 2018-12-11 13:35:57 +01:00
parent 7fff8feec7
commit 13828b6d13
2 changed files with 5 additions and 7 deletions

View File

@ -46,6 +46,10 @@ export class DrawingWidget implements Widget {
.attr('transform', (d: MapDrawing) => {
return `translate(${d.x},${d.y}) rotate(${d.rotation})`;
});
this.drawingWidgets.forEach((widget) => {
widget.draw(drawing_body_merge);
});
drawing_body_merge
.select<SVGAElement>('line.top')
@ -112,11 +116,7 @@ export class DrawingWidget implements Widget {
.attr("cursor", "move");
drawing_body_merge
.classed('selected', (n: MapDrawing) => this.selectionManager.isSelected(n));
this.drawingWidgets.forEach((widget) => {
widget.draw(drawing_body_merge);
});
.classed('drawing_selected', (n: MapDrawing) => this.selectionManager.isSelected(n));
}
}

View File

@ -45,10 +45,8 @@ import { MapLabel } from '../../cartography/models/map/map-label';
import { D3MapComponent } from '../../cartography/components/d3-map/d3-map.component';
import { MapLinkNode } from '../../cartography/models/map/map-link-node';
import { TextElement } from '../../cartography/models/drawings/text-element';
import { FontFixer } from '../../cartography/helpers/font-fixer';
import { MapLabelToLabelConverter } from '../../cartography/converters/map/map-label-to-label-converter';
import { select } from 'd3-selection';
import { delay } from 'q';
@Component({