Female and male placeholder when using the library on react
matthewfelixr opened this issue · 1 comments
matthewfelixr commented
Good day Mr. SanichKotikov,
First of all, thank you for making this library, im very happy to know that there are usable library like this with 2 parents.. but i encountered some Issue that Even i only had 1 Node, it popped up a parent Node , female-placeholder and male-placeholder.. i would like to know how to hide those placeholder if i wanted the top node does not have any parents?
and secondly, i wanna know how pinch-zoom-pan works at current version.. since i want to know how to implement the zoom and draggable motion only in one div tags, and when i try it, my whole page can be dragged
I hope you're gonna respond to this, thanks in advance Mr. Sanich Kotikov
SanichKotikov commented
Hi, thanks!
- You have to call calculation without
placeholders
option or set it tofalse
, for example lake thiscalcTree(nodes, { rootId })
. - You can check source here https://github.com/SanichKotikov/pinch-zoom-pan