Render After Effects animations natively on Android and iOS, Web, and React Native
An iOS library to natively render After Effects vector animations
yes , i want to make video from lottie in that making each frame and convert into bitmap .in this method i used mediamuxer for making video and my code is
val max = lottieAnimationView.maxFrame.toInt() CoroutineScope(Dispatchers.Default).launch { for (i in 0 until max) { try { lottieAnimationView.frame = i var bitmap = lottieAnimationView.drawToBitmap() frameBuilder.createFrame(bitmap , i) } catch (e: Exception) { e.printStackTrace() } }}
Only the original thread that created a view hierarchy can touch its views. in that line lottieAnimationView.frame = i and set outside of CoroutineScope then not generate proper video every time set last frame so video is not perfect frame by frame .and apply this all is main thread then all worked but ui is block. how to solve this ?
Thanks for the great thoughts, Jordan 🙏 I agree going ESM
-only would be the least ideal. Here are my thoughts on the other options
d3-*
are so fundamental to @visx/*
I don't think this is feasible unfortunatelyd3
made the ESM
-only decision quite a while ago and there have since been several security fixes I don't think they'll backwards-patch (the entire reason we upgraded to these ESM
-only packages and released a major version bump was to fix a security vulnerability). One possible option we could consider here is using victory-vendor/d3-*
packages. They faced a similar dllemma and decided to transpile & release their own CJS
version of d3-*
packages. This could be viable, my only concern is possible TS clashes and this wouldn't work for any future lib we depend on that went ESM
-onlynext.js
for our demo site, so we could test the feasibility ourselves with this.I am very limited on bandwidth the next couple of weeks, so if anyone would like to explore #3 I'd be happy to review/collaborate on a branch.