mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-02 00:51:10 +00:00
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:
committed by
Hermet Park
parent
2433238033
commit
90affa8bd1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user