Skip to content

Position placed text entries for forms and RPG sheets #267

Answered by hm21
saif-ellafi asked this question in Q&A
Discussion options

You must be logged in to vote

I understand that calculations with the InteractiveViewer can be very difficult, which was the reason I created a custom solution for the crop-rotate editor to avoid those difficulties. However, after I thought a bit about your problem, I think a possible solution might be to add your click listener directly inside the InteractiveViewer. This way, you can retrieve the correctly transformed coordinates immediately.

To implement this, you would only need to adjust the placement of the listener so that it is inside bodyItemsRecorded instead of bodyItems, as shown in the example below.

configs: ProImageEditorConfigs(
  mainEditorConfigs: const MainEditorConfigs(
    enableZoom: true,
    edit…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
8 replies
@saif-ellafi
Comment options

@hm21
Comment options

hm21 Dec 2, 2024
Maintainer

@saif-ellafi
Comment options

@hm21
Comment options

hm21 Dec 3, 2024
Maintainer

Answer selected by saif-ellafi
@saif-ellafi
Comment options

Comment options

You must be logged in to vote
2 replies
@hm21
Comment options

hm21 Nov 25, 2024
Maintainer

@saif-ellafi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants