In the documentation, app.factory.createViewOf is expected to take a viewInitializer, however it doesn't seem to be called.
app.factory.createViewOf({
mode,
diagram,
x: 0,
y: 0,
viewInitializer: function (elem) {
console.log('view initializer') // Not called
}
})