vue2svg: replaced switch with yield
created a namedtuple for the joined type