function createVM (Component, props, listeners, svgProps) {
return new Vue({
el: html`<svg></svg>`,
data: props,
render (h) {
return h(SvgWithPadding, {
props: svgProps,
scopedSlots: {
default: contentBox => h(Component, {
attrs: Object.assign(contentBox, this.$data),
on: listeners
})
}
})
}
})
}