mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-11 15:32:50 +00:00
Remove debug
This commit is contained in:
parent
204eae98c4
commit
01cefc5c79
@ -28,7 +28,6 @@ export class InterfaceLabelWidget {
|
|||||||
const labels = selection
|
const labels = selection
|
||||||
.selectAll<SVGGElement, InterfaceLabel>('g.interface_label_container')
|
.selectAll<SVGGElement, InterfaceLabel>('g.interface_label_container')
|
||||||
.data((l: MapLink) => {
|
.data((l: MapLink) => {
|
||||||
console.log( l.nodes[0].label);
|
|
||||||
const sourceInterface = new InterfaceLabel(
|
const sourceInterface = new InterfaceLabel(
|
||||||
l.id,
|
l.id,
|
||||||
'source',
|
'source',
|
||||||
@ -79,13 +78,9 @@ export class InterfaceLabelWidget {
|
|||||||
.attr('height', 100)
|
.attr('height', 100)
|
||||||
.attr('transform', function(this: SVGGElement, l: InterfaceLabel) {
|
.attr('transform', function(this: SVGGElement, l: InterfaceLabel) {
|
||||||
const textLabel = merge.select<SVGTextElement>(`text[interface_label_id="${l.direction}-${l.link_id}"]`);
|
const textLabel = merge.select<SVGTextElement>(`text[interface_label_id="${l.direction}-${l.link_id}"]`);
|
||||||
|
|
||||||
const bbox = textLabel.node().getBBox();
|
const bbox = textLabel.node().getBBox();
|
||||||
console.log(bbox);
|
|
||||||
const x = l.x ;
|
const x = l.x ;
|
||||||
const y = l.y + bbox.height; //-17
|
const y = l.y + bbox.height;
|
||||||
// const x = l.x;
|
|
||||||
// const y = l.y + bbox.height;
|
|
||||||
return `translate(${x}, ${y}) rotate(${l.rotation}, ${x}, ${y})`;
|
return `translate(${x}, ${y}) rotate(${l.rotation}, ${x}, ${y})`;
|
||||||
})
|
})
|
||||||
.classed('selected', (l: InterfaceLabel) => false);
|
.classed('selected', (l: InterfaceLabel) => false);
|
||||||
|
Loading…
Reference in New Issue
Block a user