You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: Illegal sizes value Any[Fixed(5.0f0), Auto(true, 1.0f0), Fixed(5.0f0)]
I can fix this by strictly typing the array as a Vector{Makie.GridLayoutBase.ContentSize}, but that seems inefficient and is impossible for users to discover since there's no documentation about it.
Potential solutions to this are:
Perform explicit vector type unioning in convert_contentsizes(n::Int64, sizes::Vector{Any}) (found at src/gridlayout.jl:332) and check the result of that in order to convert/dispatch.
Set Fixed, Auto, Relative, etc. to have a supertype AbstractSize or something, which will make at least this syntax pass (passing real numbers will not, that'll probably still need the explicit vector type union)
The text was updated successfully, but these errors were encountered:
Trying to create a GridLayout like so,
works fine, but if I try to pass a mixture of size types into
colsizes
,I get an error:
ERROR: Illegal sizes value Any[Fixed(5.0f0), Auto(true, 1.0f0), Fixed(5.0f0)]
I can fix this by strictly typing the array as a
Vector{Makie.GridLayoutBase.ContentSize}
, but that seems inefficient and is impossible for users to discover since there's no documentation about it.Potential solutions to this are:
convert_contentsizes(n::Int64, sizes::Vector{Any})
(found atsrc/gridlayout.jl:332
) and check the result of that in order to convert/dispatch.Fixed
,Auto
,Relative
, etc. to have a supertypeAbstractSize
or something, which will make at least this syntax pass (passing real numbers will not, that'll probably still need the explicit vector type union)The text was updated successfully, but these errors were encountered: