@esotericsoftware/spine-canvaskit 4.2.48 → 4.2.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11817,9 +11817,9 @@ var spine = (() => {
|
|
|
11817
11817
|
async function loadTextureAtlas(ck, atlasFile, readFile) {
|
|
11818
11818
|
const atlas = new TextureAtlas(bufferToUtf8String(await readFile(atlasFile)));
|
|
11819
11819
|
const slashIndex = atlasFile.lastIndexOf("/");
|
|
11820
|
-
const parentDir = slashIndex >= 0 ? atlasFile.substring(0, slashIndex + 1) : "";
|
|
11820
|
+
const parentDir = slashIndex >= 0 ? atlasFile.substring(0, slashIndex + 1) + "/" : "";
|
|
11821
11821
|
for (const page of atlas.pages) {
|
|
11822
|
-
const texture = await CanvasKitTexture.fromFile(ck, parentDir +
|
|
11822
|
+
const texture = await CanvasKitTexture.fromFile(ck, parentDir + page.name, readFile);
|
|
11823
11823
|
page.setTexture(texture);
|
|
11824
11824
|
}
|
|
11825
11825
|
return atlas;
|