PARTI= {
const width = 1940,
height = 1280;
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
var p = svg.selectAll("polyline")
if(partioptions =="Beam Division"){
p.enter().append("polyline")
.data(parti1)
.enter()
.append("polyline")
.attr('points',function(d){return d})
.style('fill','none')
.style('stroke','black')
.style('stroke-width','2')
}
if(partioptions =="Cross-structure"){
p.enter().append("polyline")
.data(parti2)
.enter()
.append("polyline")
.attr('points',function(d){return d})
.style('fill','none')
.style('stroke','black')
.style('stroke-width','2')
}
////////////////////part3/////////////////////////
if(partioptions =="Circulation Mass"){
p.enter().append("polyline")
.data(parti3)
.enter()
.append("polyline")
.attr('points',function(d){return d})
.style('fill','rosybrown')
.style('fill-opacity',.5)
.style('stroke','black')
.style('stroke-width','2')
p.enter().append("polyline")
.data(parti2)
.enter()
.append("polyline")
.attr('points',function(d){return d})
.style('fill','none')
.style('stroke','black')
.style('stroke-width','2')
p.enter().append("polyline")
.data(parti33)
.enter()
.append("polyline")
.attr('points',function(d){return d})
.style('fill','Rgb(200,225,231)')
.style('fill-opacity',.5)
.style('stroke','black')
.style('stroke-width','.25')
}
///////////////////parti4//////////////////////////
if(partioptions =="Mass Chunks"){
p.enter().append("polyline")
.data(parti4)
.enter()
.append("polyline")
.attr('points',function(d){return d})
.style('fill','None')
.style('stroke','black')
.style('stroke-width','3')
p.enter().append("polyline")
.data(parti3)
.enter()
.append("polyline")
.attr('points',function(d){return d})
.style('fill','red')
.style('fill-opacity',.25)
.style('stroke','black')
.style('stroke-width','2')
p.enter().append("polyline")
.data(parti33)
.enter()
.append("polyline")
.attr('points',function(d){return d})
.style('fill','Rgb(200,225,231)')
.style('fill-opacity',.25)
.style('stroke','black')
.style('stroke-width','2')
p.enter().append("polyline")
.data(parti44)
.enter()
.append("polyline")
.attr('points',function(d){return d})
.style('fill','Rgb(200,225,231)')
.style('fill-opacity',.6)
.style('stroke','black')
.style('stroke-width','2')
}
//////////////////////////////////////////////////////
return svg.node();
}