我该怎么设置,才能够有双击放大缩小的功能呢?

If you want the zoom point to be where the mouse is:

  myDiagram.zoomPoint = myDiagram.lastInput.viewPoint;