MCPcopy Create free account
hub / github.com/Tencent/libpag / GetFirstBaseLineByPos

Function GetFirstBaseLineByPos

exporter/src/export/data/TextProperty.cpp:573–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573static void GetFirstBaseLineByPos(pag::TextDocumentHandle textDocument,
574 std::vector<pag::TextAnimator*>* animators, pag::Frame frame) {
575 bool hasBias = false;
576 auto position = pag::TextAnimatorRenderer::GetPositionFromAnimators(animators, textDocument.get(),
577 frame, 0, &hasBias);
578 bool isVertical = (textDocument->direction == pag::TextDirection::Vertical);
579 textDocument->firstBaseLine -= isVertical ? position.x : position.y;
580 AdjustFirstBaseLine(textDocument, hasBias);
581}
582
583static void GetFirstBaseLinesByPos(pag::Property<pag::TextDocumentHandle>* sourceText,
584 std::vector<pag::TextAnimator*>* animators) {

Callers 1

GetFirstBaseLinesByPosFunction · 0.85

Calls 2

AdjustFirstBaseLineFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected