almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

Set any css property to nodes and edges #1282

Closed jean-morissette closed 9 years ago

jean-morissette commented 9 years ago

At the moment, it's possible to set a few predefined styling properties, thanks to object options. For example:

        options:{
            nodes:{
                borderWidth: 1,
                borderWidthSelected: 2           
            }
        }

However, it's not possible to set any styling property. What if I want to add padding inside my node? What if I want to use a custom shadow to nodes? Etc...

Instead, we should be able to set any css properties for maximum styling customization.

AlexDM0 commented 9 years ago

Hi,

the network is not using the DOM. ITS a HMTL5 canvas. Css is not relevant here.

If you want to change more than currently available, either specify an area that you want more control over and we'll treat it as a feature request or contribute extra styles to the project.

Regards,

Alex

On 8 sep. 2015, at 20:37, jean-morissette notifications@github.com wrote:

At the moment, it's possible to set a few predefined styling property, thanks to object options. For example:

        nodes:{
            borderWidth: 1,
            borderWidthSelected: 2           
        }

However, it's not possible to set any styling property. What if I want to add padding to inside my node? What if I want to use a custom shadow to nodes? Etc...

Instead, we should be able to set any css properties for maximum styling customization.

— Reply to this email directly or view it on GitHub.