XiaomaiTX / zeppos-fx

A library for building advanced animations in ZeppOS. 一个用于在ZeppOS中制作进阶动画的库
MIT License
9 stars 1 forks source link

Support for ZeppOS API 2.0 #3

Closed XiaomaiTX closed 1 year ago

XiaomaiTX commented 1 year ago

zeppos-fx only supports ZeppOS API 1.0 for the time being, because in API 2.0, the timer component was removed and replaced by the setTimeOut method in JavaScript, but setTimeOut lacks the repeat parameter, which means it does not support repeated execution and needs to be written by itself

This problem will be fixed in the near future by wrapping the setTimeOut method into the SmoothTimer module

Reference

https://docs.zepp.com/docs/reference/device-app-api/newAPI/global/setTimeout

https://docs.zepp.com/docs/1.0/reference/device-app-api/timer/createTimer/

XiaomaiTX commented 1 year ago

I've finished adapting ZeppOS 2.0 and will release it next week