MCPcopy Create free account
hub / github.com/antvis/F2Native / PushAnim

Method PushAnim

core/graphics/animate/TimeLine.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32void animate::TimeLine::Stop() { this->playing_ = false; }
33
34void animate::TimeLine::PushAnim(animate::AnimInfo &&animInfo) {
35 if(!playing_) {
36 Play();
37 }
38 animInfo.startTime = this->time_ + animInfo.delay;
39 animInfo.endTime = animInfo.startTime + animInfo.duration;
40 this->animInfos_.push_back(std::move(animInfo));
41}
42
43void animate::TimeLine::OnUpdate() {
44 auto currTime = CurrentTimestampAtMM();

Callers 1

DoAnimationMethod · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected