rlottie: Added dynamic property change feature

The keypath can handle globe(**) and wildchar(*) reg ex.
Currently only support fillcolor , fill opacity , stroke color , stroke opacity and stroke width property.
This commit is contained in:
subhransu mohanty
2019-04-23 14:59:50 +09:00
committed by Hermet Park
parent 2433238033
commit 90affa8bd1
14 changed files with 622 additions and 47 deletions

View File

@@ -45,10 +45,13 @@ main(void)
app->setup();
std::string filePath = DEMO_DIR;
filePath +="3d.json";
filePath +="circuit.json";
LottieView *view = new LottieView(app->evas());
view->setFilePath(filePath.c_str());
if (view->player()) {
view->player()->setValue<rlottie::Property::FillColor>("**", rlottie::Color(0, 1, 0));
}
view->setPos(0, 0);
view->setSize(800, 800);
view->show();