文档归位:雪猫 README 门面 + 公告/制作文档/发布工具并入仓库根
Release Tag / validate-version (push) Waiting to run

This commit is contained in:
天天的鸟蛋蛋 committed 2026-11-12 06:29:38 +08:00
1 parent b9655a5ab1
commit e292824161
122 files changed
+90002 -69

No files matched your search

@@ -0,0 +1 @@
import{i as L,b as et,d as ce,m as x,e as E,f as S,h as ue,j as Ft,p as de,k as U,s as fe,l as me,n as J,o as v,q as pe,r as ge,t as ye,u as it,v as Nt,F as Wt,w,x as st,y as $t,z as Gt,A as zt,B as Ht,C as Xt,D as ve,E as nt,S as xe,G as Pe,H as z,I as V,J as O,K as F,L as ot,M as Te,N as De,O as Ee,P as B,Q as Se}from"./gestures-BHfQC-M8.js";import{bf as Re,bg as Yt,bh as N,bi as G,bj as qt,bk as Ae,bd as Le,bl as Ce,bm as je,bn as Ve,bo as H,bp as rt}from"./index-DiaaLdUu.js";import{r as Q,j as Be}from"./react-vendor-jWT2yUdV.js";function we(t){return t==="x"||t==="y"?L[t]?null:(L[t]=!0,()=>{L[t]=!1}):L.x||L.y?null:(L.x=L.y=!0,()=>{L.x=L.y=!1})}function _t(t){return Re(t)&&"ownerSVGElement"in t}function ke(t){return _t(t)&&t.tagName==="svg"}function M(t,e,s,n){return et(t,e,ce(s),n)}const Kt=1e-4,Me=1-Kt,be=1+Kt,Zt=.01,Ie=0-Zt,Ue=0+Zt;function D(t){return t.max-t.min}function Oe(t,e,s){return Math.abs(t-e)<=s}function at(t,e,s,n=.5){t.origin=n,t.originPoint=x(e.min,e.max,t.origin),t.scale=D(s)/D(e),t.translate=x(s.min,s.max,t.origin)-t.originPoint,(t.scale>=Me&&t.scale<=be||isNaN(t.scale))&&(t.scale=1),(t.translate>=Ie&&t.translate<=Ue||isNaN(t.translate))&&(t.translate=0)}function b(t,e,s,n){at(t.x,e.x,s.x,n?n.originX:void 0),at(t.y,e.y,s.y,n?n.originY:void 0)}function lt(t,e,s){t.min=s.min+e.min,t.max=t.min+D(e)}function Fe(t,e,s){lt(t.x,e.x,s.x),lt(t.y,e.y,s.y)}function ht(t,e,s){t.min=e.min-s.min,t.max=t.min+D(e)}function I(t,e,s){ht(t.x,e.x,s.x),ht(t.y,e.y,s.y)}function A(t){return[t("x"),t("y")]}const Jt=({current:t})=>t?t.ownerDocument.defaultView:null,ct=(t,e)=>Math.abs(t-e);function Ne(t,e){const s=ct(t.x,e.x),n=ct(t.y,e.y);return Math.sqrt(s**2+n**2)}class Qt{constructor(e,s,{transformPagePoint:n,contextWindow:a=window,dragSnapToOrigin:u=!1,distanceThreshold:i=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Y(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,m=Ne(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!m)return;const{point:p}=d,{timestamp:y}=E;this.history.push({...p,timestamp:y});const{onStart:g,onMove:P}=this.handlers;f||(g&&g(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),P&&P(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=X(f,this.transformPagePoint),S.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:m,onSessionEnd:p,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Y(d.type==="pointercancel"?this.lastMoveEventInfo:X(f,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,g),p&&p(d,g)},!ue(e))return;this.dragSnapToOrigin=u,this.handlers=s,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=a||window;const o=Ft(e),r=X(o,this.transformPagePoint),{point:l}=r,{timestamp:h}=E;this.history=[{...l,timestamp:h}];const{onSessionStart:c}=s;c&&c(e,Y(r,this.history)),this.removeListeners=de(M(this.contextWindow,"pointermove",this.handlePointerMove),M(this.contextWindow,"pointerup",this.handlePointerUp),M(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),U(this.updatePoint)}}function X(t,e){return e?{point:e(t.point)}:t}function ut(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Y({point:t},e){return{point:t,delta:ut(t,te(e)),offset:ut(t,We(e)),velocity:$e(e,.1)}}function We(t){return t[0]}function te(t){return t[t.length-1]}function $e(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,n=null;const a=te(t);for(;s>=0&&(n=t[s],!(a.timestamp-n.timestamp>fe(e)));)s--;if(!n)return{x:0,y:0};const u=me(a.timestamp-n.timestamp);if(u===0)return{x:0,y:0};const i={x:(a.x-n.x)/u,y:(a.y-n.y)/u};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function Ge(t,{min:e,max:s},n){return e!==void 0&&t<e?t=n?x(e,t,n.min):Math.max(t,e):s!==void 0&&t>s&&(t=n?x(s,t,n.max):Math.min(t,s)),t}function dt(t,e,s){return{min:e!==void 0?t.min+e:void 0,max:s!==void 0?t.max+s-(t.max-t.min):void 0}}function ze(t,{top:e,left:s,bottom:n,right:a}){return{x:dt(t.x,s,a),y:dt(t.y,e,n)}}function ft(t,e){let s=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([s,n]=[n,s]),{min:s,max:n}}function He(t,e){return{x:ft(t.x,e.x),y:ft(t.y,e.y)}}function Xe(t,e){let s=.5;const n=D(t),a=D(e);return a>n?s=J(e.min,e.max-n,t.min):n>a&&(s=J(t.min,t.max-a,e.min)),Yt(0,1,s)}function Ye(t,e){const s={};return e.min!==void 0&&(s.min=e.min-t.min),e.max!==void 0&&(s.max=e.max-t.min),s}const tt=.35;function qe(t=tt){return t===!1?t=0:t===!0&&(t=tt),{x:mt(t,"left","right"),y:mt(t,"top","bottom")}}function mt(t,e,s){return{min:pt(t,e),max:pt(t,s)}}function pt(t,e){return typeof t=="number"?t:t[e]||0}const _e=new WeakMap;class Ke{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currLine truncated