jgraph / mxgraph

mxGraph is a fully client side JavaScript diagramming library
Other
6.79k stars 2.06k forks source link

Background image doesn't fill/fit or have opacity key #494

Closed Henke-visual closed 3 years ago

Henke-visual commented 3 years ago

I would really like to have some more options regarding the page background image.

When using the page background image option there is no setting for opacity. A background image very often has to be "dimmed" not to interfere with the overlaying graphics. An opacity setting would solve that problem.

image

There are currently also no option to upload background images (url only) or to make the background to fit/fill the page. image

But when adding an image for a shape you have the option to also upload an image. image

davidjgraph commented 3 years ago

Is this a draw.io usage question or an mxGraph development question?

Henke-visual commented 3 years ago

Both :) But primarily for development

PrudhviMadasu commented 3 years ago

In MxGraph add below style to your CSS to fill image in graphcontainer

.graphcontainer { background: url(''); width: 100%; height: 100vh; }