| 571 | } |
| 572 | |
| 573 | static 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 | |
| 583 | static void GetFirstBaseLinesByPos(pag::Property<pag::TextDocumentHandle>* sourceText, |
| 584 | std::vector<pag::TextAnimator*>* animators) { |
no test coverage detected