spostate label del grafo sint

This commit is contained in:
cesare 2024-01-18 11:31:05 +01:00
parent cdbaadf82e
commit 579e4d2df1
1 changed files with 8 additions and 6 deletions

View File

@ -1106,9 +1106,9 @@ function _sentenceArcsStructs_new(d3,DOM,width,margin,sentenceheight,lisid,data_
const radius = 4
const sty=24
const titleposy=15
const titleposx=100
const nodehpos=480
const labelhpos=nodehpos-175
const titleposx=margin.lef-10 //100
const nodehpos=483
const labelhpos=nodehpos-178
const maxlabelwidth=40
const container = d3.select(DOM.svg(width+margin.left+margin.right,
sentenceheight+margin.top+margin.bottom+24))
@ -1122,17 +1122,19 @@ function _sentenceArcsStructs_new(d3,DOM,width,margin,sentenceheight,lisid,data_
.attr("alignment-baseline", "middle")
//.attr("class","text-warning")
.attr("font-family", 'inherit')
.text("Frase");
.style("text-anchor", "start")
.text("Frasi");
container
.append("text")
.attr("x", titleposx+275)
.attr("x", margin.left+labelhpos)
.attr("y", titleposy)
.attr("text-anchor", "middle")
.attr("alignment-baseline", "middle")
//.attr("class","synt__label")
.attr("font-family", 'inherit')
.text("Funzione e tipo");
.style("text-anchor", "start")
.text("Funzioni e tipi");
/*
container.append("style").text(`