[drape] nits

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-11-24 17:34:56 +00:00
parent 298518ae72
commit 7e561d09d3
17 changed files with 51 additions and 112 deletions

View File

@@ -11,8 +11,8 @@ namespace df
namespace
{
double constexpr kValidPathSplineTurn = 15 * math::pi / 180;
double constexpr kCosTurn = 0.999989561; // cos(kValidPathSplineTurn)
double constexpr kSinTurn = 0.004569245; // sin(kValidPathSplineTurn)
double constexpr kCosTurn = 0.999989561; // cos(kValidPathSplineTurn)
double constexpr kSinTurn = 0.004569245; // sin(kValidPathSplineTurn)
double constexpr kRoundStep = 23;
int constexpr kMaxStepsCount = 7;
@@ -122,11 +122,6 @@ ref_ptr<PathTextLayout> const PathTextContext::GetLayout() const
return make_ref(m_layout);
}
void PathTextContext::BeforeUpdate()
{
m_updated = false;
}
std::vector<double> const & PathTextContext::GetOffsets() const
{
return m_globalOffsets;