mxgraph实现简单流程图制作效果
代码语言:html
所属分类:其他
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>创建节点</title> <style> html, body { height: 100%; } #graphContainer { position: relative; overflow: hidden; width: 100%; height: 100%; background: url('http://repo.bfw.wiki/bfwrepo/image/grid.gif'); cursor: default; } </style> </head> <body onload="main(document.getElementById('graphContainer'))"> <button id="btn2"> 创建</button> <div id="graphContainer"></div> <script> mxBasePath = 'http://repo.bfw.wiki/bfwrepo/js/mxgraph/';//加载资源库 </script> <script type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/mxClient.js"></script> <script> function main(container) { // 禁用鼠标右键 mxEvent.disableContextMenu(container); const graph = new mxGraph(co.........完整代码请登录后点击上方下载按钮下载查看
网友评论0