-
Notifications
You must be signed in to change notification settings - Fork 59
Description
We create a sample animation in Rive and it works in Flutter lib but not works by JS lib. both JSON or Binary export didn't work in JS
the Binary version shows this error:
Uncaught RangeError: Offset is outside the bounds of the DataView at DataView.getFloat32 (<anonymous>) at BinaryReader.readFloat32Array (BinaryReader.js:53) at _ReadActorNode (ActorLoader.js:897) at _ReadComponentsBlock (ActorLoader.js:149) at _ReadActorArtboard (ActorLoader.js:777) at _ReadArtboardsBlock (ActorLoader.js:700) at _ReadActor (ActorLoader.js:744) at FileReader.fileReader.onload (ActorLoader.js:1483)
The JSON version shows this error:
JSONReader.js:49 Uncaught TypeError: Cannot read property '0' of undefined at JSONReader.readArray (JSONReader.js:49) at JSONReader.readFloat32Array (JSONReader.js:36) at _ReadAnimationBlock (ActorLoader.js:480) at _ReadAnimationsBlock (ActorLoader.js:527) at _ReadActorArtboard (ActorLoader.js:780) at _ReadArtboardsBlock (ActorLoader.js:700) at _ReadActor (ActorLoader.js:744) at FileReader.fileReader.onload (ActorLoader.js:1483)
Is there any solution?
Do you need the .flr file for the test?