| 127 | } |
| 128 | |
| 129 | void Demo5(EvasApp *app, std::string &filePath) { |
| 130 | /* Transform position */ |
| 131 | view5.reset(new LottieView(app->evas())); |
| 132 | view5->setFilePath(filePath.c_str()); |
| 133 | if (view5->player()) { |
| 134 | view5->player()->setValue<rlottie::Property::TrPosition>("Shape Layer 2.Shape 1", |
| 135 | [](const rlottie::FrameInfo& info) { |
| 136 | return rlottie::Point(-20 + (double)info.curFrame()/2.0, |
| 137 | -20 + (double)info.curFrame()/2.0); |
| 138 | }); |
| 139 | } |
| 140 | view5->setPos(1200, 0); |
| 141 | view5->setSize(300, 300); |
| 142 | view5->show(); |
| 143 | view5->play(); |
| 144 | view5->loop(true); |
| 145 | view5->setRepeatMode(LottieView::RepeatMode::Reverse); |
| 146 | } |
| 147 | |
| 148 | void Demo6(EvasApp *app, std::string &filePath) { |
| 149 | /* Transform scale */ |
nothing calls this directly
no test coverage detected