From 23567964e7ef9caec4a1cf76492d5c089a4fe697 Mon Sep 17 00:00:00 2001 From: yha Date: Mon, 3 May 2021 19:45:48 +0300 Subject: [PATCH] undo accidental change --- src/utils.jl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/utils.jl b/src/utils.jl index 8c69a029..7b4a093c 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -178,6 +178,14 @@ makevec(v::T) where {T} = T[v] maketuple(x::Real) = (x,x) maketuple(x::Tuple{T,S}) where {T,S} = x +for i in 2:4 + @eval begin + RecipesPipeline.unzip( + v::Union{AVec{<:Tuple{Vararg{T,$i} where T}}, AVec{<:GeometryBasics.Point{$i}}}, + ) = $(Expr(:tuple, (:([t[$j] for t in v]) for j=1:i)...)) + end +end + RecipesPipeline.unzip( ::Union{AVec{<:GeometryBasics.Point{N}}, AVec{<:Tuple{Vararg{T,N} where T}}} ) where N = error("$N-dimensional unzip not implemented.")