0
我想在我的圖表中旋轉90度的形狀。以下是我們用來創建由圓角矩形組成的圖表的源代碼,當模型呈現時,如何將形狀旋轉90度?旋轉GoJs形狀90度
myDiagram.nodeTemplate =
$(go.Node, go.Panel.Auto,
$(go.Shape, "RoundedRectangle",
{ fill: "lightgrey" },
new go.Binding("figure", "fig"),
new go.Binding("fill","color")
),
$(go.TextBlock,
{ margin: 15, },
new go.Binding("text", "name"))
);