Skip to content

setMultilineText() breaks geom_text interactive updates #345

Description

@tdhock

https://github.com/tdhock/2026-08-apprentissage/blob/main/figure-sur-sous-apprentissage-test-neighbors.R breaks with new code from #247 which does not work with interactive updates to geom_text() elements. @ANAMASGARD can you please investigate and create a simpler test case that fails?
After clicking 40 voisins (neighbors) it should look like this:

Image

but using setMultilineText(), the geom_text at y=sélection* is not updated to the correct x position.
Reverting to .text() fixes this, so I will push that fix to master.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions