VisualDataWeb / WebVOWL

Visualizing ontologies on the Web
http://vowl.visualdataweb.org/webvowl.html
MIT License
718 stars 211 forks source link

centering screen on searched element #84

Closed leshek-pawlak closed 7 years ago

leshek-pawlak commented 7 years ago

Hi, I'm using this great library for a while, and I'm wondering about an improvement the search feature.

After the click on the dropdown menu, the searched node is highlighted. What do you think about centering the screen on it?

I already wrote some code to focus on searched element on my fork. If you're interested in I can do a pull request.

Cheers, Leszek

steffen-l commented 7 years ago

Thanks, Leshek. We already implemented that feature in an experimental version and will integrate it in the next WebVOWL release. It comes with a nice and smooth focus animation. Might be a similar implementation as your solution.

leshek-pawlak commented 7 years ago

That's great news! So, I'm waiting for new release.

Thanks.

vitalis-wiens commented 7 years ago

The new feature is now available on gitHub.

Click on the "target" button next to the search entry form (right side) to center the viewport around the searched node (On multiple found entries you can press the "target" button several times, which circles between the found entries in the graph )

In the next days we will also release it on the web server.

Additionally dynamic halo radii are added.