Skip to content

Female and male placeholder when using the library on react #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
matthewfelixr opened this issue Jun 20, 2023 · 1 comment
Open

Comments

@matthewfelixr
Copy link

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

image

@SanichKotikov
Copy link
Owner

Hi, thanks!

  1. You have to call calculation without placeholders option or set it to false, for example lake this calcTree(nodes, { rootId }).
  2. You can check source here https://github.com/SanichKotikov/pinch-zoom-pan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants