Lines drawn using NeoLine not relative when container is moved to another container - Forum

Forum Navigation
You need to log in to create posts and topics.

Lines drawn using NeoLine not relative when container is moved to another container

Hi @luishp

The neoLineInit command works great when in the 'master' container. As in your sample (neoline.neoapp), the parent container is "Container 4"

Now, assuming I created a new master container "Container 5", and use the following commands:
MoveObjectIntoContainer "Container4" "Container5"
MoveObject "Container4" 0 0

The Container4 is now moved to Container5. However, the lines drawn using neoLineInit commands still remains in the absolute location (where container4 was originally located).

It'd be great to have the neolines drawn be relative to its parent container Container4, such that when container4 is moved to  container5, all objects including the neolines are displayed correctly...

Hi @ronnie, just delete and redraw the line so it can locate the moved object.
Regards.

Hi @luishp  Thanks.. Yeah, didn't think of it... thanks again

Hi @luishp, while the redrawing of lines worked well, there is a problem when Container 5 size is smaller than Container4. When scrolled, the lines are not moved along. Of course, one workaround is to use fabricjs scripts... but that requires more time as I was trying to see if I can create a simple family org chart

Hi @ronnie, although I can offer some advice, most plugins are wrappers around third party libraries. You can get information about the original library on the plugin description panel, in the Install/uninstall plugins menu.

In this case I would recommend you to visit the original library site and research there if your issue can be fixed. Sorry, I can't offer support to this extent.

Best regards.

Hi @luishp, No problem... sure will check out as suggested. The neoline is not critical, just a 'laziness' on my part not to redo functions currently available. Anyway, I've explored some css scripts (like https://www.cssscript.com/clean-tree-diagram/) that allows a fast way..