vue mxgraph samples
1.0.0
Some use cases of using mxgraph in vue2/ used mxgraph in vue2
The core file vue-mxgraph/src/assets/mxgraph/4.0.0/mxgraph.js used to encapsulate mxgraph
let mxgraphFactory = require('mxgraph')
const factory = new mxgraphFactory({
mxImageBasePath: 'assets/mxgraph/4.0.0/images',
mxBasePath: 'assets/mxgraph/4.0.0'
})
module.exports = factory
The methods referenced in vue are as follows
import {
mxClient,
mxUtils,
mxEvent,
mxGraph,
mxConstants,
mxRubberband
} from '@/assets/mxgraph/4.0.0/mxgraph'
Example:
vue-mxgraph/src/views/Graph.js
refer to:
jgraph/mxgraph/issues/175/npm install
Editor doesn't created when mxGraph is used as npm module
