ufal / perl-pmltq-web

Simple web build on the top of the PML Tree Query server
https://lindat.mff.cuni.cz/services/pmltq/
0 stars 0 forks source link

wish: tree view: collapse subtree below a node #86

Open Ansa211 opened 7 years ago

Ansa211 commented 7 years ago

type of query: w/o Filters

With large trees, it would be useful if there would be a shortcut (such as Ctrl-click) which would collapse the whole subtree below the node into just a node (maybe marked by a large triangle) and annotated with the text "word_1 ... word_n" where word_1/word_n is whatever word/lemma information would normally be shown beneath the first/last node in the subtree.

(reported on behalf of Martin Popel)

matyaskopp commented 7 years ago

I think that this wish would be very useful but the implementation would be difficult and each subtree collapse request would require server response - it will be slow. It is not possible to run it on client side because collapse does not mean hide. Collapsing should reorganize tree not only hide a subtree.

As we want to possibility of not using tred on server side (https://github.com/ufal/tred-extension-pmltq/issues/4) the collapsing will not work.

I think that it will need modification of tred's tree generator.