sasza2 / arrows

MIT License
60 stars 11 forks source link

Connecting to DIVs inside ShadowDOM #50

Open imperator-maximus opened 1 year ago

imperator-maximus commented 1 year ago

I have

` const arrow = arrowCreate({ from:{ direction: DIRECTION.LEFT, node: from, translation: [-0.5, -1], }, to:{ direction: DIRECTION.RIGHT, node: gw_node, translation: [-0.5, -1], },

    })`

where from and gw_node are inside shadowRoot of custom elements. But I am getting

'Uncaught (in promise) Error: point is null, check if 'from'/'to' exists' so the arrow itself could be inside a shadow-dom and also from and to elements in my case.

sasza2 commented 1 year ago

hm, could you post some codesandbox example on which I could rely to fix / improve library?