VisualDataWeb / WebVOWL

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

Create a new color hide external #112

Closed joaosalvado10 closed 6 years ago

joaosalvado10 commented 6 years ago

Hello, I have 2 questions.

  1. I would like to know if it is possible to hide the Charac.: external when an ontology is drawn.
  2. I would like to know how to create a new color. I was only able to edit 3 of the existing ones. Thank you.
linkvt commented 6 years ago

Hi,

  1. There is no filter for filtering externals, you would have to write one that is similar to the setOperatorFilter.js. It is possible that there are e.g. external elements that are also deprecated, so to filter all elements that are colored as externals (blue) you could check whether the visualAttributes contain the external attribute similar to here.
  2. Almost all colors are defined in the vowl.css, an exception are external elements, because they might have dynamic coloring: colorExternalsSwitch.js. Which colors can't be changed?

Cheers

joaosalvado10 commented 6 years ago

Ok thank you.

For instances, the external or the general. So how to create a new one=?

Cheers

linkvt commented 6 years ago

IIRC you should be able to change the default color just as described in the vowl.css file - otherwise you would have to take a look at the provided JavaScript code and change the color codes.

Do you want to create a new color or a new filter?

joaosalvado10 commented 6 years ago

I would like to create new filter different from external and deprecated , i would like to use them to fill up the balls. Otherwise I would like to do the following: When the ball is presented it is possible to see bellow the name this “(external)” or “(deprecated)”. How do i remove this ?

steffen-l commented 6 years ago

@joaosalvado10: Please check out the features of the tool:

If you require further customizations, either change the CSS styles or JavaScript code (as proposed by @linkvt). There is also the possibility of exporting the visualization as SVG image for further customization in the SVG editor of your choice.

joaosalvado10 commented 6 years ago

@steffen-l that is exactly what I want. However I want it to be presented as default. Where do i have to change to make the compact notation activated by default?

steffen-l commented 6 years ago

Glad to hear that. Just use the "Export as URL" feature and your settings will be added to the URL, e.g. in your case it adds "#opts=[mode_compact=true;]".

Enjoy!

joaosalvado10 commented 6 years ago

Is there any other way to change in a code in such way that when the page is refreshed that option would be True by default. I can not find in the code where it is being defined the default option as unchecked.

steffen-l commented 6 years ago

See https://github.com/VisualDataWeb/WebVOWL/blob/master/src/app/js/menu/modeMenu.js

Note that the option remains checked when you refreh the page - I assume you tried: http://visualdataweb.de/webvowl/#opts=[mode_compact=true;]

joaosalvado10 commented 6 years ago

That is it, thank you guys