web/assets/libs/jquery-plugin/jcrop/2.0.4/jcrop.js
(开头部分) 39KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
define("jquery-plugin/jcrop/2.0.4/jcrop",["$"],function(a){var b=a("$-debug");(function(i){var y=function(D,C){var E=navigator.userAgent.toLowerCase();this.opt=i.extend({},y.defaults,C||{});this.container=i(D);this.opt.is_msie=/msie/.test(E);this.opt.is_ie_lt9=/msie [1-8]\./.test(E);this.container.addClass(this.opt.css_container);this.ui={};this.state=null;this.ui.multi=[];this.ui.selection=null;this.filter={};console.log(this);this.init();this.setOptions(C);this.applySizeConstraints();this.container.trigger("cropinit",this);if(this.opt.is_ie_lt9){this.opt.dragEventTarget=document.body}};i.extend(y,{component:{},filter:{},stage:{},registerComponent:function(D,C){y.component[D]=C},registerFilter:function(C,D){y.filter[C]=D},registerStageType:function(D,C){y.stage[D]=C},attach:function(D,C){var E=new i.Jcrop(D,C);return E},imgCopy:function(D){var C=new Image;C.src=D.src;return C},imageClone:function(C){return i.Jcrop.supportsCanvas?y.canvasClone(C):y.imgCopy(C)},canvasClone:function(E){var D=document.createElement("canvas"),C=D.getContext("2d");i(D).width(E.width).height(E.height),D.width=E.naturalWidth;D.height=E.naturalHeight;C.drawImage(E,0,0,E.naturalWidth,E.naturalHeight);return D},propagate:function(G,D,F){for(var E=0,C=G.length;E<C;E++){if(D.hasOwnProperty(G[E])){F[G[E]]=D[G[E]]}}},getLargestBox:function(E,C,D){if((C/D)>E){return[D*E,D]}else{return[C,C/E]}},stageConstructor:function(F,D,H){var G=[];i.each(y.stage,function(I,J){G.push(J)});G.sort(function(J,I){return J.priority-I.priority});console.log(G);for(var E=0,C=G.length;E<C;E++){if(G[E].isSupported(F,D)){console.log("支持的创建策略");console.log(G[E]);console.log(E);G[E].create(F,D,function(J,I){if(typeof H=="function"){H(J,I)}});break}}},supportsColorFade:function(){return i.fx.step.hasOwnProperty("backgroundColor")},wrapFromXywh:function(D){var C={x:D[0],y:D[1],w:D[2],h:D[3]};C.x2=C.x+C.w;C.y2=C.y+C.h;return C}});var s=function(){};i.extend(s,{isSupported:function(C,D){return true},priority:100,create:function(D,C,F){var E=new s;E.element=D;F.call(this,E,C)},prototype:{attach:function(C){console.log(this);this.init(C);C.ui.stage=this},triggerEvent:function(C){i(this.element).trigger(C);return this},getElement:function(){return this.element},init:function(C){this.core=C}}});y.registerStageType("Block",s);var B=function(){};B.prototype=new s();i.extend(B,{isSupported:function(C,D){if(C.tagName=="IMG"){return true}},priority:90,create:function(D,C,E){i.Jcrop.component.ImageLoader.attach(D,function(F,G){var H=new B;H.element=i(D).wrap("<div />").parent();H.element.width(F).height(G);H.imgsrc=D;if(typeof E=="function"){E.call(this,H,C)}})}});y.registerStageType("Image",B);var h=function(){this.angle=0;this.scale=1;this.scaleMin=0.2;this.scaleMax=1.25;this.offset=[0,0]};h.prototype=new B();i.extend(h,{isSupported:function(C,D){if(i.Jcrop.supportsCanvas&&(C.tagName=="IMG")){return true}},priority:60,create:function(F,C,G){var E=i(F);var D=i.extend({},C);i.Jcrop.component.ImageLoader.attach(F,function(H,I){var J=new h;var H=E.width();var I=E.height();console.log("防止隐藏的元素获取高款款值有误差");E.width(H).height(I).hide();J.createCanvas(F,H,I);E.before(J.element);J.imgsrc=F;D.imgsrc=F;if(typeof G=="function"){G(J,D);J.redraw()}})}});i.extend(h.prototype,{setOffset:function(C,D){this.offset=[C,D];return this},setAngle:function(C){this.angle=C;return this},setScale:function(C){this.scale=this.boundScale(C);return this},boundScale:function(C){if(C<this.scaleMin){C=this.scaleMin}else{if(C>this.scaleMax){C=this.scaleMax}}return C},createCanvas:function(D,C,E){this.width=C;this.height=E;this.canvas=document.createElement("canvas");this.canvas.width=C;this.canvas.height=E;this.$canvas=i(this.canvas).width("100%").height("100%");this.context=this.canvas.getContext("2d");this.fillstyle="rgb(0,0,0)";this.element=this.$canvas.wrap("<div />").parent().width(C).height(E)},triggerEvent:function(C){this.$canvas.trigger(C);return this},clear:function(){this.context.fillStyle=this.fillstyle;this.context.fillRect(0,0,this.canvas.width,this.canvas.height);return this},redraw:function(){this.context.save();this.clear();this.context.translate(parseInt(this.width*0.5),parseInt(this.height*0.5));this.context.translate(this.offset[0]/this.core.opt.xscale,this.offset[1]/this.core.opt.yscale);this.context.rotate(this.angle*(Math.PI/180));this.context.scale(this.scale,this.scale);this.context.translate(-parseInt(this.width*0.5),-parseInt(this.height*0.5));this.context.drawImage(this.imgsrc,0,0,this.width,this.height);this.context.restore();this.$canvas.trigger("cropredraw");return this},setFillStyle:function(C){this.fillstyle=C;return this}});y.registerStageType("Canvas",h);var p=function(){this.minw=40;this.minh=40;this.maxw=0;this.maxh=0;this.core=null};i.extend(p.prototype,{tag:"backoff",priority:22,filter:function(C){var D=this.bound;if(C.x<D.minx){C.x=D.minx;C.x2=C.w+C.x}if(C.y<D.miny){C.y=D.miny;C.y2=C.h+C.y}if(C.x2>D.maxx){C.x2=D.maxx;C.x=C.x2-C.w}if(C.y2>D.maxy){C.y2=D.maxy;C.y=C.y2-C.h
}return C},refresh:function(C){this.elw=C.core.container.width();this.elh=C.core.container.height();this.bound={minx:0+C.edge.w,miny:0+C.edge.n,maxx:this.elw+C.edge.e,maxy:this.elh+C.edge.s}}});y.registerFilter("backoff",p);var d=function(){this.core=null};i.extend(d.prototype,{tag:"constrain",priority:5,filter:function(C,D){if(D=="move"){if(C.x<this.minx){C.x=this.minx;C.x2=C.w+C.x}if(C.y<this.miny){C.y=this.miny;C.y2=C.h+C.y}if(C.x2>this.maxx){C.x2=this.maxx;C.x=C.x2-C.w}if(C.y2>this.maxy){C.y2=this.maxy;C.y=C.y2-C.h}}else{if(C.x<this.minx){C.x=this.minx}if(C.y<this.miny){C.y=this.miny}if(C.x2>this.maxx){C.x2=this.maxx}if(C.y2>this.maxy){C.y2=this.maxy}}C.w=C.x2-C.x;C.h=C.y2-C.y;return C},refresh:function(C){this.elw=C.core.container.width();this.elh=C.core.container.height();this.minx=0+C.edge.w;this.miny=0+C.edge.n;this.maxx=this.elw+C.edge.e;this.maxy=this.elh+C.edge.s}});y.registerFilter("constrain",d);var l=function(){this.core=null};i.extend(l.prototype,{tag:"extent",priority:12,offsetFromCorner:function(G,F,C){var D=F[0],E=F[1];switch(G){case"bl":return[C.x2-D,C.y,D,E];case"tl":return[C.x2-D,C.y2-E,D,E];case"br":return[C.x,C.y,D,E];case"tr":return[C.x,C.y2-E,D,E]}},getQuadrant:function(C){var E=C.opposite[0]-C.offsetx;var D=C.opposite[1]-C.offsety;if((E<0)&&(D<0)){return"br"}else{if((E>=0)&&(D>=0)){return"tl"}else{if((E<0)&&(D>=0)){return"tr"}}}return"bl"},filter:function(C,F,J){if(F=="move"){return C}var E=C.w,H=C.h,G=J.state,I=this.limits;var D=G?this.getQuadrant(G):"br";if(I.minw&&(E<I.minw)){E=I.minw}if(I.minh&&(H<I.minh)){H=I.minh}if(I.maxw&&(E>I.maxw)){E=I.maxw}if(I.maxh&&(H>I.maxh)){H=I.maxh}if((E==C.w)&&(H==C.h)){return C}return y.wrapFromXywh(this.offsetFromCorner(D,[E,H],C))},refresh:function(C){this.elw=C.core.container.width();this.elh=C.core.container.height();this.limits={minw:C.minSize[0],minh:C.minSize[1],maxw:C.maxSize[0],maxh:C.maxSize[1]}}});y.registerFilter("extent",l);var w=function(){this.stepx=1;this.stepy=1;this.core=null};i.extend(w.prototype,{tag:"grid",priority:19,filter:function(C){var D={x:Math.round(C.x/this.stepx)*this.stepx,y:Math.round(C.y/this.stepy)*this.stepy,x2:Math.round(C.x2/this.stepx)*this.stepx,y2:Math.round(C.y2/this.stepy)*this.stepy};D.w=D.x2-D.x;D.h=D.y2-D.y;return D}});y.registerFilter("grid",w);var f=function(){this.ratio=0;this.core=null};i.extend(f.prototype,{tag:"ratio",priority:15,offsetFromCorner:function(G,F,C){var D=F[0],E=F[1];switch(G){case"bl":return[C.x2-D,C.y,D,E];case"tl":return[C.x2-D,C.y2-E,D,E];case"br":return[C.x,C.y,D,E];case"tr":return[C.x,C.y2-E,D,E]}},getBoundRatio:function(C,D){var E=y.getLargestBox(this.ratio,C.w,C.h);return y.wrapFromXywh(this.offsetFromCorner(D,E,C))},getQuadrant:function(C){var E=C.opposite[0]-C.offsetx;var D=C.opposite[1]-C.offsety;if((E<0)&&(D<0)){return"br"}else{if((E>=0)&&(D>=0)){return"tl"}else{if((E<0)&&(D>=0)){return"tr"}}}return"bl"},filter:function(C,F,H){if(!this.ratio){return C}var E=C.w/C.h;var G=H.state;var D=G?this.getQuadrant(G):"br";F=F||"se";if(F=="move"){return C}switch(F){case"n":C.x2=this.elw;C.w=C.x2-C.x;D="tr";break;case"s":C.x2=this.elw;C.w=C.x2-C.x;D="br";break;case"e":C.y2=this.elh;C.h=C.y2-C.y;D="br";break;case"w":C.y2=this.elh;C.h=C.y2-C.y;D="bl";break}return this.getBoundRatio(C,D)},refresh:function(C){this.ratio=C.aspectRatio;this.elw=C.core.container.width();this.elh=C.core.container.height()}});y.registerFilter("ratio",f);var r=function(){this.core=null};i.extend(r.prototype,{tag:"round",priority:90,filter:function(C){var D={x:Math.round(C.x),y:Math.round(C.y),x2:Math.round(C.x2),y2:Math.round(C.y2)};D.w=D.x2-D.x;D.h=D.y2-D.y;return D}});y.registerFilter("round",r);var g=function(D,C){this.color=C||"black";this.opacity=D||0.5;this.core=null;this.shades={}};i.extend(g.prototype,{tag:"shader",fade:true,fadeEasing:"swing",fadeSpeed:320,priority:95,init:function(){var C=this;if(!C.attached){C.visible=false;C.container=i("<div />").addClass(C.core.opt.css_shades).prependTo(this.core.container).hide();C.elh=this.core.container.height();C.elw=this.core.container.width();C.shades={top:C.createShade(),right:C.createShade(),left:C.createShade(),bottom:C.createShade()};C.attached=true}},destroy:function(){this.container.remove()},setColor:function(C,D){var E=this;if(C==E.color){return E}this.color=C;var F=y.supportsColorFade();i.each(E.shades,function(G,H){if(!E.fade||D||!F){H.css("backgroundColor",C)}else{H.animate({backgroundColor:C},{queue:false,duration:E.fadeSpeed,easing:E.fadeEasing})}});return E},setOpacity:function(D,C){var E=this;if(D==E.opacity){return E}E.opacity=D;i.each(E.shades,function(F,G){if(!E.fade||C){G.css({opacity:D})}else{G.animate({opacity:D},{queue:false,duration:E.fadeSpeed,easing:E.fadeEasing})}});return E},createShade:function(){return i("<div />").css({position:"absolute",backgroundColor:this.color,opacity:this.opacity}).appendTo(this.container)},refresh:function(E){var C=this.core,D=this.shades;this.setColor(E.bgColor?E.bgColor:this.core.opt.bgColor);this.setOpacity(E.bgOpacity?E.bgOpacity:this.core.opt.bgOpacity);
this.elh=C.container.height();this.elw=C.container.width();D.right.css("height",this.elh+"px");D.left.css("height",this.elh+"px")},filter:function(C,D,G){if(!G.active){return C}var E=this,F=E.shades;F.top.css({left:Math.round(C.x)+"px",width:Math.round(C.w)+"px",height:Math.round(C.y)+"px"});F.bottom.css({top:Math.round(C.y2)+"px",left:Math.round(C.x)+"px",width:Math.round(C.w)+"px",height:(E.elh-Math.round(C.y2))+"px"});F.right.css({left:Math.round(C.x2)+"px",width:(E.elw-Math.round(C.x2))+"px"});F.left.css({width:Math.round(C.x)+"px"});if(!E.visible){E.container.show();E.visible=true}return C}});y.registerFilter("shader",g);var v=function(C){this.stage=C;this.core=C.core;this.cloneStagePosition()};v.prototype={cloneStagePosition:function(){var C=this.stage;this.angle=C.angle;this.scale=C.scale;this.offset=C.offset},getElement:function(){var C=this.stage;return i("<div />").css({position:"absolute",top:C.offset[0]+"px",left:C.offset[1]+"px",width:C.angle+"px",height:C.scale+"px"})},animate:function(C){var D=this;this.scale=this.stage.boundScale(this.scale);D.stage.triggerEvent("croprotstart");D.getElement().animate({top:D.offset[0]+"px",left:D.offset[1]+"px",width:D.angle+"px",height:D.scale+"px"},{easing:D.core.opt.animEasing,duration:D.core.opt.animDuration,complete:function(){D.stage.triggerEvent("croprotend");(typeof C=="function")&&C.call(this)},progress:function(H){var G={},F,E=H.tweens;for(F=0;F<E.length;F++){G[E[F].prop]=E[F].now}D.stage.setAngle(G.width).setScale(G.height).setOffset(G.top,G.left).redraw()}})}};y.stage.Canvas.prototype.getAnimator=function(){return new v(this)};y.registerComponent("CanvasAnimator",v);var j=function(C){this.selection=C;this.core=C.core};j.prototype={getElement:function(){var C=this.selection.get();return i("<div />").css({position:"absolute",top:C.y+"px",left:C.x+"px",width:C.w+"px",height:C.h+"px"})},animate:function(D,H,E,G,C){var F=this;F.selection.allowResize(false);F.getElement().animate({top:H+"px",left:D+"px",width:E+"px",height:G+"px"},{easing:F.core.opt.animEasing,duration:F.core.opt.animDuration,complete:function(){F.selection.allowResize(true);C&&C.call(this)},progress:function(M){var L={},K,J=M.tweens;for(K=0;K<J.length;K++){L[J[K].prop]=J[K].now}var I={x:parseInt(L.left),y:parseInt(L.top),w:parseInt(L.width),h:parseInt(L.height)};I.x2=I.x+I.w;I.y2=I.y+I.h;F.selection.updateRaw(I,"se")}})}};y.registerComponent("Animator",j);var A=function(G,E,C){var D=this;D.x=G.pageX;D.y=G.pageY;D.selection=E;D.eventTarget=E.core.opt.dragEventTarget;D.orig=E.get();E.callFilterFunction("refresh");var F=E.core.container.position();D.elx=F.left;D.ely=F.top;D.offsetx=0;D.offsety=0;D.ord=C;D.opposite=D.getOppositeCornerOffset();D.initEvents(G)};A.prototype={getOppositeCornerOffset:function(){var E=this.orig;var D=this.x-this.elx-E.x;var C=this.y-this.ely-E.y;switch(this.ord){case"nw":case"w":return[E.w-D,E.h-C];return[E.x+E.w,E.y+E.h];case"sw":return[E.w-D,-C];return[E.x+E.w,E.y];case"se":case"s":case"e":return[-D,-C];return[E.x,E.y];case"ne":case"n":return[-D,E.h-C];return[E.w,E.y+E.h]}return[null,null]},initEvents:function(C){i(this.eventTarget).on("mousemove.jcrop",this.createDragHandler()).on("mouseup.jcrop",this.createStopHandler())},dragEvent:function(C){this.offsetx=C.pageX-this.x;this.offsety=C.pageY-this.y;this.selection.updateRaw(this.getBox(),this.ord)},endDragEvent:function(D){var C=this.selection;C.core.container.removeClass("jcrop-dragging");C.element.trigger("cropend",[C,C.core.unscale(C.get())]);C.focus()},createStopHandler:function(){var C=this;return function(D){i(C.eventTarget).off(".jcrop");C.endDragEvent(D);return false}},createDragHandler:function(){var C=this;return function(D){C.dragEvent(D);return false}},update:function(C,E){var D=this;D.offsetx=C-D.x;D.offsety=E-D.y},resultWrap:function(D){var C={x:Math.min(D[0],D[2]),y:Math.min(D[1],D[3]),x2:Math.max(D[0],D[2]),y2:Math.max(D[1],D[3])};C.w=C.x2-C.x;C.h=C.y2-C.y;return C},getBox:function(){var D=this;var E=D.orig;var C={x2:E.x+E.w,y2:E.y+E.h};switch(D.ord){case"n":return D.resultWrap([E.x,D.offsety+E.y,C.x2,C.y2]);case"s":return D.resultWrap([E.x,E.y,C.x2,D.offsety+C.y2]);case"e":return D.resultWrap([E.x,E.y,D.offsetx+C.x2,C.y2]);case"w":return D.resultWrap([E.x+D.offsetx,E.y,C.x2,C.y2]);case"sw":return D.resultWrap([D.offsetx+E.x,E.y,C.x2,D.offsety+C.y2]);case"se":return D.resultWrap([E.x,E.y,D.offsetx+C.x2,D.offsety+C.y2]);case"ne":return D.resultWrap([E.x,D.offsety+E.y,D.offsetx+C.x2,C.y2]);case"nw":return D.resultWrap([D.offsetx+E.x,D.offsety+E.y,C.x2,C.y2]);case"move":C.nx=E.x+D.offsetx;C.ny=E.y+D.offsety;return D.resultWrap([C.nx,C.ny,C.nx+E.w,C.ny+E.h])}}};y.registerComponent("DragState",A);var z=function(C){this.core=C};z.prototype={on:function(D,C){i(this).on(D,C)},off:function(C){i(this).off(C)},trigger:function(C){i(this).trigger(C)}};y.registerComponent("EventManager",z);var m=function(E,D,C){this.src=E;if(!D){D=new Image}this.element=D;this.callback=C;this.load()};i.extend(m,{attach:function(D,C){return new m(D.src,D,C)
},prototype:{getDimensions:function(){var C=this.element;console.log("获得元素高宽");if(i(C).width()){return[i(C).width(),i(C).height()]}if(C.naturalWidth){return[C.naturalWidth,C.naturalHeight]}if(C.width){return[C.width,C.height]}return null},fireCallback:function(){this.element.onload=null;if(typeof this.callback=="function"){this.callback.apply(this,this.getDimensions())}},isLoaded:function(){return this.element.complete},load:function(){var C=this;var D=C.element;D.src=C.src;if(C.isLoaded()){C.fireCallback()}else{C.element.onload=function(E){C.fireCallback()}}}}});y.registerComponent("ImageLoader",m);var q=function(C){this.core=C;this.init()};i.extend(q,{support:function(){if(("ontouchstart" in window)||window.DocumentTouch&&document instanceof DocumentTouch){return true}},prototype:{init:function(){var C=this,D=i.Jcrop.component.DragState.prototype;if(!D.touch){C.initEvents();C.shimDragState();C.shimStageDrag();D.touch=true}},shimDragState:function(){var C=this;i.Jcrop.component.DragState.prototype.initEvents=function(D){if(D.type.substr(0,5)=="touch"){i(this.eventTarget).on("touchmove.jcrop.jcrop-touch",C.dragWrap(this.createDragHandler())).on("touchend.jcrop.jcrop-touch",this.createStopHandler())}else{i(this.eventTarget).on("mousemove.jcrop",this.createDragHandler()).on("mouseup.jcrop",this.createStopHandler())}}},shimStageDrag:function(){this.core.container.addClass("jcrop-touch").on("touchstart.jcrop.jcrop-stage",this.dragWrap(this.core.ui.manager.startDragHandler()))},dragWrap:function(C){return function(D){D.preventDefault();D.stopPropagation();if(D.type.substr(0,5)=="touch"){D.pageX=D.originalEvent.changedTouches[0].pageX;D.pageY=D.originalEvent.changedTouches[0].pageY;return C(D)}return false}},initEvents:function(){var C=this,D=C.core;D.container.on("touchstart.jcrop.jcrop-touch","."+D.opt.css_drag,C.dragWrap(D.startDrag()))}}});y.registerComponent("Touch",q);var u=function(C){this.core=C;this.init()};i.extend(u,{defaults:{eventName:"keydown.jcrop",passthru:[9],debug:false},prototype:{init:function(){i.extend(this,u.defaults);this.enable()},disable:function(){this.core.container.off(this.eventName)},enable:function(){var D=this,C=D.core;C.container.on(D.eventName,function(F){var E=F.shiftKey?16:2;if(i.inArray(F.keyCode,D.passthru)>=0){return true}switch(F.keyCode){case 37:C.nudge(-E,0);break;case 38:C.nudge(0,-E);break;case 39:C.nudge(E,0);break;case 40:C.nudge(0,E);break;case 46:case 8:C.requestDelete();return false;break;default:if(D.debug){console.log("keycode: "+F.keyCode)}break}if(!F.metaKey&&!F.ctrlKey){F.preventDefault()}})}}});y.registerComponent("Keyboard",u);var e=function(){};i.extend(e,{defaults:{minSize:[8,8],maxSize:[0,0],aspectRatio:0,edge:{n:0,s:0,e:0,w:0},bgColor:null,bgOpacity:null,last:null,state:null,active:true,linked:true,canDelete:true,canDrag:true,canResize:true,canSelect:true},prototype:{init:function(C){this.core=C;this.startup();this.linked=this.core.opt.linked;this.attach();this.setOptions(this.core.opt);C.container.trigger("cropcreate",[this])},attach:function(){},startup:function(){var C=this,D=C.core.opt;i.extend(C,e.defaults);C.filter=C.core.getDefaultFilters();C.element=i("<div />").addClass(D.css_selection).data({selection:C});C.frame=i("<button />").addClass(D.css_button).data("ord","move").attr("type","button");C.element.append(C.frame).appendTo(C.core.container);if(C.core.opt.is_msie){C.frame.css({opacity:0,backgroundColor:"white"})}C.insertElements();C.frame.on("focus.jcrop",function(E){C.core.setSelection(C);C.element.trigger("cropfocus",C);C.element.addClass("jcrop-focus")}).on("blur.jcrop",function(E){C.element.removeClass("jcrop-focus");C.element.trigger("cropblur",C)})},propagate:["canDelete","canDrag","canResize","canSelect","minSize","maxSize","aspectRatio","edge"],setOptions:function(C){y.propagate(this.propagate,C,this);this.refresh();return this},refresh:function(){this.allowResize();this.allowDrag();this.allowSelect();this.callFilterFunction("refresh");this.updateRaw(this.get(),"se")},callFilterFunction:function(E,C){for(var D=0;D<this.filter.length;D++){if(this.filter[D][E]){this.filter[D][E](this)}}return this},addFilter:function(C){C.core=this.core;if(!this.hasFilter(C)){this.filter.push(C);this.sortFilters();if(C.init){C.init()}this.refresh()}},hasFilter:function(D){var C,E=this.filter,F=[];for(C=0;C<E.length;C++){if(E[C]===D){return true}}},sortFilters:function(){this.filter.sort(function(C,D){return C.priority-D.priority})},clearFilters:function(){var C,D=this.filter;for(var C=0;C<D.length;C++){if(D[C].destroy){D[C].destroy()}}this.filter=[]},removeFilter:function(C){var D,E=this.filter,F=[];for(var D=0;D<E.length;D++){if((E[D].tag&&(E[D].tag==C))||(C===E[D])){if(E[D].destroy){E[D].destroy()}}else{F.push(E[D])}}this.filter=F},runFilters:function(C,D){for(var E=0;E<this.filter.length;E++){C=this.filter[E].filter(C,D,this)}return C},endDrag:function(){if(this.state){i(document.body).off(".jcrop");this.focus();this.state=null}},startDrag:function(F,D){var E=this;
var C=E.core;D=D||i(F.target).data("ord");this.focus();if((D=="move")&&E.element.hasClass(E.core.opt.css_nodrag)){return false}this.state=new y.component.DragState(F,this,D);return false},allowSelect:function(C){if(C===undefined){C=this.canSelect}if(C&&this.canSelect){this.frame.attr("disabled",false)}else{this.frame.attr("disabled","disabled")}return this},allowDrag:function(C){var D=this,E=D.core.opt;if(C==undefined){C=D.canDrag}if(C&&D.canDrag){D.element.removeClass(E.css_nodrag)}else{D.element.addClass(E.css_nodrag)}return this},allowResize:function(C){var D=this,E=D.core.opt;if(C==undefined){C=D.canResize}if(C&&D.canResize){D.element.removeClass(E.css_noresize)}else{D.element.addClass(E.css_noresize)}return this},remove:function(){this.element.trigger("cropremove",this);this.element.remove()},toBack:function(){this.active=false;this.element.removeClass("jcrop-current jcrop-focus")},toFront:function(){this.active=true;this.element.addClass("jcrop-current");this.callFilterFunction("refresh");this.refresh()},redraw:function(C){this.moveTo(C.x,C.y);this.resize(C.w,C.h);this.last=C;return this},update:function(C,D){return this.updateRaw(this.core.scale(C),D)},updateRaw:function(C,D){C=this.runFilters(C,D);this.redraw(C);this.element.trigger("cropmove",[this,this.core.unscale(C)]);return this},animateTo:function(F,D){var E=new y.component.Animator(this),C=this.core.scale(y.wrapFromXywh(F));E.animate(C.x,C.y,C.w,C.h,D)},center:function(F){var E=this.get(),D=this.core;var C=D.container.width(),G=D.container.height();var H=[(C-E.w)/2,(G-E.h)/2,E.w,E.h];return this[F?"setSelect":"animateTo"](H)},createElement:function(D,C){return i("<div />").addClass(D+" ord-"+C).data("ord",C)},moveTo:function(C,D){this.element.css({top:D+"px",left:C+"px"})},blur:function(){this.element.blur();return this},focus:function(){this.core.setSelection(this);this.frame.focus();return this},resize:function(C,D){this.element.css({width:C+"px",height:D+"px"})},get:function(){var C=this.element,F=C.position(),D=C.width(),E=C.height(),G={x:F.left,y:F.top};G.x2=G.x+D;G.y2=G.y+E;G.w=D;G.h=E;return G},insertElements:function(){var G=this,F,D=G.core,E=G.element,J=G.core.opt,C=J.borders,H=J.handles,I=J.dragbars;for(F=0;F<I.length;F++){E.append(G.createElement(J.css_dragbars,I[F]))}for(F=0;F<H.length;F++){E.append(G.createElement(J.css_handles,H[F]))}for(F=0;F<C.length;F++){E.append(G.createElement(J.css_borders,C[F]))}}}});y.registerComponent("Selection",e);var c=function(D,C){i.extend(this,c.defaults,C||{});this.manager=D;this.core=D.core};c.defaults={offset:[-8,-8],active:true,minsize:[20,20]};i.extend(c.prototype,{start:function(G){var J=this.core;if(!J.opt.allowSelect){return}if(J.opt.multi&&J.opt.multiMax&&(J.ui.multi.length>=J.opt.multiMax)){return false}var H=i(G.currentTarget).offset();var D=G.pageX-H.left+this.offset[0];var I=G.pageY-H.top+this.offset[1];var C=J.ui.multi;if(!J.opt.multi){if(J.opt.multiCleanup){for(var E=0;E<C.length;E++){C[E].remove()}J.ui.multi=[]}else{J.removeSelection(J.ui.selection)}}J.container.addClass("jcrop-dragging");var F=J.newSelection().updateRaw(y.wrapFromXywh([D,I,1,1]));F.element.trigger("cropstart",[F,this.core.unscale(F.get())]);return F.startDrag(G,"se")},end:function(D,E){this.drag(D,E);var C=this.sel.get();this.core.container.removeClass("jcrop-dragging");if((C.w<this.minsize[0])||(C.h<this.minsize[1])){this.core.requestDelete()}else{this.sel.focus()}}});y.registerComponent("StageDrag",c);var x=function(C){this.core=C;this.ui=C.ui;this.init()};i.extend(x.prototype,{init:function(){this.setupEvents();this.dragger=new c(this)},tellConfigUpdate:function(E){for(var F=0,C=this.ui.multi,D=C.length;F<D;F++){if(C[F].setOptions&&(C[F].linked||(this.core.opt.linkCurrent&&C[F]==this.ui.selection))){C[F].setOptions(E)}}},startDragHandler:function(){var C=this;return function(D){if(!D.button||C.core.opt.is_ie_lt9){return C.dragger.start(D)}}},removeEvents:function(){this.core.event.off(".jcrop-stage");this.core.container.off(".jcrop-stage")},shimLegacyHandlers:function(E){var D={},C=this.core,F;i.each(C.opt.legacyHandlers,function(G,H){if(G in E){F=E[G];C.container.off(".jcrop-"+G).on(H+".jcrop.jcrop-"+G,function(J,I,K){F.call(C,K)});delete E[G]}})},setupEvents:function(){var C=this,D=C.core;D.event.on("configupdate.jcrop-stage",function(E){C.shimLegacyHandlers(D.opt);C.tellConfigUpdate(D.opt);D.container.trigger("cropconfig",[D,D.opt])});this.core.container.on("mousedown.jcrop.jcrop-stage",this.startDragHandler())}});y.registerComponent("StageManager",x);var o=function(){};i.extend(o,{defaults:{selection:null,fading:true,fadeDelay:1000,fadeDuration:1000,autoHide:false,width:80,height:80,_hiding:null},prototype:{recopyCanvas:function(){var D=this.core.ui.stage,C=D.context;this.context.putImageData(C.getImageData(0,0,D.canvas.width,D.canvas.height),0,0)},init:function(C,D){var E=this;this.core=C;i.extend(this,o.defaults,D);E.initEvents();E.refresh();E.insertElements();if(E.selection){E.renderSelection(E.selection);
E.selectionTarget=E.selection.element[0]}else{if(E.core.ui.selection){E.renderSelection(E.core.ui.selection)}}if(E.core.ui.stage.canvas){E.context=E.preview[0].getContext("2d");E.core.container.on("cropredraw",function(F){E.recopyCanvas();E.refresh()})}},updateImage:function(C){this.preview.remove();this.preview=i(i.Jcrop.imageClone(C));this.element.append(this.preview);this.refresh();return this},insertElements:function(){this.preview=i(i.Jcrop.imageClone(this.core.ui.stage.imgsrc));this.element=i("<div />").addClass("jcrop-thumb").width(this.width).height(this.height).append(this.preview).appendTo(this.core.container)},resize:function(C,D){this.width=C;this.height=D;this.element.width(C).height(D);this.renderCoords(this.last)},refresh:function(){this.cw=(this.core.opt.xscale*this.core.container.width());this.ch=(this.core.opt.yscale*this.core.container.height());if(this.last){this.renderCoords(this.last)}},renderCoords:function(E){var D=this.width/E.w;var C=this.height/E.h;this.preview.css({width:Math.round(D*this.cw)+"px",height:Math.round(C*this.ch)+"px",marginLeft:"-"+Math.round(D*E.x)+"px",marginTop:"-"+Math.round(C*E.y)+"px"});this.last=E;return this},renderSelection:function(C){return this.renderCoords(C.core.unscale(C.get()))},selectionStart:function(C){this.renderSelection(C)},show:function(){if(this._hiding){clearTimeout(this._hiding)}if(!this.fading){this.element.stop().css({opacity:1})}else{this.element.stop().animate({opacity:1},{duration:80,queue:false})}},hide:function(){var C=this;if(!C.fading){C.element.hide()}else{C._hiding=setTimeout(function(){C._hiding=null;C.element.stop().animate({opacity:0},{duration:C.fadeDuration,queue:false})},C.fadeDelay)}},initEvents:function(){var C=this;C.core.container.on("croprotstart croprotend cropimage cropstart cropmove cropend",function(E,D,F){if(C.selectionTarget&&(C.selectionTarget!==E.target)){return false}switch(E.type){case"cropimage":C.updateImage(F);break;case"cropstart":C.selectionStart(D);case"croprotstart":C.show();break;case"cropend":C.renderCoords(F);case"croprotend":if(C.autoHide){C.hide()}break;case"cropmove":C.renderCoords(F);break}})}}});y.registerComponent("Thumbnailer",o);var t=function(){};t.prototype={init:function(C,E,F){var D=this;if(!E){E=C.container}this.$btn=i(E);this.$targ=i(E);this.core=C;this.$btn.addClass("dialdrag").on("mousedown.dialdrag",this.mousedown()).data("dialdrag",this);if(!i.isFunction(F)){F=function(){}}this.callback=F;this.ondone=F},remove:function(){this.$btn.removeClass("dialdrag").off(".dialdrag").data("dialdrag",null);return this},setTarget:function(C){this.$targ=i(C);return this},getOffset:function(){var C=this.$targ,D=C.offset();return[D.left+(C.width()/2),D.top+(C.height()/2)]},relMouse:function(F){var C=F.pageX-this.offset[0],G=F.pageY-this.offset[1],D=Math.atan2(G,C)*(180/Math.PI),E=Math.sqrt(Math.pow(C,2)+Math.pow(G,2));return[C,G,D,E]},mousedown:function(){var E=this;function C(F){i(window).off(".dialdrag");E.ondone.call(E,E.relMouse(F));E.core.container.trigger("croprotend")}function D(F){E.callback.call(E,E.relMouse(F))}return function(G){E.offset=E.getOffset();var F=E.relMouse(G);E.angleOffset=-E.core.ui.stage.angle+F[2];E.distOffset=F[3];E.dragOffset=[F[0],F[1]];E.core.container.trigger("croprotstart");i(window).on("mousemove.dialdrag",D).on("mouseup.dialdrag",C);E.callback.call(E,E.relMouse(G));return false}}};y.registerComponent("DialDrag",t);y.defaults={edge:{n:0,s:0,e:0,w:0},setSelect:null,linked:true,linkCurrent:true,canDelete:true,canSelect:true,canDrag:true,canResize:true,eventManagerComponent:y.component.EventManager,keyboardComponent:y.component.Keyboard,dragstateComponent:y.component.DragState,stagemanagerComponent:y.component.StageManager,animatorComponent:y.component.Animator,selectionComponent:y.component.Selection,stageConstructor:y.stageConstructor,allowSelect:true,multi:false,multiMax:false,multiCleanup:true,animation:true,animEasing:"swing",animDuration:400,fading:true,fadeDuration:300,fadeEasing:"swing",bgColor:"black",bgOpacity:0.5,applyFilters:["constrain","extent","backoff","ratio","shader","round"],borders:["e","w","s","n"],handles:["n","s","e","w","sw","ne","nw","se"],dragbars:["n","e","w","s"],dragEventTarget:window,xscale:1,yscale:1,boxWidth:null,boxHeight:null,css_nodrag:"jcrop-nodrag",css_drag:"jcrop-drag",css_container:"jcrop-active",css_shades:"jcrop-shades",css_selection:"jcrop-selection",css_borders:"jcrop-border",css_handles:"jcrop-handle jcrop-drag",css_button:"jcrop-box jcrop-drag",css_noresize:"jcrop-noresize",css_dragbars:"jcrop-dragbar jcrop-drag",legacyHandlers:{onChange:"cropmove",onSelect:"cropend"}};i.extend(y.prototype,{init:function(){this.event=new this.opt.eventManagerComponent(this);this.ui.keyboard=new this.opt.keyboardComponent(this);this.ui.manager=new this.opt.stagemanagerComponent(this);this.applyFilters();if(i.Jcrop.supportsTouch){new i.Jcrop.component.Touch(this)}this.initEvents()},applySizeConstraints:function(){var D=this.opt,G=this.opt.imgsrc;
if(G){var E=G.naturalWidth||G.width,L=G.naturalHeight||G.height,K=D.boxWidth||E,F=D.boxHeight||L;if(G&&((E>K)||(L>F))){var J=y.getLargestBox(E/L,K,F);i(G).width(J[0]).height(J[1]);this.resizeContainer(J[0],J[1]);this.opt.xscale=E/J[0];this.opt.yscale=L/J[1]}}if(this.opt.trueSize){var C=this.opt.trueSize[0];var I=this.opt.trueSize[1];var H=this.getContainerSize();this.opt.xscale=C/H[0];this.opt.yscale=I/H[1]}},initComponent:function(D){if(y.component[D]){var C=Array.prototype.slice.call(arguments);var E=new y.component[D];C.shift();C.unshift(this);E.init.apply(E,C);return E}},setOptions:function(D,C){if(!i.isPlainObject(D)){D={}}i.extend(this.opt,D);if(this.opt.setSelect){if(!this.ui.multi.length){this.newSelection()}this.setSelect(this.opt.setSelect);this.opt.setSelect=null}this.event.trigger("configupdate");return this},destroy:function(){if(this.opt.imgsrc){this.container.before(this.opt.imgsrc);this.container.remove();i(this.opt.imgsrc).removeData("Jcrop").show()}else{this.container.remove()}},applyFilters:function(){var F;for(var D=0,E=this.opt.applyFilters,C=E.length;D<C;D++){if(i.Jcrop.filter[E[D]]){F=new i.Jcrop.filter[E[D]]}F.core=this;if(F.init){F.init()}this.filter[E[D]]=F}},getDefaultFilters:function(){var F=[];for(var D=0,E=this.opt.applyFilters,C=E.length;D<C;D++){if(this.filter.hasOwnProperty(E[D])){F.push(this.filter[E[D]])}}F.sort(function(G,H){return G.priority-H.priority});return F},setSelection:function(E){var C=this.ui.multi;var F=[];for(var D=0;D<C.length;D++){if(C[D]!==E){F.push(C[D])}C[D].toBack()}F.unshift(E);this.ui.multi=F;this.ui.selection=E;E.toFront();return E},getSelection:function(D){var C=this.ui.selection.get();return C},newSelection:function(C){if(!C){C=new this.opt.selectionComponent()}C.init(this);this.setSelection(C);return C},hasSelection:function(D){for(var C=0;C<this.ui.multi;C++){if(D===this.ui.multi[C]){return true}}},removeSelection:function(E){var D,F=[],C=this.ui.multi;for(var D=0;D<C.length;D++){if(E!==C[D]){F.push(C[D])}else{C[D].remove()}}return this.ui.multi=F},addFilter:function(F){for(var E=0,C=this.ui.multi,D=C.length;E<D;E++){C[E].addFilter(F)}return this},removeFilter:function(F){for(var E=0,C=this.ui.multi,D=C.length;E<D;E++){C[E].removeFilter(F)}return this},blur:function(){this.ui.selection.blur();return this},focus:function(){this.ui.selection.focus();return this},initEvents:function(){var C=this;C.container.on("selectstart",function(D){return false}).on("mousedown","."+C.opt.css_drag,C.startDrag())},maxSelect:function(){this.setSelect([0,0,this.elw,this.elh])},nudge:function(D,F){var E=this.ui.selection,C=E.get();C.x+=D;C.x2+=D;C.y+=F;C.y2+=F;if(C.x<0){C.x2=C.w;C.x=0}else{if(C.x2>this.elw){C.x2=this.elw;C.x=C.x2-C.w}}if(C.y<0){C.y2=C.h;C.y=0}else{if(C.y2>this.elh){C.y2=this.elh;C.y=C.y2-C.h}}E.element.trigger("cropstart",[E,this.unscale(C)]);E.updateRaw(C,"move");E.element.trigger("cropend",[E,this.unscale(C)])},refresh:function(){for(var D=0,E=this.ui.multi,C=E.length;D<C;D++){E[D].refresh()}},blurAll:function(){var C=this.ui.multi;for(var D=0;D<C.length;D++){if(C[D]!==sel){n.push(C[D])}C[D].toBack()}},scale:function(C){var D=this.opt.xscale,E=this.opt.yscale;return{x:C.x/D,y:C.y/E,x2:C.x2/D,y2:C.y2/E,w:C.w/D,h:C.h/E}},unscale:function(C){var D=this.opt.xscale,E=this.opt.yscale;return{x:C.x*D,y:C.y*E,x2:C.x2*D,y2:C.y2*E,w:C.w*D,h:C.h*E}},requestDelete:function(){if((this.ui.multi.length>1)&&(this.ui.selection.canDelete)){return this.deleteSelection()}},deleteSelection:function(){if(this.ui.selection){this.removeSelection(this.ui.selection);if(this.ui.multi.length){this.ui.multi[0].focus()}this.ui.selection.refresh()}},animateTo:function(C){if(this.ui.selection){this.ui.selection.animateTo(C)}return this},setSelect:function(C){if(this.ui.selection){this.ui.selection.update(y.wrapFromXywh(C))}return this},startDrag:function(){var C=this;return function(G){var D=i(G.target);var F=D.closest("."+C.opt.css_selection).data("selection");var E=D.data("ord");C.container.trigger("cropstart",[F,C.unscale(F.get())]);F.startDrag(G,E);return false}},getContainerSize:function(){console.log(this.container);return[this.container.width(),this.container.height()]},resizeContainer:function(C,D){this.container.width(C).height(D);this.refresh()},setImage:function(F,C){var E=this,D=E.opt.imgsrc;if(!D){return false}new i.Jcrop.component.ImageLoader(F,null,function(G,H){E.resizeContainer(G,H);D.src=F;i(D).width(G).height(H);E.applySizeConstraints();E.refresh();E.container.trigger("cropimage",[E,D]);if(typeof C=="function"){C.call(E,G,H)}})},update:function(C){if(this.ui.selection){this.ui.selection.update(C)}}});i.fn.Jcrop=function(D,F){D=D||{};var E=this.eq(0).data("Jcrop");var C=Array.prototype.slice.call(arguments);if(D=="api"){return E}else{if(E&&(typeof D=="string")){if(E[D]){C.shift();E[D].apply(E,C);return E}return false}}this.each(function(){var G=this,J=i(this);var H=J.data("Jcrop");var I;if(H){H.setOptions(D)}else{if(!D.stageConstructor){D.stageConstructor=i.Jcrop.stageConstructor
}D.stageConstructor(this,D,function(L,K){var M=K.setSelect;if(M){delete (K.setSelect)}var N=i.Jcrop.attach(L.element,K);console.log(L);console.log("调用方法创建");if(typeof L.attach=="function"){L.attach(N)}console.log("调用方法");J.data("Jcrop",N);if(M){N.newSelection();N.setSelect(M)}if(typeof F=="function"){F.call(N)}})}return this})};var k=(function(P,V,K){var G="2.7.1",N={},af=V.documentElement,ag="modernizr",ad=V.createElement(ag),Q=ad.style,H,Y={}.toString,aa=" -webkit- -moz- -o- -ms- ".split(" "),F="Webkit Moz O ms",ai=F.split(" "),R=F.toLowerCase().split(" "),ak={"svg":"http://www.w3.org/2000/svg"},L={},E={},W={},ac=[],X=ac.slice,D,ab=function(au,aw,an,av){var am,at,ap,aq,al=V.createElement("div"),ar=V.body,ao=ar||V.createElement("body");if(parseInt(an,10)){while(an--){ap=V.createElement("div");ap.id=av?av[an]:ag+(an+1);al.appendChild(ap)}}am=["­",'<style id="s',ag,'">',au,"</style>"].join("");al.id=ag;(ar?al:ao).innerHTML+=am;ao.appendChild(al);if(!ar){ao.style.background="";ao.style.overflow="hidden";aq=af.style.overflow;af.style.overflow="hidden";af.appendChild(ao)}at=aw(al,au);if(!ar){ao.parentNode.removeChild(ao);af.style.overflow=aq}else{al.parentNode.removeChild(al)}return !!at},U=(function(){var am={"select":"input","change":"input","submit":"form","reset":"form","error":"img","load":"img","abort":"img"};function al(an,ap){ap=ap||V.createElement(am[an]||"div");an="on"+an;var ao=an in ap;if(!ao){if(!ap.setAttribute){ap=V.createElement("div")}if(ap.setAttribute&&ap.removeAttribute){ap.setAttribute(an,"");ao=M(ap[an],"function");if(!M(ap[an],"undefined")){ap[an]=K}ap.removeAttribute(an)}}ap=null;return ao}return al})(),T=({}).hasOwnProperty,ae;if(!M(T,"undefined")&&!M(T.call,"undefined")){ae=function(al,am){return T.call(al,am)}}else{ae=function(al,am){return((am in al)&&M(al.constructor.prototype[am],"undefined"))}}if(!Function.prototype.bind){Function.prototype.bind=function aj(an){var ao=this;if(typeof ao!="function"){throw new TypeError()}var al=X.call(arguments,1),am=function(){if(this instanceof am){var ar=function(){};ar.prototype=ao.prototype;var aq=new ar();var ap=ao.apply(aq,al.concat(X.call(arguments)));if(Object(ap)===ap){return ap}return aq}else{return ao.apply(an,al.concat(X.call(arguments)))}};return am}}function S(al){Q.cssText=al}function J(am,al){return S(aa.join(am+";")+(al||""))}function M(am,al){return typeof am===al}function O(am,al){return !!~(""+am).indexOf(al)}function ah(an,al){for(var am in an){var ao=an[am];if(!O(ao,"-")&&Q[ao]!==K){return al=="pfx"?ao:true}}return false}function Z(am,ap,ao){for(var al in am){var an=ap[am[al]];if(an!==K){if(ao===false){return am[al]}if(M(an,"function")){return an.bind(ao||ap)}return an}}return false}function C(ap,al,ao){var am=ap.charAt(0).toUpperCase()+ap.slice(1),an=(ap+" "+ai.join(am+" ")+am).split(" ");if(M(al,"string")||M(al,"undefined")){return ah(an,al)}else{an=(ap+" "+(R).join(am+" ")+am).split(" ");return Z(an,al,ao)}}L["canvas"]=function(){var al=V.createElement("canvas");return !!(al.getContext&&al.getContext("2d"))};L["canvastext"]=function(){return !!(N["canvas"]&&M(V.createElement("canvas").getContext("2d").fillText,"function"))};L["touch"]=function(){var al;if(("ontouchstart" in P)||P.DocumentTouch&&V instanceof DocumentTouch){al=true}else{ab(["@media (",aa.join("touch-enabled),("),ag,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(am){al=am.offsetTop===9})}return al};L["draganddrop"]=function(){var al=V.createElement("div");return("draggable" in al)||("ondragstart" in al&&"ondrop" in al)};L["csstransforms"]=function(){return !!C("transform")};L["svg"]=function(){return !!V.createElementNS&&!!V.createElementNS(ak.svg,"svg").createSVGRect};L["inlinesvg"]=function(){var al=V.createElement("div");al.innerHTML="<svg/>";return(al.firstChild&&al.firstChild.namespaceURI)==ak.svg};L["svgclippaths"]=function(){return !!V.createElementNS&&/SVGClipPath/.test(Y.call(V.createElementNS(ak.svg,"clipPath")))};for(var I in L){if(ae(L,I)){D=I.toLowerCase();N[D]=L[I]();ac.push((N[D]?"":"no-")+D)}}N.addTest=function(am,an){if(typeof am=="object"){for(var al in am){if(ae(am,al)){N.addTest(al,am[al])}}}else{am=am.toLowerCase();if(N[am]!==K){return N}an=typeof an=="function"?an():an;if(typeof enableClasses!=="undefined"&&enableClasses){af.className+=" "+(an?"":"no-")+am}N[am]=an}return N};S("");ad=H=null;N._version=G;N._prefixes=aa;N._domPrefixes=R;N._cssomPrefixes=ai;N.hasEvent=U;N.testProp=function(al){return ah([al])};N.testAllProps=C;N.testStyles=ab;return N})(window,window.document);(function(){var C=new Image();C.onerror=function(){k.addTest("datauri",function(){return false})};C.onload=function(){k.addTest("datauri",function(){return(C.width==1&&C.height==1)})};C.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="})();i.Jcrop=y;i.Jcrop.supportsCanvas=k.canvas;i.Jcrop.supportsCanvasText=k.canvastext;i.Jcrop.supportsDragAndDrop=k.draganddrop;i.Jcrop.supportsDataURI=k.datauri;i.Jcrop.supportsSVG=k.svg;
i.Jcrop.supportsInlineSVG=k.inlinesvg;i.Jcrop.supportsSVGClipPaths=k.svgclippaths;i.Jcrop.supportsCSSTransforms=k.csstransforms;i.Jcrop.supportsTouch=k.touch})(b)});
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。