(function(n){var t={set:{colors:1,values:1,backgroundColor:1,scaleColors:1,normalizeFunction:1,focus:1},get:{selectedRegions:1,selectedMarkers:1,mapObject:1,regionName:1}};n.fn.vectorMap=function(n){var r,i=this.children(".jvectormap-container").data("mapObject");if(n==="addMap")jvm.Map.maps[arguments[1]]=arguments[2];else{if((n==="set"||n==="get")&&t[n][arguments[1]])return r=arguments[1].charAt(0).toUpperCase()+arguments[1].substr(1),i[n+r].apply(i,Array.prototype.slice.call(arguments,2));n=n||{};n.container=this;i=new jvm.Map(n)}return this}})(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n:n(jQuery)}(function(n){function e(i){var r=i||window.event,y=h.call(arguments,1),o=0,e=0,f=0,l=0,a,v;if(i=n.event.fix(r),i.type="mousewheel","detail"in r&&(f=r.detail*-1),"wheelDelta"in r&&(f=r.wheelDelta),"wheelDeltaY"in r&&(f=r.wheelDeltaY),"wheelDeltaX"in r&&(e=r.wheelDeltaX*-1),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(e=f*-1,f=0),o=f===0?e:f,"deltaY"in r&&(f=r.deltaY*-1,o=f),"deltaX"in r&&(e=r.deltaX,f===0&&(o=e*-1)),f!==0||e!==0)return r.deltaMode===1?(a=n.data(this,"mousewheel-line-height"),o*=a,f*=a,e*=a):r.deltaMode===2&&(v=n.data(this,"mousewheel-page-height"),o*=v,f*=v,e*=v),l=Math.max(Math.abs(f),Math.abs(e)),(!t||l =1?"floor":"ceil"](o/t),e=Math[e>=1?"floor":"ceil"](e/t),f=Math[f>=1?"floor":"ceil"](f/t),i.deltaX=e,i.deltaY=f,i.deltaFactor=t,i.deltaMode=0,y.unshift(i,o,e,f),u&&clearTimeout(u),u=setTimeout(c,200),(n.event.dispatch||n.event.handle).apply(this,y)}function c(){t=null}function s(n,t){return r.settings.adjustOldDeltas&&n.type==="mousewheel"&&t%120==0}var o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice,u,t,f,r;if(n.event.fixHooks)for(f=o.length;f;)n.event.fixHooks[o[--f]]=n.event.mouseHooks;r=n.event.special.mousewheel={version:"3.1.9",setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],e,!1);else this.onmousewheel=e;n.data(this,"mousewheel-line-height",r.getLineHeight(this));n.data(this,"mousewheel-page-height",r.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=i.length;n;)this.removeEventListener(i[--n],e,!1);else this.onmousewheel=null},getLineHeight:function(t){return parseInt(n(t)["offsetParent"in n.fn?"offsetParent":"parent"]().css("fontSize"),10)},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})});var jvm={inherits:function(n,t){function i(){}i.prototype=t.prototype;n.prototype=new i;n.prototype.constructor=n;n.parentClass=t},mixin:function(n,t){var i;for(i in t.prototype)t.prototype.hasOwnProperty(i)&&(n.prototype[i]=t.prototype[i])},min:function(n){var i=Number.MAX_VALUE,t;if(n instanceof Array)for(t=0;t i&&(i=n[t]);else for(t in n)n[t]>i&&(i=n[t]);return i},keys:function(n){var t=[],i;for(i in n)t.push(i);return t},values:function(n){for(var i=[],r,t=0;t ");return i.error(function(){t.reject()}).load(function(){t.resolve(i)}),i.attr("src",n),t},isImageUrl:function(n){return/\.\w{3,4}$/.test(n)}};jvm.$=jQuery;Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){var r,f,u,i;if(this==null)throw new TypeError('"this" is null or not defined');if((f=Object(this),u=f.length>>>0,u===0)||(i=+t||0,Math.abs(i)===Infinity&&(i=0),i>=u))return-1;for(r=Math.max(i>=0?i:u-Math.abs(i),0);r ')}}catch(n){jvm.VMLElement.prototype.createElement=function(n){return document.createElement("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");jvm.VMLElement.VMLInitialized=!0};jvm.VMLElement.prototype.getElementCtr=function(n){return jvm["VML"+n]};jvm.VMLElement.prototype.addClass=function(n){jvm.$(this.node).addClass(n)};jvm.VMLElement.prototype.applyAttr=function(n,t){this.node[n]=t};jvm.VMLElement.prototype.getBBox=function(){var n=jvm.$(this.node);return{x:n.position().left/this.canvas.scale,y:n.position().top/this.canvas.scale,width:n.width()/this.canvas.scale,height:n.height()/this.canvas.scale}};jvm.VMLGroupElement=function(){jvm.VMLGroupElement.parentClass.call(this,"group");this.node.style.left="0px";this.node.style.top="0px";this.node.coordorigin="0 0"};jvm.inherits(jvm.VMLGroupElement,jvm.VMLElement);jvm.VMLGroupElement.prototype.add=function(n){this.node.appendChild(n.node)};jvm.VMLCanvasElement=function(){this.classPrefix="VML";jvm.VMLCanvasElement.parentClass.call(this,"group");jvm.AbstractCanvasElement.apply(this,arguments);this.node.style.position="absolute"};jvm.inherits(jvm.VMLCanvasElement,jvm.VMLElement);jvm.mixin(jvm.VMLCanvasElement,jvm.AbstractCanvasElement);jvm.VMLCanvasElement.prototype.setSize=function(n,t){var r,u,i,f;if(this.width=n,this.height=t,this.node.style.width=n+"px",this.node.style.height=t+"px",this.node.coordsize=n+" "+t,this.node.coordorigin="0 0",this.rootElement){for(r=this.rootElement.node.getElementsByTagName("shape"),i=0,f=r.length;i =0;)n-=i[t],t++;return t==this.scale.length-1?this.vectorToNum(this.scale[t]):this.vectorToNum(this.vectorAdd(this.scale[t],this.vectorMult(this.vectorSubtract(this.scale[t+1],this.scale[t]),n/i[t])))},vectorToNum:function(n){for(var i=0,t=0;t ");this.body.addClass("jvectormap-legend");this.params.cssClass&&this.body.addClass(this.params.cssClass);n.vertical?this.map.legendCntVertical.append(this.body):this.map.legendCntHorizontal.append(this.body);this.render()};jvm.Legend.prototype.render=function(){var t=this.series.scale.getTicks(),n,f=jvm.$("
").addClass("jvectormap-legend-inner"),r,i,u;for(this.body.html(""),this.params.title&&this.body.append(jvm.$("
").addClass("jvectormap-legend-title").html(this.params.title)),this.body.append(f),n=0;n ").addClass("jvectormap-legend-tick");i=jvm.$("
").addClass("jvectormap-legend-tick-sample");switch(this.series.params.attribute){case"fill":jvm.isImageUrl(t[n].value)?i.css("background","url("+t[n].value+")"):i.css("background",t[n].value);break;case"stroke":i.css("background",t[n].value);break;case"image":i.css("background","url("+t[n].value+") no-repeat center center");break;case"r":jvm.$("
").css({"border-radius":t[n].value,border:this.map.params.markerStyle.initial["stroke-width"]+"px "+this.map.params.markerStyle.initial.stroke+" solid",width:t[n].value*2+"px",height:t[n].value*2+"px",background:this.map.params.markerStyle.initial.fill}).appendTo(i)}r.append(i);u=t[n].label;this.params.labelRender&&(u=this.params.labelRender(u));r.append(jvm.$("
"+u+" <\/div>").addClass("jvectormap-legend-tick-text"));f.append(r)}f.append(jvm.$("
").css("clear","both"))};jvm.DataSeries=function(n,t,i){var r;n=n||{};n.attribute=n.attribute||"fill";this.elements=t;this.params=n;this.map=i;n.attributes&&this.setAttributes(n.attributes);jvm.$.isArray(n.scale)?(r=n.attribute==="fill"||n.attribute==="stroke"?jvm.ColorScale:jvm.NumericScale,this.scale=new r(n.scale,n.normalizeFunction,n.min,n.max)):this.scale=n.scale?new jvm.OrdinalScale(n.scale):new jvm.SimpleScale(n.scale);this.values=n.values||{};this.setValues(this.values);this.params.legend&&(this.legend=new jvm.Legend($.extend({map:this.map,series:this},this.params.legend)))};jvm.DataSeries.prototype={setAttributes:function(n,t){var r=n,i;if(typeof n=="string")this.elements[n]&&this.elements[n].setStyle(this.params.attribute,t);else for(i in r)this.elements[i]&&this.elements[i].element.setStyle(this.params.attribute,r[i])},setValues:function(n){var r=-Number.MAX_VALUE,u=Number.MAX_VALUE,i,t,f={};if(this.scale instanceof jvm.OrdinalScale||this.scale instanceof jvm.SimpleScale)for(t in n)f[t]=n[t]?this.scale.getValue(n[t]):this.elements[t].element.style.initial[this.params.attribute];else{if(typeof this.params.min=="undefined"||typeof this.params.max=="undefined")for(t in n)i=parseFloat(n[t]),i>r&&(r=i),i 0?1:n<0?-1:n},mill:function(n,t,i){return{x:this.radius*(t-i)*this.radDeg,y:-this.radius*Math.log(Math.tan((45+.4*n)*this.radDeg))/.8}},mill_inv:function(n,t,i){return{lat:(2.5*Math.atan(Math.exp(.8*t/this.radius))-5*Math.PI/8)*this.degRad,lng:(i*this.radDeg+n/this.radius)*this.degRad}},merc:function(n,t,i){return{x:this.radius*(t-i)*this.radDeg,y:-this.radius*Math.log(Math.tan(Math.PI/4+n*Math.PI/360))}},merc_inv:function(n,t,i){return{lat:(2*Math.atan(Math.exp(t/this.radius))-Math.PI/2)*this.degRad,lng:(i*this.radDeg+n/this.radius)*this.degRad}},aea:function(n,t,i){var s=i*this.radDeg,u=29.5*this.radDeg,h=45.5*this.radDeg,c=n*this.radDeg,l=t*this.radDeg,r=(Math.sin(u)+Math.sin(h))/2,f=Math.cos(u)*Math.cos(u)+2*r*Math.sin(u),e=r*(l-s),o=Math.sqrt(f-2*r*Math.sin(c))/r,a=Math.sqrt(f-2*r*Math.sin(0))/r;return{x:o*Math.sin(e)*this.radius,y:-(a-o*Math.cos(e))*this.radius}},aea_inv:function(n,t,i){var f=n/this.radius,e=t/this.radius,c=i*this.radDeg,u=29.5*this.radDeg,l=45.5*this.radDeg,r=(Math.sin(u)+Math.sin(l))/2,s=Math.cos(u)*Math.cos(u)+2*r*Math.sin(u),o=Math.sqrt(s-2*r*Math.sin(0))/r,h=Math.sqrt(f*f+(o-e)*(o-e)),a=Math.atan(f/(o-e));return{lat:Math.asin((s-h*h*r*r)/(2*r))*this.degRad,lng:(c+a/r)*this.degRad}},lcc:function(n,t,i){var f=i*this.radDeg,e=t*this.radDeg,u=33*this.radDeg,o=45*this.radDeg,c=n*this.radDeg,r=Math.log(Math.cos(u)*(1/Math.cos(o)))/Math.log(Math.tan(Math.PI/4+o/2)*(1/Math.tan(Math.PI/4+u/2))),s=Math.cos(u)*Math.pow(Math.tan(Math.PI/4+u/2),r)/r,h=s*Math.pow(1/Math.tan(Math.PI/4+c/2),r),l=s*Math.pow(1/Math.tan(Math.PI/4+0),r);return{x:h*Math.sin(r*(e-f))*this.radius,y:-(l-h*Math.cos(r*(e-f)))*this.radius}},lcc_inv:function(n,t,i){var f=n/this.radius,e=t/this.radius,c=i*this.radDeg,u=33*this.radDeg,s=45*this.radDeg,r=Math.log(Math.cos(u)*(1/Math.cos(s)))/Math.log(Math.tan(Math.PI/4+s/2)*(1/Math.tan(Math.PI/4+u/2))),h=Math.cos(u)*Math.pow(Math.tan(Math.PI/4+u/2),r)/r,o=h*Math.pow(1/Math.tan(Math.PI/4+0),r),l=this.sgn(r)*Math.sqrt(f*f+(o-e)*(o-e)),a=Math.atan(f/(o-e));return{lat:(2*Math.atan(Math.pow(h/l,1/r))-Math.PI/2)*this.degRad,lng:(c+a/r)*this.degRad}}};jvm.MapObject=function(){};jvm.MapObject.prototype.getLabelText=function(n){return this.config.label?typeof this.config.label.render=="function"?this.config.label.render(n):n:null};jvm.MapObject.prototype.getLabelOffsets=function(n){var t;return this.config.label&&(typeof this.config.label.offsets=="function"?t=this.config.label.offsets(n):typeof this.config.label.offsets=="object"&&(t=this.config.label.offsets[n])),t||[0,0]};jvm.MapObject.prototype.setHovered=function(n){this.isHovered!==n&&(this.isHovered=n,this.shape.isHovered=n,this.shape.updateStyle(),this.label&&(this.label.isHovered=n,this.label.updateStyle()))};jvm.MapObject.prototype.setSelected=function(n){this.isSelected!==n&&(this.isSelected=n,this.shape.isSelected=n,this.shape.updateStyle(),this.label&&(this.label.isSelected=n,this.label.updateStyle()),jvm.$(this.shape).trigger("selected",[n]))};jvm.MapObject.prototype.setStyle=function(){this.shape.setStyle.apply(this.shape,arguments)};jvm.MapObject.prototype.remove=function(){this.shape.remove();this.label&&this.label.remove()};jvm.Region=function(n){var t,i,r;this.config=n;this.map=this.config.map;this.shape=n.canvas.addPath({d:n.path,"data-code":n.code},n.style,n.canvas.rootElement);this.shape.addClass("jvectormap-region jvectormap-element");t=this.shape.getBBox();i=this.getLabelText(n.code);this.config.label&&i&&(r=this.getLabelOffsets(n.code),this.labelX=t.x+t.width/2+r[0],this.labelY=t.y+t.height/2+r[1],this.label=n.canvas.addText({text:i,"text-anchor":"middle","alignment-baseline":"central",x:this.labelX,y:this.labelY,"data-code":n.code},n.labelStyle,n.labelsGroup),this.label.addClass("jvectormap-region jvectormap-element"))};jvm.inherits(jvm.Region,jvm.MapObject);jvm.Region.prototype.updateLabelPosition=function(){this.label&&this.label.set({x:this.labelX*this.map.scale+this.map.transX*this.map.scale,y:this.labelY*this.map.scale+this.map.transY*this.map.scale})};jvm.Marker=function(n){var t,i;this.config=n;this.map=this.config.map;this.isImage=!!this.config.style.initial.image;this.createShape();t=this.getLabelText(n.index);this.config.label&&t&&(i=this.getLabelOffsets(n.code),this.labelX=(n.cx+i[0])/this.map.scale-this.map.transX,this.labelY=(n.cy+i[1])/this.map.scale-this.map.transY,console.log(this.labelX,this.labelY),this.label=n.canvas.addText({text:t,"data-index":n.index,dy:"0.6ex",x:this.labelX,y:this.labelY},n.labelStyle,n.labelsGroup),this.label.addClass("jvectormap-marker jvectormap-element"))};jvm.inherits(jvm.Marker,jvm.MapObject);jvm.Marker.prototype.createShape=function(){var n=this;if(this.shape&&this.shape.remove(),this.shape=this.config.canvas[this.isImage?"addImage":"addCircle"]({"data-index":this.config.index,cx:this.config.cx,cy:this.config.cy},this.config.style,this.config.group),this.shape.addClass("jvectormap-marker jvectormap-element"),this.isImage)jvm.$(this.shape.node).on("imageloaded",function(){n.updateLabelPosition()})};jvm.Marker.prototype.updateLabelPosition=function(){this.label&&this.label.set({x:this.labelX*this.map.scale+this.map.transX*this.map.scale+5+(this.isImage?(this.shape.width||0)/2:this.shape.properties.r),y:this.labelY*this.map.scale+this.map.transY*this.map.scale})};jvm.Marker.prototype.setStyle=function(n){var t;jvm.Marker.parentClass.prototype.setStyle.apply(this,arguments);n==="r"&&this.updateLabelPosition();t=!!this.shape.get("image");t!=this.isImage&&(this.isImage=t,this.config.style=jvm.$.extend(!0,{},this.shape.style),this.createShape())};jvm.Map=function(n){var i=this,t;if(this.params=jvm.$.extend(!0,{},jvm.Map.defaultParams,n),!jvm.Map.maps[this.params.map])throw new Error("Attempt to use map which was not loaded: "+this.params.map);this.mapData=jvm.Map.maps[this.params.map];this.markers={};this.regions={};this.regionsColors={};this.regionsData={};this.container=jvm.$("
金沙官方线上网站").addClass("jvectormap-container");this.params.container&&this.params.container.append(this.container);this.container.data("mapObject",this);this.defaultWidth=this.mapData.width;this.defaultHeight=this.mapData.height;this.setBackgroundColor(this.params.backgroundColor);this.onResize=function(){i.updateSize()};jvm.$(window).resize(this.onResize);for(t in jvm.Map.apiEvents)this.params[t]&&this.container.bind(jvm.Map.apiEvents[t]+".jvectormap",this.params[t]);this.canvas=new jvm.VectorCanvas(this.container[0],this.width,this.height);("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)&&this.params.bindTouchEvents&&this.bindContainerTouchEvents();this.bindContainerEvents();this.bindElementEvents();this.createTip();this.params.zoomButtons&&this.bindZoomButtons();this.createRegions();this.createMarkers(this.params.markers||{});this.updateSize();this.params.focusOn&&(typeof this.params.focusOn=="string"?this.params.focusOn={region:this.params.focusOn}:jvm.$.isArray(this.params.focusOn)&&(this.params.focusOn={regions:this.params.focusOn}),this.setFocus(this.params.focusOn));this.params.selectedRegions&&this.setSelectedRegions(this.params.selectedRegions);this.params.selectedMarkers&&this.setSelectedMarkers(this.params.selectedMarkers);this.legendCntHorizontal=jvm.$("
").addClass("jvectormap-legend-cnt jvectormap-legend-cnt-h");this.legendCntVertical=jvm.$("
").addClass("jvectormap-legend-cnt jvectormap-legend-cnt-v");this.container.append(this.legendCntHorizontal);this.container.append(this.legendCntVertical);this.params.series&&this.createSeries()};jvm.Map.prototype={transX:0,transY:0,scale:1,baseTransX:0,baseTransY:0,baseScale:1,width:0,height:0,setBackgroundColor:function(n){this.container.css("background-color",n)},resize:function(){var n=this.baseScale;this.width/this.height>this.defaultWidth/this.defaultHeight?(this.baseScale=this.height/this.defaultHeight,this.baseTransX=Math.abs(this.width-this.defaultWidth*this.baseScale)/(2*this.baseScale)):(this.baseScale=this.width/this.defaultWidth,this.baseTransY=Math.abs(this.height-this.defaultHeight*this.baseScale)/(2*this.baseScale));this.scale*=this.baseScale/n;this.transX*=this.baseScale/n;this.transY*=this.baseScale/n},updateSize:function(){this.width=this.container.width();this.height=this.container.height();this.resize();this.canvas.setSize(this.width,this.height);this.applyTransform()},reset:function(){var t,n;for(t in this.series)for(n=0;n t?this.transY=t:this.transY n?this.transX=n:this.transX 金沙官方线上网站h[1].pageX?h[1].pageX+(h[0].pageX-h[1].pageX)/2:h[0].pageX+(h[1].pageX-h[0].pageX)/2,i=h[0].pageY>h[1].pageY?h[1].pageY+(h[0].pageY-h[1].pageY)/2:h[0].pageY+(h[1].pageY-h[0].pageY)/2,t-=c.left,i-=c.top,u=n.scale,f=Math.sqrt(Math.pow(h[0].pageX-h[1].pageX,2)+Math.pow(h[0].pageY-h[1].pageY,2))));r=h.length};jvm.$(this.container).bind("touchstart",s);jvm.$(this.container).bind("touchmove",s)},bindElementEvents:function(){var n=this,t;this.container.mousemove(function(){t=!0});this.container.delegate("[class~='jvectormap-element']","mouseover mouseout",function(t){var o=jvm.$(this).attr("class").baseVal||jvm.$(this).attr("class"),r=o.indexOf("jvectormap-region")===-1?"marker":"region",i=r=="region"?jvm.$(this).attr("data-code"):jvm.$(this).attr("data-index"),u=r=="region"?n.regions[i].element:n.markers[i].element,s=r=="region"?n.mapData.paths[i].name:n.markers[i].config.name||"",f=jvm.$.Event(r+"TipShow.jvectormap"),e=jvm.$.Event(r+"Over.jvectormap");t.type=="mouseover"?(n.container.trigger(e,[i]),e.isDefaultPrevented()||u.setHovered(!0),n.tip.html(s),n.container.trigger(f,[n.tip,i]),f.isDefaultPrevented()||(n.tip.show(),n.tipWidth=n.tip.width(),n.tipHeight=n.tip.height())):(u.setHovered(!1),n.tip.hide(),n.container.trigger(r+"Out.jvectormap",[i]))});this.container.delegate("[class~='jvectormap-element']","mousedown",function(){t=!1});this.container.delegate("[class~='jvectormap-element']","mouseup",function(){var e=jvm.$(this).attr("class").baseVal?jvm.$(this).attr("class").baseVal:jvm.$(this).attr("class"),i=e.indexOf("jvectormap-region")===-1?"marker":"region",r=i=="region"?jvm.$(this).attr("data-code"):jvm.$(this).attr("data-index"),u=jvm.$.Event(i+"Click.jvectormap"),f=i=="region"?n.regions[r].element:n.markers[r].element;t||(n.container.trigger(u,[r]),(i==="region"&&n.params.regionsSelectable||i==="marker"&&n.params.markersSelectable)&&(u.isDefaultPrevented()||(n.params[i+"sSelectableOne"]&&n.clearSelected(i+"s"),f.setSelected(!f.isSelected))))})},bindZoomButtons:function(){var n=this;jvm.$("
").addClass("jvectormap-zoomin").text("+").appendTo(this.container);jvm.$("
").addClass("jvectormap-zoomout").html("−").appendTo(this.container);this.container.find(".jvectormap-zoomin").click(function(){n.setScale(n.scale*n.params.zoomStep,n.width/2,n.height/2,!1,n.params.zoomAnimate)});this.container.find(".jvectormap-zoomout").click(function(){n.setScale(n.scale/n.params.zoomStep,n.width/2,n.height/2,!1,n.params.zoomAnimate)})},createTip:function(){var n=this;this.tip=jvm.$("
").addClass("jvectormap-tip").appendTo(jvm.$("body"));this.container.mousemove(function(t){console.log(n.tipWidth);var i=t.pageX-15-n.tipWidth,r=t.pageY-15-n.tipHeight;i<5&&(i=t.pageX+15);r<5&&(r=t.pageY+15);n.tip.css({left:i,top:r})})},setScale:function(n,t,i,r,u){var y=jvm.$.Event("zoom.jvectormap"),p,f=this,e=0,o=Math.abs(Math.round((n-this.scale)*60/Math.max(n,this.scale))),c,w,l,b,a,k,s,h,v=new jvm.$.Deferred;return n>this.params.zoomMax*this.baseScale?n=this.params.zoomMax*this.baseScale:n 0?(c=this.scale,w=(n-c)/o,l=this.transX*this.scale,a=this.transY*this.scale,b=(s*n-l)/o,k=(h*n-a)/o,p=setInterval(function(){e+=1;f.scale=c+w*e;f.transX=(l+b*e)/f.scale;f.transY=(a+k*e)/f.scale;f.applyTransform();e==o&&(clearInterval(p),f.container.trigger(y,[n/f.baseScale]),v.resolve())},10)):(this.transX=s,this.transY=h,this.scale=n,this.applyTransform(),this.container.trigger(y,[n/this.baseScale]),v.resolve()),v},setFocus:function(n){var t,i,e,r,u,f;if(n=n||{},n.region?r=[n.region]:n.regions&&(r=n.regions),r){for(u=0;u i[0].xu i[0].yf r[0].x#n r[0].yt