/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/test/unittest/svg_animate/ |
H A D | svg_animate_test.cpp | 175 svgAnimate->SetBegin(0); 176 svgAnimate->SetDur(1600); 181 svgAnimate->SetTo("1.0"); 213 svgAnimate->SetBegin(0); 214 svgAnimate->SetDur(1600); 251 svgAnimate->SetBegin(0); 252 svgAnimate->SetDur(1600); 289 svgAnimate->SetBegin(0); 327 svgAnimate->SetBegin(0); 367 svgAnimate->SetBegin(0); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
H A D | render_svg_base.cpp | 314 if (!svgAnimate->GetValues().empty()) { in PrepareTransformAnimation() 366 svgAnimate->Copy(instance); in PrepareTransformFrameAnimation() 464 if (!svgAnimate) { in CreatePropertyAnimation() 489 if (!svgAnimate || svgAnimate->GetSvgAnimateType() != SvgAnimateType::MOTION) { in PrepareAnimateMotion() 526 if (!svgAnimate->GetValues().empty()) { in PrepareWeightAnimate() 534 svgAnimate->SetValues(newValues); in PrepareWeightAnimate() 536 std::string from = svgAnimate->GetFrom().empty() ? originalValue : svgAnimate->GetFrom(); in PrepareWeightAnimate() 537 if (!svgAnimate->GetTo().empty()) { in PrepareWeightAnimate() 653 if (!svgAnimate) { in PrepareAnimation() 817 if (!PrepareSelfAnimation(svgAnimate)) { in PreparePropertyAnimation() [all …]
|
H A D | render_svg.cpp | 71 auto svgAnimate = AceType::MakeRefPtr<SvgAnimate>(); in AddSvgAnimations() local 72 svgAnimateComponent->Copy(svgAnimate); in AddSvgAnimations() 73 svgAnimates_.emplace_back(svgAnimate); in AddSvgAnimations() 83 for (const auto& svgAnimate : svgAnimates_) { in PrepareAnimations() local 84 RenderSvgBase::PreparePropertyAnimation(svgAnimate); in PrepareAnimations() 88 bool RenderSvg::PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) in PrepareSelfAnimation() argument 90 if (OpacityAnimation(svgAnimate)) { in PrepareSelfAnimation() 94 if (!GetProperty(svgAnimate->GetAttributeName(), originalValue)) { in PrepareSelfAnimation() 109 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation() 113 bool RenderSvg::OpacityAnimation(const RefPtr<SvgAnimate>& svgAnimate) in OpacityAnimation() argument [all …]
|
H A D | render_svg_path.cpp | 62 auto svgAnimate = AceType::MakeRefPtr<SvgAnimate>(); in PrepareSelfAnimation() local 63 component->Copy(svgAnimate); in PrepareSelfAnimation() 65 PrepareWeightAnimate(svgAnimate, paths_, d_, isBy_); in PrepareSelfAnimation() 76 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation()
|
H A D | render_svg_polygon.cpp | 63 auto svgAnimate = AceType::MakeRefPtr<SvgAnimate>(); in PrepareSelfAnimation() local 64 component->Copy(svgAnimate); in PrepareSelfAnimation() 67 PrepareWeightAnimate(svgAnimate, pointsVector_, points_, isBy_); in PrepareSelfAnimation() 79 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation()
|
H A D | render_svg_base.h | 132 …void PrepareWeightAnimate(const RefPtr<SvgAnimate>& svgAnimate, std::vector<std::string>& valueVec… 136 bool PreparePropertyAnimation(const RefPtr<SvgAnimate>& svgAnimate); 182 void PreparePresentationAnimation(const RefPtr<SvgAnimate>& svgAnimate, const T& originalValue); 183 bool PrepareAnimateMotion(const RefPtr<SvgAnimate>& svgAnimate); 184 void PrepareTransformAnimation(const RefPtr<SvgAnimate>& svgAnimate, double originalValue); 185 void PrepareTransformValueAnimation(const RefPtr<SvgAnimate>& svgAnimate, double originalValue); 186 void PrepareTransformFrameAnimation(const RefPtr<SvgAnimate>& svgAnimate, double originalValue);
|
H A D | render_svg_text_path.cpp | 54 bool RenderSvgTextPath::PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) in PrepareSelfAnimation() argument 57 if (!GetProperty(svgAnimate->GetAttributeName(), originalValue)) { in PrepareSelfAnimation() 61 …callback = [weakText = AceType::WeakClaim(this), attributeName = svgAnimate->GetAttributeName()](D… in PrepareSelfAnimation() 72 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation()
|
H A D | render_svg_circle.cpp | 55 bool RenderSvgCircle::PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) in PrepareSelfAnimation() argument 58 if (!GetProperty(svgAnimate->GetAttributeName(), originalValue)) { in PrepareSelfAnimation() 62 callback = [weak = AceType::WeakClaim(this), attributeName = svgAnimate->GetAttributeName()]( in PrepareSelfAnimation() 73 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation()
|
H A D | render_svg_ellipse.cpp | 57 bool RenderSvgEllipse::PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) in PrepareSelfAnimation() argument 60 if (!GetProperty(svgAnimate->GetAttributeName(), originalValue)) { in PrepareSelfAnimation() 64 callback = [weak = AceType::WeakClaim(this), attributeName = svgAnimate->GetAttributeName()]( in PrepareSelfAnimation() 75 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation()
|
H A D | render_svg_line.cpp | 63 bool RenderSvgLine::PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) in PrepareSelfAnimation() argument 66 if (!GetProperty(svgAnimate->GetAttributeName(), originalValue)) { in PrepareSelfAnimation() 70 callback = [weakLine = AceType::WeakClaim(this), attrName = svgAnimate->GetAttributeName()]( in PrepareSelfAnimation() 81 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation()
|
H A D | render_svg_filter.cpp | 53 bool RenderSvgFilter::PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) in PrepareSelfAnimation() argument 56 if (!GetProperty(svgAnimate->GetAttributeName(), originalValue)) { in PrepareSelfAnimation() 60 … attributeName = svgAnimate->GetAttributeName()](double value) { in PrepareSelfAnimation() 71 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation()
|
H A D | render_svg_rect.cpp | 51 bool RenderSvgRect::PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) in PrepareSelfAnimation() argument 54 if (!GetProperty(svgAnimate->GetAttributeName(), originalValue)) { in PrepareSelfAnimation() 58 …callback = [weakRect = AceType::WeakClaim(this), attributeName = svgAnimate->GetAttributeName()](D… in PrepareSelfAnimation() 69 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation()
|
H A D | render_svg_mask.cpp | 71 bool RenderSvgMask::PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) in PrepareSelfAnimation() argument 74 if (!GetProperty(svgAnimate->GetAttributeName(), originalValue)) { in PrepareSelfAnimation() 78 … attributeName = svgAnimate->GetAttributeName()](double value) { in PrepareSelfAnimation() 89 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation()
|
H A D | render_svg_text.cpp | 60 bool RenderSvgText::PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) in PrepareSelfAnimation() argument 63 if (!GetProperty(svgAnimate->GetAttributeName(), originalValue)) { in PrepareSelfAnimation() 67 … callback = [weakText = AceType::WeakClaim(this), attributeName = svgAnimate->GetAttributeName()]( in PrepareSelfAnimation() 79 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation()
|
H A D | render_svg_pattern.cpp | 73 bool RenderSvgPattern::PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) in PrepareSelfAnimation() argument 76 if (!GetProperty(svgAnimate->GetAttributeName(), originalValue)) { in PrepareSelfAnimation() 80 attributeName = svgAnimate->GetAttributeName()](double value) { in PrepareSelfAnimation() 91 CreatePropertyAnimation(svgAnimate, originalValue, std::move(callback)); in PrepareSelfAnimation()
|
H A D | render_svg.h | 33 bool PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) override; 140 bool OpacityAnimation(const RefPtr<SvgAnimate>& svgAnimate);
|
H A D | render_svg_filter.h | 34 bool PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) override;
|
H A D | render_svg_polygon.h | 31 bool PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) override;
|
H A D | render_svg_circle.h | 31 bool PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) override;
|
H A D | render_svg_path.h | 33 bool PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) override;
|
H A D | render_svg_ellipse.h | 31 bool PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) override;
|
H A D | render_svg_line.h | 31 bool PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) override;
|
H A D | render_svg_pattern.h | 34 bool PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) override;
|
H A D | render_svg_rect.h | 31 bool PrepareSelfAnimation(const RefPtr<SvgAnimate>& svgAnimate) override;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | svg_animate.h | 387 void Copy(RefPtr<SvgAnimate>& svgAnimate) in Copy() argument 390 svgAnimate->SetBegin(begin_); in Copy() 391 svgAnimate->SetDur(dur_); in Copy() 392 svgAnimate->SetEnd(end_); in Copy() 394 svgAnimate->SetFillMode(fillMode_); in Copy() 395 svgAnimate->SetCalcMode(calcMode_); in Copy() 396 svgAnimate->SetValues(values_); in Copy() 397 svgAnimate->SetKeyTimes(keyTimes_); in Copy() 399 svgAnimate->SetFrom(from_); in Copy() 400 svgAnimate->SetTo(to_); in Copy() [all …]
|