mxgraph的平移事件

问题描述

我是mxgraph的新手,想为整个图形创建拖放。我正在寻找的行为描述如下:

enter image description here

我该怎么做?

解决方法

您需要使用图形的setPanning参数:

graph.setPanning(true);

graph是对您的mxGraph实例的引用。 Here是一个文档。

我需要提到的不是“拖放”,而是“平移”。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...