jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.42k stars 714 forks source link

Mirroring drawflow move to minimap move programmatically #754

Open converseKarl opened 10 months ago

converseKarl commented 10 months ago

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?

jerosoler commented 10 months ago

Reply function to minimap

converseKarl commented 10 months ago

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

jerosoler commented 10 months ago

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.

converseKarl commented 10 months ago

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: @.**@.>>