Skip to content
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

Merged
merged 8 commits into from
Nov 12, 2024
Merged

Update tgfx to the lastest version. #2583

merged 8 commits into from
Nov 12, 2024

Conversation

Hparty
Copy link
Collaborator

@Hparty Hparty commented Nov 11, 2024

No description provided.

@Hparty Hparty reopened this Nov 11, 2024
@@ -852,8 +844,10 @@ void ApplyStrokeToPath(tgfx::Path* path, const StrokePaint& stroke) {
}
}
for (const auto& effect : effects) {
effect->applyTo(path);
effect->filterPath(path);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是不是不需要数组了,只有一个dasheffect

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1

@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 77.37%. Comparing base (f9bef34) to head (aa8875b).

Files with missing lines Patch % Lines
src/rendering/graphics/Text.cpp 50.00% 0 Missing and 1 partial ⚠️
src/rendering/renderers/ShapeRenderer.cpp 85.71% 0 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

Comment on lines 834 to 838
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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些需要在Transform之后才能应用,顺序错了。

@domchen domchen merged commit 7d78a48 into main Nov 12, 2024
8 checks passed
@domchen domchen deleted the feature/update_tgfx branch November 12, 2024 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants