Drawflow icon indicating copy to clipboard operation
Drawflow copied to clipboard

Mirroring drawflow move to minimap move programmatically

Open converseKarl opened this issue 1 year ago • 4 comments

I am successfully manipulating the drawflow canvas so it moves programmatically with smooth animation so the node is centred in the screen, however the mini map stays static. How can i get the mini map to move with minimum code.

The functionality i want to replicate is when i click drag drawflow and mini drawflow move in synch.

I want to replicate this when i trigger a function to move node to centre in drawflow (which works) but have the minimap synch with drawflow canvas as it moves too.

Any easy thoughts how i can do this?

converseKarl avatar Aug 16 '23 13:08 converseKarl

Reply function to minimap

jerosoler avatar Aug 17 '23 08:08 jerosoler

Could you expand, its not clear to me, a reply function where (in the drawflow.js module?) and what?

converseKarl avatar Aug 17 '23 11:08 converseKarl

Can you provide a codepen with the code?

The function that you have created to move the node in drawflow, you have to replicate it for the minimap.

Minimap only replicates some events.

jerosoler avatar Aug 17 '23 11:08 jerosoler

Hi Jero,

Will do.

Hope your well

K

From: Jero Soler @.***>

Can you provide a codepen with the code?

The function that you have created to move the node in drawflow, you have to replicate it for the minimap.

Minimap only replicates some events.

— Reply to this email directly, view it on GitHubhttps://github.com/jerosoler/Drawflow/issues/754#issuecomment-1682135131, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM5CES7T7JIXWPJYUH4AHIDXVX7IJANCNFSM6AAAAAA3SRLCSA. You are receiving this because you authored the thread.Message ID: @.@.>>

converseKarl avatar Aug 17 '23 11:08 converseKarl