[deepamehta-devel] custom renderer question

Torsten Ziegler torsten at ziegi.de
So Sep 15 14:25:18 CEST 2013

Hi Jörg,

thanks for the ticket 505 that sounds fine to me.
Actually I realized that I do not need the HTML Node,
but am happy to draw directly on the canvas.
(And also I fear that using HTML nodes on the canvas
will make the mouse interaction slower, as we might
to have go through the DOM to find the clicked object)

I guess the hooks will be in the
in the functions draw_topics and draw_associations ?
I would also like to interfere with the topic selection
in default_topicmap_viemodel.js in the functions
find_topic and find_association
and with the mouse event functions in the default_topicmap_renderer.js

I think a good start for me ist to first rewrite a copy of the default 
to see how things are working out and then communicate with you
about which hooks are needed and if the things i do seem usefull for others.
Then I am willing to adapt the code I write to the hooks you provide
along with the ticket 505.

Are you ok with this ?

Thanks for your support,

Am 07.09.2013 23:03, schrieb Jörg Richter:
> On Sep 6, 2013, at 17:30, Jörg Richter wrote:
>> When you want a custom **HTML** rendering for a topic the default topicmap renderer would not be suitable as it is Canvas based (it's just a bitmap, there is no DOM for the individual topics/associations).
>> In this case I would no longer recommend to equip the default topicmap renderer with further extension points (my job) but to implement a custom topicmap renderer (your job).
> Hi Torsten,
> Meanwhile I see a 3rd option which I like to propose here.
> We can *combine* the HTML5 Canvas rendering (which is still useful for rendering the associations) with customizable DOMs for each topic. The Canvas (that displays the associations) would be overlayed by the individual topic DOMs. (In fact this hybrid approach was used by an old version of DM as Canvas Text was not supported by the browsers back then). This way you must not implement an entire (e.g. SVG based) Topicmap Renderer. Instead I would provide you with customization hooks for the Default Topicmap Renderer. I sketched out my possible work in ticket #505:
> https://trac.deepamehta.de/ticket/505
> Tell me if this fits your needs.
> If so, I would start implementing the customization hooks.
> Cheers,
> Jörg
> _______________________________________________
> deepamehta-devel mailing list
> deepamehta-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/deepamehta-devel

Torsten Ziegler
torsten at ziegi.de

Mehr Informationen über die Mailingliste devel