如何根据条件(特别是变量的值)显示 go.Shape?
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); })
例如,如果“跨度”为 0,我不想显示此形状。
如何根据条件(特别是变量的值)显示 go.Shape?
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); })
例如,如果“跨度”为 0,我不想显示此形状。