Replies: 9 comments 2 replies
-
Hey I just wanna say both ways are super easy and super effective which means this is the best lib on the planet for this. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I recommend you to think in dependency types like SS = Start - Start, SF = Start - Finish, FS = Finish - Start and FF = Finish Finish, those are in order to know from where the arrow comes and where it goes. |
Beta Was this translation helpful? Give feedback.
-
V2 any close? |
Beta Was this translation helpful? Give feedback.
-
make your suggestion! |
Beta Was this translation helpful? Give feedback.
-
v2 is released to dev branch, will very soon be merged to master and will be released as react-xarrows v2.0.0 in npm |
Beta Was this translation helpful? Give feedback.
-
awesome.!!
El dom, 18 jul 2021 a las 19:50, Eliav2 ***@***.***>)
escribió:
… v2 is released to dev branch, will very soon be merged to master and will
be released as react-xarrows v2.0.0 in npm
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI2VDEEICW6FRFC3JNFWIMLTYNSEJANCNFSM42U3XCNA>
.
|
Beta Was this translation helpful? Give feedback.
-
published |
Beta Was this translation helpful? Give feedback.
-
Hello Dear Eliav2, I am using your library right now, and I am doing some
tests around it, please if you want to see how I am using it in your
library let me know, I have a question and suggestion.
Question: Is there a way to avoid render arrows when there are no START or
END references? I mean that what happens when the reference START or END
has been deleted after the arrow is rendered?
El mar, 20 jul 2021 a las 12:53, Eliav2 ***@***.***>)
escribió:
… published
enjoy!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI2VDECYQCZMGBPBOROTRQ3TYWSW5ANCNFSM42U3XCNA>
.
|
Beta Was this translation helpful? Give feedback.
-
@Eliav2 can you help me ? once i change state arrow isnot rerender |
Beta Was this translation helpful? Give feedback.
-
react-xarrows v1 has 1 very annoying issue by design: Xarrow will not rerender if one of the connected elements renders.
I've come with an idea for a new architecture for react-xarrows v2 which handle it, and will also fully be compatible with react v1.
the main component (Xarrow) will stay as it is.
Xwrapper - will be a context wrapper of the arrow(s) and the connected elements.
Xelem - will be a wrapper around a connected element and when it will render it will invoke render(using useContext) on the Xarrows inside Xwrapper context.
lets take simple example:
will be rewritten in version 2 as:
this way, when one Xelem components will rerender it will use the Xwrapper context to invoke update on all the xarrrows inside the wrapper.
one thing annoying me with this approach - render of Xelem inside a Xwrapper will rerender all Xarrows components inside this Xwapper and not only the relevant one. you will need to wrap each Xarrow and Xelems with Xwrapper to achieve selective rendering!
Breaking changes - currently, the only planned breaking changes will be in some of the advanced customization properties. (for example -> startAnchor.offset will probably be changed)
so what do you think guys? this is a good architecture? do you have a better idea? how can i improve it before starting codeing?
please give a concrete and demonstrated(with code) notes!
Beta Was this translation helpful? Give feedback.
All reactions