支持spine4.3
This commit is contained in:
1 parent
63e4f61631
commit
0656684a92
206 files changed
+100597
-1320
No files matched your search
+13458
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../src/index.ts", "../../src/Utils.ts", "../../src/Texture.ts", "../../src/TextureAtlas.ts", "../../src/attachments/Attachment.ts", "../../src/attachments/MeshAttachment.ts", "../../src/attachments/RegionAttachment.ts", "../../src/attachments/Sequence.ts", "../../src/Animation.ts", "../../src/AnimationState.ts", "../../src/AnimationStateData.ts", "../../src/AssetManagerBase.ts", "../../src/attachments/BoundingBoxAttachment.ts", "../../src/attachments/ClippingAttachment.ts", "../../src/attachments/PathAttachment.ts", "../../src/attachments/PointAttachment.ts", "../../src/AtlasAttachmentLoader.ts", "../../src/PosedData.ts", "../../src/BoneData.ts", "../../src/BonePose.ts", "../../src/Posed.ts", "../../src/PosedActive.ts", "../../src/Bone.ts", "../../src/Constraint.ts", "../../src/DrawOrder.ts", "../../src/ConstraintData.ts", "../../src/Event.ts", "../../src/EventData.ts", "../../src/IkConstraintPose.ts", "../../src/IkConstraint.ts", "../../src/IkConstraintData.ts", "../../src/PathConstraintPose.ts", "../../src/PathConstraintData.ts", "../../src/PathConstraint.ts", "../../src/Physics.ts", "../../src/PhysicsConstraintPose.ts", "../../src/SlotPose.ts", "../../src/Slot.ts", "../../src/Skeleton.ts", "../../src/PhysicsConstraint.ts", "../../src/PhysicsConstraintData.ts", "../../src/polyfills.ts", "../../src/SliderPose.ts", "../../src/Slider.ts", "../../src/SliderData.ts", "../../src/SkeletonData.ts", "../../src/Skin.ts", "../../src/SlotData.ts", "../../src/TransformConstraintPose.ts", "../../src/TransformConstraint.ts", "../../src/TransformConstraintData.ts", "../../src/SkeletonBinary.ts", "../../src/SkeletonBounds.ts", "../../src/Triangulator.ts", "../../src/SkeletonClipping.ts", "../../src/SkeletonJson.ts", "../../src/SkeletonPhysicsMovement.ts", "../../src/SkeletonRendererCore.ts"],
|
||||
"sourcesContent": ["export * from './Animation.js';\nexport * from './AnimationState.js';\nexport * from './AnimationStateData.js';\nexport * from './AssetManagerBase.js';\nexport * from './AtlasAttachmentLoader.js';\nexport * from './attachments/Attachment.js';\nexport * from './attachments/AttachmentLoader.js';\nexport * from './attachments/BoundingBoxAttachment.js';\nexport * from './attachments/ClippingAttachment.js';\nexport * from './attachments/HasSequence.js';\nexport * from './attachments/MeshAttachment.js';\nexport * from './attachments/PathAttachment.js';\nexport * from './attachments/PointAttachment.js';\nexport * from './attachments/RegionAttachment.js';\nexport * from './attachments/Sequence.js';\nexport * from './Bone.js';\nexport * from './BoneData.js';\nexport * from './BonePose.js';\nexport * from './Constraint.js';\nexport * from './DrawOrder.js';\nexport * from './ConstraintData.js';\nexport * from './Event.js';\nexport * from './EventData.js';\nexport * from './IkConstraint.js';\nexport * from './IkConstraintData.js';\nexport * from './IkConstraintPose.js';\nexport * from './PathConstraint.js';\nexport * from './PathConstraintData.js';\nexport * from './PathConstraintPose.js';\nexport * from './Physics.js';\nexport * from './PhysicsConstraint.js';\nexport * from './PhysicsConstraintData.js';\nexport * from './PhysicsConstraintPose.js';\nexport * from './Pose.js';\nexport * from './Posed.js';\nexport * from './PosedActive.js';\nexport * from './PosedData.js';\nexport * from './polyfills.js';\nexport * from './Skeleton.js';\nexport * from './SkeletonBinary.js';\nexport * from './SkeletonBounds.js';\nexport * from './SkeletonClipping.js';\nexport * from './SkeletonCoordinateConverter.js';\nexport * from './SkeletonData.js';\nexport * from './SkeletonJson.js';\nexport * from './SkeletonPhysicsMovement.js';\nexport * from './SkeletonRendererCore.js';\nexport * from './Skin.js';\nexport * from './Slider.js';\nexport * from './SliderData.js';\nexport * from './SliderPose.js';\nexport * from './Slot.js';\nexport * from './SlotData.js';\nexport * from './SlotPose.js';\nexport * from './Texture.js';\nexport * from './TextureAtlas.js';\nexport * from './TransformConstraint.js';\nexport * from './TransformConstraintData.js';\nexport * from './TransformConstraintPose.js';\nexport * from './Triangulator.js';\nexport * from './Update.js';\nexport * from './Utils.js';\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/complexity/noStaticOnlyClass: too much things to update */\n\nimport type { Skeleton } from \"./Skeleton.js\";\n\nexport interface StringMap<T> {\n\t[key: string]: T;\n}\n\nexport class IntSet {\n\tarray = [] as (number | undefined)[];\n\n\tadd (value: number): boolean {\n\t\tconst contains = this.contains(value);\n\t\tthis.array[value | 0] = value | 0;\n\t\treturn !contains;\n\t}\n\n\tcontains (value: number) {\n\t\treturn this.array[value | 0] !== undefined;\n\t}\n\n\tremove (value: number) {\n\t\tthis.array[value | 0] = undefined;\n\t}\n\n\tclear () {\n\t\tthis.array.length = 0;\n\t}\n}\n\nexport class StringSet {\n\tentries: StringMap<boolean> = {};\n\tsize = 0;\n\n\tadd (value: string): boolean {\n\t\tconst contains = this.entries[value];\n\t\tthis.entries[value] = true;\n\t\tif (!contains) {\n\t\tLine truncated
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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K,KAAK,MAAM,KAAK;AAAA,IAClD;AAAA,IAEA,OAAO,aAAc,OAAe;AACnC,aAAO,UAAU,QAAS,QAAQ,OAAQ;AAAA,IAC3C;AAAA,EACD;AAEO,MAAe,gBLine 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"]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
"use strict";var spine=(()=>{var Ie=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,Rn=Object.getOwnPropertyNames,Vn=Object.prototype.hasOwnProperty,Ln=(t,e)=>{for(var s in e)Ie(t,s,{get:e[s],enumerable:!0})},Bn=(t,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Rn(e))!Vn.call(t,i)&&i!==s&&Ie(t,i,{get:()=>e[i],enumerable:!(n=Xn(e,i))||n.enumerable});return t},On=t=>Bn(Ie({},"__esModule",{value:!0}),t),Ns={};Ln(Ns,{ATTACH_RETAIN:()=>us,ATTACH_SETUP:()=>fs,AlphaTimeline:()=>qe,Animation:()=>Kt,AnimationState:()=>Wn,AnimationStateAdapter:()=>Hn,AnimationStateData:()=>Gn,AssetCache:()=>en,AssetManagerBase:()=>jn,AtlasAttachmentLoader:()=>Jn,Attachment:()=>Ye,AttachmentTimeline:()=>Pt,BinaryInput:()=>un,BlendMode:()=>Cs,Bone:()=>ie,BoneData:()=>gs,BonePose:()=>ne,BoneTimeline1:()=>wt,BoneTimeline2:()=>Zt,BoundingBoxAttachment:()=>ms,CURRENT:()=>ls,ClippingAttachment:()=>_t,Color:()=>z,Constraint:()=>Et,ConstraintData:()=>Xt,ConstraintTimeline1:()=>kt,CurveTimeline:()=>xt,CurveTimeline1:()=>Nt,DebugUtils:()=>Un,DeformTimeline:()=>We,Downloader:()=>sn,DrawOrder:()=>rn,DrawOrderFolderTimeline:()=>$t,DrawOrderTimeline:()=>St,Event:()=>ae,EventData:()=>xs,EventQueue:()=>Zs,EventTimeline:()=>Qt,EventType:()=>Qs,FIRST:()=>hs,FakeTexture:()=>_n,FromProperty:()=>It,FromRotate:()=>me,FromScaleX:()=>be,FromScaleY:()=>xe,FromShearY:()=>we,FromX:()=>ge,FromY:()=>pe,HOLD:()=>qt,IkConstraint:()=>an,IkConstraintData:()=>zt,IkConstraintPose:()=>oe,IkConstraintTimeline:()=>Ge,Inherit:()=>se,InheritTimeline:()=>De,IntSet:()=>Nn,Interpolation:()=>Lt,MODE:()=>ds,MathUtils:()=>V,MeshAttachment:()=>Tt,MixFrom:()=>Ws,PathAttachment:()=>te,PathConstraint:()=>on,PathConstraintData:()=>Wt,PathConstraintMixTimeline:()=>Ze,PathConstraintPose:()=>ce,PathConstraintPositionTimeline:()=>Je,PathConstraintSpacingTimeline:()=>Ke,Physics:()=>cn,PhysicsConstraint:()=>Ts,PhysicsConstraintDampingTimeline:()=>es,PhysicsConstraintData:()=>Ht,PhysicsConstraintGravityTimeline:()=>is,PhysicsConstraintInertiaTimeline:()=>Qe,PhysicsConstraintMassTimeline:()=>ss,PhysicsConstraintMixTimeline:()=>rs,PhysicsConstraintPose:()=>le,PhysicsConstraintResetTimeline:()=>as,PhysicsConstraintStrengthTimeline:()=>ts,PhysicsConstraintTimeline:()=>gt,PhysicsConstraintWindTimeline:()=>ns,PointAttachment:()=>nn,Pool:()=>Bt,Posed:()=>ps,PosedActive:()=>bs,PosedData:()=>ee,PositionMode:()=>ws,Pow:()=>Us,PowOut:()=>Dn,Property:()=>Hs,RGB2Timeline:()=>ze,RGBA2Timeline:()=>_e,RGBATimeline:()=>Ue,RGBTimeline:()=>$e,RegionAttachment:()=>Ft,RotateMode:()=>vs,RotateTimeline:()=>Dt,SETUP:()=>tn,ScaleTimeline:()=>Re,ScaleXTimeline:()=>Ve,ScaleYMode:()=>re,ScaleYTimeline:()=>Le,Sequence:()=>Ot,SequenceMode:()=>Fe,SequenceModeValues:()=>Pe,SequenceTimeline:()=>He,ShearTimeline:()=>Be,ShearXTimeline:()=>Oe,ShearYTimeline:()=>Ne,Skeleton:()=>hn,SkeletonBinary:()=>Kn,SkeletonBounds:()=>Oi,SkeletonClipping:()=>bn,SkeletonData:()=>Ss,SkeletonJson:()=>Ni,SkeletonPhysicsMovement:()=>Ui,SkeletonRendererCore:()=>$i,Skin:()=>fe,SkinEntry:()=>Is,Slider:()=>dn,SliderData:()=>yt,SliderMixTimeline:()=>cs,SliderPose:()=>de,SliderTimeline:()=>os,Slot:()=>ln,SlotCurveTimeline:()=>Ut,SlotData:()=>As,SlotPose:()=>he,SpacingMode:()=>ys,StringSet:()=>Ds,Texture:()=>$s,TextureAtlas:()=>Ce,TextureAtlasPage:()=>zs,TextureAtlasRegion:()=>Me,TextureFilter:()=>Jt,TextureRegion:()=>_s,TextureWrap:()=>qs,TimeKeeper:()=>$n,Timeline:()=>Z,ToProperty:()=>At,ToRotate:()=>Ms,ToScaleX:()=>Ps,ToScaleY:()=>ks,ToShearY:()=>Es,ToX:()=>Ys,ToY:()=>Fs,TrackEntry:()=>Ks,TransformConstraint:()=>fn,TransformConstraintData:()=>j,TransformConstraintPose:()=>ue,TransformConstraintTimeline:()=>je,TranslateTimeline:()=>ke,TranslateXTimeline:()=>Ee,TranslateYTimeline:()=>Xe,Triangulator:()=>pn,Utils:()=>B,Vector2:()=>Ae,VertexAttachment:()=>bt,WindowedMean:()=>qn,isBoneTimeline:()=>js,isConstraintTimeline:()=>Js,isSlotTimeline:()=>Gs});var Nn=class{array=[];add(t){const e=this.contains(t);return this.array[t|0]=t|0,!e}contains(t){return this.array[t|0]!==void 0}remove(t){this.array[t|0]=void 0}clear(){this.array.length=0}},Ds=class{entries={};size=0;add(t){const e=this.entries[t];return this.entries[t]=!0,e?!1:(this.size++,!0)}addAll(t){const e=this.size;for(let s=0,n=t.length;s<n;s++)this.add(t[s]);return e!==this.size}contains(t){return this.entries[t]}clear(){this.entries={},this.size=0}},z=class Ct{constructor(e=0,s=0,n=0,i=0){this.r=e,this.g=s,this.b=n,this.a=i}static WHITE=new Ct(1,1,1,1);static RED=new Ct(1,0,0,1);static GREEN=new Ct(0,1,0,1);static BLUE=new Ct(0,0,1,1);static MAGENTA=new Ct(1,0,1,1);set(e,s,n,i){return this.r=e,this.g=s,this.b=n,this.a=i,this.clamp()}setFromColor(e){return this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this}setFromString(e){return e=e.charAt(0)==="#"?e.substr(1):e,this.r=parseInt(e.substr(0,2),16)/255,this.g=parseInt(e.substr(2,2),16)/255,this.b=parseInt(e.substr(4,2),16)/255,this.a=e.length!==8?1:parseInt(e.substr(6,2),16)/255,this}add(e,s,n,i){return this.r+=e,this.g+Line truncated
|
||||
${s}`:""}`)}remove(t){t=this.pathPrefix+t;const e=this.cache.assets[t];return e.dispose&&e.dispose(),delete this.cache.assets[t],delete this.cache.assetsRefCount[t],delete this.cache.assetsLoaded[t],e}removeAll(){for(const t in this.cache.assets){const e=this.cache.assets[t];e.dispose&&e.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(t){const e=this.cache.assets[t];if(e instanceof Ce){e.dispose();return}this.disposeAssetInternal(t)}hasErrors(){return Object.keys(this.errors).length>0}getErrors(){return this.errors}disposeAssetInternal(t){if(this.cache.assetsRefCount[t]>0&&--this.cache.assetsRefCount[t]===0)return this.remove(t)}createTextureAtlas(t,e,s,n){const i=new Ce(t);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 o=this.texturePath(e,r.name,n);this.texturePmaInfo[this.pathPrefix+o]=r.pma}return i}createTexture(t,e,s){const n=this.textureLoader(s,e),i=n.dispose.bind(n);return n.dispose=()=>{this.disposeAssetInternal(t)&&i()},n}texturePath(t,e,s){return s?s[e]:t+e}},en=class Te{assets={};assetsRefCount={};assetsLoaded={};static AVAILABLE_CACHES=new Map;static getCache(e){const s=Te.AVAILABLE_CACHES.get(e);if(s)return s;const n=new Te;return Te.AVAILABLE_CACHES.set(e,n),n}async addAsset(e,s){return this.assetsLoaded[e]=Promise.resolve(s),this.assets[e]=s,s}getAsset(e){return this.assetsLoaded[e]}},sn=class{callbacks={};rawDataUris={};dataUriToString(t){if(!t.startsWith("data:"))throw new Error("Not a data URI.");let e=t.indexOf("base64,");return e!==-1?(e+=7,atob(t.substr(e))):t.substr(t.indexOf(",")+1)}base64ToUint8Array(t){var e=window.atob(t),s=e.length,n=new Uint8Array(s);for(let i=0;i<s;i++)n[i]=e.charCodeAt(i);return n}dataUriToUint8Array(t){if(!t.startsWith("data:"))throw new Error("Not a data URI.");let e=t.indexOf("base64,");if(e===-1)throw new Error("Not a binary data URI.");return e+=7,this.base64ToUint8Array(t.substr(e))}downloadText(t,e,s){if(this.start(t,e,s))return;const n=this.rawDataUris[t];if(n&&!n.includes(".")){try{this.finish(t,200,this.dataUriToString(n))}catch(o){this.finish(t,400,JSON.stringify(o))}return}const i=new XMLHttpRequest;i.overrideMimeType("text/html"),i.open("GET",n||t,!0);const r=()=>{this.finish(t,i.status,i.responseText)};i.onload=r,i.onerror=r,i.send()}downloadJson(t,e,s){this.downloadText(t,n=>{e(JSON.parse(n))},s)}downloadBinary(t,e,s){if(this.start(t,e,s))return;const n=this.rawDataUris[t];if(n&&!n.includes(".")){try{this.finish(t,200,this.dataUriToUint8Array(n))}catch(o){this.finish(t,400,JSON.stringify(o))}return}const i=new XMLHttpRequest;i.open("GET",n||t,!0),i.responseType="arraybuffer";const r=()=>{this.finish(t,i.status,i.response)};i.onload=()=>{i.status===200||i.status===0?this.finish(t,200,new Uint8Array(i.response)):r()},i.onerror=r,i.send()}start(t,e,s){let n=this.callbacks[t];try{if(n)return!0;this.callbacks[t]=n=[]}finally{n.push(e,s)}}finish(t,e,s){const n=this.callbacks[t];if(delete this.callbacks[t],e===200||e===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](e,s)}},ms=class In extends bt{color=new z(1,1,1,1);constructor(e){super(e)}copy(){const e=new In(this.name);return this.copyTo(e),e.color.setFromColor(this.color),e}},_t=class An extends bt{endSlot=null;convex=!1;inverse=!1;color=new z(.2275,.2275,.8078,1);constructor(e){super(e)}copy(){const e=new An(this.name);return this.copyTo(e),e.endSlot=this.endSlot,e.convex=this.convex,e.inverse=this.inverse,e.color.setFromColor(this.color),e}},te=class Cn extends bt{lengths=[];closed=!1;constantSpeed=!1;color=new z(1,1,1,1);constructor(e){super(e)}copy(){const e=new Cn(this.name);return this.copyTo(e),e.lengths=[],B.arrayCopy(this.lengths,0,e.lengths,0,this.lengths.length),e.closed=this.closed,e.constantSpeed=this.constantSpeed,e.color.setFromColor(this.color),e}},nn=class Mn extends bt{x=0;y=0;rotation=0;color=new z(.38,.94,0,1);constructor(e){super(e)}computeWorldPosition(e,s){return s.x=this.x*e.a+this.y*e.b+e.worldX,s.y=this.x*e.c+this.y*e.d+e.worldY,s}computeWorldRotation(e){const s=this.rotation*V.degRad,n=Math.cos(s),i=Math.sin(s),r=n*e.a+i*e.b,o=n*e.c+i*e.d;return V.atan2Deg(o,r)}copy(){const e=new Mn(this.name);return e.x=this.x,e.y=this.y,e.rotation=this.rotation,e.color.setFromColor(this.color),e}},Jn=class{atlas;allowMissingRegions;constructor(t,e=!1){this.atlas=t,this.allowMissingRegions=e}findRegions(t,e,s){const n=s.regions;for(let i=0,r=n.length;i<r;i++)n[i]=this.findRegion(t,s.getPath(e,i))}findRegion(t,e){const s=this.atlas.findRegion(e);if(!s&&!this.allowMissingRegions)throw new Error(`Region not found in atlas: ${e} (attachment: ${t})`);return s}newRegionAttachment(t,e,s,n,i){return this.findRegions(s,n,i),new Ft(s,i)}newMeshAttachment(t,e,s,n,i){retuLine truncated
|
||||
Reference in new issue
Block a user