芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/critterchoice.com/wp-content/themes/rehub-theme/js/MotionPathHelper.min.js
/*! * MotionPathHelper 3.4.2 * https://greensock.com * * @license Copyright 2020, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function o(t){return Math.round(1e5*t)/1e5||0}function p(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):e.totalPoints=t.totalPoints,e}var P,w=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,x=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,j=Math.PI/180,W=Math.sin,F=Math.cos,U=Math.abs,$=Math.sqrt,E=Math.atan2,A=1e8;function copyRawPath(t){for(var e=[],n=0;n
=e&&(this._anchors[n].i+=6);i=new lt(this,this._rawPath,r.j,e,h),this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),i._draggable._onPress(t),X=i,this._anchors.push(i),this._selectedAnchors.length=0,this._selectedAnchors.push(i),this._updateAnchors(),this.update(),this._saveState()}Ga(),ya(T,"touchforcechange",ka),Ea("onPress",this)},ct._onClickHandle1=function _onClickHandle1(){var t=this._editingAnchor,e=t.i,n=t.segment;R&&Math.abs(n[e]-n[e-2])<5&&Math.abs(n[e+1]-n[e-1])<5&&this._onClickAnchor(t)},ct._onClickHandle2=function _onClickHandle2(){var t=this._editingAnchor,e=t.i,n=t.segment;R&&Math.abs(n[e]-n[e+2])<5&&Math.abs(n[e+1]-n[e+3])<5&&this._onClickAnchor(t)},ct._onDragEndAnchor=function _onDragEndAnchor(){X=null,this._saveState()},ct.isSelected=function isSelected(){return 0
=e&&(this._anchors[n].i-=6);this._updateAnchors(),this.update(),this._saveState(),this.vars.onDeleteAnchor&&this.vars.onDeleteAnchor.call(this.vars.callbackScope||this)},ct._onClickAnchor=function _onClickAnchor(t){var e,n,i,s,a,o,r=t.i,h=t.segment,l=1e3,c=!r||r>=h.length-2;R&&X!==t&&this._editingAnchor?(t.smooth=!t.smooth,c&&(t.smooth=!1),t.element.setAttribute("d",t.smooth?this._circleHandle:this._squareHandle),t.smooth&&!c?(e=((e=Math.atan2(h[r+1]-h[r-1],h[r]-h[r-2]))+(n=Math.atan2(h[r+3]-h[r+1],h[r+2]-h[r])))/2,i=Na(h,r-2,r),s=Na(h,r,r+2),i<.2&&(i=Na(h,r,r-6)/4,e=n||Math.atan2(h[r+7]-h[r-5],h[r+6]-h[r-6])),s<.2&&(s=Na(h,r,r+6)/4,n=e||Math.atan2(h[r+7]-h[r-5],h[r+6]-h[r-6])),a=Math.sin(e),o=Math.cos(e),Math.abs(n-e)