I guess my request is indeed confusing :D
I do want to update tidgrpah but don't know how.

Second attempt:
Given:
Nodes in tidgraph are rendered with <$link/>, just as in the demo's
I manually add the same link in the tiddler.
This renders the tree + a plain link to the tiddler :D

When:
OK: I drag the plain link to another tiddler (a kanban board, 
https://reidgould.github.io/tiddlywiki-dropboard/), then the drop target 
renders it fine as all registered listener on the plain link get fired
NOK: I drag the node to the same tiddler, the rendering gets screwed.

Fix:
I see in my debug console that the plain link has listeners registered, 
where the node (TidGraph) version does not.

Question:
How can I register listeners in the TidGraph source code at makeNodeDiv(node) 
in 
https://github.com/ihm4u/tw5plugs/blob/gh-pages/plugins/ihm/tidgraph/utils.js 
?

Hope this clears it up :D
Jonas

Op vrijdag 21 mei 2021 om 09:44:45 UTC+2 schreef Ste:

> I'll be honest.. I don't really understand what your asking, but if your 
> looking at updating tidgraph a little that would be awesome! 
>
> On Thursday, 20 May 2021 at 10:02:23 UTC+1 [email protected] wrote:
>
>> I use <$link/> as the mechanism to render nodes.
>> I then use that link to drag and drop to another tiddler.
>> I see that nodes have CSS classes added to mimick <$link/>
>> *but it does not add the listeners* as with a regular link (tested with 
>> the same link in a plain tiddler).
>>
>> Is this a correct assumption/analysis? And can this be fixed?
>> Like in function makeNodeDiv(node) in 
>> https://github.com/ihm4u/tw5plugs/blob/gh-pages/plugins/ihm/tidgraph/utils.js
>>  
>> ?
>>
>> Jonas
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/49d89f32-c8e6-444f-aa0c-bc21d188e183n%40googlegroups.com.
  • [tw5] TidGraph... 'Lean Product Innovation - Jonas Van Poucke' via TiddlyWiki
    • [tw5] Re:... Ste
      • [tw5]... 'Lean Product Innovation - Jonas Van Poucke' via TiddlyWiki
        • [... Saq Imtiaz
          • ... 'Lean Product Innovation - Jonas Van Poucke' via TiddlyWiki
            • ... 'Lean Product Innovation - Jonas Van Poucke' via TiddlyWiki
              • ... Saq Imtiaz
                • ... 'Lean Product Innovation - Jonas Van Poucke' via TiddlyWiki
                • ... 'c pa' via TiddlyWiki
                • ... 'Lean Product Innovation - Jonas Van Poucke' via TiddlyWiki
                • ... Ste

Reply via email to