How do I create image on edge in mxGraph

2019-03-06 02:33发布

问题:

I want to create a connector between two vertices and that the connector has an image in the center.

The connection would have an image. Is this possible?

http://upload.wikimedia.org/wikipedia/commons/0/08/Simple_stock_and_flow_diagram.gif

I Work with mxGraph, javascript.

Sorry, for my english. Thanks.

回答1:

Take a look at the following example:

http://jgraph.github.io/mxgraph/javascript/examples/markers.html