Hi there,
gojs Version is 3.0.11
I’m getting typescript errors when trying to use fill: new go.Brush
with start
and end
:
When I replace go.Spot.Left
by a string I get Type 'string' is not assignable to type 'Spot'.
It works as it should, but the “compile” error is very irritating…
this works without errors:
const leftBrush = new go.Brush("Linear", { 0.0: "lightgreen", 1.0: "transparent" });
leftBrush.start = go.Spot.Left;
leftBrush.end = go.Spot.Right;
walter
3
Thanks for reporting this. We’ve fixed the type declaration of the constructor for the 3.0.12 release.