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
# MosaicViews support (require MosaicViews >= v0.3.0)
159
+
MosaicViews.promote_wrapped_type(::Type{T}, ::Type{S}) where {T<:Colorant,S<:Colorant} =promote_type(T, S)
160
+
MosaicViews.promote_wrapped_type(::Type{T}, ::Type{S}) where {T,S<:Colorant} = S === Union{} ? T :base_colorant_type(S){MosaicViews.promote_wrapped_type(T, eltype(S))}
161
+
MosaicViews.promote_wrapped_type(::Type{T}, ::Type{S}) where {T<:Colorant,S} = MosaicViews.promote_wrapped_type(S, T)
162
+
157
163
# Support transpose
158
164
Base.transpose(a::AbstractMatrix{C}) where {C<:Colorant} =permutedims(a, (2,1))
159
165
function Base.transpose(a::AbstractVector{C}) where C<:Colorant
@@ -164,10 +170,6 @@ function Base.transpose(a::AbstractVector{C}) where C<:Colorant
164
170
out
165
171
end
166
172
167
-
MosaicViews.promote_wrapped_type(::Type{T}, ::Type{S}) where {T<:Colorant,S<:Colorant} =promote_type(T, S)
168
-
MosaicViews.promote_wrapped_type(::Type{T}, ::Type{S}) where {T,S<:Colorant} = S === Union{} ? T :base_colorant_type(S){MosaicViews.promote_wrapped_type(T, eltype(S))}
169
-
MosaicViews.promote_wrapped_type(::Type{T}, ::Type{S}) where {T<:Colorant,S} = MosaicViews.promote_wrapped_type(S, T)
170
-
171
173
ifVERSION>=v"1.4.2"# work around https://github.com/JuliaLang/julia/issues/34121
0 commit comments