1
条件(具体的には変数の値)に基づいてgo.Shapeを表示するにはどうすればよいですか?例えばGoJS表示形状の条件
go$(go.Shape, "Rectangle",
{ height: diagram.width, strokeWidth: 0.5 },
new go.Binding("fill", "color"),
new go.Binding("width", "span", function (w) { return ScaleSegmentWidth(w); })
「スパン」はdata.span
と仮定すると0
templateMapsを使用するhttp://gojs.net/latest/intro/templat eMaps.html – Sachink