Open jwoLondon opened 5 years ago
Related, but minor: I wonder if a better set of X and Y defaults would be for a vertical rather than horizontal gradient. This, I suspect, would be the most common orientation for marks that are likely to have a gradient fill (in a ratio of 2:1 in the example gallery).
Currently with the new (VL4) gradient specification, there is a default left-to-right direction for linear gradients (i.e. defaults of
"x1": 0, "x2": 1, "y1": 1, "y2": 1
). However there appears to be no default for the stops setting. For example, following spec generates the errorCannot read property 'length' of undefined
and prevents rendering:Would it make sense to provide default stops settings to prevent this? Perhaps a white to default blue, equivalent to