| 374 | } |
| 375 | |
| 376 | static void animate::DoAnimation(animate::TimeLine *timeLine_, |
| 377 | shape::Element *shape, |
| 378 | const AnimateState &startState, |
| 379 | const animate::AnimateState &endState, |
| 380 | nlohmann::json &cfg, |
| 381 | std::function<void()> onEnd) { |
| 382 | // animate::AnimateState startState; |
| 383 | // startState.matrix = shape->GetMatrix(); |
| 384 | // todo 补充 startState 属性 |
| 385 | // startState.engle = shape-> // read rect startAngle. |
| 386 | animate::AnimInfo animInfo = animate::CreateAnimInfo(shape, startState, endState, cfg); |
| 387 | animInfo.onEnd = std::move(onEnd); |
| 388 | timeLine_->PushAnim(std::move(animInfo)); |
| 389 | } |
| 390 | |
| 391 | #pragma GeomAnimate |
| 392 | std::string animate::GeomAnimate::GetGeomAnimateDefaultCfg(std::string geomType, canvas::coord::AbstractCoord *coord) { |
nothing calls this directly
no test coverage detected