lottie-web icon indicating copy to clipboard operation
lottie-web copied to clipboard

fix: canvas text empty shapes

Open harperKKK opened this issue 2 years ago • 3 comments

fix canvas render error when "\r" occur in text TypeError: Cannot read properties of undefined (reading 'it') at CVTextElement.buildNewText (http://127.0.0.1:5500/build/player/lottie.js:13949:55) at ITextElement.validateText (http://127.0.0.1:5500/build/player/lottie.js:11977:12) at CVTextElement.renderInnerContent (http://127.0.0.1:5500/build/player/lottie.js:13998:10) at CVTextElement.renderFrame (http://127.0.0.1:5500/build/player/lottie.js:13262:12) at CanvasRendererBase.renderFrame (http://127.0.0.1:5500/build/player/lottie.js:14459:28) at AnimationItem.renderFrame (http://127.0.0.1:5500/build/player/lottie.js:2059:21) at AnimationItem.gotoFrame (http://127.0.0.1:5500/build/player/lottie.js:2045:10) at AnimationItem.checkLoaded (http://127.0.0.1:5500/build/player/lottie.js:2016:12) at AnimationItem.waitForFontsLoaded (http://127.0.0.1:5500/build/player/lottie.js:1997:12) at AnimationItem.configAnimation (http://127.0.0.1:5500/build/player/lottie.js:1981:12)

harperKKK avatar Nov 09 '23 10:11 harperKKK

data.json

harperKKK avatar Nov 09 '23 10:11 harperKKK

not sure what youre asking.

it loads as a black rectangle so i dont knw if that is what its supposed to be or not. is that the render frame error you refer to?

there is a few Kanji characters in there that might be causing issues if its having trouble parsing the file?

lxrcan avatar Feb 10 '24 02:02 lxrcan