支持spine4.3
This commit is contained in:
1 parent
63e4f61631
commit
0656684a92
206 files changed
+100597
-1320
No files matched your search
+15245
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../src/index.ts", "../../src/require-shim.ts", "../../../spine-core/src/Utils.ts", "../../../spine-core/src/Texture.ts", "../../../spine-core/src/TextureAtlas.ts", "../../../spine-core/src/attachments/Attachment.ts", "../../../spine-core/src/attachments/MeshAttachment.ts", "../../../spine-core/src/attachments/RegionAttachment.ts", "../../../spine-core/src/attachments/Sequence.ts", "../../../spine-core/src/Animation.ts", "../../../spine-core/src/AnimationState.ts", "../../../spine-core/src/AnimationStateData.ts", "../../../spine-core/src/AssetManagerBase.ts", "../../../spine-core/src/attachments/BoundingBoxAttachment.ts", "../../../spine-core/src/attachments/ClippingAttachment.ts", "../../../spine-core/src/attachments/PathAttachment.ts", "../../../spine-core/src/attachments/PointAttachment.ts", "../../../spine-core/src/AtlasAttachmentLoader.ts", "../../../spine-core/src/PosedData.ts", "../../../spine-core/src/BoneData.ts", "../../../spine-core/src/BonePose.ts", "../../../spine-core/src/Posed.ts", "../../../spine-core/src/PosedActive.ts", "../../../spine-core/src/Bone.ts", "../../../spine-core/src/Constraint.ts", "../../../spine-core/src/DrawOrder.ts", "../../../spine-core/src/ConstraintData.ts", "../../../spine-core/src/Event.ts", "../../../spine-core/src/EventData.ts", "../../../spine-core/src/IkConstraintPose.ts", "../../../spine-core/src/IkConstraint.ts", "../../../spine-core/src/IkConstraintData.ts", "../../../spine-core/src/PathConstraintPose.ts", "../../../spine-core/src/PathConstraintData.ts", "../../../spine-core/src/PathConstraint.ts", "../../../spine-core/src/Physics.ts", "../../../spine-core/src/PhysicsConstraintPose.ts", "../../../spine-core/src/SlotPose.ts", "../../../spine-core/src/Slot.ts", "../../../spine-core/src/Skeleton.ts", "../../../spine-core/src/PhysicsConstraint.ts", "../../../spine-core/src/PhysicsConstraintData.ts", "../../../spine-core/src/polyfills.ts", "../../../spine-core/src/SliderPose.ts", "../../../spine-core/src/Slider.ts", "../../../spine-core/src/SliderData.ts", "../../../spine-core/src/SkeletonData.ts", "../../../spine-core/src/Skin.ts", "../../../spine-core/src/SlotData.ts", "../../../spine-core/src/TransformConstraintPose.ts", "../../../spine-core/src/TransformConstraint.ts", "../../../spine-core/src/TransformConstraintData.ts", "../../../spine-core/src/SkeletonBinary.ts", "../../../spine-core/src/SkeletonBounds.ts", "../../../spine-core/src/Triangulator.ts", "../../../spine-core/src/SkeletonClipping.ts", "../../../spine-core/src/SkeletonJson.ts", "../../../spine-core/src/SkeletonPhysicsMovement.ts", "../../../spine-core/src/SkeletonRendererCore.ts", "../../src/assets/AtlasLoader.ts", "../../src/SpineTexture.ts", "../../src/assets/SkeletonLoader.ts", "../../src/darkTintMesh/DarkTintMesh.ts", "../../src/darkTintMesh/DarkTintGeom.ts", "../../src/darkTintMesh/DarkTintMaterial.ts", "../../src/DarkSlotMesh.ts", "../../src/darkTintMesh/DarkTintBatchGeom.ts", "../../src/darkTintMesh/DarkTintRenderer.ts", "../../src/SlotMesh.ts", "../../src/Spine.ts", "../../src/SpineDebugRenderer.ts"],
|
||||
"sourcesContent": ["/******************************************************************************\n * Spine Runtimes License Agreement\n * Last updated September 24, 2021. Replaces all prior versions.\n *\n * Copyright (c) 2013-2021, Esoteric Software LLC\n *\n * Integration of the Spine Runtimes into software or otherwise creating\n * derivative works of the Spine Runtimes is permitted under the terms and\n * conditions of Section 2 of the Spine Editor License Agreement:\n * http://esotericsoftware.com/spine-editor-license\n *\n * Otherwise, it is permitted to integrate the Spine Runtimes into software\n * or otherwise create derivative works of the Spine Runtimes (collectively,\n * \"Products\"), provided that each user of the Products must obtain their own\n * Spine Editor license and redistribution of the Products in any form must\n * include this license and copyright notice.\n *\n * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC \"AS IS\" AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,\n * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *****************************************************************************/\n\nimport './require-shim.js';\nimport './assets/AtlasLoader.js'; // Side effects install the loaders into pixi\nimport './assets/SkeletonLoader.js'; // Side effects install the loaders into pixi\n\nexport * from \"@esotericsoftware/spine-core\";\nexport * from './assets/AtlasLoader.js';\nexport * from './assets/SkeletonLoader.js';\nexport * from './DarkSlotMesh.js';\nexport * from './darkTintMesh/DarkTintBatchGeom.js';\nexport * from './darkTintMesh/DarkTintGeom.js';\nexport * from './darkTintMesh/DarkTintMaterial.js';\nexport * from './darkTintMesh/DarkTintMesh.js';\nexport * from './darkTintMesh/DarkTintRenderer.js';\nexport * from './SlotMesh.js';\nexport * from './Spine.js';\nexport * from './SpineDebugRenderer.js';\nexport * from './SpineTexture.js';\n\n\n", "/******************************************************************************\n * Spine Runtimes License Agreement\n * Last updated April 5, 2025. Replaces all prior versions.\n *\n * Copyright (c) 2013-2025, Esoteric Software LLC\n *\n * Integration of the Spine Runtimes into software or otherwise creating\n * derivative works of the Spine Runtimes is permitted under the terms and\n * conditions of Section 2 of the Spine Editor License Agreement:\n * http://esotericsoftware.com/spine-editor-license\n *\n * Otherwise, it is permitted to integrate the Spine Runtimes into software\n * or otherwise create derivative works of the Spine Runtimes (collectively,\n * \"Products\"), provided that each user of the Products must obtain their own\n * Spine Editor license and redistribution of the Products in any form must\n * include this license and copyright notice.\n *\n * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC \"AS IS\" AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,\n * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *****************************************************************************/\n\n// biome-ignore-all lint: ignore biome for this file\n\nif (typeof window !== 'undefined' && (window as any).PIXI) {\n\tconst prevRequire = (window as any).require;\n\t(window as any).require = (x: string) => {\n\t\tif (prevRequire) return prevRequire(x);\n\t\telse if (x.startsWith(\"@pixi/\")) return (window as any).PIXI;\n\t}\n}\n\nexport { }\n", "/******************************************************************************\n * Spine Runtimes License Agreement\n * Last updated April 5, 2025. Replaces all prior versions.\n *\n * Copyright (c) 2013-2025, Esoteric Software LLC\n *\n * Integration of the Spine Runtimes into software or otherwise creating\n * derivative works of the Spine Runtimes is permitted under thLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAA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,OAAO,SAAS,WAAU;AAAA,IAE1B,OAAO,MAAO,OAAe,KAAa,KAAa;AACtD,UAAI,QAAQ,IAAK,QAAO;AACxB,UAAI,QAAQ,IAAK,QAAO;AACxB,aAAO;AAAA,IACR;AAAA,IAEA,OAAO,OAAQ,SAAiB;AAC/B,aAAO,KAAK,IAAI,UAAU,WAAU,MAAM;AAAA,IAC3C;AAAA,IAEA,OAAO,OAAQ,SAAiB;AAC/B,aAAO,KAAK,IAAI,UAAU,WAAU,MAAM;AAAA,IAC3C;AAAA,IAEA,OAAO,SAAU,GAAW,GAAW;AACtC,aAAO,KAAK,MAAM,GAAG,CAAC,IAAI,WAAU;AAAA,IACrC;AAAA,IAEA,OAAO,OAAQ,OAAuB;AACrC,aAAO,QAAQ,IAAI,IAAI,QAAQ,IAAI,KAAK;AAAA,IACzC;AAAA,IAEA,OAAO,MAAO,GAAW;AACxB,aAAO,IAAI,IAAI,KAAK,MAAM,CAAC,IAAI,KAAK,KAAK,CAAC;AAAA,IAC3C;AAAA,IAEA,OAAO,KAAM,GAAW;AACvB,YAAM,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;AACrC,aAAO,IAAI,IAAI,CAAC,IAAI;AAAA,IACrB;AAAA,IAEA,OAAO,iBAAkB,KAAa,KAAqB;AAC1D,aAAO,WAAU,qBAAqB,KAAK,MAAM,MAAM,OAAO,GAAG;AAAA,IAClE;AAAA,IAEA,OAAO,qBAAsB,KAAa,KAAa,MAAsB;AAC5E,YAAM,IAAILine truncated
|
||||
"names": ["TextureFilter", "TextureWrap", "page", "v", "SequenceMode", "MixFrom", "Property", "x", "y", "constraint", "ii", "EventType", "Inherit", "ScaleYMode", "PositionMode", "SpacingMode", "RotateMode", "pathLength", "multiplier", "Physics", "n", "bone", "BlendMode", "iv", "cross", "name", "animationName", "LinkedMesh", "color", "readTimeline1", "color2", "readTimeline2", "readDrawOrder", "n", "import_core", "PixiTexture", "import_assets", "import_core", "loaderName", "import_core", "import_core", "import_core", "import_core", "vertex", "fragment", "import_core", "import_mesh", "import_assets", "import_core", "bounds", "n", "import_display", "import_graphics", "i", "len"]
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
"use strict";var spine=(()=>{var We=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,xi=Object.getOwnPropertyNames,wi=Object.prototype.hasOwnProperty,et=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,s)=>(typeof require<"u"?require:t)[s]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),bi=(e,t)=>{for(var s in t)We(e,s,{get:t[s],enumerable:!0})},yi=(e,t,s,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xi(t))!wi.call(e,i)&&i!==s&&We(e,i,{get:()=>t[i],enumerable:!(n=pi(t,i))||n.enumerable});return e},vi=e=>yi(We({},"__esModule",{value:!0}),e),dn={};if(bi(dn,{AABBRectangleBoundsProvider:()=>Yr,ATTACH_RETAIN:()=>Ls,ATTACH_SETUP:()=>Xs,AlphaTimeline:()=>ds,Animation:()=>xe,AnimationState:()=>Ys,AnimationStateAdapter:()=>Pi,AnimationStateData:()=>In,AssetCache:()=>kn,AssetManagerBase:()=>Fi,AtlasAttachmentLoader:()=>Fn,Attachment:()=>Je,AttachmentTimeline:()=>Ut,BinaryInput:()=>Nn,BlendMode:()=>Hs,Bone:()=>Se,BoneData:()=>Ds,BonePose:()=>Te,BoneTimeline1:()=>Mt,BoneTimeline2:()=>we,BoundingBoxAttachment:()=>Vs,CURRENT:()=>Es,ClippingAttachment:()=>Bt,Color:()=>z,Constraint:()=>qt,ConstraintData:()=>zt,ConstraintTimeline1:()=>$t,CurveTimeline:()=>kt,CurveTimeline1:()=>te,DarkSlotMesh:()=>Jn,DarkTintBatchGeometry:()=>jn,DarkTintGeometry:()=>Wn,DarkTintMaterial:()=>Hn,DarkTintMesh:()=>Kn,DarkTintRenderer:()=>Zn,DebugUtils:()=>Ci,DeformTimeline:()=>ms,Downloader:()=>Mn,DrawOrder:()=>Yn,DrawOrderFolderTimeline:()=>ne,DrawOrderTimeline:()=>Et,Event:()=>Ae,EventData:()=>Os,EventQueue:()=>Sn,EventTimeline:()=>be,EventType:()=>Cn,FIRST:()=>Bs,FakeTexture:()=>ki,FromProperty:()=>Rt,FromRotate:()=>Be,FromScaleX:()=>Le,FromScaleY:()=>Ve,FromShearY:()=>De,FromX:()=>Re,FromY:()=>Xe,HOLD:()=>ie,IkConstraint:()=>En,IkConstraintData:()=>oe,IkConstraintPose:()=>Ie,IkConstraintTimeline:()=>ps,Inherit:()=>ve,InheritTimeline:()=>ls,IntSet:()=>Ti,Interpolation:()=>jt,MODE:()=>Rs,MathUtils:()=>X,MeshAttachment:()=>vt,MixFrom:()=>xn,PathAttachment:()=>re,PathConstraint:()=>Bn,PathConstraintData:()=>ae,PathConstraintMixTimeline:()=>ys,PathConstraintPose:()=>ke,PathConstraintPositionTimeline:()=>ws,PathConstraintSpacingTimeline:()=>bs,Physics:()=>Rn,PhysicsConstraint:()=>zs,PhysicsConstraintDampingTimeline:()=>Ss,PhysicsConstraintData:()=>le,PhysicsConstraintGravityTimeline:()=>Is,PhysicsConstraintInertiaTimeline:()=>vs,PhysicsConstraintMassTimeline:()=>Cs,PhysicsConstraintMixTimeline:()=>ks,PhysicsConstraintPose:()=>Me,PhysicsConstraintResetTimeline:()=>Ms,PhysicsConstraintStrengthTimeline:()=>Ts,PhysicsConstraintTimeline:()=>Tt,PhysicsConstraintWindTimeline:()=>As,PointAttachment:()=>Pn,Pool:()=>Zt,Posed:()=>Ns,PosedActive:()=>_s,PosedData:()=>ye,PositionMode:()=>Us,Pow:()=>fn,PowOut:()=>Si,Property:()=>wn,RGB2Timeline:()=>fs,RGBA2Timeline:()=>us,RGBATimeline:()=>cs,RGBTimeline:()=>hs,RegionAttachment:()=>It,RotateMode:()=>qs,RotateTimeline:()=>ee,SETUP:()=>An,ScaleTimeline:()=>ss,ScaleXTimeline:()=>ns,ScaleYMode:()=>Ce,ScaleYTimeline:()=>is,Sequence:()=>Qt,SequenceMode:()=>je,SequenceModeValues:()=>Ze,SequenceTimeline:()=>gs,SetupPoseBoundsProvider:()=>Er,ShearTimeline:()=>rs,ShearXTimeline:()=>os,ShearYTimeline:()=>as,Skeleton:()=>Gt,SkeletonBinary:()=>Dn,SkeletonBounds:()=>Un,SkeletonClipping:()=>he,SkeletonData:()=>Ye,SkeletonJson:()=>qn,SkeletonPhysicsMovement:()=>Gn,SkeletonRendererCore:()=>wr,Skin:()=>ce,SkinEntry:()=>Gs,SkinsAndAnimationBoundsProvider:()=>Br,Slider:()=>Ln,SliderData:()=>Pt,SliderMixTimeline:()=>Fs,SliderPose:()=>Fe,SliderTimeline:()=>Ps,Slot:()=>Xn,SlotCurveTimeline:()=>se,SlotData:()=>Ws,SlotMesh:()=>Qn,SlotPose:()=>Pe,SpacingMode:()=>$s,Spine:()=>Rr,SpineDebugRenderer:()=>Lr,SpineTexture:()=>de,StringSet:()=>un,Texture:()=>He,TextureAtlas:()=>pe,TextureAtlasPage:()=>pn,TextureAtlasRegion:()=>Ke,TextureFilter:()=>ge,TextureRegion:()=>gn,TextureWrap:()=>mn,TimeKeeper:()=>Ai,Timeline:()=>Q,ToProperty:()=>Xt,ToRotate:()=>Ks,ToScaleX:()=>Zs,ToScaleY:()=>Qs,ToShearY:()=>tn,ToX:()=>Js,ToY:()=>js,TrackEntry:()=>Tn,TransformConstraint:()=>Vn,TransformConstraintData:()=>K,TransformConstraintPose:()=>Ee,TransformConstraintTimeline:()=>xs,TranslateTimeline:()=>Qe,TranslateXTimeline:()=>ts,TranslateYTimeline:()=>es,Triangulator:()=>$n,Utils:()=>V,Vector2:()=>me,VertexAttachment:()=>At,WindowedMean:()=>Ii,isBoneTimeline:()=>yn,isConstraintTimeline:()=>vn,isSlotTimeline:()=>bn}),typeof window<"u"&&window.PIXI){const e=window.require;window.require=t=>{if(e)return e(t);if(t.startsWith("@pixi/"))return window.PIXI}}var Ti=class{array=[];add(e){const t=this.contains(e);return this.array[e|0]=e|0,!t}contains(e){return this.array[e|0]!==void 0}remove(e){this.array[e|0]=void 0}clear(){this.array.length=0}},un=class{entries={};size=0;add(e){const t=this.entries[e];return this.entries[e]=!0,t?!1:(this.size++,!0)}addAll(e){const t=this.size;for(let s=0,n=e.length;s<n;s++)this.add(e[s]);return t!==thisLine truncated
|
||||
${s}`:""}`)}remove(e){e=this.pathPrefix+e;const t=this.cache.assets[e];return t.dispose&&t.dispose(),delete this.cache.assets[e],delete this.cache.assetsRefCount[e],delete this.cache.assetsLoaded[e],t}removeAll(){for(const e in this.cache.assets){const t=this.cache.assets[e];t.dispose&&t.dispose()}this.cache.assets={},this.cache.assetsLoaded={},this.cache.assetsRefCount={}}isLoadingComplete(){return this.toLoad===0}getToLoad(){return this.toLoad}getLoaded(){return this.loaded}dispose(){this.removeAll()}disposeAsset(e){const t=this.cache.assets[e];if(t instanceof pe){t.dispose();return}this.disposeAssetInternal(e)}hasErrors(){return Object.keys(this.errors).length>0}getErrors(){return this.errors}disposeAssetInternal(e){if(this.cache.assetsRefCount[e]>0&&--this.cache.assetsRefCount[e]===0)return this.remove(e)}createTextureAtlas(e,t,s,n){const i=new pe(e);i.dispose=()=>{if(!(this.cache.assetsRefCount[s]<=0)){this.disposeAssetInternal(s);for(const r of i.pages)r.texture?.dispose()}};for(const r of i.pages){const a=this.texturePath(t,r.name,n);this.texturePmaInfo[this.pathPrefix+a]=r.pma}return i}createTexture(e,t,s){const n=this.textureLoader(s,t),i=n.dispose.bind(n);return n.dispose=()=>{this.disposeAssetInternal(e)&&i()},n}texturePath(e,t,s){return s?s[t]:e+t}},kn=class ze{assets={};assetsRefCount={};assetsLoaded={};static AVAILABLE_CACHES=new Map;static getCache(t){const s=ze.AVAILABLE_CACHES.get(t);if(s)return s;const n=new ze;return ze.AVAILABLE_CACHES.set(t,n),n}async addAsset(t,s){return this.assetsLoaded[t]=Promise.resolve(s),this.assets[t]=s,s}getAsset(t){return this.assetsLoaded[t]}},Mn=class{callbacks={};rawDataUris={};dataUriToString(e){if(!e.startsWith("data:"))throw new Error("Not a data URI.");let t=e.indexOf("base64,");return t!==-1?(t+=7,atob(e.substr(t))):e.substr(e.indexOf(",")+1)}base64ToUint8Array(e){var t=window.atob(e),s=t.length,n=new Uint8Array(s);for(let i=0;i<s;i++)n[i]=t.charCodeAt(i);return n}dataUriToUint8Array(e){if(!e.startsWith("data:"))throw new Error("Not a data URI.");let t=e.indexOf("base64,");if(t===-1)throw new Error("Not a binary data URI.");return t+=7,this.base64ToUint8Array(e.substr(t))}downloadText(e,t,s){if(this.start(e,t,s))return;const n=this.rawDataUris[e];if(n&&!n.includes(".")){try{this.finish(e,200,this.dataUriToString(n))}catch(a){this.finish(e,400,JSON.stringify(a))}return}const i=new XMLHttpRequest;i.overrideMimeType("text/html"),i.open("GET",n||e,!0);const r=()=>{this.finish(e,i.status,i.responseText)};i.onload=r,i.onerror=r,i.send()}downloadJson(e,t,s){this.downloadText(e,n=>{t(JSON.parse(n))},s)}downloadBinary(e,t,s){if(this.start(e,t,s))return;const n=this.rawDataUris[e];if(n&&!n.includes(".")){try{this.finish(e,200,this.dataUriToUint8Array(n))}catch(a){this.finish(e,400,JSON.stringify(a))}return}const i=new XMLHttpRequest;i.open("GET",n||e,!0),i.responseType="arraybuffer";const r=()=>{this.finish(e,i.status,i.response)};i.onload=()=>{i.status===200||i.status===0?this.finish(e,200,new Uint8Array(i.response)):r()},i.onerror=r,i.send()}start(e,t,s){let n=this.callbacks[e];try{if(n)return!0;this.callbacks[e]=n=[]}finally{n.push(t,s)}}finish(e,t,s){const n=this.callbacks[e];if(delete this.callbacks[e],t===200||t===0)for(let i=0,r=n.length;i<r;i+=2)n[i](s);else for(let i=1,r=n.length;i<r;i+=2)n[i](t,s)}},Vs=class ai extends At{color=new z(1,1,1,1);constructor(t){super(t)}copy(){const t=new ai(this.name);return this.copyTo(t),t.color.setFromColor(this.color),t}},Bt=class li extends At{endSlot=null;convex=!1;inverse=!1;color=new z(.2275,.2275,.8078,1);constructor(t){super(t)}copy(){const t=new li(this.name);return this.copyTo(t),t.endSlot=this.endSlot,t.convex=this.convex,t.inverse=this.inverse,t.color.setFromColor(this.color),t}},re=class ci extends At{lengths=[];closed=!1;constantSpeed=!1;color=new z(1,1,1,1);constructor(t){super(t)}copy(){const t=new ci(this.name);return this.copyTo(t),t.lengths=[],V.arrayCopy(this.lengths,0,t.lengths,0,this.lengths.length),t.closed=this.closed,t.constantSpeed=this.constantSpeed,t.color.setFromColor(this.color),t}},Pn=class hi extends At{x=0;y=0;rotation=0;color=new z(.38,.94,0,1);constructor(t){super(t)}computeWorldPosition(t,s){return s.x=this.x*t.a+this.y*t.b+t.worldX,s.y=this.x*t.c+this.y*t.d+t.worldY,s}computeWorldRotation(t){const s=this.rotation*X.degRad,n=Math.cos(s),i=Math.sin(s),r=n*t.a+i*t.b,a=n*t.c+i*t.d;return X.atan2Deg(a,r)}copy(){const t=new hi(this.name);return t.x=this.x,t.y=this.y,t.rotation=this.rotation,t.color.setFromColor(this.color),t}},Fn=class{atlas;allowMissingRegions;constructor(e,t=!1){this.atlas=e,this.allowMissingRegions=t}findRegions(e,t,s){const n=s.regions;for(let i=0,r=n.length;i<r;i++)n[i]=this.findRegion(e,s.getPath(t,i))}findRegion(e,t){const s=this.atlas.findRegion(t);if(!s&&!this.allowMissingRegions)throw new Error(`Region not found in atlas: ${t} (attachment: ${e})`);return s}newRegionAttachment(e,t,s,n,i){return this.findRegions(s,n,i),new It(s,i)}newMeshAttachment(e,t,s,n,i){retuLine truncated
|
||||
attribute vec2 aVertexPosition;
|
||||
attribute vec2 aTextureCoord;
|
||||
|
||||
uniform mat3 projectionMatrix;
|
||||
uniform mat3 translationMatrix;
|
||||
uniform mat3 uTextureMatrix;
|
||||
|
||||
varying vec2 vTextureCoord;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||||
|
||||
vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
|
||||
}
|
||||
`,Ir=`
|
||||
varying vec2 vTextureCoord;
|
||||
uniform vec4 uColor;
|
||||
uniform vec4 uDarkColor;
|
||||
|
||||
uniform sampler2D uSampler;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
vec4 texColor = texture2D(uSampler, vTextureCoord);
|
||||
gl_FragColor.a = texColor.a * uColor.a;
|
||||
gl_FragColor.rgb = ((texColor.a - 1.0) * uDarkColor.a + 1.0 - texColor.rgb) * uDarkColor.rgb + texColor.rgb * uColor.rgb;
|
||||
}
|
||||
`,Hn=class extends St.Shader{uvMatrix;batchable;pluginName;_tintRGB;_darkTintRGB;_colorDirty;_alpha;_tintColor;_darkTintColor;constructor(e){const t={uSampler:e??St.Texture.EMPTY,alpha:1,uTextureMatrix:St.Matrix.IDENTITY,uColor:new Float32Array([1,1,1,1]),uDarkColor:new Float32Array([0,0,0,0])},s={tint:16777215,darkTint:0,alpha:1,pluginName:"darkTintBatch"};super(St.Program.from(Ar,Ir),t),this._colorDirty=!1,this.uvMatrix=new St.TextureMatrix(t.uSampler),this.batchable=!0,this.pluginName=s.pluginName,this._tintColor=new St.Color(s.tint),this._darkTintColor=new St.Color(s.darkTint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._alpha=s.alpha,this._colorDirty=!0}get texture(){return this.uniforms.uSampler}set texture(e){this.uniforms.uSampler!==e&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!e.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=e,this.uvMatrix.texture=e)}set alpha(e){e!==this._alpha&&(this._alpha=e,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(e){e!==this.tint&&(this._tintColor.setValue(e),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}set darkTint(e){e!==this.darkTint&&(this._darkTintColor.setValue(e),this._darkTintRGB=this._darkTintColor.toLittleEndianNumber(),this._colorDirty=!0)}get darkTint(){return this._darkTintColor.value}get tintValue(){return this._tintColor.toNumber()}get darkTintValue(){return this._darkTintColor.toNumber()}update(){this._colorDirty&&(this._colorDirty=!1,St.Color.shared.setValue(this._tintColor).premultiply(this._alpha,!0).toArray(this.uniforms.uColor),St.Color.shared.setValue(this._darkTintColor).premultiply(this._alpha,!0).premultiply(1,!1).toArray(this.uniforms.uDarkColor)),this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}},Kn=class extends Cr.Mesh{_darkTintRGB=0;constructor(e){super(new Wn,new Hn(e),void 0,void 0)}get darkTint(){return"darkTint"in this.shader?this.shader.darkTint:null}set darkTint(e){this.shader.darkTint=e}get darkTintValue(){return this.shader.darkTintValue}_renderToBatch(e){const t=this.geometry,s=this.shader;s.uvMatrix&&(s.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=t.indexBuffer.data,this._tintRGB=s._tintRGB,this._darkTintRGB=s._darkTintRGB,this._texture=s.texture;const n=this.material.pluginName;e.batch.setObjectRenderer(e.plugins[n]),e.plugins[n].render(this)}},Jn=class rt extends Kn{name="";static auxColor=[0,0,0,0];constructor(){super()}updateFromSpineData(t,s,n,i,r,a,c,l){this.texture=t.texture;const o=r/(l?12:8)*2,h=this.geometry.getBuffer("aTextureCoord");h.data?.length!==o&&(h.data=new Float32Array(o));const d=this.geometry.getBuffer("aVertexPosition");d.data?.length!==o&&(d.data=new Float32Array(o));let m=0;const f=h.data,u=d.data;for(let g=0;g<r;g+=l?12:8){let x=g;u[m]=i[x++],u[m+1]=i[x++],x+=4,f[m]=i[x++],f[m+1]=i[x++],m+=2}l?(rt.auxColor[0]=i[8],rt.auxColor[1]=i[9],rt.auxColor[2]=i[10],rt.auxColor[3]=i[11],this.darkTint=rt.auxColor,rt.auxColor[0]=i[2],rt.auxColor[1]=i[3],rt.auxColor[2]=i[4],rt.auxColor[3]=i[5],this.tint=rt.auxColor):(rt.auxColor[0]=i[2],rt.auxColor[1]=i[3],rt.auxColor[2]=i[4],rt.auxColor[3]=i[5],this.tint=rt.auxColor),this.blendMode=de.toPixiBlending(s),this.alpha=rt.auxColor[3];const p=this.geometry.indexBuffer;if(p.data.length!==a.length)p.data=new Uint32Array(a);else{const g=p.data;for(let x=0;x<c;x++)g[x]=a[x]}this.name=n,h.update(),d.update(),p.update()}},Ft=et("@pixi/core"),jn=class extends Ft.Geometry{_buffer;_indexBuffer;constructor(e=!1){super(),this._buffer=new Ft.Buffer(void 0,e,!1),this._indexBuffer=new Ft.Buffer(void 0,e,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,Ft.TYPES.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,Ft.TYPES.FLOAT).addAttribute("aColor",this._buffer,4,!0,Ft.TYPES.UNSIGNED_BYTE).addAttribute("aDarkColor",this._buffer,4,!0,Ft.TYPES.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,Ft.TYPES.FLOAT).addIndex(this._indexBuffer)}},Ht=et("@pixi/core"),kr=`
|
||||
precision highp float;
|
||||
attribute vec2 aVertexPosition;
|
||||
attribute vec2 aTextureCoord;
|
||||
attribute vec4 aColor;
|
||||
attribute vec4 aDarkColor;
|
||||
attribute float aTextureId;
|
||||
|
||||
uniform mat3 projectionMatrix;
|
||||
uniform mat3 translationMatrix;
|
||||
uniform vec4 tint;
|
||||
|
||||
varying vec2 vTextureCoord;
|
||||
varying vec4 vColor;
|
||||
varying vec4 vDarkColor;
|
||||
varying float vTextureId;
|
||||
|
||||
void main(void){
|
||||
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
||||
|
||||
vTextureCoord = aTextureCoord;
|
||||
vTextureId = aTextureId;
|
||||
vColor = aColor * tint;
|
||||
vDarkColor = aDarkColor * tint;
|
||||
|
||||
}
|
||||
`,Mr=`
|
||||
varying vec2 vTextureCoord;
|
||||
varying vec4 vColor;
|
||||
varying vec4 vDarkColor;
|
||||
varying float vTextureId;
|
||||
uniform sampler2D uSamplers[%count%];
|
||||
|
||||
void main(void){
|
||||
vec4 color;
|
||||
%forloop%
|
||||
|
||||
|
||||
gl_FragColor.a = color.a * vColor.a;
|
||||
gl_FragColor.rgb = ((color.a - 1.0) * vDarkColor.a + 1.0 - color.rgb) * vDarkColor.rgb + color.rgb * vColor.rgb;
|
||||
}
|
||||
`,Zn=class extends Ht.BatchRenderer{static extension={name:"darkTintBatch",type:Ht.ExtensionType.RendererPlugin};constructor(e){super(e),this.shaderGenerator=new Ht.BatchShaderGenerator(kr,Mr),this.geometryClass=jn,this.vertexSize=7}packInterleavedGeometry(e,t,s,n,i){const{uint32View:r,float32View:a}=t,c=n/this.vertexSize,l=e.uvs,o=e.indices,h=e.vertexData,d=e._texture.baseTexture._batchLocation,m=Math.min(e.worldAlpha,1),f=Ht.Color.shared.setValue(e._tintRGB).toPremultiplied(m,!0),u=Ht.Color.shared.setValue(e._darkTintRGB).premultiply(m,!0).toPremultiplied(1,!1);for(let p=0;p<h.length;p+=2)a[n++]=h[p],a[n++]=h[p+1],a[n++]=l[p],a[n++]=l[p+1],r[n++]=f,r[n++]=u,a[n++]=d;for(let p=0;p<o.length;p++)s[i++]=c+o[p]}};Ht.extensions.add(Zn);var Pr=et("@pixi/core"),sn=et("@pixi/mesh"),Qn=class Ot extends sn.Mesh{name="";static auxColor=[0,0,0,0];warnedTwoTint=!1;constructor(){const t=new sn.MeshGeometry;t.getBuffer("aVertexPosition").static=!1,t.getBuffer("aTextureCoord").static=!1;const s=new sn.MeshMaterial(Pr.Texture.EMPTY);super(t,s)}updateFromSpineData(t,s,n,i,r,a,c,l){this.texture=t.texture;const o=r/(l?12:8)*2,h=this.geometry.getBuffer("aTextureCoord");h.data?.length!==o&&(h.data=new Float32Array(o));const d=this.geometry.getBuffer("aVertexPosition");d.data?.length!==o&&(d.data=new Float32Array(o));let m=0;const f=h.data,u=d.data;for(let g=0;g<r;g+=l?12:8){let x=g;u[m]=i[x++],u[m+1]=i[x++],x+=4,f[m]=i[x++],f[m+1]=i[x++],m+=2}l&&!this.warnedTwoTint&&(console.warn("DarkTint is not enabled by default. To enable use a DarkSlotMesh factory while creating the Spine object."),this.warnedTwoTint=!0),Ot.auxColor[0]=i[2],Ot.auxColor[1]=i[3],Ot.auxColor[2]=i[4],Ot.auxColor[3]=i[5],this.tint=Ot.auxColor,this.alpha=Ot.auxColor[3],this.blendMode=de.toPixiBlending(s);const p=this.geometry.indexBuffer;if(p.data.length!==a.length)p.data=new Uint32Array(a);else{const g=p.data;for(let x=0;x<c;x++)g[x]=a[x]}this.name=n,h.update(),d.update(),p.update()}},ti=et("@pixi/assets"),nn=et("@pixi/core"),ei=et("@pixi/display"),Fr=et("@pixi/graphics"),Vr=et("@pixi/events"),Yr=class{constructor(e,t,s,n){this.x=e,this.y=t,this.width=s,this.height=n}calculateBounds(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},Er=class{constructor(e=!1){this.clipping=e}calculateBounds(e){if(!e.skeleton)return{x:0,y:0,width:0,height:0};const t=new Gt(e.skeleton.data);t.setupPose(),t.updateWorldTransform(2);const s=t.getBoundsRect(this.clipping?new he:void 0);return s.width===Number.NEGATIVE_INFINITY?{x:0,y:0,width:0,height:0}:s}},Br=class{constructor(e,t=[],s=.05,n=!1){this.animation=e,this.skins=t,this.timeStep=s,this.clipping=n}calculateBounds(e){if(!e.skeleton||!e.state)return{x:0,y:0,width:0,height:0};const t=new Ys(e.state.data),s=new Gt(e.skeleton.data),n=this.clipping?new he:void 0,i=s.data;if(this.skins.length>0){const a=new ce("custom-skin");for(const c of this.skins){const l=i.findSkin(c);l!=null&&a.addSkin(l)}s.setSkin(a)}s.setupPose();const r=this.animation!=null?i.findAnimation(this.animation):null;if(r==null){s.updateWorldTransform(2);const a=s.getBoundsRect(n);return a.width===Number.NEGATIVE_INFINITY?{x:0,y:0,width:0,height:0}:a}else{let a=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;t.clearTracks(),t.setAnimation(0,r,!1);const h=Math.max(r.duration/this.timeStep,1);for(let m=0;m<h;m++){const f=m>0?this.timeStep:0;t.update(f),t.apply(s),s.update(f),s.updateWorldTransform(2);const u=s.getBoundsRect(n);a=Math.min(a,u.x),c=Math.min(c,u.y),l=Math.max(l,u.x+u.width),o=Math.max(o,u.y+u.height)}const d={x:a,y:c,width:l-a,height:o-c};return d.width===Number.NEGATIVE_INFINITY?{x:0,y:0,width:0,height:0}:d}}},Rr=class Z extends ei.Container{skeleton;state;skeletonPhysics;darkTint=!1;hasNeverUpdated=!0;_debug=void 0;get debug(){return this._debug}set debug(t){this._debug&&this._debug.unregisterSpine(this),t&&t.registerSpine(this),this._debug=t}slotMeshFactory=()=>new Qn;beforeUpdateWorldTransforms=()=>{};afterUpdateWorldTransforms=()=>{};_autoUpdate=!1;_ticker=nn.Ticker.shared;get autoUpdate(){return this._autoUpdate}set autoUpdate(t){t&&!this._autoUpdate?this._ticker.add(this.internalUpdate,this):!t&&this._autoUpdate&&this._ticker.remove(this.internalUpdate,this),this._autoUpdate=t}get ticker(){return this._ticker}set ticker(t){t=t??nn.Ticker.shared,this._ticker!==t&&(this._autoUpdate&&(this._ticker.remove(this.internalUpdate,this),t.add(this.internalUpdate,this)),this._ticker=t)}meshesCache=new Map;static vectorAux=new me;static clipper=new he;static QUAD_TRIANGLES=[0,1,2,2,3,0];static VERTEX_SIZE=8;static DARK_VERTEX_SIZE=12;lightColor=new z;darkColor=new z;clippingVertAux=new Float32Array(6);_boundsProvider;get boundsProvider(){return this._boundsProvider}set boundsProvider(t){this._boundsProvider=t,t?(this._boundsSpineID=-1,this._boundsSpineDirty=!0,this.interactiveChildren=!1):(this.interactiveChildren=!0,this.hitArea=null),this.hasNeverUpdated||this.calculateBounds()}_b
Line truncated
|
||||
Reference in new issue
Block a user