@esotericsoftware/spine-canvaskit 4.2.54 → 4.2.55

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.
@@ -11760,7 +11760,7 @@ var spine = (() => {
11760
11760
  case 1 /* Additive */:
11761
11761
  return ck.BlendMode.Plus;
11762
11762
  case 2 /* Multiply */:
11763
- return ck.BlendMode.Modulate;
11763
+ return ck.BlendMode.SrcOver;
11764
11764
  case 3 /* Screen */:
11765
11765
  return ck.BlendMode.Screen;
11766
11766
  default:
@@ -11828,7 +11828,11 @@ var spine = (() => {
11828
11828
  async function loadSkeletonData(skeletonFile, atlas, readFile) {
11829
11829
  const attachmentLoader = new AtlasAttachmentLoader(atlas);
11830
11830
  const loader = skeletonFile.endsWith(".json") ? new SkeletonJson(attachmentLoader) : new SkeletonBinary(attachmentLoader);
11831
- const skeletonData = loader.readSkeletonData(await readFile(skeletonFile));
11831
+ let data = await readFile(skeletonFile);
11832
+ if (skeletonFile.endsWith(".json")) {
11833
+ data = bufferToUtf8String(data);
11834
+ }
11835
+ const skeletonData = loader.readSkeletonData(data);
11832
11836
  return skeletonData;
11833
11837
  }
11834
11838
  var SkeletonDrawable = class {