轻量高效的拓扑图组件
zh

Qunee Developer Guide

显示网格背景

示例

var graph = new Q.Graph('canvas');
graph.showGrid = true;
graph.snapToGrid = true;
var hello = graph.createNode("Hello", -100, -50);
var qunee = graph.createNode("Qunee", 100, 50);

显示网格背景后,画布运行如下

参考线对齐

graph.enableGuideLine = true;

启用参考线后,移动图元或者调整图元尺寸时,会根据邻近图元边界自动对齐,运行效果如下