Modulo:Sandbox/Aottolini/Graph: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
v9
Nessun oggetto della modifica
 
Riga 286:
:css('border-bottom-width', tostring(radius) .. 'px')
:css('border-left-width', 0)
:css('border-bottomright-color', color)
graph:node(div)
div = mw.html.create('div'):cssText('position:absolute;line-height:0;border-style:solid;right:0;top:0')
Riga 293:
:css('border-bottom-width', tostring(radius) .. 'px')
:css('border-left-width', 0)
:css('border-bottom-color', color)
graph:node(div)
elseif quadrante == 2 then -- 50..75 %
Riga 302:
:css('border-bottom-width', 0)
:css('border-left-width', 0)
:css('border-bottomtop-color', color)
graph:node(div)
div = mw.html.create('div'):cssText('position:absolute;line-height:0;border-style:solid;left:0;top:0')
Riga 309:
:css('border-bottom-width', tostring(radius) .. 'px')
:css('border-left-width', 0)
:css('border-bottom-color', color)
graph:node(div)
elseif quadrante == 3 then -- 75..100%
Riga 318:
:css('border-bottom-width', 0)
:css('border-left-width', tostring(radius * math.tan(math.pi * (value - 25) / 50)) .. 'px')
:css('border-bottomleft-color', color)
graph:node(div)
div = mw.html.create('div'):cssText('position:absolute;line-height:0;border-style:solid;left:0;top:0')
Riga 325:
:css('border-bottom-width', tostring(radius) .. 'px')
:css('border-left-width', 0)
:css('border-bottom-color', color)
graph:node(div)
div = mw.html.create('div'):cssText('position:absolute;line-height:0;border-style:solid;left:0;top:0')
Riga 332:
:css('border-bottom-width', tostring(2*radius) .. 'px')
:css('border-left-width', 0)
:css('border-bottom-color', color)
graph:node(div)
end