var Go = go.GraphObject.make;
var myDiagram = Go(go.Diagram,"myDiagram"弛矛, //引號(hào)內(nèi)是自己的div的id
? ? {
? ? scale:1.0,? ? //初始視圖大小比例
? ? minScale:0.5,//最小視圖的縮小比例
? ? maxScale:1.5矫夯,//最大視圖的放大比例
}
)
var Go = go.GraphObject.make;
var myDiagram = Go(go.Diagram,"myDiagram"弛矛, //引號(hào)內(nèi)是自己的div的id
? ? {
? ? scale:1.0,? ? //初始視圖大小比例
? ? minScale:0.5,//最小視圖的縮小比例
? ? maxScale:1.5矫夯,//最大視圖的放大比例
}
)