var Go = go.GraphObject.make;
var myDiagram = Go(go.Diagram,"myDiagram", //引号内是自己的div的id
{
scale:1.0, //初始视图大小比例
minScale:0.5,//最小视图的缩小比例
maxScale:1.5,//最大视图的放大比例
}
)
var Go = go.GraphObject.make;
var myDiagram = Go(go.Diagram,"myDiagram", //引号内是自己的div的id
{
scale:1.0, //初始视图大小比例
minScale:0.5,//最小视图的缩小比例
maxScale:1.5,//最大视图的放大比例
}
)