Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 8356 | Rev 8358 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 8356 Rev 8357
Línea 1630... Línea 1630...
1630
					ancho=imagen.width, alto = imagen.height;
1630
					ancho=imagen.width, alto = imagen.height;
1631
					elemento.width = ancho;
1631
					elemento.width = ancho;
1632
					elemento.height = alto;
1632
					elemento.height = alto;
Línea 1633... Línea 1633...
1633
					
1633
					
1634
					$(".scale").css("display","flex");
-
 
1635
					mitadX=ancho/2;
-
 
1636
					mitadY=alto/2;
-
 
1637
					x=mitadX-xf/2;
-
 
1638
					y=mitadY-yf/2;
1634
					$(".scale").css("display","flex");
1639
					if(ancho<=alto){
1635
					if(ancho<=alto){
-
 
1636
					 scale = -(((alto-450)/alto)-1);
1640
					 scale = -(((alto-450)/alto)-1);
1637
					
1641
					 
1638
					
1642
					}else{					
1639
					}else{					
-
 
1640
					 scale = -(((ancho-500)/ancho)-1);
-
 
1641
				
-
 
1642
					}
-
 
1643
 
-
 
1644
					if((ancho*recorte)<=alto){
-
 
1645
 
-
 
1646
						xf=ancho*.70;
-
 
1647
					 	yf=xf*recorte;
-
 
1648
					}else{
-
 
1649
						yf=alto*.70;
1643
					 scale = -(((ancho-500)/ancho)-1);
1650
					 	xf=yf/recorte;
-
 
1651
					}
-
 
1652
					cuadro_dimencion=Math.round(12/scale);
-
 
1653
					
-
 
1654
					if(xf<50||yf<50){
-
 
1655
						xf=50;
-
 
1656
						yf=xf*recorte;
-
 
1657
					}
-
 
1658
					mitadX=ancho/2;
-
 
1659
					mitadY=alto/2;
-
 
1660
					x=mitadX-xf/2;
-
 
1661
					y=mitadY-yf/2;
1644
					}
1662
					
1645
					$("#porciento_scale").html((scale*100).toFixed(2)+"%")
1663
					$("#porciento_scale").html((scale*100).toFixed(2)+"%")
1646
					$("#ancho").html(ancho+"px");
1664
					$("#ancho").html(ancho+"px");
1647
					$("#alto").html(alto+"px");
1665
					$("#alto").html(alto+"px");
1648
					uno=false;
1666
					uno=false;