摘要:
HT For Web(http://www.hightopo.com/)的HTML5拓扑图组件graphView背景设置有多种途径可选择:
1. divBackground:通过css设置graphView对应的div背景
2. Painter:通过graphView.addBottomPainter(function(g, rect){…})来绘制背景
3. Layer:通过设置graphView.setLayer(['…', '…', '…', …])来将graphView拆分为多个图层,并为各个图层命名,再让不同种类的node通过node.setLayer('…')将node设置到graphView对应图层中 阅读全文
![](http://images.cnitblog.com/blog2015/591709/201503/052113014304038.png)