jgraph / mxgraph

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

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

Closed Henke-visual closed 4 years ago

Henke-visual commented 4 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 4 years ago

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

Henke-visual commented 4 years ago

Both :) But primarily for development

PrudhviMadasu commented 4 years ago

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

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