-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tgfx to the lastest version. #2583
Conversation
@@ -852,8 +844,10 @@ void ApplyStrokeToPath(tgfx::Path* path, const StrokePaint& stroke) { | |||
} | |||
} | |||
for (const auto& effect : effects) { | |||
effect->applyTo(path); | |||
effect->filterPath(path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是不是不需要数组了,只有一个dasheffect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2583 +/- ##
==========================================
+ Coverage 77.35% 77.37% +0.02%
==========================================
Files 420 420
Lines 22460 22450 -10
Branches 6361 6355 -6
==========================================
- Hits 17373 17371 -2
- Misses 3814 3816 +2
+ Partials 1273 1263 -10 ☔ View full report in Codecov by Sentry. |
dashEffect->filterPath(path); | ||
} | ||
} | ||
auto strokeData = stroke.getStroke(); | ||
auto strokeEffect = tgfx::PathEffect::MakeStroke(&strokeData); | ||
if (strokeEffect) { | ||
effects.emplace_back(std::move(strokeEffect)); | ||
} | ||
if (effects.empty()) { | ||
return; | ||
} | ||
strokeData.applyToPath(path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这些需要在Transform之后才能应用,顺序错了。
No description provided.