export default function (to, from, savedPosition) { if (to.name.startsWith('type-id') && !from.name.startsWith('type-id')) { return { x: 0, y: 0 } } else { return savedPosition } }