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 2495... Línea 2495...
2495
				if(uno){
2495
				if(uno){
2496
					ancho=imagen.width, alto = imagen.height;
2496
					ancho=imagen.width, alto = imagen.height;
2497
					elemento.width = ancho;
2497
					elemento.width = ancho;
2498
					elemento.height = alto;
2498
					elemento.height = alto;
2499
					$(".scale").css("display","flex");
2499
					$(".scale").css("display","flex");
2500
					mitadX=ancho/2;
-
 
2501
					mitadY=alto/2;
-
 
2502
					x=mitadX-xf/2;
-
 
2503
					y=mitadY-yf/2;
-
 
2504
					if(ancho<=alto){
2500
					if(ancho<=alto){
2505
					 scale = -(((alto-450)/alto)-1);
2501
					 scale = -(((alto-450)/alto)-1);
-
 
2502
					
2506
					 
2503
					
2507
					}else{					
2504
					}else{					
2508
					 scale = -(((ancho-500)/ancho)-1);
2505
					 scale = -(((ancho-500)/ancho)-1);
-
 
2506
				
-
 
2507
					}
-
 
2508
 
-
 
2509
					if((ancho*recorte)<=alto){
-
 
2510
 
-
 
2511
						xf=ancho*.70;
-
 
2512
					 	yf=xf*recorte;
-
 
2513
					}else{
-
 
2514
						yf=alto*.70;
-
 
2515
					 	xf=yf/recorte;
2509
					}
2516
					}
-
 
2517
					cuadro_dimencion=Math.round(12/scale);
-
 
2518
					
-
 
2519
					if(xf<50||yf<50){
-
 
2520
						xf=50;
-
 
2521
						yf=xf*recorte;
-
 
2522
					}
-
 
2523
					mitadX=ancho/2;
-
 
2524
					mitadY=alto/2;
-
 
2525
					x=mitadX-xf/2;
-
 
2526
					y=mitadY-yf/2;
-
 
2527
					
2510
					$("#porciento_scale").html((scale*100).toFixed(2)+"%")
2528
					$("#porciento_scale").html((scale*100).toFixed(2)+"%")
2511
					$("#ancho").html(ancho+"px");
2529
					$("#ancho").html(ancho+"px");
2512
					$("#alto").html(alto+"px");
2530
					$("#alto").html(alto+"px");
2513
					uno=false;
2531
					uno=false;
2514
				}
2532
				}