mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-14 21:56:34 +00:00
Resizing of drawings on Firefox, Fixes: #226
This commit is contained in:
parent
7fff8feec7
commit
13828b6d13
@ -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));
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user